2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
730 NATIVE_SYSTEM_HEADER_DIR
764 real_target_noncanonical
765 enable_as_accelerator
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
773 SYSROOT_CFLAGS_FOR_TARGET
783 valgrind_path_defines
856 program_transform_name
867 ac_subst_files
='option_includes
870 enable_option_checking
875 enable_generated_files_in_srcdir
882 enable_build_format_warnings
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
899 with_native_system_header_dir
909 enable_sjlj_exceptions
911 enable_leading_mingw64_underscores
914 enable_win32_registry
922 enable_gnu_indirect_function
923 enable_initfini_array
925 enable_fix_cortex_a53_835769
927 enable_gnu_unique_object
928 enable_linker_build_id
932 enable_maintainer_mode
934 enable_version_specific_runtime_libs
937 enable_libquadmath_support
938 with_linker_hash_style
939 with_diagnostics_color
941 ac_precious_vars
='build_alias
960 # Initialize some variables set by options.
962 ac_init_version
=false
963 ac_unrecognized_opts
=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name
=s
,x
,x
,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir
='${exec_prefix}/bin'
989 sbindir
='${exec_prefix}/sbin'
990 libexecdir
='${exec_prefix}/libexec'
991 datarootdir
='${prefix}/share'
992 datadir
='${datarootdir}'
993 sysconfdir
='${prefix}/etc'
994 sharedstatedir
='${prefix}/com'
995 localstatedir
='${prefix}/var'
996 includedir
='${prefix}/include'
997 oldincludedir
='/usr/include'
998 docdir
='${datarootdir}/doc/${PACKAGE}'
999 infodir
='${datarootdir}/info'
1004 libdir
='${exec_prefix}/lib'
1005 localedir
='${datarootdir}/locale'
1006 mandir
='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\
$ac_option
1020 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1032 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1033 bindir
=$ac_optarg ;;
1035 -build |
--build |
--buil |
--bui |
--bu)
1036 ac_prev
=build_alias
;;
1037 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1038 build_alias
=$ac_optarg ;;
1040 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1041 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1042 ac_prev
=cache_file
;;
1043 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1044 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1045 cache_file
=$ac_optarg ;;
1047 --config-cache |
-C)
1048 cache_file
=config.cache
;;
1050 -datadir |
--datadir |
--datadi |
--datad)
1052 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1053 datadir
=$ac_optarg ;;
1055 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1056 |
--dataroo |
--dataro |
--datar)
1057 ac_prev
=datarootdir
;;
1058 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1059 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1060 datarootdir
=$ac_optarg ;;
1062 -disable-* |
--disable-*)
1063 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1066 as_fn_error
"invalid feature name: $ac_useropt"
1067 ac_useropt_orig
=$ac_useropt
1068 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_
$ac_useropt"
1073 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep
=', ';;
1076 eval enable_
$ac_useropt=no
;;
1078 -docdir |
--docdir |
--docdi |
--doc |
--do)
1080 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1081 docdir
=$ac_optarg ;;
1083 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1085 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1086 dvidir
=$ac_optarg ;;
1088 -enable-* |
--enable-*)
1089 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error
"invalid feature name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_
$ac_useropt"
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval enable_
$ac_useropt=\
$ac_optarg ;;
1104 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1105 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1106 |
--exec |
--exe |
--ex)
1107 ac_prev
=exec_prefix
;;
1108 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1109 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1110 |
--exec=* |
--exe=* |
--ex=*)
1111 exec_prefix
=$ac_optarg ;;
1113 -gas |
--gas |
--ga |
--g)
1114 # Obsolete; use --with-gas.
1117 -help |
--help |
--hel |
--he |
-h)
1118 ac_init_help
=long
;;
1119 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1120 ac_init_help
=recursive
;;
1121 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1122 ac_init_help
=short
;;
1124 -host |
--host |
--hos |
--ho)
1125 ac_prev
=host_alias
;;
1126 -host=* |
--host=* |
--hos=* |
--ho=*)
1127 host_alias
=$ac_optarg ;;
1129 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1131 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1133 htmldir
=$ac_optarg ;;
1135 -includedir |
--includedir |
--includedi |
--included |
--include \
1136 |
--includ |
--inclu |
--incl |
--inc)
1137 ac_prev
=includedir
;;
1138 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1139 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1140 includedir
=$ac_optarg ;;
1142 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1144 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1145 infodir
=$ac_optarg ;;
1147 -libdir |
--libdir |
--libdi |
--libd)
1149 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1150 libdir
=$ac_optarg ;;
1152 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1153 |
--libexe |
--libex |
--libe)
1154 ac_prev
=libexecdir
;;
1155 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1156 |
--libexe=* |
--libex=* |
--libe=*)
1157 libexecdir
=$ac_optarg ;;
1159 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1160 ac_prev
=localedir
;;
1161 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1162 localedir
=$ac_optarg ;;
1164 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1165 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1166 ac_prev
=localstatedir
;;
1167 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1168 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1169 localstatedir
=$ac_optarg ;;
1171 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1173 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1174 mandir
=$ac_optarg ;;
1176 -nfp |
--nfp |
--nf)
1177 # Obsolete; use --without-fp.
1180 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1181 |
--no-cr |
--no-c |
-n)
1184 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1185 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1188 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1189 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1190 |
--oldin |
--oldi |
--old |
--ol |
--o)
1191 ac_prev
=oldincludedir
;;
1192 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1193 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1194 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1195 oldincludedir
=$ac_optarg ;;
1197 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1199 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1200 prefix
=$ac_optarg ;;
1202 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1203 |
--program-pre |
--program-pr |
--program-p)
1204 ac_prev
=program_prefix
;;
1205 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1206 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1207 program_prefix
=$ac_optarg ;;
1209 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1210 |
--program-suf |
--program-su |
--program-s)
1211 ac_prev
=program_suffix
;;
1212 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1213 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1214 program_suffix
=$ac_optarg ;;
1216 -program-transform-name |
--program-transform-name \
1217 |
--program-transform-nam |
--program-transform-na \
1218 |
--program-transform-n |
--program-transform- \
1219 |
--program-transform |
--program-transfor \
1220 |
--program-transfo |
--program-transf \
1221 |
--program-trans |
--program-tran \
1222 |
--progr-tra |
--program-tr |
--program-t)
1223 ac_prev
=program_transform_name
;;
1224 -program-transform-name=* |
--program-transform-name=* \
1225 |
--program-transform-nam=* |
--program-transform-na=* \
1226 |
--program-transform-n=* |
--program-transform-=* \
1227 |
--program-transform=* |
--program-transfor=* \
1228 |
--program-transfo=* |
--program-transf=* \
1229 |
--program-trans=* |
--program-tran=* \
1230 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1231 program_transform_name
=$ac_optarg ;;
1233 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1235 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1236 pdfdir
=$ac_optarg ;;
1238 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1240 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1243 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1244 |
-silent |
--silent |
--silen |
--sile |
--sil)
1247 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1249 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1251 sbindir
=$ac_optarg ;;
1253 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1254 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1255 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1257 ac_prev
=sharedstatedir
;;
1258 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1259 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1260 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1262 sharedstatedir
=$ac_optarg ;;
1264 -site |
--site |
--sit)
1266 -site=* |
--site=* |
--sit=*)
1269 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1271 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1272 srcdir
=$ac_optarg ;;
1274 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1275 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1276 ac_prev
=sysconfdir
;;
1277 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1278 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1279 sysconfdir
=$ac_optarg ;;
1281 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1282 ac_prev
=target_alias
;;
1283 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1284 target_alias
=$ac_optarg ;;
1286 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1289 -version |
--version |
--versio |
--versi |
--vers |
-V)
1290 ac_init_version
=: ;;
1293 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=\
$ac_optarg ;;
1308 -without-* |
--without-*)
1309 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1312 as_fn_error
"invalid package name: $ac_useropt"
1313 ac_useropt_orig
=$ac_useropt
1314 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1319 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep
=', ';;
1322 eval with_
$ac_useropt=no
;;
1325 # Obsolete; use --with-x.
1328 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1329 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1330 ac_prev
=x_includes
;;
1331 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1332 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1333 x_includes
=$ac_optarg ;;
1335 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1336 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1337 ac_prev
=x_libraries
;;
1338 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1339 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1340 x_libraries
=$ac_optarg ;;
1342 -*) as_fn_error
"unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1347 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1351 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1353 eval $ac_envvar=\
$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 if test -n "$ac_prev"; then
1368 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error
"missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1375 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 # Check all directory arguments for consistency.
1381 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val
=\$
$ac_var
1387 # Remove trailing slashes.
1390 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\
$ac_val;;
1393 # Be sure to have absolute directory names.
1395 [\\/$
]* | ?
:[\\/]* ) continue;;
1396 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1398 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1406 target
=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x
; then
1410 if test "x$build_alias" = x
; then
1411 cross_compiling
=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1422 test "$silent" = yes && exec 6>/dev
/null
1425 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di
=`ls -di .` &&
1427 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error
"working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error
"pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted
=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir
=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted
=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1469 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var
in $ac_precious_vars; do
1486 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1488 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1562 --build=BUILD configure
for building on BUILD
[guessed
]
1563 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1564 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1568 if test -n "$ac_init_help"; then
1573 --disable-option-checking ignore unrecognized
--enable/--with options
1574 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1575 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1576 --enable-generated-files-in-srcdir
1577 put copies of generated files
in source dir intended
1578 for creating
source tarballs
for users without
1579 texinfo bison or flex
1580 --disable-largefile omit support
for large files
1581 --disable-build-format-warnings
1582 don
't use -Wformat while building GCC
1583 --enable-werror-always enable -Werror despite compiler version
1584 --enable-checking[=LIST]
1585 enable expensive run-time checks. With LIST, enable
1586 only specific categories of checks. Categories are:
1587 yes,no,all,none,release. Flags are:
1588 assert,df,fold,gc,gcac,gimple,misc,
1589 rtlflag,rtl,runtime,tree,valgrind,types
1590 --enable-coverage[=LEVEL]
1591 enable compiler's code coverage collection. Use to
1592 measure compiler performance and
locate unused parts
1593 of the compiler. With LEVEL
, specify optimization.
1594 Values are opt
, noopt
, default is noopt
1595 --enable-gather-detailed-mem-stats
1596 enable detailed memory allocation stats gathering
1597 --enable-valgrind-annotations
1598 enable valgrind runtime interaction
1599 --enable-multilib enable library support
for multiple ABIs
1600 --enable-multiarch enable support
for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1602 --enable-decimal-float={no
,yes,bid
,dpd
}
1603 enable decimal float extension to C. Selecting
'bid'
1604 or
'dpd' choses
which decimal floating point format
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check
for tls support
1611 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1612 GNU Objective-C runtime
1613 --disable-shared don't provide a shared libgcc
1614 --enable-languages=LIST specify
which front-ends to build
1615 --disable-rpath do not hardcode runtime library paths
1616 --enable-sjlj-exceptions
1617 arrange to use setjmp
/longjmp exception handling
1618 --enable-secureplt enable -msecure-plt by default
for PowerPC
1619 --enable-leading-mingw64-underscores
1620 enable leading underscores on
64 bit mingw targets
1621 --enable-cld enable -mcld by default
for 32bit x86
1622 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1624 --disable-win32-registry
1625 disable lookup of installation paths
in the Registry
1627 --enable-win32-registry enable registry lookup
(default
)
1628 --enable-win32-registry=KEY
1629 use KEY instead of GCC version as the last portion
1631 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1632 --enable-static[=PKGS
] build static libraries
[default
=yes]
1633 --enable-fast-install[=PKGS
]
1634 optimize
for fast installation
[default
=yes]
1635 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1636 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1637 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1638 --enable-gnu-indirect-function
1639 enable the use of the @gnu_indirect_function to
1641 --enable-initfini-array use .init_array
/.fini_array sections
1642 --enable-comdat enable COMDAT group support
1644 --enable-fix-cortex-a53-835769
1645 enable workaround
for AArch64 Cortex-A53 erratum
1647 --disable-fix-cortex-a53-835769
1648 disable workaround
for AArch64 Cortex-A53 erratum
1651 --enable-gnu-unique-object
1652 enable the use of the @gnu_unique_object ELF
1653 extension on glibc systems
1654 --enable-linker-build-id
1655 compiler will always pass
--build-id to linker
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful
(and
1658 sometimes confusing
) to the casual installer
1659 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1660 thrashing on the build machine
1661 --enable-version-specific-runtime-libs
1662 specify that runtime libraries should be installed
1663 in a compiler-specific directory
1664 --enable-plugin enable plugin support
1665 --enable-host-shared build
host code as shared libraries
1666 --disable-libquadmath-support
1667 disable libquadmath support
for Fortran
1670 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1671 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1672 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1673 --with-local-prefix=DIR specifies directory to put
local include
1674 --with-gxx-include-dir=DIR
1675 specifies directory to put g
++ header files
1676 --with-cpp-install-dir=DIR
1677 install the user visible C preprocessor
in DIR
1678 (relative to PREFIX
) as well as PREFIX
/bin
1679 --with-gnu-ld arrange to work with GNU ld
1680 --with-ld arrange to use the specified ld
(full pathname
)
1681 --with-demangler-in-ld try to use demangler
in GNU ld
1682 --with-gnu-as arrange to work with GNU as
1683 --with-as arrange to use the specified as
(full pathname
)
1684 --with-stabs arrange to use stabs instead of
host debug format
1685 --with-dwarf2 force the default debug format to be DWARF
2
1686 --with-native-system-header-dir=dir
1687 use dir as the directory to
look for standard
1688 system header files
in. Defaults to
/usr
/include.
1689 --with-build-sysroot=sysroot
1690 use sysroot as the system root during the build
1691 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1692 --with-specs=SPECS add SPECS to driver command-line processing
1693 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1694 --with-bugurl=URL Direct users to URL to report a bug
1695 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1696 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1697 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1698 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1699 --with-pic try to use only PIC/non-PIC objects [default=use
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-plugin-ld=[ARG] specify the plugin linker
1703 --with-glibc-version=M.N
1704 assume GCC used with glibc version M.N or later
1705 --with-long-double-128 use 128-bit long double by default
1706 --with-gc={page,zone} this option is not supported anymore. It used to
1707 choose the garbage collection mechanism to use with
1709 --with-system-zlib use installed libz
1710 --with-linker-hash-style={sysv,gnu,both}
1711 specify the linker hash style
1712 --with-diagnostics-color={never,auto,auto-if-env,always}
1713 specify the default of -fdiagnostics-color option
1714 auto-if-env stands for -fdiagnostics-color=auto if
1715 GCC_COLOR environment variable is present and
1716 -fdiagnostics-color=never otherwise
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1735 Use these variables to override the choices made by `configure' or to
help
1736 it to
find libraries and programs with nonstandard names
/locations.
1738 Report bugs to the package provider.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1752 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1754 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1759 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1762 ac_abs_top_builddir
=$ac_pwd
1763 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir
=$ac_top_build_prefix
1768 .
) # We are building in place.
1770 ac_top_srcdir
=$ac_top_builddir_sub
1771 ac_abs_top_srcdir
=$ac_pwd ;;
1772 [\\/]* | ?
:[\\/]* ) # Absolute name.
1773 ac_srcdir
=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir
=$srcdir
1775 ac_abs_top_srcdir
=$srcdir ;;
1777 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1781 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1802 generated by GNU Autoconf
2.64
1804 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1805 This configure
script is free software
; the Free Software Foundation
1806 gives unlimited permission to copy
, distribute and modify it.
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 rm -f conftest.
$ac_objext
1822 if { { ac_try
="$ac_compile"
1824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1863 *) ac_try_echo
=$ac_try;;
1865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err
; then
1870 grep -v '^ *+' conftest.err
>conftest.er1
1871 cat conftest.er1
>&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.
$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2005 eval "$3=\$ac_header_compiler"
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2025 *) ac_try_echo
=$ac_try;;
2027 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2074 if ac_fn_c_try_compile "$LINENO"; then :
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2093 ac_fn_c_compute_int ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid; break
2130 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2131 if test $ac_lo -le $ac_mid; then
2135 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2146 static int test_array [1 - 2 * !(($2) < 0)];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 if ac_fn_c_try_compile "$LINENO"; then :
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2226 FILE *f = fopen ("conftest.val", "w");
2231 long int i = longval ();
2234 fprintf (f, "%ld", i);
2238 unsigned long int i = ulongval ();
2241 fprintf (f, "%lu", i);
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 } # ac_fn_c_compute_int
2266 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2267 # -------------------------------------------
2268 # Tests whether TYPE exists after having included INCLUDES, setting cache
2269 # variable VAR accordingly.
2270 ac_fn_c_check_type ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2304 if ac_fn_c_try_compile "$LINENO"; then :
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318 } # ac_fn_c_check_type
2320 # ac_fn_c_find_intX_t LINENO BITS VAR
2321 # -----------------------------------
2322 # Finds a signed integer type with width BITS, setting cache variable VAR
2324 ac_fn_c_find_intX_t ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2328 $as_echo_n "checking for int$2_t... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2333 for ac_type in int$2_t 'int' 'long int' \
2334 'long long int' 'short int' 'signed char'; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $ac_includes_default
2341 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $ac_includes_default
2355 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2356 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2363 if ac_fn_c_try_compile "$LINENO"; then :
2370 eval "$3=\$ac_type" ;;
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 if test "x$as_val" = x""no; then :
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_find_intX_t
2391 # ac_fn_c_try_link LINENO
2392 # -----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded.
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2401 *) ac_try_echo
=$ac_try;;
2403 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2407 if test -s conftest.err
; then
2408 grep -v '^ *+' conftest.err
>conftest.er1
2409 cat conftest.er1
>&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest
$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest
$ac_exeext
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.
$ac_ext >&5
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2435 } # ac_fn_c_try_link
2437 # ac_fn_c_find_uintX_t LINENO BITS VAR
2438 # ------------------------------------
2439 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2441 ac_fn_c_find_uintX_t
()
2443 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2445 $as_echo_n "checking for uint$2_t... " >&6; }
2446 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2450 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2451 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $ac_includes_default
2458 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2465 if ac_fn_c_try_compile
"$LINENO"; then :
2470 eval "$3=\$ac_type" ;;
2473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2475 if test "x$as_val" = x
""no
; then :
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2487 } # ac_fn_c_find_uintX_t
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc
()
2494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2504 if ac_fn_c_try_cpp
"$LINENO"; then :
2509 rm -f conftest.err conftest.
$ac_ext
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2516 } # ac_fn_c_check_header_preproc
2518 # ac_fn_cxx_try_cpp LINENO
2519 # ------------------------
2520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_cpp
()
2523 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2524 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 } # ac_fn_cxx_try_cpp
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2575 rm -f conftest.err conftest.$ac_ext
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_c_check_func LINENO FUNC VAR
2585 # ----------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_c_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2607 # include <limits.h>
2609 # include <assert.h>
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2636 if ac_fn_c_try_link "$LINENO"; then :
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_func
2651 # ac_fn_cxx_try_link LINENO
2652 # -------------------------
2653 # Try to link conftest.$ac_ext, and return whether this succeeded.
2654 ac_fn_cxx_try_link ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { { ac_try="$ac_link"
2660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2661 *) ac_try_echo
=$ac_try;;
2663 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>conftest.err
2667 if test -s conftest.err
; then
2668 grep -v '^ *+' conftest.err
>conftest.er1
2669 cat conftest.er1
>&5
2670 mv -f conftest.er1 conftest.err
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; } && {
2674 test -z "$ac_cxx_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest
$ac_exeext && {
2677 test "$cross_compiling" = yes ||
2678 $as_test_x conftest
$ac_exeext
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.
$ac_ext >&5
2687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2689 # interfere with the next link command; also delete a directory that is
2690 # left behind by Apple's compiler. We do this before executing the actions.
2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2695 } # ac_fn_cxx_try_link
2696 cat >config.log
<<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.64. Invocation command line was
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 $as_echo "PATH: $as_dir"
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2761 ac_must_keep_next
=false
2767 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2768 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2769 |
-silent |
--silent |
--silen |
--sile |
--sil)
2772 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2777 as_fn_append ac_configure_args1
" '$ac_arg'"
2778 if test $ac_must_keep_next = true
; then
2779 ac_must_keep_next
=false
# Got value, back to normal.
2782 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2783 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2784 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2785 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2790 -* ) ac_must_keep_next
=true
;;
2793 as_fn_append ac_configure_args
" '$ac_arg'"
2798 { ac_configure_args0
=; unset ac_configure_args0
;}
2799 { ac_configure_args1
=; unset ac_configure_args1
;}
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2817 # The following way of writing the cache mishandles newlines in values,
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2855 for ac_var in $ac_subst_vars
2857 eval ac_val=\$$ac_var
2859 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 $as_echo "$ac_var='\''$ac_val'\''"
2865 if test -n "$ac_subst_files"; then
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2872 for ac_var
in $ac_subst_files
2874 eval ac_val
=\$
$ac_var
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2878 $as_echo "$ac_var='\''$ac_val'\''"
2883 if test -s confdefs.h; then
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2901 for ac_signal
in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest
* confdefs.h
2909 $as_echo "/* confdefs.h */" > confdefs.h
2911 # Predefined preprocessor variables.
2913 cat >>confdefs.h
<<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2917 cat >>confdefs.h
<<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2921 cat >>confdefs.h
<<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2925 cat >>confdefs.h
<<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2929 cat >>confdefs.h
<<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2933 cat >>confdefs.h
<<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1
=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE
; then
2945 ac_site_file1
=$prefix/share
/config.site
2946 ac_site_file2
=$prefix/etc
/config.site
2948 ac_site_file1
=$ac_default_prefix/share
/config.site
2949 ac_site_file2
=$ac_default_prefix/etc
/config.site
2951 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2953 test "x$ac_site_file" = xNONE
&& continue
2954 if test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special
2964 # files actually), so we avoid doing that.
2965 if test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2969 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2970 *) .
"./$cache_file";;
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2979 # Check that the precious variables saved in the cache have kept the same
2981 ac_cache_corrupted
=false
2982 for ac_var
in $ac_precious_vars; do
2983 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2984 eval ac_new_set
=\
$ac_env_${ac_var}_set
2985 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2986 eval ac_new_val
=\
$ac_env_${ac_var}_value
2987 case $ac_old_set,$ac_new_set in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2991 ac_cache_corrupted
=: ;;
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2995 ac_cache_corrupted
=: ;;
2998 if test "x$ac_old_val" != "x$ac_new_val"; then
2999 # differences in whitespace do not lead to failure.
3000 ac_old_val_w
=`echo x $ac_old_val`
3001 ac_new_val_w
=`echo x $ac_new_val`
3002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3005 ac_cache_corrupted
=:
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3009 eval $ac_var=\
$ac_old_val
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3017 # Pass precious variables to config.status.
3018 if test "$ac_new_set" = set; then
3020 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3021 *) ac_arg
=$ac_var=$ac_new_val ;;
3023 case " $ac_configure_args " in
3024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3025 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3029 if $ac_cache_corrupted; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3034 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3036 ## -------------------- ##
3037 ## Main body of script. ##
3038 ## -------------------- ##
3041 ac_cpp
='$CPP $CPPFLAGS'
3042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3051 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3054 gcc_version
=`cat $srcdir/BASE-VER`
3056 # Determine the host, build, and target systems
3058 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3059 for ac_t
in install-sh
install.sh shtool
; do
3060 if test -f "$ac_dir/$ac_t"; then
3062 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3067 if test -z "$ac_aux_dir"; then
3068 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3076 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3077 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3082 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if test "${ac_cv_build+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 ac_build_alias
=$build_alias
3090 test "x$ac_build_alias" = x
&&
3091 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x
&&
3093 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3102 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3105 ac_save_IFS
=$IFS; IFS
='-'
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3115 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if test "${ac_cv_host+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3123 if test "x$host_alias" = x
; then
3124 ac_cv_host
=$ac_cv_build
3126 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3135 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3138 ac_save_IFS
=$IFS; IFS
='-'
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3148 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 $as_echo_n "checking target system type... " >&6; }
3153 if test "${ac_cv_target+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 if test "x$target_alias" = x
; then
3157 ac_cv_target
=$ac_cv_host
3159 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3160 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3165 $as_echo "$ac_cv_target" >&6; }
3166 case $ac_cv_target in
3168 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3170 target
=$ac_cv_target
3171 ac_save_IFS
=$IFS; IFS
='-'
3177 # Remember, the first character of IFS is used to create $*,
3178 # except with old shells:
3181 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3184 # The aliases save the names the user supplied, while $host etc.
3185 # will get canonicalized.
3186 test -n "$target_alias" &&
3187 test "$program_prefix$program_suffix$program_transform_name" = \
3189 program_prefix
=${target_alias}-
3191 # Determine the noncanonical target name, for directory use.
3192 case ${build_alias} in
3193 "") build_noncanonical
=${build} ;;
3194 *) build_noncanonical
=${build_alias} ;;
3197 case ${host_alias} in
3198 "") host_noncanonical
=${build_noncanonical} ;;
3199 *) host_noncanonical
=${host_alias} ;;
3202 case ${target_alias} in
3203 "") target_noncanonical
=${host_noncanonical} ;;
3204 *) target_noncanonical
=${target_alias} ;;
3210 # Used for constructing correct paths for offload compilers.
3211 real_target_noncanonical
=${target_noncanonical}
3214 # Determine the target- and build-specific subdirectories
3216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3217 # have matching libraries, they should use host libraries: Makefile.tpl
3218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3219 # However, they still use the build modules, because the corresponding
3220 # host modules (e.g. bison) are only built for the host when bootstrap
3222 # - build_subdir is where we find build modules, and never changes.
3223 # - build_libsubdir is where we find build libraries, and can be overridden.
3225 # Prefix 'build-' so this never conflicts with target_subdir.
3226 build_subdir
="build-${build_noncanonical}"
3228 # Check whether --with-build-libsubdir was given.
3229 if test "${with_build_libsubdir+set}" = set; then :
3230 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3232 build_libsubdir
="$build_subdir"
3235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3236 if ( test $srcdir = .
&& test -d gcc
) \
3237 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3238 host_subdir
="host-${host_noncanonical}"
3243 target_subdir
=${target_noncanonical}
3246 # Set program_transform_name
3247 test "$program_prefix" != NONE
&&
3248 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3249 # Use a double $ so make ignores it.
3250 test "$program_suffix" != NONE
&&
3251 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3252 # Double any \ or $.
3253 # By default was `s,x,x', remove it if useless.
3254 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3255 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3258 # Check for bogus environment variables.
3259 # Test if LIBRARY_PATH contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # LIBRARY_PATH contains the current directory if one of the following
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3267 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3268 case ${LIBRARY_PATH} in
3269 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3270 library_path_setting
="contains current directory"
3273 library_path_setting
="ok"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3277 $as_echo "$library_path_setting" >&6; }
3278 if test "$library_path_setting" != "ok"; then
3280 *** LIBRARY_PATH shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3285 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3286 # since this would lead to problems installing/building glibc.
3287 # GCC_EXEC_PREFIX contains the current directory if one of the following
3289 # - one of the terminals (":" and ";") is the first or last sign
3290 # - two terminals occur directly after each other
3291 # - the path contains an element with a dot in it
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3293 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3294 case ${GCC_EXEC_PREFIX} in
3295 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3296 gcc_exec_prefix_setting
="contains current directory"
3299 gcc_exec_prefix_setting
="ok"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3303 $as_echo "$gcc_exec_prefix_setting" >&6; }
3304 if test "$gcc_exec_prefix_setting" != "ok"; then
3306 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3307 *** building gcc. Please change the environment variable
3308 *** and run configure again." "$LINENO" 5
3315 # Specify the local prefix
3318 # Check whether --with-local-prefix was given.
3319 if test "${with_local_prefix+set}" = set; then :
3320 withval
=$with_local_prefix; case "${withval}" in
3321 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3323 *) local_prefix
=$with_local_prefix ;;
3328 # Default local prefix if it is empty
3329 if test x
$local_prefix = x
; then
3330 local_prefix
=/usr
/local
3333 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3334 # passed in by the toplevel make and thus we'd get different behavior
3335 # depending on where we built the sources.
3336 gcc_gxx_include_dir
=
3337 # Specify the g++ header file directory
3339 # Check whether --with-gxx-include-dir was given.
3340 if test "${with_gxx_include_dir+set}" = set; then :
3341 withval
=$with_gxx_include_dir; case "${withval}" in
3342 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3344 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3349 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3350 if test x
${gcc_gxx_include_dir} = x
; then
3351 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3352 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3354 libstdcxx_incdir
='include/c++/$(version)'
3355 if test x
$host != x
$target; then
3356 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3358 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3362 gcc_gxx_include_dir_add_sysroot
=0
3363 if test "${with_sysroot+set}" = set; then
3364 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3365 if test "${gcc_gxx_without_sysroot}"; then
3366 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3367 gcc_gxx_include_dir_add_sysroot
=1
3372 # Check whether --with-cpp_install_dir was given.
3373 if test "${with_cpp_install_dir+set}" = set; then :
3374 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3375 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3376 elif test x
$withval != xno
; then
3377 cpp_install_dir
=$withval
3382 # We would like to our source tree to be readonly. However when releases or
3383 # pre-releases are generated, the flex/bison generated files as well as the
3384 # various formats of manuals need to be included along with the rest of the
3385 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3389 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3390 # Check whether --enable-generated-files-in-srcdir was given.
3391 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3392 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3394 generated_files_in_srcdir
=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3399 $as_echo "$generated_files_in_srcdir" >&6; }
3401 if test "$generated_files_in_srcdir" = "yes"; then
3408 # -------------------
3409 # Find default linker
3410 # -------------------
3414 # Check whether --with-gnu-ld was given.
3415 if test "${with_gnu_ld+set}" = set; then :
3416 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3422 # With pre-defined ld
3424 # Check whether --with-ld was given.
3425 if test "${with_ld+set}" = set; then :
3426 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3429 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3430 if test ! -x "$DEFAULT_LINKER"; then
3431 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3432 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3436 cat >>confdefs.h
<<_ACEOF
3437 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3443 $as_echo_n "checking whether a default linker was specified... " >&6; }
3444 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3445 if test x
"$gnu_ld_flag" = x
"no"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3447 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3450 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 # With demangler in GNU ld
3459 # Check whether --with-demangler-in-ld was given.
3460 if test "${with_demangler_in_ld+set}" = set; then :
3461 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3467 # ----------------------
3468 # Find default assembler
3469 # ----------------------
3473 # Check whether --with-gnu-as was given.
3474 if test "${with_gnu_as+set}" = set; then :
3475 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3482 # Check whether --with-as was given.
3483 if test "${with_as+set}" = set; then :
3484 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3487 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3488 if test ! -x "$DEFAULT_ASSEMBLER"; then
3489 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3490 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3494 cat >>confdefs.h
<<_ACEOF
3495 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3501 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3502 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3503 if test x
"$gas_flag" = x
"no"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3505 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3508 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3519 # If a non-executable a.out is present (e.g. created by GNU as above even if
3520 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3521 # file, even when creating an executable, so an execution test fails.
3522 # Remove possible default executable files to avoid this.
3524 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3525 # Autoconf includes it.
3526 rm -f a.out a.exe b.out
3528 # Find the native compiler
3530 ac_cpp
='$CPP $CPPFLAGS'
3531 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC
="$CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc
; ac_word
=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir
=.
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC
="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x
; then
3614 case $cross_compiling:$ac_tool_warned in
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned
=yes ;;
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc
; ac_word
=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC
="$CC" # Let the user override the test.
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected
=yes
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy
$ac_cv_prog_CC
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3707 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog
in cl.exe
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC
="$CC" # Let the user override the test.
3737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir
=.
3742 for ac_exec_ext
in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3767 if test -z "$CC"; then
3769 for ac_prog
in cl.exe
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy
$ac_prog; ac_word
=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir
=.
3786 for ac_exec_ext
in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_CC
="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3811 if test "x$ac_ct_CC" = x
; then
3814 case $cross_compiling:$ac_tool_warned in
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned
=yes ;;
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error
"no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3836 for ac_option
in --version -v -V -qversion; do
3837 { { ac_try
="$ac_compiler $ac_option >&5"
3839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846 if test -s conftest.err; then
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3881 for ac_file in $ac_files
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 if { { ac_try="$ac_link_default"
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3906 for ac_file
in $ac_files ''
3908 test -f "$ac_file" ||
continue
3910 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3913 # We found the default executable, but exeext='' is most
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3919 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3931 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.
$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status
77
3945 as_fn_error
"C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3948 ac_exeext
=$ac_cv_exeext
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try
='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3969 if test "$cross_compiling" = maybe; then
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile
, use \
`--host'.
3976 See \`config.log
' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4009 for ac_file
in conftest.exe conftest conftest.
*; do
4010 test -f "$ac_file" ||
continue
4012 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4013 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest
$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4028 rm -f conftest.
$ac_ext
4029 EXEEXT
=$ac_cv_exeext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if test "${ac_cv_objext+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try
="$ac_compile"
4050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of object files
: cannot compile
4074 See \
`config.log' for more details." "$LINENO" 5; }
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if test "${ac_cv_prog_cc_g+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4154 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4191 if test "$GCC" = yes; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4202 ac_cv_prog_cc_c89=no
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4224 s = g (p, va_arg (v,int));
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 rm -f conftest.$ac_ext
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299 if test -z "$CXX"; then
4300 if test -n "$CCC"; then
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CXX+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 if test -n "$CXX"; then
4314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 if test -n "$CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4336 $as_echo "$CXX" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$CXX" && break
4346 if test -z "$CXX"; then
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$ac_ct_CXX"; then
4358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CXX="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4378 if test -n "$ac_ct_CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4380 $as_echo "$ac_ct_CXX" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_CXX" && break
4390 if test "x$ac_ct_CXX" = x; then
4393 case $cross_compiling:$ac_tool_warned in
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4413 *) ac_try_echo
=$ac_try;;
4415 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419 if test -s conftest.err
; then
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err
>conftest.er1
4423 cat conftest.er1
>&5
4424 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4449 if ac_fn_cxx_try_compile
"$LINENO"; then :
4454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4455 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4460 if test $ac_compiler_gnu = yes; then
4465 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4466 ac_save_CXXFLAGS
=$CXXFLAGS
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4469 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4473 ac_cxx_werror_flag
=yes
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4487 if ac_fn_cxx_try_compile
"$LINENO"; then :
4488 ac_cv_prog_cxx_g
=yes
4491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4502 if ac_fn_cxx_try_compile
"$LINENO"; then :
4505 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4518 if ac_fn_cxx_try_compile
"$LINENO"; then :
4519 ac_cv_prog_cxx_g
=yes
4521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4526 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4530 if test "$ac_test_CXXFLAGS" = set; then
4531 CXXFLAGS
=$ac_save_CXXFLAGS
4532 elif test $ac_cv_prog_cxx_g = yes; then
4533 if test "$GXX" = yes; then
4539 if test "$GXX" = yes; then
4546 ac_cpp
='$CPP $CPPFLAGS'
4547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4556 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$GNATBIND"; then
4563 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 GNATBIND
=$ac_cv_prog_GNATBIND
4583 if test -n "$GNATBIND"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4585 $as_echo "$GNATBIND" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_GNATBIND"; then
4594 ac_ct_GNATBIND
=$GNATBIND
4595 # Extract the first word of "gnatbind", so it can be a program name with args.
4596 set dummy gnatbind
; ac_word
=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$ac_ct_GNATBIND"; then
4603 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir
=.
4610 for ac_exec_ext
in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4623 if test -n "$ac_ct_GNATBIND"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4625 $as_echo "$ac_ct_GNATBIND" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_GNATBIND" = x
; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned
=yes ;;
4640 GNATBIND
=$ac_ct_GNATBIND
4643 GNATBIND
="$ac_cv_prog_GNATBIND"
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4648 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$GNATMAKE"; then
4655 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_exec_ext
in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 GNATMAKE
=$ac_cv_prog_GNATMAKE
4675 if test -n "$GNATMAKE"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4677 $as_echo "$GNATMAKE" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATMAKE"; then
4686 ac_ct_GNATMAKE
=$GNATMAKE
4687 # Extract the first word of "gnatmake", so it can be a program name with args.
4688 set dummy gnatmake
; ac_word
=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_GNATMAKE"; then
4695 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir
=.
4702 for ac_exec_ext
in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4715 if test -n "$ac_ct_GNATMAKE"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4717 $as_echo "$ac_ct_GNATMAKE" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATMAKE" = x
; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned
=yes ;;
4732 GNATMAKE
=$ac_ct_GNATMAKE
4735 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4739 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4740 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 cat >conftest.adb
<<EOF
4744 procedure conftest is begin null; end conftest;
4746 acx_cv_cc_gcc_supports_ada
=no
4747 # There is a bug in old released versions of GCC which causes the
4748 # driver to exit successfully when the appropriate language module
4749 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4750 # Therefore we must check for the error message as well as an
4751 # unsuccessful exit.
4752 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4753 # given a .adb file, but produce no object file. So we must check
4754 # if an object file was really produced to guard against this.
4755 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4756 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4757 acx_cv_cc_gcc_supports_ada
=yes
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4762 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4764 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4771 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4772 # optimizations to be activated explicitly by the toplevel.
4774 */prev-gcc
/xgcc
*) ;;
4775 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4776 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4781 # Determine PICFLAG for target gnatlib.
4787 # PIC is the default on some targets or must not be used.
4789 # PIC is the default on this platform
4790 # Common symbols not allowed in MH_DYLIB files
4791 PICFLAG_FOR_TARGET
=-fno-common
4794 # PIC is the default.
4797 # PIC is the default for 64-bit PA HP-UX.
4799 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4801 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4803 i
[34567]86-*-interix[3-9]*)
4804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4805 # Instead, we relocate shared libraries at runtime.
4807 i
[34567]86-*-nto-qnx*)
4808 # QNX uses GNU C++, but need to define -shared option too, otherwise
4810 PICFLAG_FOR_TARGET
='-fPIC -shared'
4812 i
[34567]86-pc-msdosdjgpp*)
4813 # DJGPP does not support shared libraries at all.
4816 # On IA64 HP-UX, PIC is the default but the pic flag
4817 # sets the default TLS model and affects inlining.
4818 PICFLAG_FOR_TARGET
=-fPIC
4821 # PIC is the default.
4823 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4824 # All AIX code is PIC.
4827 # Some targets support both -fPIC and -fpic, but prefer the latter.
4829 i
[34567]86-*-* | x86_64-
*-*)
4830 PICFLAG_FOR_TARGET
=-fpic
4832 # FIXME: Override -fPIC default in libgcc only?
4833 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4834 PICFLAG_FOR_TARGET
=-fpic
4836 # FIXME: Simplify to sh*-*-netbsd*?
4837 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4838 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4839 PICFLAG_FOR_TARGET
=-fpic
4841 # Default to -fPIC unless specified otherwise.
4843 PICFLAG_FOR_TARGET
=-fPIC
4847 # If the user explicitly uses -fpic/-fPIC, keep that.
4848 case "${CFLAGS_FOR_TARGET}" in
4850 PICFLAG_FOR_TARGET
=-fpic
4853 PICFLAG_FOR_TARGET
=-fPIC
4859 # -------------------------
4860 # Check C compiler features
4861 # -------------------------
4865 ac_cpp
='$CPP $CPPFLAGS'
4866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 # Double quotes because CPP needs to be expanded
4880 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4883 for ac_c_preproc_warn_flag
in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4894 # include <limits.h>
4896 # include <assert.h>
4900 if ac_fn_c_try_cpp
"$LINENO"; then :
4903 # Broken: fails on valid input.
4906 rm -f conftest.err conftest.
$ac_ext
4908 # OK, works on sane cases. Now check whether nonexistent headers
4909 # can be detected and how.
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4914 if ac_fn_c_try_cpp
"$LINENO"; then :
4915 # Broken: success on invalid input.
4918 # Passes both tests.
4922 rm -f conftest.err conftest.
$ac_ext
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.
$ac_ext
4927 if $ac_preproc_ok; then :
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4940 $as_echo "$CPP" >&6; }
4942 for ac_c_preproc_warn_flag
in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4953 # include <limits.h>
4955 # include <assert.h>
4959 if ac_fn_c_try_cpp
"$LINENO"; then :
4962 # Broken: fails on valid input.
4965 rm -f conftest.err conftest.
$ac_ext
4967 # OK, works on sane cases. Now check whether nonexistent headers
4968 # can be detected and how.
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4973 if ac_fn_c_try_cpp
"$LINENO"; then :
4974 # Broken: success on invalid input.
4977 # Passes both tests.
4981 rm -f conftest.err conftest.
$ac_ext
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.
$ac_ext
4986 if $ac_preproc_ok; then :
4989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4991 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4992 See \`config.log' for more details." "$LINENO" 5; }
4996 ac_cpp
='$CPP $CPPFLAGS'
4997 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5004 if test "${ac_cv_path_GREP+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -z "$GREP"; then
5008 ac_path_GREP_found
=false
5009 # Loop through the user's path and test for each of PROGNAME-LIST
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5011 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_prog
in grep ggrep
; do
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5019 # Check for GNU ac_path_GREP and select it if it is found.
5020 # Check for GNU $ac_path_GREP
5021 case `"$ac_path_GREP" --version 2>&1` in
5023 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5026 $as_echo_n 0123456789 >"conftest.in"
5029 cat "conftest.in" "conftest.in" >"conftest.tmp"
5030 mv "conftest.tmp" "conftest.in"
5031 cp "conftest.in" "conftest.nl"
5032 $as_echo 'GREP' >> "conftest.nl"
5033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5034 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5035 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5037 # Best one so far, save it but keep looking for a better one
5038 ac_cv_path_GREP
="$ac_path_GREP"
5039 ac_path_GREP_max
=$ac_count
5041 # 10*(2^10) chars as input seems more than enough
5042 test $ac_count -gt 10 && break
5044 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5047 $ac_path_GREP_found && break 3
5052 if test -z "$ac_cv_path_GREP"; then
5053 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5056 ac_cv_path_GREP
=$GREP
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5061 $as_echo "$ac_cv_path_GREP" >&6; }
5062 GREP
="$ac_cv_path_GREP"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5066 $as_echo_n "checking for egrep... " >&6; }
5067 if test "${ac_cv_path_EGREP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5070 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5071 then ac_cv_path_EGREP
="$GREP -E"
5073 if test -z "$EGREP"; then
5074 ac_path_EGREP_found
=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5077 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_prog
in egrep; do
5082 for ac_exec_ext
in '' $ac_executable_extensions; do
5083 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5085 # Check for GNU ac_path_EGREP and select it if it is found.
5086 # Check for GNU $ac_path_EGREP
5087 case `"$ac_path_EGREP" --version 2>&1` in
5089 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5092 $as_echo_n 0123456789 >"conftest.in"
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'EGREP' >> "conftest.nl"
5099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5100 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5101 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_EGREP
="$ac_path_EGREP"
5105 ac_path_EGREP_max
=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5110 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5113 $ac_path_EGREP_found && break 3
5118 if test -z "$ac_cv_path_EGREP"; then
5119 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5122 ac_cv_path_EGREP
=$EGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5128 $as_echo "$ac_cv_path_EGREP" >&6; }
5129 EGREP
="$ac_cv_path_EGREP"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5133 $as_echo_n "checking for ANSI C header files... " >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5152 if ac_fn_c_try_compile
"$LINENO"; then :
5153 ac_cv_header_stdc
=yes
5155 ac_cv_header_stdc
=no
5157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 if test $ac_cv_header_stdc = yes; then
5160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "memchr" >/dev
/null
2>&1; then :
5170 ac_cv_header_stdc
=no
5176 if test $ac_cv_header_stdc = yes; then
5177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "free" >/dev
/null
2>&1; then :
5187 ac_cv_header_stdc
=no
5193 if test $ac_cv_header_stdc = yes; then
5194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5195 if test "$cross_compiling" = yes; then :
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5202 #if ((' ' & 0x0FF) == 0x020)
5203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5206 # define ISLOWER(c) \
5207 (('a' <= (c) && (c) <= 'i') \
5208 || ('j' <= (c) && (c) <= 'r') \
5209 || ('s' <= (c) && (c) <= 'z'))
5210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5218 for (i = 0; i < 256; i++)
5219 if (XOR (islower (i), ISLOWER (i))
5220 || toupper (i) != TOUPPER (i))
5225 if ac_fn_c_try_run
"$LINENO"; then :
5228 ac_cv_header_stdc
=no
5230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5237 $as_echo "$ac_cv_header_stdc" >&6; }
5238 if test $ac_cv_header_stdc = yes; then
5240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5245 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5246 inttypes.h stdint.h unistd.h
5248 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5249 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5251 eval as_val
=\$
$as_ac_Header
5252 if test "x$as_val" = x
""yes; then :
5253 cat >>confdefs.h
<<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5263 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5264 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5271 if test "$MINIX" = yes; then
5273 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5276 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5279 $as_echo "#define _MINIX 1" >>confdefs.h
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5285 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5286 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 # define __EXTENSIONS__ 1
5293 $ac_includes_default
5302 if ac_fn_c_try_compile
"$LINENO"; then :
5303 ac_cv_safe_to_define___extensions__
=yes
5305 ac_cv_safe_to_define___extensions__
=no
5307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5310 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5311 test $ac_cv_safe_to_define___extensions__ = yes &&
5312 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5314 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5318 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5320 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5324 ac_cpp
='$CPP $CPPFLAGS'
5325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5330 # On Suns, sometimes $CPP names a directory.
5331 if test -n "$CPP" && test -d "$CPP"; then
5334 if test -z "$CPP"; then
5335 if test "${ac_cv_prog_CPP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5338 # Double quotes because CPP needs to be expanded
5339 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5342 for ac_c_preproc_warn_flag
in '' yes
5344 # Use a header file that comes with gcc, so configuring glibc
5345 # with a fresh cross-compiler works.
5346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 # <limits.h> exists even on freestanding compilers.
5348 # On the NeXT, cc -E runs the code through the compiler's parser,
5349 # not just through cpp. "Syntax error" is here to catch this case.
5350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5353 # include <limits.h>
5355 # include <assert.h>
5359 if ac_fn_c_try_cpp
"$LINENO"; then :
5362 # Broken: fails on valid input.
5365 rm -f conftest.err conftest.
$ac_ext
5367 # OK, works on sane cases. Now check whether nonexistent headers
5368 # can be detected and how.
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <ac_nonexistent.h>
5373 if ac_fn_c_try_cpp
"$LINENO"; then :
5374 # Broken: success on invalid input.
5377 # Passes both tests.
5381 rm -f conftest.err conftest.
$ac_ext
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.
$ac_ext
5386 if $ac_preproc_ok; then :
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5399 $as_echo "$CPP" >&6; }
5401 for ac_c_preproc_warn_flag
in '' yes
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5412 # include <limits.h>
5414 # include <assert.h>
5418 if ac_fn_c_try_cpp
"$LINENO"; then :
5421 # Broken: fails on valid input.
5424 rm -f conftest.err conftest.
$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5432 if ac_fn_c_try_cpp
"$LINENO"; then :
5433 # Broken: success on invalid input.
5436 # Passes both tests.
5440 rm -f conftest.err conftest.
$ac_ext
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.err conftest.
$ac_ext
5445 if $ac_preproc_ok; then :
5448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5451 See \`config.log' for more details." "$LINENO" 5; }
5455 ac_cpp
='$CPP $CPPFLAGS'
5456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5461 $as_echo_n "checking for inline... " >&6; }
5462 if test "${ac_cv_c_inline+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5466 for ac_kw
in inline __inline__ __inline
; do
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5471 static $ac_kw foo_t static_foo () {return 0; }
5472 $ac_kw foo_t foo () {return 0; }
5476 if ac_fn_c_try_compile
"$LINENO"; then :
5477 ac_cv_c_inline
=$ac_kw
5479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 test "$ac_cv_c_inline" != no
&& break
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5485 $as_echo "$ac_cv_c_inline" >&6; }
5487 case $ac_cv_c_inline in
5490 case $ac_cv_c_inline in
5492 *) ac_val
=$ac_cv_c_inline;;
5494 cat >>confdefs.h
<<_ACEOF
5496 #define inline $ac_val
5503 # Check whether --enable-largefile was given.
5504 if test "${enable_largefile+set}" = set; then :
5505 enableval
=$enable_largefile;
5508 if test "$enable_largefile" != no
; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5511 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5512 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5515 ac_cv_sys_largefile_CC
=no
5516 if test "$GCC" != yes; then
5519 # IRIX 6.2 and later do not support large files by default,
5520 # so use the C compiler's -n32 option if that helps.
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526 since some C++ compilers masquerading as C compilers
5527 incorrectly reject 9223372036854775807. */
5528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530 && LARGE_OFF_T % 2147483647 == 1)
5540 if ac_fn_c_try_compile
"$LINENO"; then :
5543 rm -f core conftest.err conftest.
$ac_objext
5545 if ac_fn_c_try_compile
"$LINENO"; then :
5546 ac_cv_sys_largefile_CC
=' -n32'; break
5548 rm -f core conftest.err conftest.
$ac_objext
5552 rm -f conftest.
$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5556 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5557 if test "$ac_cv_sys_largefile_CC" != no
; then
5558 CC
=$CC$ac_cv_sys_largefile_CC
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5562 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5563 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5586 if ac_fn_c_try_compile
"$LINENO"; then :
5587 ac_cv_sys_file_offset_bits
=no
; break
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #define _FILE_OFFSET_BITS 64
5593 #include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596 since some C++ compilers masquerading as C compilers
5597 incorrectly reject 9223372036854775807. */
5598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600 && LARGE_OFF_T % 2147483647 == 1)
5610 if ac_fn_c_try_compile
"$LINENO"; then :
5611 ac_cv_sys_file_offset_bits
=64; break
5613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 ac_cv_sys_file_offset_bits
=unknown
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5619 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5623 cat >>confdefs.h
<<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5629 if test $ac_cv_sys_file_offset_bits = unknown
; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5631 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 ac_cv_sys_large_files
=no
; break
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #define _LARGE_FILES 1
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5679 if ac_fn_c_try_compile
"$LINENO"; then :
5680 ac_cv_sys_large_files
=1; break
5682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 ac_cv_sys_large_files
=unknown
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5688 $as_echo "$ac_cv_sys_large_files" >&6; }
5689 case $ac_cv_sys_large_files in #(
5692 cat >>confdefs.h
<<_ACEOF
5693 #define _LARGE_FILES $ac_cv_sys_large_files
5702 # sizeof(char) is 1 by definition.
5703 # The cast to long int works around a bug in the HP C Compiler
5704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5706 # This bug is HP SR number 8606223364.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5708 $as_echo_n "checking size of void *... " >&6; }
5709 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5712 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5715 if test "$ac_cv_type_void_p" = yes; then
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 { as_fn_set_status
77
5719 as_fn_error
"cannot compute sizeof (void *)
5720 See \`config.log' for more details." "$LINENO" 5; }; }
5722 ac_cv_sizeof_void_p
=0
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5728 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5732 cat >>confdefs.h
<<_ACEOF
5733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5737 # The cast to long int works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5742 $as_echo_n "checking size of short... " >&6; }
5743 if test "${ac_cv_sizeof_short+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5746 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5749 if test "$ac_cv_type_short" = yes; then
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 { as_fn_set_status
77
5753 as_fn_error
"cannot compute sizeof (short)
5754 See \`config.log' for more details." "$LINENO" 5; }; }
5756 ac_cv_sizeof_short
=0
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5762 $as_echo "$ac_cv_sizeof_short" >&6; }
5766 cat >>confdefs.h
<<_ACEOF
5767 #define SIZEOF_SHORT $ac_cv_sizeof_short
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5776 $as_echo_n "checking size of int... " >&6; }
5777 if test "${ac_cv_sizeof_int+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5783 if test "$ac_cv_type_int" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status
77
5787 as_fn_error
"cannot compute sizeof (int)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5796 $as_echo "$ac_cv_sizeof_int" >&6; }
5800 cat >>confdefs.h
<<_ACEOF
5801 #define SIZEOF_INT $ac_cv_sizeof_int
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5810 $as_echo_n "checking size of long... " >&6; }
5811 if test "${ac_cv_sizeof_long+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5814 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5817 if test "$ac_cv_type_long" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status
77
5821 as_fn_error
"cannot compute sizeof (long)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5830 $as_echo "$ac_cv_sizeof_long" >&6; }
5834 cat >>confdefs.h
<<_ACEOF
5835 #define SIZEOF_LONG $ac_cv_sizeof_long
5839 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5840 if test "x$ac_cv_type_long_long" = x
""yes; then :
5842 cat >>confdefs.h
<<_ACEOF
5843 #define HAVE_LONG_LONG 1
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5851 $as_echo_n "checking size of long long... " >&6; }
5852 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5858 if test "$ac_cv_type_long_long" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status
77
5862 as_fn_error
"cannot compute sizeof (long long)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5865 ac_cv_sizeof_long_long
=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5871 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5875 cat >>confdefs.h
<<_ACEOF
5876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5882 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5883 case $ac_cv_c_int8_t in #(
5887 cat >>confdefs.h
<<_ACEOF
5888 #define int8_t $ac_cv_c_int8_t
5893 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5894 case $ac_cv_c_int16_t in #(
5898 cat >>confdefs.h
<<_ACEOF
5899 #define int16_t $ac_cv_c_int16_t
5904 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5905 case $ac_cv_c_int32_t in #(
5909 cat >>confdefs.h
<<_ACEOF
5910 #define int32_t $ac_cv_c_int32_t
5915 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5916 case $ac_cv_c_int64_t in #(
5920 cat >>confdefs.h
<<_ACEOF
5921 #define int64_t $ac_cv_c_int64_t
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5928 $as_echo_n "checking for long long int... " >&6; }
5929 if test "${ac_cv_type_long_long_int+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* For now, do not test the preprocessor; as of 2007 there are too many
5936 implementations with broken preprocessors. Perhaps this can
5937 be revisited in 2012. In the meantime, code should not expect
5938 #if to work with literals wider than 32 bits. */
5939 /* Test literals. */
5940 long long int ll = 9223372036854775807ll;
5941 long long int nll = -9223372036854775807LL;
5942 unsigned long long int ull = 18446744073709551615ULL;
5943 /* Test constant expressions. */
5944 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5946 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5952 /* Test availability of runtime routines for shift and division. */
5953 long long int llmax = 9223372036854775807ll;
5954 unsigned long long int ullmax = 18446744073709551615ull;
5955 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5956 | (llmax / ll) | (llmax % ll)
5957 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5958 | (ullmax / ull) | (ullmax % ull));
5964 if ac_fn_c_try_link
"$LINENO"; then :
5965 if test "$cross_compiling" = yes; then :
5966 ac_cv_type_long_long_int
=yes
5968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5973 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5974 # define LLONG_MAX (HALF - 1 + HALF)
5979 long long int n = 1;
5983 long long int m = n << i;
5986 if (LLONG_MAX / 2 < m)
5994 if ac_fn_c_try_run
"$LINENO"; then :
5995 ac_cv_type_long_long_int
=yes
5997 ac_cv_type_long_long_int
=no
5999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6000 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6004 ac_cv_type_long_long_int
=no
6006 rm -f core conftest.err conftest.
$ac_objext \
6007 conftest
$ac_exeext conftest.
$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6010 $as_echo "$ac_cv_type_long_long_int" >&6; }
6011 if test $ac_cv_type_long_long_int = yes; then
6013 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6019 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6020 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6025 test $ac_cv_type_long_long_int = yes \
6026 && ac_type
='long long int' \
6027 || ac_type
='long int'
6029 cat >>confdefs.h
<<_ACEOF
6030 #define intmax_t $ac_type
6037 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6038 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6040 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6043 for ac_type
in 'int' 'long int' 'long long int'; do
6044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 $ac_includes_default
6050 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6057 if ac_fn_c_try_compile
"$LINENO"; then :
6059 cat >>confdefs.h
<<_ACEOF
6060 #define intptr_t $ac_type
6065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6066 test -z "$ac_type" && break
6071 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6072 case $ac_cv_c_uint8_t in #(
6076 $as_echo "#define _UINT8_T 1" >>confdefs.h
6079 cat >>confdefs.h
<<_ACEOF
6080 #define uint8_t $ac_cv_c_uint8_t
6085 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6086 case $ac_cv_c_uint16_t in #(
6091 cat >>confdefs.h
<<_ACEOF
6092 #define uint16_t $ac_cv_c_uint16_t
6097 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6098 case $ac_cv_c_uint32_t in #(
6102 $as_echo "#define _UINT32_T 1" >>confdefs.h
6105 cat >>confdefs.h
<<_ACEOF
6106 #define uint32_t $ac_cv_c_uint32_t
6111 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6112 case $ac_cv_c_uint64_t in #(
6116 $as_echo "#define _UINT64_T 1" >>confdefs.h
6119 cat >>confdefs.h
<<_ACEOF
6120 #define uint64_t $ac_cv_c_uint64_t
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6127 $as_echo_n "checking for unsigned long long int... " >&6; }
6128 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* For now, do not test the preprocessor; as of 2007 there are too many
6135 implementations with broken preprocessors. Perhaps this can
6136 be revisited in 2012. In the meantime, code should not expect
6137 #if to work with literals wider than 32 bits. */
6138 /* Test literals. */
6139 long long int ll = 9223372036854775807ll;
6140 long long int nll = -9223372036854775807LL;
6141 unsigned long long int ull = 18446744073709551615ULL;
6142 /* Test constant expressions. */
6143 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6145 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6151 /* Test availability of runtime routines for shift and division. */
6152 long long int llmax = 9223372036854775807ll;
6153 unsigned long long int ullmax = 18446744073709551615ull;
6154 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6155 | (llmax / ll) | (llmax % ll)
6156 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6157 | (ullmax / ull) | (ullmax % ull));
6163 if ac_fn_c_try_link
"$LINENO"; then :
6164 ac_cv_type_unsigned_long_long_int
=yes
6166 ac_cv_type_unsigned_long_long_int
=no
6168 rm -f core conftest.err conftest.
$ac_objext \
6169 conftest
$ac_exeext conftest.
$ac_ext
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6172 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6173 if test $ac_cv_type_unsigned_long_long_int = yes; then
6175 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6181 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6184 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6187 test $ac_cv_type_unsigned_long_long_int = yes \
6188 && ac_type
='unsigned long long int' \
6189 || ac_type
='unsigned long int'
6191 cat >>confdefs.h
<<_ACEOF
6192 #define uintmax_t $ac_type
6199 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6200 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6205 for ac_type
in 'unsigned int' 'unsigned long int' \
6206 'unsigned long long int'; do
6207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 $ac_includes_default
6213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6222 cat >>confdefs.h
<<_ACEOF
6223 #define uintptr_t $ac_type
6228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6229 test -z "$ac_type" && break
6246 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6247 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6250 # check what underlying integer type int64_t uses
6252 ac_cpp
='$CXXCPP $CPPFLAGS'
6253 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6259 $as_echo_n "checking for int64_t underlying type... " >&6; }
6260 if test "${ac_cv_int64_t_type+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 #ifdef HAVE_STDINT_H
6270 template <typename T> struct X { };
6272 struct X<long> { typedef long t; };
6282 if ac_fn_cxx_try_compile
"$LINENO"; then :
6283 ac_cv_int64_t_type
=long
6285 ac_cv_int64_t_type
="long long"
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6290 $as_echo "$ac_cv_int64_t_type" >&6; }
6291 if test "$ac_cv_int64_t_type" = "long"; then
6293 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 #ifdef HAVE_STDINT_H
6302 template <typename T> struct X { };
6304 struct X<long long> { typedef long long t; };
6314 if ac_fn_cxx_try_compile
"$LINENO"; then :
6317 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 ac_cpp
='$CPP $CPPFLAGS'
6323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6331 # ---------------------
6332 # Warnings and checking
6333 # ---------------------
6335 # Check $CC warning features (if it's GCC).
6336 # We want to use -pedantic, but we don't want warnings about
6339 # * overlong strings
6340 # * C++11 narrowing conversions in { }
6341 # So, we only use -pedantic if we can disable those warnings.
6343 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6344 # Check whether --enable-build-format-warnings was given.
6345 if test "${enable_build_format_warnings+set}" = set; then :
6346 enableval
=$enable_build_format_warnings;
6348 enable_build_format_warnings
=yes
6351 if test $enable_build_format_warnings = no
; then :
6357 save_CFLAGS
="$CFLAGS"
6358 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6359 # Do the check with the no- prefix removed since gcc silently
6360 # accepts any -Wno-* option on purpose
6361 case $real_option in
6362 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6363 *) option
=$real_option ;;
6365 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6368 $as_echo_n "checking whether $CC supports $option... " >&6; }
6369 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6370 $as_echo_n "(cached) " >&6
6373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6384 if ac_fn_c_try_compile
"$LINENO"; then :
6385 eval "$as_acx_Woption=yes"
6387 eval "$as_acx_Woption=no"
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6392 eval ac_res
=\$
$as_acx_Woption
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6394 $as_echo "$ac_res" >&6; }
6395 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6396 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6399 CFLAGS
="$save_CFLAGS"
6402 save_CFLAGS
="$CFLAGS"
6403 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6404 # Do the check with the no- prefix removed since gcc silently
6405 # accepts any -Wno-* option on purpose
6406 case $real_option in
6407 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408 *) option
=$real_option ;;
6410 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_compile
"$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 eval ac_res
=\$
$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6444 CFLAGS
="$save_CFLAGS"
6447 save_CFLAGS
="$CFLAGS"
6448 for real_option
in -Wmissing-format-attribute; do
6449 # Do the check with the no- prefix removed since gcc silently
6450 # accepts any -Wno-* option on purpose
6451 case $real_option in
6452 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453 *) option
=$real_option ;;
6455 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6474 if ac_fn_c_try_compile
"$LINENO"; then :
6475 eval "$as_acx_Woption=yes"
6477 eval "$as_acx_Woption=no"
6479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6482 eval ac_res
=\$
$as_acx_Woption
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6489 CFLAGS
="$save_CFLAGS"
6491 save_CFLAGS
="$CFLAGS"
6492 for real_option
in -Woverloaded-virtual; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option
=$real_option ;;
6499 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6518 if ac_fn_c_try_compile
"$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 eval ac_res
=\$
$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6533 CFLAGS
="$save_CFLAGS"
6536 save_CFLAGS
="$CFLAGS"
6537 for real_option
in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option
=$real_option ;;
6544 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6563 if ac_fn_c_try_compile
"$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6571 eval ac_res
=\$
$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6578 CFLAGS
="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 save_CFLAGS
="$CFLAGS"
6589 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6601 if ac_fn_c_try_compile
"$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6607 CFLAGS
="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval
=$enable_werror_always;
6621 enable_werror_always
=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags
='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6644 save_CFLAGS
="$CFLAGS"
6645 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option
=$real_option ;;
6652 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6671 if ac_fn_c_try_compile
"$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 eval ac_res
=\$
$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6686 CFLAGS
="$save_CFLAGS"
6689 # Enable expensive internal checks
6691 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6700 # Determine the default checks.
6701 if test x
$is_release = x
; then
6702 ac_checking_flags
=yes
6704 ac_checking_flags
=release
6708 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6709 for check
in release
$ac_checking_flags
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6714 ac_fold_checking
= ; ac_gc_checking
=1 ;
6715 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6716 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6717 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6718 ac_types_checking
=1 ;;
6719 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6720 ac_fold_checking
= ; ac_gc_checking
= ;
6721 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6722 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6723 ac_tree_checking
= ; ac_valgrind_checking
= ;
6724 ac_types_checking
= ;;
6725 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6726 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6727 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6728 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6729 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6730 ac_types_checking
=1 ;;
6731 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6732 ac_fold_checking
= ; ac_gc_checking
= ;
6733 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6734 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6735 ac_tree_checking
= ; ac_valgrind_checking
= ;
6736 ac_types_checking
= ;;
6737 # these enable particular checks
6738 assert
) ac_assert_checking
=1 ;;
6739 df
) ac_df_checking
=1 ;;
6740 fold) ac_fold_checking
=1 ;;
6741 gc
) ac_gc_checking
=1 ;;
6742 gcac
) ac_gc_always_collect
=1 ;;
6743 gimple
) ac_gimple_checking
=1 ;;
6744 misc
) ac_checking
=1 ;;
6745 rtl
) ac_rtl_checking
=1 ;;
6746 rtlflag
) ac_rtlflag_checking
=1 ;;
6747 runtime
) ac_runtime_checking
=1 ;;
6748 tree
) ac_tree_checking
=1 ;;
6749 types
) ac_types_checking
=1 ;;
6750 valgrind
) ac_valgrind_checking
=1 ;;
6751 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6757 if test x
$ac_checking != x
; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag
=-fno-common
6764 if test x
$ac_df_checking != x
; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x
$ac_assert_checking != x
; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x
$ac_gimple_checking != x
; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x
$ac_runtime_checking != x
; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x
$ac_tree_checking != x
; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER
=tree-browser.o
6792 if test x
$ac_types_checking != x
; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x
$ac_rtl_checking != x
; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x
$ac_rtlflag_checking != x
; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x
$ac_gc_checking != x
; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x
$ac_gc_always_collect != x
; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x
$ac_fold_checking != x
; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines
=
6827 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6836 # It is certainly possible that there's valgrind but no valgrind.h.
6837 # GCC relies on making annotations so we must have both.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <valgrind/memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6847 if ac_fn_c_try_cpp
"$LINENO"; then :
6848 gcc_cv_header_valgrind_memcheck_h
=yes
6850 gcc_cv_header_valgrind_memcheck_h
=no
6852 rm -f conftest.err conftest.
$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6856 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <memcheck.h>
6860 #ifndef VALGRIND_DISCARD
6861 #error VALGRIND_DISCARD not defined
6864 if ac_fn_c_try_cpp
"$LINENO"; then :
6865 gcc_cv_header_memcheck_h
=yes
6867 gcc_cv_header_memcheck_h
=no
6869 rm -f conftest.err conftest.
$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6871 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6872 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6874 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6877 if test $gcc_cv_header_memcheck_h = yes; then
6879 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6883 if test x
$ac_valgrind_checking != x
; then
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6891 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.
file <<_ASEOF
6905 chmod +x conf$$.
file
6906 if test -x conf$$.
file >/dev
/null
2>&1; then
6907 ac_executable_p
="test -x"
6909 ac_executable_p
="test -f"
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind
; ac_word
=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 case "$valgrind_path" in
6922 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6926 for ac_dir
in $PATH; do
6928 test -z "$ac_dir" && ac_dir
=.
6929 for ac_exec_ext
in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6932 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6942 valgrind_path
="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 ||
(test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6955 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command
="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6966 # Enable code coverage collection
6967 # Check whether --enable-coverage was given.
6968 if test "${enable_coverage+set}" = set; then :
6969 enableval
=$enable_coverage; case "${enableval}" in
6971 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6974 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6977 # a.k.a. --disable-coverage
6981 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6990 # Check whether --enable-gather-detailed-mem-stats was given.
6991 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6992 enableval
=$enable_gather_detailed_mem_stats;
6994 enable_gather_detailed_mem_stats
=no
6997 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h
<<_ACEOF
7000 #define GATHER_STATISTICS $gather_stats
7004 # Check whether --enable-valgrind-annotations was given.
7005 if test "${enable_valgrind_annotations+set}" = set; then :
7006 enableval
=$enable_valgrind_annotations;
7008 enable_valgrind_annotations
=no
7011 if test x
$enable_valgrind_annotations != xno \
7012 ||
test x
$ac_valgrind_checking != x
; then
7013 if (test $have_valgrind_h = no \
7014 && test $gcc_cv_header_memcheck_h = no \
7015 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7016 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7019 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval
=$with_stabs; stabs
="$with_stabs"
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval
=$enable_multilib;
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval
=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto
) enable_multiarch
=$enableval;;
7052 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7055 enable_multiarch
=auto
7058 if test x
${enable_multiarch} = xauto
; then
7059 if test x
${with_native_system_header_dir} != x
; then
7060 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7063 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7064 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval
=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval
=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7092 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7099 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7101 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7102 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7103 enable_decimal_float
=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float
=no
7115 # x86's use BID format instead of DPD
7116 case x
$enable_decimal_float in
7119 i?
86*-*-* | x86_64
*-*-*)
7120 enable_decimal_float
=bid
7123 enable_decimal_float
=dpd
7126 default_decimal_float
=$enable_decimal_float
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float
=dpd
7138 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h
<<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float
=$default_decimal_float
7148 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h
<<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval
=$enable_fixed_point;
7163 enable_fixed_point
=yes
7167 enable_fixed_point
=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point
=no
7180 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h
<<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval
=$enable_threads;
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval
=$enable_tls;
7203 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7225 # Check whether --with-dwarf2 was given.
7226 if test "${with_dwarf2+set}" = set; then :
7227 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7233 # Check whether --enable-shared was given.
7234 if test "${enable_shared+set}" = set; then :
7235 enableval
=$enable_shared;
7236 case $enable_shared in
7240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7241 for pkg
in $enableval; do
7242 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7257 # Check whether --with-native-system-header-dir was given.
7258 if test "${with_native_system_header_dir+set}" = set; then :
7259 withval
=$with_native_system_header_dir;
7260 case ${with_native_system_header_dir} in
7261 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7262 /* |
[A-Za-z
]:[\\/]*) ;;
7263 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7265 configured_native_system_header_dir
="${withval}"
7268 configured_native_system_header_dir
=
7273 # Check whether --with-build-sysroot was given.
7274 if test "${with_build_sysroot+set}" = set; then :
7275 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7276 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7279 SYSROOT_CFLAGS_FOR_TARGET
=
7284 if test "x$prefix" = xNONE
; then
7285 test_prefix
=/usr
/local
7289 if test "x$exec_prefix" = xNONE
; then
7290 test_exec_prefix
=$test_prefix
7292 test_exec_prefix
=$exec_prefix
7296 # Check whether --with-sysroot was given.
7297 if test "${with_sysroot+set}" = set; then :
7298 withval
=$with_sysroot;
7299 case ${with_sysroot} in
7300 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7301 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7304 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7305 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7307 case ${TARGET_SYSTEM_ROOT} in
7308 "${test_prefix}"|
"${test_prefix}/"*|\
7309 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7310 '${prefix}'|
'${prefix}/'*|\
7311 '${exec_prefix}'|
'${exec_prefix}/'*)
7312 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7313 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7320 TARGET_SYSTEM_ROOT_DEFINE
=
7321 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7330 # Check whether --with-specs was given.
7331 if test "${with_specs+set}" = set; then :
7332 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7342 # Check whether --with-pkgversion was given.
7343 if test "${with_pkgversion+set}" = set; then :
7344 withval
=$with_pkgversion; case "$withval" in
7345 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7347 *) PKGVERSION
="($withval) " ;;
7358 # Check whether --with-bugurl was given.
7359 if test "${with_bugurl+set}" = set; then :
7360 withval
=$with_bugurl; case "$withval" in
7361 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7364 *) BUGURL
="$withval"
7368 BUGURL
="http://gcc.gnu.org/bugs.html"
7378 REPORT_BUGS_TO
="<$BUGURL>"
7379 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7386 # Sanity check enable_languages in case someone does not run the toplevel
7387 # configure # script.
7388 # Check whether --enable-languages was given.
7389 if test "${enable_languages+set}" = set; then :
7390 enableval
=$enable_languages; case ,${enable_languages}, in
7392 # go safe -- we cannot be much sure without the toplevel
7394 # analysis of which target libs are present and usable
7398 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7403 enable_languages
=c
,${enable_languages}
7411 if test x
"$enable_as_accelerator_for" != x
; then
7413 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7415 enable_as_accelerator
=yes
7418 # In this case we expect offload compiler to be built as native, so we
7419 # need to rename the driver to avoid clashes with host's drivers.
7420 program_transform_name
="s&^&${target}-&" ;;
7422 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7423 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7424 accel_dir_suffix
=/accel
/${target_noncanonical}
7425 real_target_noncanonical
=${enable_as_accelerator_for}
7431 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7432 tgt
=`echo $tgt | sed 's/=.*//'`
7433 if test x
"$offload_targets" = x
; then
7434 offload_targets
=$tgt
7436 offload_targets
="$offload_targets:$tgt"
7440 cat >>confdefs.h
<<_ACEOF
7441 #define OFFLOAD_TARGETS "$offload_targets"
7444 if test x
"$offload_targets" != x
; then
7446 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7451 # Check whether --with-multilib-list was given.
7452 if test "${with_multilib_list+set}" = set; then :
7453 withval
=$with_multilib_list; :
7455 with_multilib_list
=default
7459 # -------------------------
7460 # Checks for other programs
7461 # -------------------------
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7464 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7466 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7467 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7468 $as_echo_n "(cached) " >&6
7470 cat >conftest.
make <<\_ACEOF
7473 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7478 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7480 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7484 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7486 $as_echo "yes" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 SET_MAKE
="MAKE=${MAKE-make}"
7495 # Find some useful tools
7496 for ac_prog
in gawk mawk nawk
awk
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy
$ac_prog; ac_word
=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_prog_AWK+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$AWK"; then
7506 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir
=.
7513 for ac_exec_ext
in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_AWK
="$ac_prog"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 if test -n "$AWK"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7528 $as_echo "$AWK" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 test -n "$AWK" && break
7538 # We need awk to create options.c and options.h.
7539 # Bail out if it's missing.
7541 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7545 $as_echo_n "checking whether ln -s works... " >&6; }
7546 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7549 rm -f conftestdata_t
7550 echo >conftestdata_f
7551 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7553 gcc_cv_prog_LN_S
="ln -s"
7555 if ln conftestdata_f conftestdata_t
2>/dev
/null
7559 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7561 gcc_cv_prog_LN_S
="cp -p"
7567 rm -f conftestdata_f conftestdata_t
7570 LN_S
="$gcc_cv_prog_LN_S"
7571 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7575 if test "$gcc_cv_prog_LN_S" = "ln"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7577 $as_echo "no, using ln" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7580 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7585 $as_echo_n "checking whether ln works... " >&6; }
7586 if test "${acx_cv_prog_LN+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7589 rm -f conftestdata_t
7590 echo >conftestdata_f
7591 if ln conftestdata_f conftestdata_t
2>/dev
/null
7597 rm -f conftestdata_f conftestdata_t
7600 if test $acx_cv_prog_LN = no
; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7603 $as_echo "no, using $LN" >&6; }
7605 LN
="$acx_cv_prog_LN"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7607 $as_echo "yes" >&6; }
7610 if test -n "$ac_tool_prefix"; then
7611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7612 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -n "$RANLIB"; then
7619 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir
=.
7626 for ac_exec_ext
in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 RANLIB
=$ac_cv_prog_RANLIB
7639 if test -n "$RANLIB"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7641 $as_echo "$RANLIB" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 if test -z "$ac_cv_prog_RANLIB"; then
7650 ac_ct_RANLIB
=$RANLIB
7651 # Extract the first word of "ranlib", so it can be a program name with args.
7652 set dummy ranlib
; ac_word
=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7658 if test -n "$ac_ct_RANLIB"; then
7659 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir
=.
7666 for ac_exec_ext
in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7679 if test -n "$ac_ct_RANLIB"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7681 $as_echo "$ac_ct_RANLIB" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7687 if test "x$ac_ct_RANLIB" = x
; then
7690 case $cross_compiling:$ac_tool_warned in
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned
=yes ;;
7696 RANLIB
=$ac_ct_RANLIB
7699 RANLIB
="$ac_cv_prog_RANLIB"
7705 # Find a good install program. We prefer a C program (faster),
7706 # so one script is as good as another. But avoid the broken or
7707 # incompatible versions:
7708 # SysV /etc/install, /usr/sbin/install
7709 # SunOS /usr/etc/install
7710 # IRIX /sbin/install
7712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7714 # ./install, which can be erroneously created by make from ./install.sh.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7716 $as_echo_n "checking for a BSD compatible install... " >&6; }
7717 if test -z "$INSTALL"; then
7718 if test "${ac_cv_path_install+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7721 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7722 for ac_dir
in $PATH; do
7723 # Account for people who put trailing slashes in PATH elements.
7725 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7727 # OSF1 and SCO ODT 3.0 have their own names for install.
7728 for ac_prog
in ginstall scoinst
install; do
7729 if test -f $ac_dir/$ac_prog; then
7730 if test $ac_prog = install &&
7731 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7732 # AIX install. It has an incompatible calling convention.
7733 # OSF/1 installbsd also uses dspmsg, but is usable.
7736 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7747 if test "${ac_cv_path_install+set}" = set; then
7748 INSTALL
="$ac_cv_path_install"
7750 # As a last resort, use the slow shell script. We don't cache a
7751 # path for INSTALL within a source directory, because that will
7752 # break other packages using the cache if that directory is
7753 # removed, or if the path is relative.
7754 INSTALL
="$ac_install_sh"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7758 $as_echo "$INSTALL" >&6; }
7760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7761 # It thinks the first close brace ends the variable substitution.
7762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7764 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7767 # See if cmp has --ignore-initial.
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7769 $as_echo_n "checking for cmp's capabilities... " >&6; }
7770 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7775 gcc_cv_prog_cmp_skip
=slowcompare
7776 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7777 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7780 gcc_cv_prog_cmp_skip
=gnucompare
7783 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7784 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7785 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7788 gcc_cv_prog_cmp_skip
=fastcompare
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7796 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7797 make_compare_target
=$gcc_cv_prog_cmp_skip
7801 # See if we have the mktemp command.
7802 # Extract the first word of "mktemp", so it can be a program name with args.
7803 set dummy mktemp
; ac_word
=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7809 if test -n "$have_mktemp_command"; then
7810 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir
=.
7817 for ac_exec_ext
in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_have_mktemp_command
="yes"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7830 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7831 if test -n "$have_mktemp_command"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7833 $as_echo "$have_mktemp_command" >&6; }
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7841 # See if makeinfo has been installed and is modern enough
7842 # that we can use it.
7844 # Extract the first word of "makeinfo", so it can be a program name with args.
7845 set dummy makeinfo
; ac_word
=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$MAKEINFO"; then
7852 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir
=.
7859 for ac_exec_ext
in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_MAKEINFO
="makeinfo"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 MAKEINFO
=$ac_cv_prog_MAKEINFO
7872 if test -n "$MAKEINFO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7874 $as_echo "$MAKEINFO" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 if test -n "$MAKEINFO"; then
7882 # Found it, now check the version.
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7884 $as_echo_n "checking for modern makeinfo... " >&6; }
7885 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7889 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7891 case $ac_prog_version in
7892 '') gcc_cv_prog_makeinfo_modern
=no
;;
7893 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7894 *) gcc_cv_prog_makeinfo_modern
=no
;;
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7899 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7901 gcc_cv_prog_makeinfo_modern
=no
7903 if test $gcc_cv_prog_makeinfo_modern = no
; then
7904 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7907 if test $gcc_cv_prog_makeinfo_modern = no
; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7909 *** Makeinfo is missing or too old.
7910 *** Info documentation will not be built." >&5
7911 $as_echo "$as_me: WARNING:
7912 *** Makeinfo is missing or too old.
7913 *** Info documentation will not be built." >&2;}
7920 # Is pod2man recent enough to regenerate manpages?
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7922 $as_echo_n "checking for recent Pod::Man... " >&6; }
7923 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925 $as_echo "yes" >&6; }
7926 GENERATED_MANPAGES
=generated-manpages
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7934 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7939 # Extract the first word of "$ac_prog", so it can be a program name with args.
7940 set dummy
$ac_prog; ac_word
=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_FLEX+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7946 if test -n "$FLEX"; then
7947 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir
=.
7954 for ac_exec_ext
in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_FLEX
="$ac_prog"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 FLEX
=$ac_cv_prog_FLEX
7967 if test -n "$FLEX"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7969 $as_echo "$FLEX" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7976 test -n "$FLEX" && break
7978 test -n "$FLEX" || FLEX
="$MISSING flex"
7982 for ac_prog
in bison
7984 # Extract the first word of "$ac_prog", so it can be a program name with args.
7985 set dummy
$ac_prog; ac_word
=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_BISON+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$BISON"; then
7992 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir
=.
7999 for ac_exec_ext
in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_BISON
="$ac_prog"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 BISON
=$ac_cv_prog_BISON
8012 if test -n "$BISON"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8014 $as_echo "$BISON" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8021 test -n "$BISON" && break
8023 test -n "$BISON" || BISON
="$MISSING bison"
8026 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8027 # check for build == host before using them.
8030 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8031 && test -d ..
/binutils
; then
8032 NM
='${objdir}/../binutils/nm-new'
8034 # Extract the first word of "nm", so it can be a program name with args.
8035 set dummy nm
; ac_word
=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if test "${ac_cv_prog_NM+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8041 if test -n "$NM"; then
8042 ac_cv_prog_NM
="$NM" # Let the user override the test.
8044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8048 test -z "$as_dir" && as_dir
=.
8049 for ac_exec_ext
in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8063 if test -n "$NM"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8065 $as_echo "$NM" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8075 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8076 && test -d ..
/binutils
; then
8077 AR
='${objdir}/../binutils/ar'
8079 # Extract the first word of "ar", so it can be a program name with args.
8080 set dummy
ar; ac_word
=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR
="$AR" # Let the user override the test.
8089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8093 test -z "$as_dir" && as_dir
=.
8094 for ac_exec_ext
in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8108 if test -n "$AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110 $as_echo "$AR" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8119 # The jit documentation looks better if built with sphinx, but can be
8120 # built with texinfo if sphinx is not available.
8121 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8122 # Extract the first word of "sphinx-build", so it can be a program name with args.
8123 set dummy sphinx-build
; ac_word
=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8129 if test -n "$doc_build_sys"; then
8130 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8136 test -z "$as_dir" && as_dir
=.
8137 for ac_exec_ext
in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_doc_build_sys
="sphinx"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8150 doc_build_sys
=$ac_cv_prog_doc_build_sys
8151 if test -n "$doc_build_sys"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8153 $as_echo "$doc_build_sys" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 # --------------------
8162 # Checks for C headers
8163 # --------------------
8165 # Need to reject headers which give warnings, so that the -Werror bootstrap
8166 # works later. *sigh* This needs to come before all header checks.
8168 ac_c_preproc_warn_flag
=yes
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8171 $as_echo_n "checking for ANSI C header files... " >&6; }
8172 if test "${ac_cv_header_stdc+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8190 if ac_fn_c_try_compile
"$LINENO"; then :
8191 ac_cv_header_stdc
=yes
8193 ac_cv_header_stdc
=no
8195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8197 if test $ac_cv_header_stdc = yes; then
8198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205 $EGREP "memchr" >/dev
/null
2>&1; then :
8208 ac_cv_header_stdc
=no
8214 if test $ac_cv_header_stdc = yes; then
8215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "free" >/dev
/null
2>&1; then :
8225 ac_cv_header_stdc
=no
8231 if test $ac_cv_header_stdc = yes; then
8232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8233 if test "$cross_compiling" = yes; then :
8236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8240 #if ((' ' & 0x0FF) == 0x020)
8241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8244 # define ISLOWER(c) \
8245 (('a' <= (c) && (c) <= 'i') \
8246 || ('j' <= (c) && (c) <= 'r') \
8247 || ('s' <= (c) && (c) <= 'z'))
8248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8256 for (i = 0; i < 256; i++)
8257 if (XOR (islower (i), ISLOWER (i))
8258 || toupper (i) != TOUPPER (i))
8263 if ac_fn_c_try_run
"$LINENO"; then :
8266 ac_cv_header_stdc
=no
8268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8275 $as_echo "$ac_cv_header_stdc" >&6; }
8276 if test $ac_cv_header_stdc = yes; then
8278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8283 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8284 if test "${ac_cv_header_time+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #include <sys/types.h>
8290 #include <sys/time.h>
8296 if ((struct tm *) 0)
8302 if ac_fn_c_try_compile
"$LINENO"; then :
8303 ac_cv_header_time
=yes
8305 ac_cv_header_time
=no
8307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8310 $as_echo "$ac_cv_header_time" >&6; }
8311 if test $ac_cv_header_time = yes; then
8313 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8318 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8319 if test "${gcc_cv_header_string+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8325 #include <strings.h>
8334 if ac_fn_c_try_compile
"$LINENO"; then :
8335 gcc_cv_header_string
=yes
8337 gcc_cv_header_string
=no
8339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8342 $as_echo "$gcc_cv_header_string" >&6; }
8343 if test $gcc_cv_header_string = yes; then
8345 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8350 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8351 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <sys/types.h>
8357 #include <sys/wait.h>
8359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8375 if ac_fn_c_try_compile
"$LINENO"; then :
8376 ac_cv_header_sys_wait_h
=yes
8378 ac_cv_header_sys_wait_h
=no
8380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8383 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8384 if test $ac_cv_header_sys_wait_h = yes; then
8386 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8391 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8392 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <termios.h>
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "yes" >/dev
/null
2>&1; then :
8406 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8408 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8414 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8416 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8418 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8419 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 #include <sys/types.h>
8425 #include <sys/ioctl.h>
8431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8432 $EGREP "yes" >/dev
/null
2>&1; then :
8433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8435 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8441 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8443 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8445 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8450 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8451 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8452 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8453 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8455 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8457 eval as_val
=\$
$as_ac_Header
8458 if test "x$as_val" = x
""yes; then :
8459 cat >>confdefs.h
<<_ACEOF
8460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 # Check for thread headers.
8468 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8469 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8475 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8476 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8483 # These tests can't be done till we know if we have limits.h.
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8485 $as_echo_n "checking for CHAR_BIT... " >&6; }
8486 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #ifdef HAVE_LIMITS_H
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499 $EGREP "found" >/dev
/null
2>&1; then :
8500 gcc_cv_decl_char_bit
=yes
8502 gcc_cv_decl_char_bit
=no
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8509 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8510 if test $gcc_cv_decl_char_bit = no
; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8512 $as_echo_n "checking number of bits in a byte... " >&6; }
8513 if test "${gcc_cv_c_nbby+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8518 while test $i -lt 65; do
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8526 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8527 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8533 if ac_fn_c_try_compile
"$LINENO"; then :
8534 gcc_cv_c_nbby
=$i; break
8536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8539 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8543 $as_echo "$gcc_cv_c_nbby" >&6; }
8544 if test $gcc_cv_c_nbby = failed
; then
8545 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8548 cat >>confdefs.h
<<_ACEOF
8549 #define CHAR_BIT $gcc_cv_c_nbby
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8555 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8556 if test "${ac_cv_c_bigendian+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8559 ac_cv_c_bigendian
=unknown
8560 # See if we're dealing with a universal compiler.
8561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 #ifndef __APPLE_CC__
8564 not a universal capable compiler
8569 if ac_fn_c_try_compile
"$LINENO"; then :
8571 # Check for potential -arch flags. It is not universal unless
8572 # there are at least two -arch flags with different values.
8575 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8576 if test -n "$ac_prev"; then
8578 i?
86 | x86_64 | ppc | ppc64
)
8579 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8582 ac_cv_c_bigendian
=universal
8588 elif test "x$ac_word" = "x-arch"; then
8593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8594 if test $ac_cv_c_bigendian = unknown
; then
8595 # See if sys/param.h defines the BYTE_ORDER macro.
8596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 #include <sys/types.h>
8599 #include <sys/param.h>
8604 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8605 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8614 if ac_fn_c_try_compile
"$LINENO"; then :
8615 # It does; now see whether it defined to BIG_ENDIAN or not.
8616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <sys/param.h>
8624 #if BYTE_ORDER != BIG_ENDIAN
8632 if ac_fn_c_try_compile
"$LINENO"; then :
8633 ac_cv_c_bigendian
=yes
8635 ac_cv_c_bigendian
=no
8637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8641 if test $ac_cv_c_bigendian = unknown
; then
8642 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8650 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8658 if ac_fn_c_try_compile
"$LINENO"; then :
8659 # It does; now see whether it defined to _BIG_ENDIAN or not.
8660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8675 if ac_fn_c_try_compile
"$LINENO"; then :
8676 ac_cv_c_bigendian
=yes
8678 ac_cv_c_bigendian
=no
8680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8684 if test $ac_cv_c_bigendian = unknown
; then
8685 # Compile a test program.
8686 if test "$cross_compiling" = yes; then :
8687 # Try to guess by grepping values from an object file.
8688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 short int ascii_mm[] =
8691 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8692 short int ascii_ii[] =
8693 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8694 int use_ascii (int i) {
8695 return ascii_mm[i] + ascii_ii[i];
8697 short int ebcdic_ii[] =
8698 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8699 short int ebcdic_mm[] =
8700 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8701 int use_ebcdic (int i) {
8702 return ebcdic_mm[i] + ebcdic_ii[i];
8709 return use_ascii (foo) == use_ebcdic (foo);
8714 if ac_fn_c_try_compile
"$LINENO"; then :
8715 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8716 ac_cv_c_bigendian
=yes
8718 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8719 if test "$ac_cv_c_bigendian" = unknown
; then
8720 ac_cv_c_bigendian
=no
8722 # finding both strings is unlikely to happen, but who knows?
8723 ac_cv_c_bigendian
=unknown
8727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 $ac_includes_default
8736 /* Are we little or big endian? From Harbison&Steele. */
8740 char c[sizeof (long int)];
8743 return u.c[sizeof (long int) - 1] == 1;
8749 if ac_fn_c_try_run
"$LINENO"; then :
8750 ac_cv_c_bigendian
=no
8752 ac_cv_c_bigendian
=yes
8754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8761 $as_echo "$ac_cv_c_bigendian" >&6; }
8762 case $ac_cv_c_bigendian in #(
8764 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8770 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8774 as_fn_error
"unknown endianness
8775 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8779 # ----------------------
8780 # Checks for C++ headers
8781 # ----------------------
8784 ac_cpp
='$CXXCPP $CPPFLAGS'
8785 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8786 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8787 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8789 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8790 if test -z "$CXXCPP"; then
8791 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8794 # Double quotes because CXXCPP needs to be expanded
8795 for CXXCPP
in "$CXX -E" "/lib/cpp"
8798 for ac_cxx_preproc_warn_flag
in '' yes
8800 # Use a header file that comes with gcc, so configuring glibc
8801 # with a fresh cross-compiler works.
8802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 # <limits.h> exists even on freestanding compilers.
8804 # On the NeXT, cc -E runs the code through the compiler's parser,
8805 # not just through cpp. "Syntax error" is here to catch this case.
8806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8809 # include <limits.h>
8811 # include <assert.h>
8815 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8818 # Broken: fails on valid input.
8821 rm -f conftest.err conftest.
$ac_ext
8823 # OK, works on sane cases. Now check whether nonexistent headers
8824 # can be detected and how.
8825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <ac_nonexistent.h>
8829 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8830 # Broken: success on invalid input.
8833 # Passes both tests.
8837 rm -f conftest.err conftest.
$ac_ext
8840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8841 rm -f conftest.err conftest.
$ac_ext
8842 if $ac_preproc_ok; then :
8847 ac_cv_prog_CXXCPP
=$CXXCPP
8850 CXXCPP
=$ac_cv_prog_CXXCPP
8852 ac_cv_prog_CXXCPP
=$CXXCPP
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8855 $as_echo "$CXXCPP" >&6; }
8857 for ac_cxx_preproc_warn_flag
in '' yes
8859 # Use a header file that comes with gcc, so configuring glibc
8860 # with a fresh cross-compiler works.
8861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8862 # <limits.h> exists even on freestanding compilers.
8863 # On the NeXT, cc -E runs the code through the compiler's parser,
8864 # not just through cpp. "Syntax error" is here to catch this case.
8865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8868 # include <limits.h>
8870 # include <assert.h>
8874 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8877 # Broken: fails on valid input.
8880 rm -f conftest.err conftest.
$ac_ext
8882 # OK, works on sane cases. Now check whether nonexistent headers
8883 # can be detected and how.
8884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <ac_nonexistent.h>
8888 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8889 # Broken: success on invalid input.
8892 # Passes both tests.
8896 rm -f conftest.err conftest.
$ac_ext
8899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8900 rm -f conftest.err conftest.
$ac_ext
8901 if $ac_preproc_ok; then :
8904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8907 See \`config.log' for more details." >&5
8908 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8909 See \`config.log' for more details." >&2;}; }
8913 ac_cpp
='$CPP $CPPFLAGS'
8914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8920 ac_cpp
='$CXXCPP $CPPFLAGS'
8921 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8927 for ac_header
in unordered_map
8929 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8930 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8931 cat >>confdefs.h
<<_ACEOF
8932 #define HAVE_UNORDERED_MAP 1
8938 for ac_header
in tr1/unordered_map
8940 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8941 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8942 cat >>confdefs.h
<<_ACEOF
8943 #define HAVE_TR1_UNORDERED_MAP 1
8949 for ac_header
in ext
/hash_map
8951 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8952 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_EXT_HASH_MAP 1
8962 ac_cpp
='$CPP $CPPFLAGS'
8963 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8964 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8965 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8969 # Dependency checking.
8973 ac_cpp
='$CXXCPP $CPPFLAGS'
8974 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8978 rm -rf .tst
2>/dev
/null
8979 mkdir .tst
2>/dev
/null
8980 if test -d .tst
; then
8985 rmdir .tst
2>/dev
/null
8987 DEPDIR
="${am__leading_dot}deps"
8989 ac_config_commands
="$ac_config_commands depdir"
8992 ac_config_commands
="$ac_config_commands gccdepdir"
8995 depcc
="$CXX" am_compiler_list
=
8997 am_depcomp
=$ac_aux_dir/depcomp
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8999 $as_echo_n "checking dependency style of $depcc... " >&6; }
9000 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9003 if test -f "$am_depcomp"; then
9004 # We make a subdir and do the tests there. Otherwise we can end up
9005 # making bogus files that we don't know about and never remove. For
9006 # instance it was reported that on HP-UX the gcc test will end up
9007 # making a dummy file named `D' -- because `-MD' means `put the output
9010 # Copy depcomp to subdir because otherwise we won't find it if we're
9011 # using a relative directory.
9012 cp "$am_depcomp" conftest.dir
9014 # We will build objects and dependencies in a subdirectory because
9015 # it helps to detect inapplicable dependency modes. For instance
9016 # both Tru64's cc and ICC support -MD to output dependencies as a
9017 # side effect of compilation, but ICC will put the dependencies in
9018 # the current directory while Tru64 will put them in the object
9022 am_cv_CXX_dependencies_compiler_type
=none
9023 if test "$am_compiler_list" = ""; then
9024 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9026 for depmode
in $am_compiler_list; do
9027 if test $depmode = none
; then break; fi
9029 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9030 # Setup a source with many dependencies, because some compilers
9031 # like to wrap large dependency lists on column 80 (with \), and
9032 # we should not choose a depcomp mode which is confused by this.
9034 # We need to recreate these files for each test, as the compiler may
9035 # overwrite some of them when testing with obscure command lines.
9036 # This happens at least with the AIX C compiler.
9038 for i
in 1 2 3 4 5 6; do
9039 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9041 # Solaris 8's {/usr,}/bin/sh.
9042 touch sub
/conftst
$i.h
9044 echo "include sub/conftest.Po" > confmf
9046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9047 # mode. It turns out that the SunPro C++ compiler does not properly
9048 # handle `-M -o', and we need to detect this.
9049 depcmd
="depmode=$depmode \
9050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9053 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9054 if env
$depcmd > conftest.err
2>&1 &&
9055 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9056 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9057 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9058 # icc doesn't choke on unknown options, it will just issue warnings
9059 # or remarks (even with -Werror). So we grep stderr for any message
9060 # that says an option was ignored or not supported.
9061 # When given -MP, icc 7.0 and 7.1 complain thusly:
9062 # icc: Command line warning: ignoring option '-M'; no argument required
9063 # The diagnosis changed in icc 8.0:
9064 # icc: Command line remark: option '-MP' not supported
9065 if (grep 'ignoring option' conftest.err ||
9066 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9067 am_cv_CXX_dependencies_compiler_type
=$depmode
9068 $as_echo "$as_me:$LINENO: success" >&5
9072 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9073 sed -e 's/^/| /' < conftest.err
>&5
9079 am_cv_CXX_dependencies_compiler_type
=none
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9084 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9085 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9086 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9087 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9092 ac_cpp
='$CPP $CPPFLAGS'
9093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9103 # These libraries may be used by collect2.
9104 # We may need a special search path to get them linked.
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9106 $as_echo_n "checking for collect2 libraries... " >&6; }
9107 if test "${gcc_cv_collect2_libs+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9111 for libs
in '' -lld -lmld \
9112 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9113 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9134 if ac_fn_c_try_link
"$LINENO"; then :
9135 gcc_cv_collect2_libs
="$libs"; break
9137 rm -f core conftest.err conftest.
$ac_objext \
9138 conftest
$ac_exeext conftest.
$ac_ext
9141 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9144 $as_echo "$gcc_cv_collect2_libs" >&6; }
9145 case $gcc_cv_collect2_libs in
9147 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9151 # When building Ada code on Alpha, we need exc_resume which is usually in
9152 # -lexc. So test for it.
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9156 $as_echo_n "checking for library containing exc_resume... " >&6; }
9157 if test "${ac_cv_search_exc_resume+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9160 ac_func_search_save_LIBS
=$LIBS
9161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9164 /* Override any GCC internal prototype to avoid an error.
9165 Use char because int might match the return type of a GCC
9166 builtin and then its argument prototype would still apply. */
9174 return exc_resume ();
9179 for ac_lib
in '' exc
; do
9180 if test -z "$ac_lib"; then
9181 ac_res
="none required"
9184 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9186 if ac_fn_c_try_link
"$LINENO"; then :
9187 ac_cv_search_exc_resume
=$ac_res
9189 rm -f core conftest.err conftest.
$ac_objext \
9191 if test "${ac_cv_search_exc_resume+set}" = set; then :
9195 if test "${ac_cv_search_exc_resume+set}" = set; then :
9198 ac_cv_search_exc_resume
=no
9201 LIBS
=$ac_func_search_save_LIBS
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9204 $as_echo "$ac_cv_search_exc_resume" >&6; }
9205 ac_res
=$ac_cv_search_exc_resume
9206 if test "$ac_res" != no
; then :
9207 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9215 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9219 $as_echo_n "checking for library containing kstat_open... " >&6; }
9220 if test "${ac_cv_search_kstat_open+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9223 ac_func_search_save_LIBS
=$LIBS
9224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9227 /* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9237 return kstat_open ();
9242 for ac_lib
in '' kstat
; do
9243 if test -z "$ac_lib"; then
9244 ac_res
="none required"
9247 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9249 if ac_fn_c_try_link
"$LINENO"; then :
9250 ac_cv_search_kstat_open
=$ac_res
9252 rm -f core conftest.err conftest.
$ac_objext \
9254 if test "${ac_cv_search_kstat_open+set}" = set; then :
9258 if test "${ac_cv_search_kstat_open+set}" = set; then :
9261 ac_cv_search_kstat_open
=no
9264 LIBS
=$ac_func_search_save_LIBS
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9267 $as_echo "$ac_cv_search_kstat_open" >&6; }
9268 ac_res
=$ac_cv_search_kstat_open
9269 if test "$ac_res" != no
; then :
9270 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9274 EXTRA_GCC_LIBS
="$LIBS"
9278 # Some systems put ldexp and frexp in libm instead of libc; assume
9279 # they're both in the same place. jcf-dump needs them.
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9283 $as_echo_n "checking for library containing ldexp... " >&6; }
9284 if test "${ac_cv_search_ldexp+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9287 ac_func_search_save_LIBS
=$LIBS
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9306 for ac_lib
in '' m
; do
9307 if test -z "$ac_lib"; then
9308 ac_res
="none required"
9311 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9313 if ac_fn_c_try_link
"$LINENO"; then :
9314 ac_cv_search_ldexp
=$ac_res
9316 rm -f core conftest.err conftest.
$ac_objext \
9318 if test "${ac_cv_search_ldexp+set}" = set; then :
9322 if test "${ac_cv_search_ldexp+set}" = set; then :
9325 ac_cv_search_ldexp
=no
9328 LIBS
=$ac_func_search_save_LIBS
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9331 $as_echo "$ac_cv_search_ldexp" >&6; }
9332 ac_res
=$ac_cv_search_ldexp
9333 if test "$ac_res" != no
; then :
9334 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9342 # Use <inttypes.h> only if it exists,
9343 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9346 $as_echo_n "checking for inttypes.h... " >&6; }
9347 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 #define __STDC_FORMAT_MACROS
9353 #include <sys/types.h>
9354 #include <inttypes.h>
9366 if ac_fn_c_try_compile
"$LINENO"; then :
9367 gcc_cv_header_inttypes_h
=yes
9369 gcc_cv_header_inttypes_h
=no
9371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9375 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9376 if test $gcc_cv_header_inttypes_h = yes; then
9378 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9384 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9385 popen sysconf strsignal getrusage nl_langinfo \
9386 gettimeofday mbstowcs wcswidth mmap setlocale \
9387 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
9389 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9391 eval as_val
=\$
$as_ac_var
9392 if test "x$as_val" = x
""yes; then :
9393 cat >>confdefs.h
<<_ACEOF
9394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9401 if test x
$ac_cv_func_mbstowcs = xyes
; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9403 $as_echo_n "checking whether mbstowcs works... " >&6; }
9404 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9407 if test "$cross_compiling" = yes; then :
9408 gcc_cv_func_mbstowcs_works
=yes
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9419 if ac_fn_c_try_run
"$LINENO"; then :
9420 gcc_cv_func_mbstowcs_works
=yes
9422 gcc_cv_func_mbstowcs_works
=no
9424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9430 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9431 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9433 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9438 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9439 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9443 cat >>confdefs.h
<<_ACEOF
9449 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9450 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9454 cat >>confdefs.h
<<_ACEOF
9455 #define caddr_t char *
9462 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9463 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9464 gcc_header_sys_mman_h
=yes
9466 gcc_header_sys_mman_h
=no
9469 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9470 if test "x$ac_cv_func_mmap" = x
""yes; then :
9476 if test "$gcc_header_sys_mman_h" != yes \
9477 ||
test "$gcc_func_mmap" != yes; then
9478 gcc_cv_func_mmap_file
=no
9479 gcc_cv_func_mmap_dev_zero
=no
9480 gcc_cv_func_mmap_anon
=no
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9483 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9484 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9487 # Add a system to this blacklist if
9488 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9489 # memory area containing the same data that you'd get if you applied
9490 # read() to the same fd. The only system known to have a problem here
9491 # is VMS, where text files have record structure.
9494 gcc_cv_func_mmap_file
=no
;;
9496 gcc_cv_func_mmap_file
=yes;;
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9500 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9502 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9503 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9504 $as_echo_n "(cached) " >&6
9506 # Add a system to this blacklist if it has mmap() but /dev/zero
9507 # does not exist, or if mmapping /dev/zero does not give anonymous
9508 # zeroed pages with both the following properties:
9509 # 1. If you map N consecutive pages in with one call, and then
9510 # unmap any subset of those pages, the pages that were not
9511 # explicitly unmapped remain accessible.
9512 # 2. If you map two adjacent blocks of memory and then unmap them
9513 # both at once, they must both go away.
9514 # Systems known to be in this category are Windows (all variants),
9517 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9518 gcc_cv_func_mmap_dev_zero
=no
;;
9520 gcc_cv_func_mmap_dev_zero
=yes;;
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9524 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9526 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9528 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9529 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #include <sys/types.h>
9535 #include <sys/mman.h>
9538 #ifndef MAP_ANONYMOUS
9539 #define MAP_ANONYMOUS MAP_ANON
9545 int n = MAP_ANONYMOUS;
9550 if ac_fn_c_try_compile
"$LINENO"; then :
9551 gcc_cv_decl_map_anon
=yes
9553 gcc_cv_decl_map_anon
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9558 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9560 if test $gcc_cv_decl_map_anon = no
; then
9561 gcc_cv_func_mmap_anon
=no
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9564 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9565 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9568 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9569 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9570 # doesn't give anonymous zeroed pages with the same properties listed
9571 # above for use of /dev/zero.
9572 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9574 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9575 gcc_cv_func_mmap_anon
=no
;;
9577 gcc_cv_func_mmap_anon
=yes;;
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9581 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9585 if test $gcc_cv_func_mmap_file = yes; then
9587 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9590 if test $gcc_cv_func_mmap_dev_zero = yes; then
9592 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9595 if test $gcc_cv_func_mmap_anon = yes; then
9597 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9604 # Under VMS, vfork works very differently than on Unix. The standard test
9605 # won't work, and it isn't easily adaptable. It makes more sense to
9607 ac_cv_func_vfork_works
=yes
9610 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9611 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9615 cat >>confdefs.h
<<_ACEOF
9621 for ac_header
in vfork.h
9623 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9624 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9625 cat >>confdefs.h
<<_ACEOF
9626 #define HAVE_VFORK_H 1
9632 for ac_func
in fork vfork
9634 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9635 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9636 eval as_val
=\$
$as_ac_var
9637 if test "x$as_val" = x
""yes; then :
9638 cat >>confdefs.h
<<_ACEOF
9639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9645 if test "x$ac_cv_func_fork" = xyes
; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9647 $as_echo_n "checking for working fork... " >&6; }
9648 if test "${ac_cv_func_fork_works+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9651 if test "$cross_compiling" = yes; then :
9652 ac_cv_func_fork_works
=cross
9654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 $ac_includes_default
9661 /* By Ruediger Kuhlmann. */
9668 if ac_fn_c_try_run
"$LINENO"; then :
9669 ac_cv_func_fork_works
=yes
9671 ac_cv_func_fork_works
=no
9673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9679 $as_echo "$ac_cv_func_fork_works" >&6; }
9682 ac_cv_func_fork_works
=$ac_cv_func_fork
9684 if test "x$ac_cv_func_fork_works" = xcross
; then
9686 *-*-amigaos* |
*-*-msdosdjgpp*)
9687 # Override, as these systems have only a dummy fork() stub
9688 ac_cv_func_fork_works
=no
9691 ac_cv_func_fork_works
=yes
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9695 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9697 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9698 if test "x$ac_cv_func_vfork" = xyes
; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9700 $as_echo_n "checking for working vfork... " >&6; }
9701 if test "${ac_cv_func_vfork_works+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9704 if test "$cross_compiling" = yes; then :
9705 ac_cv_func_vfork_works
=cross
9707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 /* Thanks to Paul Eggert for this test. */
9710 $ac_includes_default
9711 #include <sys/wait.h>
9715 /* On some sparc systems, changes by the child to local and incoming
9716 argument registers are propagated back to the parent. The compiler
9717 is told about this with #include <vfork.h>, but some compilers
9718 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9719 static variable whose address is put into a register that is
9720 clobbered by the vfork. */
9723 sparc_address_test (int arg)
9725 sparc_address_test (arg) int arg;
9746 pid_t parent = getpid ();
9749 sparc_address_test (0);
9754 /* Here is another test for sparc vfork register problems. This
9755 test uses lots of local variables, at least as many local
9756 variables as main has allocated so far including compiler
9757 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9758 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9759 reuse the register of parent for one of the local variables,
9760 since it will think that parent can't possibly be used any more
9761 in this routine. Assigning to the local variable will thus
9762 munge parent in the parent process. */
9764 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9765 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9766 /* Convince the compiler that p..p7 are live; otherwise, it might
9767 use the same hardware register for all 8 local variables. */
9768 if (p != p1 || p != p2 || p != p3 || p != p4
9769 || p != p5 || p != p6 || p != p7)
9772 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9773 from child file descriptors. If the child closes a descriptor
9774 before it execs or exits, this munges the parent's descriptor
9775 as well. Test for this by closing stdout in the child. */
9776 _exit(close(fileno(stdout)) != 0);
9781 while (wait(&status) != child)
9784 /* Was there some problem with vforking? */
9787 /* Did the child fail? (This shouldn't happen.) */
9790 /* Did the vfork/compiler bug occur? */
9791 || parent != getpid()
9793 /* Did the file descriptor bug occur? */
9794 || fstat(fileno(stdout), &st) != 0
9799 if ac_fn_c_try_run
"$LINENO"; then :
9800 ac_cv_func_vfork_works
=yes
9802 ac_cv_func_vfork_works
=no
9804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9810 $as_echo "$ac_cv_func_vfork_works" >&6; }
9813 if test "x$ac_cv_func_fork_works" = xcross
; then
9814 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9816 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9819 if test "x$ac_cv_func_vfork_works" = xyes
; then
9821 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9825 $as_echo "#define vfork fork" >>confdefs.h
9828 if test "x$ac_cv_func_fork_works" = xyes
; then
9830 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9835 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9836 # iconv() prototype.
9838 ac_cpp
='$CXXCPP $CPPFLAGS'
9839 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9844 if test "X$prefix" = "XNONE"; then
9845 acl_final_prefix
="$ac_default_prefix"
9847 acl_final_prefix
="$prefix"
9849 if test "X$exec_prefix" = "XNONE"; then
9850 acl_final_exec_prefix
='${prefix}'
9852 acl_final_exec_prefix
="$exec_prefix"
9854 acl_save_prefix
="$prefix"
9855 prefix
="$acl_final_prefix"
9856 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9857 prefix
="$acl_save_prefix"
9860 # Check whether --with-gnu-ld was given.
9861 if test "${with_gnu_ld+set}" = set; then :
9862 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9867 # Prepare PATH_SEPARATOR.
9868 # The user is always right.
9869 if test "${PATH_SEPARATOR+set}" != set; then
9870 echo "#! /bin/sh" >conf$$.sh
9871 echo "exit 0" >>conf$$.sh
9873 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9881 if test "$GCC" = yes; then
9882 # Check if gcc -print-prog-name=ld gives a path.
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9884 $as_echo_n "checking for ld used by GCC... " >&6; }
9887 # gcc leaves a trailing carriage return which upsets mingw
9888 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9890 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9893 # Accept absolute paths.
9894 [\\/]* |
[A-Za-z
]:[\\/]*)
9895 re_direlt
='/[^/][^/]*/\.\./'
9896 # Canonicalize the path of ld
9897 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9898 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9899 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9901 test -z "$LD" && LD
="$ac_prog"
9904 # If it fails, then pretend we aren't using GCC.
9908 # If it is relative, then search for the first ld in PATH.
9912 elif test "$with_gnu_ld" = yes; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9914 $as_echo_n "checking for GNU ld... " >&6; }
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9917 $as_echo_n "checking for non-GNU ld... " >&6; }
9919 if test "${acl_cv_path_LD+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9922 if test -z "$LD"; then
9923 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9924 for ac_dir
in $PATH; do
9925 test -z "$ac_dir" && ac_dir
=.
9926 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9927 acl_cv_path_LD
="$ac_dir/$ac_prog"
9928 # Check to see if the program is GNU ld. I'd rather use --version,
9929 # but apparently some GNU ld's only accept -v.
9930 # Break only if it was the GNU/non-GNU ld that we prefer.
9931 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9932 test "$with_gnu_ld" != no
&& break
9934 test "$with_gnu_ld" != yes && break
9940 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9944 LD
="$acl_cv_path_LD"
9945 if test -n "$LD"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9947 $as_echo "$LD" >&6; }
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9952 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9954 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9955 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9958 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9959 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9960 acl_cv_prog_gnu_ld
=yes
9962 acl_cv_prog_gnu_ld
=no
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9966 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9967 with_gnu_ld
=$acl_cv_prog_gnu_ld
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9972 $as_echo_n "checking for shared library run path origin... " >&6; }
9973 if test "${acl_cv_rpath+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9977 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9978 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9985 $as_echo "$acl_cv_rpath" >&6; }
9987 libext
="$acl_cv_libext"
9988 shlibext
="$acl_cv_shlibext"
9989 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9990 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9991 hardcode_direct
="$acl_cv_hardcode_direct"
9992 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9993 # Check whether --enable-rpath was given.
9994 if test "${enable_rpath+set}" = set; then :
9995 enableval
=$enable_rpath; :
10009 acl_save_prefix
="$prefix"
10010 prefix
="$acl_final_prefix"
10011 acl_save_exec_prefix
="$exec_prefix"
10012 exec_prefix
="$acl_final_exec_prefix"
10014 eval additional_includedir
=\"$includedir\"
10015 eval additional_libdir
=\"$libdir\"
10017 exec_prefix
="$acl_save_exec_prefix"
10018 prefix
="$acl_save_prefix"
10021 # Check whether --with-libiconv-prefix was given.
10022 if test "${with_libiconv_prefix+set}" = set; then :
10023 withval
=$with_libiconv_prefix;
10024 if test "X$withval" = "Xno"; then
10027 if test "X$withval" = "X"; then
10029 acl_save_prefix
="$prefix"
10030 prefix
="$acl_final_prefix"
10031 acl_save_exec_prefix
="$exec_prefix"
10032 exec_prefix
="$acl_final_exec_prefix"
10034 eval additional_includedir
=\"$includedir\"
10035 eval additional_libdir
=\"$libdir\"
10037 exec_prefix
="$acl_save_exec_prefix"
10038 prefix
="$acl_save_prefix"
10041 additional_includedir
="$withval/include"
10042 additional_libdir
="$withval/lib"
10053 names_already_handled
=
10054 names_next_round
='iconv '
10055 while test -n "$names_next_round"; do
10056 names_this_round
="$names_next_round"
10058 for name
in $names_this_round; do
10060 for n
in $names_already_handled; do
10061 if test "$n" = "$name"; then
10062 already_handled
=yes
10066 if test -z "$already_handled"; then
10067 names_already_handled
="$names_already_handled $name"
10068 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10069 eval value
=\"\
$HAVE_LIB$uppername\"
10070 if test -n "$value"; then
10071 if test "$value" = yes; then
10072 eval value
=\"\
$LIB$uppername\"
10073 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10074 eval value
=\"\
$LTLIB$uppername\"
10075 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10084 if test $use_additional = yes; then
10085 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10086 found_dir
="$additional_libdir"
10087 found_so
="$additional_libdir/lib$name.$shlibext"
10088 if test -f "$additional_libdir/lib$name.la"; then
10089 found_la
="$additional_libdir/lib$name.la"
10092 if test -f "$additional_libdir/lib$name.$libext"; then
10093 found_dir
="$additional_libdir"
10094 found_a
="$additional_libdir/lib$name.$libext"
10095 if test -f "$additional_libdir/lib$name.la"; then
10096 found_la
="$additional_libdir/lib$name.la"
10101 if test "X$found_dir" = "X"; then
10102 for x
in $LDFLAGS $LTLIBICONV; do
10104 acl_save_prefix
="$prefix"
10105 prefix
="$acl_final_prefix"
10106 acl_save_exec_prefix
="$exec_prefix"
10107 exec_prefix
="$acl_final_exec_prefix"
10109 exec_prefix
="$acl_save_exec_prefix"
10110 prefix
="$acl_save_prefix"
10114 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10115 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10117 found_so
="$dir/lib$name.$shlibext"
10118 if test -f "$dir/lib$name.la"; then
10119 found_la
="$dir/lib$name.la"
10122 if test -f "$dir/lib$name.$libext"; then
10124 found_a
="$dir/lib$name.$libext"
10125 if test -f "$dir/lib$name.la"; then
10126 found_la
="$dir/lib$name.la"
10132 if test "X$found_dir" != "X"; then
10137 if test "X$found_dir" != "X"; then
10138 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10139 if test "X$found_so" != "X"; then
10140 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10141 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10144 for x
in $ltrpathdirs; do
10145 if test "X$x" = "X$found_dir"; then
10150 if test -z "$haveit"; then
10151 ltrpathdirs
="$ltrpathdirs $found_dir"
10153 if test "$hardcode_direct" = yes; then
10154 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10156 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10157 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10159 for x
in $rpathdirs; do
10160 if test "X$x" = "X$found_dir"; then
10165 if test -z "$haveit"; then
10166 rpathdirs
="$rpathdirs $found_dir"
10170 for x
in $LDFLAGS $LIBICONV; do
10172 acl_save_prefix
="$prefix"
10173 prefix
="$acl_final_prefix"
10174 acl_save_exec_prefix
="$exec_prefix"
10175 exec_prefix
="$acl_final_exec_prefix"
10177 exec_prefix
="$acl_save_exec_prefix"
10178 prefix
="$acl_save_prefix"
10180 if test "X$x" = "X-L$found_dir"; then
10185 if test -z "$haveit"; then
10186 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10188 if test "$hardcode_minus_L" != no
; then
10189 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10191 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10197 if test "X$found_a" != "X"; then
10198 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10200 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10203 additional_includedir
=
10204 case "$found_dir" in
10206 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10207 additional_includedir
="$basedir/include"
10210 if test "X$additional_includedir" != "X"; then
10211 if test "X$additional_includedir" != "X/usr/include"; then
10213 if test "X$additional_includedir" = "X/usr/local/include"; then
10214 if test -n "$GCC"; then
10216 linux
*) haveit
=yes;;
10220 if test -z "$haveit"; then
10221 for x
in $CPPFLAGS $INCICONV; do
10223 acl_save_prefix
="$prefix"
10224 prefix
="$acl_final_prefix"
10225 acl_save_exec_prefix
="$exec_prefix"
10226 exec_prefix
="$acl_final_exec_prefix"
10228 exec_prefix
="$acl_save_exec_prefix"
10229 prefix
="$acl_save_prefix"
10231 if test "X$x" = "X-I$additional_includedir"; then
10236 if test -z "$haveit"; then
10237 if test -d "$additional_includedir"; then
10238 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10244 if test -n "$found_la"; then
10245 save_libdir
="$libdir"
10246 case "$found_la" in
10247 */* |
*\\*) .
"$found_la" ;;
10248 *) .
"./$found_la" ;;
10250 libdir
="$save_libdir"
10251 for dep
in $dependency_libs; do
10254 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10255 if test "X$additional_libdir" != "X/usr/lib"; then
10257 if test "X$additional_libdir" = "X/usr/local/lib"; then
10258 if test -n "$GCC"; then
10260 linux
*) haveit
=yes;;
10264 if test -z "$haveit"; then
10266 for x
in $LDFLAGS $LIBICONV; do
10268 acl_save_prefix
="$prefix"
10269 prefix
="$acl_final_prefix"
10270 acl_save_exec_prefix
="$exec_prefix"
10271 exec_prefix
="$acl_final_exec_prefix"
10273 exec_prefix
="$acl_save_exec_prefix"
10274 prefix
="$acl_save_prefix"
10276 if test "X$x" = "X-L$additional_libdir"; then
10281 if test -z "$haveit"; then
10282 if test -d "$additional_libdir"; then
10283 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10287 for x
in $LDFLAGS $LTLIBICONV; do
10289 acl_save_prefix
="$prefix"
10290 prefix
="$acl_final_prefix"
10291 acl_save_exec_prefix
="$exec_prefix"
10292 exec_prefix
="$acl_final_exec_prefix"
10294 exec_prefix
="$acl_save_exec_prefix"
10295 prefix
="$acl_save_prefix"
10297 if test "X$x" = "X-L$additional_libdir"; then
10302 if test -z "$haveit"; then
10303 if test -d "$additional_libdir"; then
10304 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10311 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10312 if test "$enable_rpath" != no
; then
10314 for x
in $rpathdirs; do
10315 if test "X$x" = "X$dir"; then
10320 if test -z "$haveit"; then
10321 rpathdirs
="$rpathdirs $dir"
10324 for x
in $ltrpathdirs; do
10325 if test "X$x" = "X$dir"; then
10330 if test -z "$haveit"; then
10331 ltrpathdirs
="$ltrpathdirs $dir"
10336 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10339 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10342 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10343 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10349 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10350 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10356 if test "X$rpathdirs" != "X"; then
10357 if test -n "$hardcode_libdir_separator"; then
10359 for found_dir
in $rpathdirs; do
10360 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10362 acl_save_libdir
="$libdir"
10364 eval flag
=\"$hardcode_libdir_flag_spec\"
10365 libdir
="$acl_save_libdir"
10366 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10368 for found_dir
in $rpathdirs; do
10369 acl_save_libdir
="$libdir"
10370 libdir
="$found_dir"
10371 eval flag
=\"$hardcode_libdir_flag_spec\"
10372 libdir
="$acl_save_libdir"
10373 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10377 if test "X$ltrpathdirs" != "X"; then
10378 for found_dir
in $ltrpathdirs; do
10379 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10389 am_save_CPPFLAGS
="$CPPFLAGS"
10391 for element
in $INCICONV; do
10393 for x
in $CPPFLAGS; do
10395 acl_save_prefix
="$prefix"
10396 prefix
="$acl_final_prefix"
10397 acl_save_exec_prefix
="$exec_prefix"
10398 exec_prefix
="$acl_final_exec_prefix"
10400 exec_prefix
="$acl_save_exec_prefix"
10401 prefix
="$acl_save_prefix"
10403 if test "X$x" = "X$element"; then
10408 if test -z "$haveit"; then
10409 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10415 $as_echo_n "checking for iconv... " >&6; }
10416 if test "${am_cv_func_iconv+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10420 am_cv_func_iconv
="no, consider installing GNU libiconv"
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #include <stdlib.h>
10429 iconv_t cd = iconv_open("","");
10430 iconv(cd,NULL,NULL,NULL,NULL);
10436 if ac_fn_cxx_try_link
"$LINENO"; then :
10437 am_cv_func_iconv
=yes
10439 rm -f core conftest.err conftest.
$ac_objext \
10440 conftest
$ac_exeext conftest.
$ac_ext
10441 if test "$am_cv_func_iconv" != yes; then
10442 am_save_LIBS
="$LIBS"
10443 LIBS
="$LIBS $LIBICONV"
10444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446 #include <stdlib.h>
10451 iconv_t cd = iconv_open("","");
10452 iconv(cd,NULL,NULL,NULL,NULL);
10458 if ac_fn_cxx_try_link
"$LINENO"; then :
10459 am_cv_lib_iconv
=yes
10460 am_cv_func_iconv
=yes
10462 rm -f core conftest.err conftest.
$ac_objext \
10463 conftest
$ac_exeext conftest.
$ac_ext
10464 LIBS
="$am_save_LIBS"
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10469 $as_echo "$am_cv_func_iconv" >&6; }
10470 if test "$am_cv_func_iconv" = yes; then
10472 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10475 if test "$am_cv_lib_iconv" = yes; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10477 $as_echo_n "checking how to link with libiconv... " >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10479 $as_echo "$LIBICONV" >&6; }
10481 CPPFLAGS
="$am_save_CPPFLAGS"
10488 if test "$am_cv_func_iconv" = yes; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10490 $as_echo_n "checking for iconv declaration... " >&6; }
10491 if test "${am_cv_proto_iconv+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 #include <stdlib.h>
10504 #if defined(__STDC__) || defined(__cplusplus)
10505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10518 if ac_fn_cxx_try_compile
"$LINENO"; then :
10519 am_cv_proto_iconv_arg1
=""
10521 am_cv_proto_iconv_arg1
="const"
10523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10524 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);"
10527 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10529 }$am_cv_proto_iconv" >&5
10531 }$am_cv_proto_iconv" >&6; }
10533 cat >>confdefs.h
<<_ACEOF
10534 #define ICONV_CONST $am_cv_proto_iconv_arg1
10540 ac_cpp
='$CPP $CPPFLAGS'
10541 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10542 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10543 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10546 # Until we have in-tree GNU iconv:
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10552 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10553 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 #include <locale.h>
10567 if ac_fn_c_try_link
"$LINENO"; then :
10568 am_cv_val_LC_MESSAGES
=yes
10570 am_cv_val_LC_MESSAGES
=no
10572 rm -f core conftest.err conftest.
$ac_objext \
10573 conftest
$ac_exeext conftest.
$ac_ext
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10576 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10577 if test $am_cv_val_LC_MESSAGES = yes; then
10579 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10586 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10587 if test "${am_cv_langinfo_codeset+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 #include <langinfo.h>
10596 char* cs = nl_langinfo(CODESET);
10601 if ac_fn_c_try_link
"$LINENO"; then :
10602 am_cv_langinfo_codeset
=yes
10604 am_cv_langinfo_codeset
=no
10606 rm -f core conftest.err conftest.
$ac_objext \
10607 conftest
$ac_exeext conftest.
$ac_ext
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10611 $as_echo "$am_cv_langinfo_codeset" >&6; }
10612 if test $am_cv_langinfo_codeset = yes; then
10614 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10619 # We will need to find libiberty.h and ansidecl.h
10620 saved_CFLAGS
="$CFLAGS"
10621 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10622 saved_CXXFLAGS
="$CXXFLAGS"
10623 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10624 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10625 stpcpy strnlen strsignal strstr strverscmp \
10626 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10627 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
10629 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10631 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10632 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10633 $as_echo_n "(cached) " >&6
10635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10638 #define $ac_tr_decl 1
10640 #include "ansidecl.h"
10641 #include "system.h"
10647 char *(*pfn) = (char *(*)) $ac_func ;
10653 if ac_fn_c_try_compile
"$LINENO"; then :
10654 eval "gcc_cv_have_decl_$ac_func=yes"
10656 eval "gcc_cv_have_decl_$ac_func=no"
10658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10664 #define $ac_tr_decl 1
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10670 #define $ac_tr_decl 0
10678 for ac_func
in getrlimit setrlimit getrusage
10680 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10682 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10683 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10684 $as_echo_n "(cached) " >&6
10686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10689 #define $ac_tr_decl 1
10691 #include "ansidecl.h"
10692 #include "system.h"
10693 #ifdef HAVE_SYS_RESOURCE_H
10694 #include <sys/resource.h>
10702 char *(*pfn) = (char *(*)) $ac_func ;
10708 if ac_fn_c_try_compile
"$LINENO"; then :
10709 eval "gcc_cv_have_decl_$ac_func=yes"
10711 eval "gcc_cv_have_decl_$ac_func=no"
10713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10716 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10719 #define $ac_tr_decl 1
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10725 #define $ac_tr_decl 0
10733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 #include "ansidecl.h"
10737 #include "system.h"
10738 #ifdef HAVE_SYS_RESOURCE_H
10739 #include <sys/resource.h>
10750 if ac_fn_c_try_compile
"$LINENO"; then :
10754 $as_echo "#define rlim_t long" >>confdefs.h
10757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10759 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10760 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10761 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10762 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10763 for ac_func
in ldgetname
10765 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10767 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10768 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10769 $as_echo_n "(cached) " >&6
10771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 #define $ac_tr_decl 1
10776 #include "ansidecl.h"
10777 #include "system.h"
10778 #ifdef HAVE_LDFCN_H
10789 char *(*pfn) = (char *(*)) $ac_func ;
10795 if ac_fn_c_try_compile
"$LINENO"; then :
10796 eval "gcc_cv_have_decl_$ac_func=yes"
10798 eval "gcc_cv_have_decl_$ac_func=no"
10800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10803 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10806 #define $ac_tr_decl 1
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10812 #define $ac_tr_decl 0
10820 for ac_func
in times
10822 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10824 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10825 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10826 $as_echo_n "(cached) " >&6
10828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 #define $ac_tr_decl 1
10833 #include "ansidecl.h"
10834 #include "system.h"
10835 #ifdef HAVE_SYS_TIMES_H
10836 #include <sys/times.h>
10844 char *(*pfn) = (char *(*)) $ac_func ;
10850 if ac_fn_c_try_compile
"$LINENO"; then :
10851 eval "gcc_cv_have_decl_$ac_func=yes"
10853 eval "gcc_cv_have_decl_$ac_func=no"
10855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10858 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10860 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10861 #define $ac_tr_decl 1
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10867 #define $ac_tr_decl 0
10875 for ac_func
in sigaltstack
10877 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10879 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10880 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10881 $as_echo_n "(cached) " >&6
10883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10886 #define $ac_tr_decl 1
10888 #include "ansidecl.h"
10889 #include "system.h"
10890 #include <signal.h>
10897 char *(*pfn) = (char *(*)) $ac_func ;
10903 if ac_fn_c_try_compile
"$LINENO"; then :
10904 eval "gcc_cv_have_decl_$ac_func=yes"
10906 eval "gcc_cv_have_decl_$ac_func=no"
10908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10911 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10913 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10914 #define $ac_tr_decl 1
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10920 #define $ac_tr_decl 0
10928 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10931 ac_cpp
='$CXXCPP $CPPFLAGS'
10932 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10933 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10934 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10936 for ac_func
in madvise
10938 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10940 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10941 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10942 $as_echo_n "(cached) " >&6
10944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 #define $ac_tr_decl 1
10949 #include "ansidecl.h"
10950 #include "system.h"
10957 char *(*pfn) = (char *(*)) $ac_func ;
10963 if ac_fn_cxx_try_compile
"$LINENO"; then :
10964 eval "gcc_cv_have_decl_$ac_func=yes"
10966 eval "gcc_cv_have_decl_$ac_func=no"
10968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10971 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10974 #define $ac_tr_decl 1
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10980 #define $ac_tr_decl 0
10988 ac_cpp
='$CPP $CPPFLAGS'
10989 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10994 # More time-related stuff.
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10996 $as_echo_n "checking for struct tms... " >&6; }
10997 if test "${ac_cv_struct_tms+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
11001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11004 #include "ansidecl.h"
11005 #include "system.h"
11006 #ifdef HAVE_SYS_TIMES_H
11007 #include <sys/times.h>
11018 if ac_fn_c_try_compile
"$LINENO"; then :
11019 ac_cv_struct_tms
=yes
11021 ac_cv_struct_tms
=no
11023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11026 $as_echo "$ac_cv_struct_tms" >&6; }
11027 if test $ac_cv_struct_tms = yes; then
11029 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11033 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11034 # revisit after autoconf 2.50.
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11036 $as_echo_n "checking for clock_t... " >&6; }
11037 if test "${gcc_cv_type_clock_t+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 #include "ansidecl.h"
11045 #include "system.h"
11055 if ac_fn_c_try_compile
"$LINENO"; then :
11056 gcc_cv_type_clock_t
=yes
11058 gcc_cv_type_clock_t
=no
11060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11063 $as_echo "$gcc_cv_type_clock_t" >&6; }
11064 if test $gcc_cv_type_clock_t = yes; then
11066 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11070 # Check if F_SETLKW is supported by fcntl.
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11072 $as_echo_n "checking for F_SETLKW... " >&6; }
11073 if test "${ac_cv_f_setlkw+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11090 return fcntl (1, F_SETLKW, &fl);
11095 if ac_fn_c_try_compile
"$LINENO"; then :
11100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11103 $as_echo "$ac_cv_f_setlkw" >&6; }
11104 if test $ac_cv_f_setlkw = yes; then
11106 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11110 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11111 CFLAGS
="$saved_CFLAGS"
11112 CXXFLAGS
="$saved_CXXFLAGS"
11114 # mkdir takes a single argument on some systems.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11116 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11117 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 #include <sys/types.h>
11124 #ifdef HAVE_SYS_STAT_H
11125 # include <sys/stat.h>
11127 #ifdef HAVE_UNISTD_H
11128 # include <unistd.h>
11130 #ifdef HAVE_DIRECT_H
11131 # include <direct.h>
11141 if ac_fn_c_try_compile
"$LINENO"; then :
11142 gcc_cv_mkdir_takes_one_arg
=no
11144 gcc_cv_mkdir_takes_one_arg
=yes
11146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11149 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11150 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11152 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11163 # With Setjmp/Longjmp based exception handling.
11164 # Check whether --enable-sjlj-exceptions was given.
11165 if test "${enable_sjlj_exceptions+set}" = set; then :
11166 enableval
=$enable_sjlj_exceptions; case $target in
11168 if test $enableval != yes; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11170 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11175 force_sjlj_exceptions
=yes
11179 force_sjlj_exceptions
=yes
11183 force_sjlj_exceptions
=yes
11187 force_sjlj_exceptions
=no
11192 if test $force_sjlj_exceptions = yes; then
11193 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11195 cat >>confdefs.h
<<_ACEOF
11196 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11201 # --------------------------------------------------------
11202 # Build, host, and target specific configuration fragments
11203 # --------------------------------------------------------
11205 # Collect build-machine-specific information.
11206 .
${srcdir}/config.build
11208 # Collect host-machine-specific information.
11209 .
${srcdir}/config.
host
11213 # Collect target-machine-specific information.
11214 .
${srcdir}/config.gcc
11216 extra_objs
="${host_extra_objs} ${extra_objs}"
11217 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11219 # Default the target-machine variables that were not explicitly set.
11220 if test x
"$tm_file" = x
11221 then tm_file
=$cpu_type/$cpu_type.h
; fi
11223 if test x
"$extra_headers" = x
11224 then extra_headers
=; fi
11226 if test x
$md_file = x
11227 then md_file
=$cpu_type/$cpu_type.md
; fi
11229 if test x
$out_file = x
11230 then out_file
=$cpu_type/$cpu_type.c
; fi
11232 if test x
"$tmake_file" = x
11233 then tmake_file
=$cpu_type/t-
$cpu_type
11236 # Support --enable-initfini-array.
11237 if test x
$enable_initfini_array != xno
; then
11238 tm_file
="${tm_file} initfini-array.h"
11241 if test x
"$dwarf2" = xyes
11242 then tm_file
="$tm_file tm-dwarf2.h"
11245 # Say what files are being used for the output code and MD file.
11246 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11247 echo "Using \`$srcdir/config/$md_file' as machine description file."
11249 # If any of the xm_file variables contain nonexistent files, warn
11250 # about them and drop them.
11253 for x
in $build_xm_file; do
11254 if test -f $srcdir/config
/$x
11256 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11257 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11260 build_xm_file
="$bx"
11263 for x
in $host_xm_file; do
11264 if test -f $srcdir/config
/$x
11266 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11267 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11273 for x
in $xm_file; do
11274 if test -f $srcdir/config
/$x
11276 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11277 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11283 for f
in $tm_file; do
11286 if test $count = ax
; then
11287 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11289 echo "Using the following target machine macro files:"
11290 for f
in $tm_file; do
11291 echo " $srcdir/config/$f"
11295 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11297 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11301 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11303 cat >>confdefs.h
<<_ACEOF
11304 #define HAVE_GNU_LD $gnu_ld_bool
11308 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11310 cat >>confdefs.h
<<_ACEOF
11311 #define HAVE_GNU_AS $gnu_as_bool
11316 for f
in $host_xm_file; do
11319 if test $count = a
; then
11321 elif test $count = ax
; then
11322 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11324 echo "Using the following host machine macro files:"
11325 for f
in $host_xm_file; do
11326 echo " $srcdir/config/$f"
11329 echo "Using ${out_host_hook_obj} for host machine hooks."
11331 if test "$host_xm_file" != "$build_xm_file"; then
11333 for f
in $build_xm_file; do
11336 if test $count = a
; then
11338 elif test $count = ax
; then
11339 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11341 echo "Using the following build machine macro files:"
11342 for f
in $build_xm_file; do
11343 echo " $srcdir/config/$f"
11348 if test -n "$configured_native_system_header_dir"; then
11349 native_system_header_dir
=$configured_native_system_header_dir
11351 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11355 powerpc
*-*-darwin*)
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11357 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11358 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11364 #include <sys/cdefs.h>
11365 #include <sys/signal.h>
11366 #include <ucontext.h>
11367 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11370 if ac_fn_c_try_compile
"$LINENO"; then :
11371 gcc_cv_mcontext_underscores
=no
11373 gcc_cv_mcontext_underscores
=yes
11375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11378 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11379 if test $gcc_cv_mcontext_underscores = yes; then
11381 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11391 # Check if a valid thread package
11392 case ${enable_threads} in
11395 target_thread_file
='single'
11399 target_thread_file
='single'
11401 aix | dce | lynx | mipssde | posix | rtems | \
11402 single | tpf | vxworks | win32
)
11403 target_thread_file
=${enable_threads}
11406 echo "${enable_threads} is an unknown thread package" 1>&2
11411 if test x
${thread_file} = x
; then
11412 # No thread file set by target-specific clauses in config.gcc,
11413 # so use file chosen by default logic above
11414 thread_file
=${target_thread_file}
11422 if test x
$enable___cxa_atexit = xyes || \
11423 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11424 if test x
$host = x
$target; then
11426 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11427 # keyed to flag_use_cxa_atexit
11435 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11436 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11439 echo "__cxa_atexit can't be enabled on this target"
11445 # We can't check for __cxa_atexit when building a cross, so assume
11449 if test x
$use_cxa_atexit = xyes
; then
11451 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11456 # Look for a file containing extra machine modes.
11457 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11458 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11461 cat >>confdefs.h
<<_ACEOF
11462 #define EXTRA_MODES_FILE "config/$extra_modes"
11467 # Convert extra_options into a form suitable for Makefile use.
11470 for f
in $extra_options; do
11471 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11472 all_opt_files
="$all_opt_files $srcdir/config/$f"
11476 # auto-host.h is the file containing items generated by autoconf and is
11477 # the first file included by config.h.
11478 # If host=build, it is correct to have bconfig include auto-host.h
11479 # as well. If host!=build, we are in error and need to do more
11480 # work to find out the build config parameters.
11481 if test x
$host = x
$build
11483 build_auto
=auto-host.h
11485 # We create a subdir, then run autoconf in the subdir.
11486 # To prevent recursion we set host and build for the new
11487 # invocation of configure to the build for this invocation
11494 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11495 *) realsrcdir
=..
/${srcdir};;
11497 # Clearing GMPINC is necessary to prevent host headers being
11498 # used by the build compiler. Defining GENERATOR_FILE stops
11499 # system.h from including gmp.h.
11500 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11501 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11502 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11503 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11504 ${realsrcdir}/configure \
11505 --enable-languages=${enable_languages-all} \
11506 --target=$target_alias --host=$build_alias --build=$build_alias
11508 # We just finished tests for the build machine, so rename
11509 # the file auto-build.h in the gcc directory.
11510 mv auto-host.h ..
/auto-build.h
11513 build_auto
=auto-build.h
11517 tm_file
="${tm_file} defaults.h"
11518 tm_p_file
="${tm_p_file} tm-preds.h"
11519 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11520 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11521 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11522 # put this back in temporarily.
11523 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11529 # Compile in configure arguments.
11530 if test -f configargs.h
; then
11531 # Being re-configured.
11532 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11533 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11535 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11538 # Double all backslashes and backslash all quotes to turn
11539 # gcc_config_arguments into a C string.
11540 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11541 $gcc_config_arguments
11543 gcc_config_arguments_str
=`cat conftest.out`
11546 cat > configargs.h
<<EOF
11547 /* Generated automatically. */
11548 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11549 static const char thread_model[] = "$thread_file";
11551 static const struct {
11552 const char *name, *value;
11553 } configure_default_options[] = $configure_default_options;
11556 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11557 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11558 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11559 if test -f $srcdir/REVISION
; then
11560 gcc_REVISION
=`cat $srcdir/REVISION`
11564 cat > plugin-version.h
<<EOF
11565 #include "configargs.h"
11567 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11568 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11569 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11570 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11572 static char basever[] = "$gcc_BASEVER";
11573 static char datestamp[] = "$gcc_DATESTAMP";
11574 static char devphase[] = "$gcc_DEVPHASE";
11575 static char revision[] = "$gcc_REVISION";
11577 /* FIXME plugins: We should make the version information more precise.
11578 One way to do is to add a checksum. */
11580 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11581 devphase, revision,
11582 configuration_arguments};
11585 # Internationalization
11586 # If we haven't got the data from the intl directory,
11587 # assume NLS is disabled.
11596 if test -f ..
/intl
/config.intl
; then
11597 . ..
/intl
/config.intl
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11600 $as_echo_n "checking whether NLS is requested... " >&6; }
11601 if test x
"$USE_NLS" != xyes
; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606 $as_echo "yes" >&6; }
11608 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11612 $as_echo_n "checking for catalogs to be installed... " >&6; }
11613 # Look for .po and .gmo files in the source directory.
11616 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11617 # If there aren't any .gmo files the shell will give us the
11618 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11620 case "$cat" in *\
**)
11623 # The quadruple backslash is collapsed to a double backslash
11624 # by the backticks, then collapsed again by the double quotes,
11625 # leaving us with one backslash in the sed expression (right
11626 # before the dot that mustn't act as a wildcard).
11627 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11628 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11629 # The user is allowed to set LINGUAS to a list of languages to
11630 # install catalogs for. If it's empty that means "all of them."
11631 if test "x$LINGUAS" = x
; then
11632 CATALOGS
="$CATALOGS $cat"
11633 XLINGUAS
="$XLINGUAS $lang"
11635 case "$LINGUAS" in *$lang*)
11636 CATALOGS
="$CATALOGS $cat"
11637 XLINGUAS
="$XLINGUAS $lang"
11642 LINGUAS
="$XLINGUAS"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11644 $as_echo "$LINGUAS" >&6; }
11657 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11658 # -liconv on the link line twice.
11659 case "$LIBINTL" in *$LIBICONV*)
11663 # Check whether --enable-secureplt was given.
11664 if test "${enable_secureplt+set}" = set; then :
11665 enableval
=$enable_secureplt;
11669 # Check whether --enable-leading-mingw64-underscores was given.
11670 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11671 enableval
=$enable_leading_mingw64_underscores;
11674 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11676 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11680 # Check whether --enable-cld was given.
11681 if test "${enable_cld+set}" = set; then :
11682 enableval
=$enable_cld;
11688 # Check whether --enable-frame-pointer was given.
11689 if test "${enable_frame_pointer+set}" = set; then :
11690 enableval
=$enable_frame_pointer;
11694 linux
* | darwin
[8912]*)
11695 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11697 enable_frame_pointer
=no
11700 enable_frame_pointer
=yes
11707 # Windows32 Registry support for specifying GCC installation paths.
11708 # Check whether --enable-win32-registry was given.
11709 if test "${enable_win32_registry+set}" = set; then :
11710 enableval
=$enable_win32_registry;
11715 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11716 if test "x$enable_win32_registry" != xno
; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11718 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11719 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11722 ac_func_search_save_LIBS
=$LIBS
11723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11732 char RegOpenKeyExA ();
11736 return RegOpenKeyExA ();
11741 for ac_lib
in '' advapi32
; do
11742 if test -z "$ac_lib"; then
11743 ac_res
="none required"
11746 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11748 if ac_fn_c_try_link
"$LINENO"; then :
11749 ac_cv_search_RegOpenKeyExA
=$ac_res
11751 rm -f core conftest.err conftest.
$ac_objext \
11753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11757 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11760 ac_cv_search_RegOpenKeyExA
=no
11762 rm conftest.
$ac_ext
11763 LIBS
=$ac_func_search_save_LIBS
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11766 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11767 ac_res
=$ac_cv_search_RegOpenKeyExA
11768 if test "$ac_res" != no
; then :
11769 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11772 enable_win32_registry
=no
11777 if test "x$enable_win32_registry" != xno
; then
11779 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11782 if test "x$enable_win32_registry" != xyes \
11783 && test "x$enable_win32_registry" != x
; then
11785 cat >>confdefs.h
<<_ACEOF
11786 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11794 # Get an absolute path to the GCC top-level source directory
11795 holddir
=`${PWDCMD-pwd}`
11797 topdir
=`${PWDCMD-pwd}`
11800 # Conditionalize the makefile for this host machine.
11802 for f
in ${host_xmake_file}
11804 if test -f ${srcdir}/config
/$f
11806 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11810 # Conditionalize the makefile for this target machine.
11812 for f
in ${tmake_file}
11814 if test -f ${srcdir}/config
/$f
11816 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11819 tmake_file
="${tmake_file_}"
11821 out_object_file
=`basename $out_file .c`.o
11822 common_out_object_file
=`basename $common_out_file .c`.o
11824 tm_file_list
="options.h"
11825 tm_include_list
="options.h insn-constants.h"
11826 for f
in $tm_file; do
11829 f
=`echo $f | sed 's/^..//'`
11830 tm_file_list
="${tm_file_list} $f"
11831 tm_include_list
="${tm_include_list} $f"
11834 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11835 tm_include_list
="${tm_include_list} $f"
11838 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11839 tm_include_list
="${tm_include_list} config/$f"
11846 for f
in $tm_p_file; do
11849 tm_p_file_list
="${tm_p_file_list} $f"
11850 tm_p_include_list
="${tm_p_include_list} $f"
11853 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11854 tm_p_include_list
="${tm_p_include_list} config/$f"
11860 for f
in $xm_file; do
11863 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11864 xm_include_list
="${xm_include_list} $f"
11867 xm_file_list
="${xm_file_list} $f"
11868 xm_include_list
="${xm_include_list} $f"
11871 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11872 xm_include_list
="${xm_include_list} config/$f"
11878 host_xm_include_list
=
11879 for f
in $host_xm_file; do
11882 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11883 host_xm_include_list
="${host_xm_include_list} $f"
11886 host_xm_file_list
="${host_xm_file_list} $f"
11887 host_xm_include_list
="${host_xm_include_list} $f"
11890 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11891 host_xm_include_list
="${host_xm_include_list} config/$f"
11896 build_xm_file_list
=
11897 for f
in $build_xm_file; do
11900 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11901 build_xm_include_list
="${build_xm_include_list} $f"
11903 auto-build.h | auto-host.h
)
11904 build_xm_file_list
="${build_xm_file_list} $f"
11905 build_xm_include_list
="${build_xm_include_list} $f"
11908 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11909 build_xm_include_list
="${build_xm_include_list} config/$f"
11914 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11915 # cross-compiler which does not use the native headers and libraries.
11916 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11919 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11921 if test "x$with_build_sysroot" != x
; then
11922 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11924 # This value is used, even on a native system, because
11925 # CROSS_SYSTEM_HEADER_DIR is just
11926 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11927 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11930 if test x
$host != x
$target
11932 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11934 SYSTEM_HEADER_DIR
=$build_system_header_dir
11935 case "$host","$target" in
11936 # Darwin crosses can use the host system's libraries and headers,
11937 # because of the fat library support. Of course, it must be the
11938 # same version of Darwin on both sides. Allow the user to
11939 # just say --target=foo-darwin without a version number to mean
11940 # "the version on this system".
11941 *-*-darwin*,*-*-darwin*)
11942 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11943 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11944 if test $hostos = $targetos -o $targetos = darwin
; then
11946 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11951 i?
86-*-*,x86_64-
*-* \
11952 | powerpc
*-*-*,powerpc64
*-*-*)
11953 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11958 if test "x$with_headers" = x
; then
11965 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11966 SYSTEM_HEADER_DIR
=$build_system_header_dir
11969 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
11970 if test "x$with_headers" != x
; then
11971 target_header_dir
=$with_headers
11972 elif test "x$with_sysroot" = x
; then
11973 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
11974 elif test "x$with_build_sysroot" != "x"; then
11975 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
11976 elif test "x$with_sysroot" = xyes
; then
11977 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11979 target_header_dir
="${with_sysroot}${native_system_header_dir}"
11982 target_header_dir
=${native_system_header_dir}
11985 # If this is a cross-compiler that does not
11986 # have its own set of headers then define
11989 # If this is using newlib, without having the headers available now,
11990 # then define inhibit_libc in LIBGCC2_CFLAGS.
11991 # This prevents libgcc2 from containing any code which requires libc
11993 : ${inhibit_libc=false}
11994 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11995 test x
$with_newlib = xyes
; } &&
11996 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12001 # When building gcc with a cross-compiler, we need to adjust things so
12002 # that the generator programs are still built with the native compiler.
12003 # Also, we cannot run fixincludes.
12005 # These are the normal (build=host) settings:
12006 CC_FOR_BUILD
='$(CC)'
12007 CXX_FOR_BUILD
='$(CXX)'
12008 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12009 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12010 BUILD_LDFLAGS
='$(LDFLAGS)'
12011 STMP_FIXINC
=stmp-fixinc
12013 # And these apply if build != host, or we are generating coverage data
12014 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12016 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12017 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12018 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12021 # Expand extra_headers to include complete path.
12022 # This substitutes for lots of t-* files.
12023 extra_headers_list
=
12024 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12025 for file in ${extra_headers} ; do
12026 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12029 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12030 if test x
"$use_gcc_tgmath" = xyes
12031 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12034 # Define collect2 in Makefile.
12035 case $host_can_use_collect2 in
12037 *) collect2
='collect2$(exeext)' ;;
12041 # Add a definition of USE_COLLECT2 if system wants one.
12042 case $use_collect2 in
12043 no
) use_collect2
= ;;
12046 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12047 xm_defines
="${xm_defines} USE_COLLECT2"
12048 case $host_can_use_collect2 in
12050 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12057 cat >>confdefs.h
<<_ACEOF
12058 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12062 # ---------------------------
12063 # Assembler & linker features
12064 # ---------------------------
12066 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12067 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12068 # However when ld-new is first executed from the build tree, libtool will
12069 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12070 # to the build tree. While doing this we need to use the previous-stage
12071 # linker, or we have an infinite loop. The presence of a shell script as
12072 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12073 # the gcc/collect-ld script. So we need to know how libtool works, or
12074 # exec-tool will fail.
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12080 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12085 macro_version
='2.2.7a'
12086 macro_revision
='1.3134'
12100 ltmain
="$ac_aux_dir/ltmain.sh"
12102 # Backslashify metacharacters that are still active within
12103 # double-quoted strings.
12104 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12106 # Same as above, but do not quote variable references.
12107 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12109 # Sed substitution to delay expansion of an escaped shell variable in a
12110 # double_quote_subst'ed string.
12111 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12113 # Sed substitution to delay expansion of an escaped single quote.
12114 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12116 # Sed substitution to avoid accidental globbing in evaled expressions
12117 no_glob_subst
='s/\*/\\\*/g'
12119 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12124 $as_echo_n "checking how to print strings... " >&6; }
12125 # Test print first, because it will be a builtin if present.
12126 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12132 # Use this function as a fallback that always works.
12133 func_fallback_echo ()
12135 eval 'cat <<_LTECHO_EOF
12139 ECHO='func_fallback_echo
'
12142 # func_echo_all arg...
12143 # Invoke $ECHO with all args, space-separated.
12150 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12151 $as_echo "printf" >&6; } ;;
12152 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12153 $as_echo "print -r" >&6; } ;;
12154 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12155 $as_echo "cat" >&6; } ;;
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12172 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12173 if test "${ac_cv_path_SED+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12177 for ac_i in 1 2 3 4 5 6 7; do
12178 ac_script="$ac_script$as_nl$ac_script"
12180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12181 { ac_script=; unset ac_script;}
12182 if test -z "$SED"; then
12183 ac_path_SED_found=false
12184 # Loop through the user's path and
test for each of PROGNAME-LIST
12185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12186 for as_dir
in $PATH
12189 test -z "$as_dir" && as_dir
=.
12190 for ac_prog
in sed gsed
; do
12191 for ac_exec_ext
in '' $ac_executable_extensions; do
12192 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12193 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12194 # Check for GNU ac_path_SED and select it if it is found.
12195 # Check for GNU $ac_path_SED
12196 case `"$ac_path_SED" --version 2>&1` in
12198 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12201 $as_echo_n 0123456789 >"conftest.in"
12204 cat "conftest.in" "conftest.in" >"conftest.tmp"
12205 mv "conftest.tmp" "conftest.in"
12206 cp "conftest.in" "conftest.nl"
12207 $as_echo '' >> "conftest.nl"
12208 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12209 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12210 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12211 if test $ac_count -gt ${ac_path_SED_max-0}; then
12212 # Best one so far, save it but keep looking for a better one
12213 ac_cv_path_SED
="$ac_path_SED"
12214 ac_path_SED_max
=$ac_count
12216 # 10*(2^10) chars as input seems more than enough
12217 test $ac_count -gt 10 && break
12219 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12222 $ac_path_SED_found && break 3
12227 if test -z "$ac_cv_path_SED"; then
12228 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12231 ac_cv_path_SED
=$SED
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12236 $as_echo "$ac_cv_path_SED" >&6; }
12237 SED
="$ac_cv_path_SED"
12240 test -z "$SED" && SED
=sed
12241 Xsed
="$SED -e 1s/^X//"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12254 $as_echo_n "checking for fgrep... " >&6; }
12255 if test "${ac_cv_path_FGREP+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12258 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12259 then ac_cv_path_FGREP
="$GREP -F"
12261 if test -z "$FGREP"; then
12262 ac_path_FGREP_found
=false
12263 # Loop through the user's path and test for each of PROGNAME-LIST
12264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12265 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12268 test -z "$as_dir" && as_dir
=.
12269 for ac_prog
in fgrep
; do
12270 for ac_exec_ext
in '' $ac_executable_extensions; do
12271 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12272 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12273 # Check for GNU ac_path_FGREP and select it if it is found.
12274 # Check for GNU $ac_path_FGREP
12275 case `"$ac_path_FGREP" --version 2>&1` in
12277 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12280 $as_echo_n 0123456789 >"conftest.in"
12283 cat "conftest.in" "conftest.in" >"conftest.tmp"
12284 mv "conftest.tmp" "conftest.in"
12285 cp "conftest.in" "conftest.nl"
12286 $as_echo 'FGREP' >> "conftest.nl"
12287 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12288 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12289 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12291 # Best one so far, save it but keep looking for a better one
12292 ac_cv_path_FGREP
="$ac_path_FGREP"
12293 ac_path_FGREP_max
=$ac_count
12295 # 10*(2^10) chars as input seems more than enough
12296 test $ac_count -gt 10 && break
12298 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12301 $ac_path_FGREP_found && break 3
12306 if test -z "$ac_cv_path_FGREP"; then
12307 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12310 ac_cv_path_FGREP
=$FGREP
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12316 $as_echo "$ac_cv_path_FGREP" >&6; }
12317 FGREP
="$ac_cv_path_FGREP"
12320 test -z "$GREP" && GREP
=grep
12340 # Check whether --with-gnu-ld was given.
12341 if test "${with_gnu_ld+set}" = set; then :
12342 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12348 if test "$GCC" = yes; then
12349 # Check if gcc -print-prog-name=ld gives a path.
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12351 $as_echo_n "checking for ld used by $CC... " >&6; }
12354 # gcc leaves a trailing carriage return which upsets mingw
12355 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12357 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12360 # Accept absolute paths.
12362 re_direlt
='/[^/][^/]*/\.\./'
12363 # Canonicalize the pathname of ld
12364 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12365 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12366 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12368 test -z "$LD" && LD
="$ac_prog"
12371 # If it fails, then pretend we aren't using GCC.
12375 # If it is relative, then search for the first ld in PATH.
12376 with_gnu_ld
=unknown
12379 elif test "$with_gnu_ld" = yes; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12381 $as_echo_n "checking for GNU ld... " >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12384 $as_echo_n "checking for non-GNU ld... " >&6; }
12386 if test "${lt_cv_path_LD+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12389 if test -z "$LD"; then
12390 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12391 for ac_dir
in $PATH; do
12393 test -z "$ac_dir" && ac_dir
=.
12394 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12395 lt_cv_path_LD
="$ac_dir/$ac_prog"
12396 # Check to see if the program is GNU ld. I'd rather use --version,
12397 # but apparently some variants of GNU ld only accept -v.
12398 # Break only if it was the GNU/non-GNU ld that we prefer.
12399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12400 *GNU
* |
*'with BFD'*)
12401 test "$with_gnu_ld" != no
&& break
12404 test "$with_gnu_ld" != yes && break
12411 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12415 LD
="$lt_cv_path_LD"
12416 if test -n "$LD"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12418 $as_echo "$LD" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12423 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12425 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12426 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12429 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12430 case `$LD -v 2>&1 </dev/null` in
12431 *GNU
* |
*'with BFD'*)
12432 lt_cv_prog_gnu_ld
=yes
12435 lt_cv_prog_gnu_ld
=no
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12440 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12441 with_gnu_ld
=$lt_cv_prog_gnu_ld
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12452 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12453 if test "${lt_cv_path_NM+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12456 if test -n "$NM"; then
12457 # Let the user override the test.
12458 lt_cv_path_NM
="$NM"
12460 lt_nm_to_check
="${ac_tool_prefix}nm"
12461 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12462 lt_nm_to_check
="$lt_nm_to_check nm"
12464 for lt_tmp_nm
in $lt_nm_to_check; do
12465 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12466 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12468 test -z "$ac_dir" && ac_dir
=.
12469 tmp_nm
="$ac_dir/$lt_tmp_nm"
12470 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12471 # Check to see if the nm accepts a BSD-compat flag.
12472 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12473 # nm: unknown option "B" ignored
12474 # Tru64's nm complains that /dev/null is an invalid object file
12475 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12476 */dev
/null
* |
*'Invalid file or object type'*)
12477 lt_cv_path_NM
="$tmp_nm -B"
12481 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12483 lt_cv_path_NM
="$tmp_nm -p"
12487 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12488 continue # so that we can try to find one that supports BSD flags
12497 : ${lt_cv_path_NM=no}
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12501 $as_echo "$lt_cv_path_NM" >&6; }
12502 if test "$lt_cv_path_NM" != "no"; then
12503 NM
="$lt_cv_path_NM"
12505 # Didn't find any BSD compatible name lister, look for dumpbin.
12506 if test -n "$DUMPBIN"; then :
12507 # Let the user override the test.
12509 if test -n "$ac_tool_prefix"; then
12510 for ac_prog
in dumpbin
"link -dump"
12512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12513 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12519 if test -n "$DUMPBIN"; then
12520 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12523 for as_dir
in $PATH
12526 test -z "$as_dir" && as_dir
=.
12527 for ac_exec_ext
in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12529 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539 DUMPBIN
=$ac_cv_prog_DUMPBIN
12540 if test -n "$DUMPBIN"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12542 $as_echo "$DUMPBIN" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12549 test -n "$DUMPBIN" && break
12552 if test -z "$DUMPBIN"; then
12553 ac_ct_DUMPBIN
=$DUMPBIN
12554 for ac_prog
in dumpbin
"link -dump"
12556 # Extract the first word of "$ac_prog", so it can be a program name with args.
12557 set dummy
$ac_prog; ac_word
=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12561 $as_echo_n "(cached) " >&6
12563 if test -n "$ac_ct_DUMPBIN"; then
12564 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12567 for as_dir
in $PATH
12570 test -z "$as_dir" && as_dir
=.
12571 for ac_exec_ext
in '' $ac_executable_extensions; do
12572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12573 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12583 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12584 if test -n "$ac_ct_DUMPBIN"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12586 $as_echo "$ac_ct_DUMPBIN" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12593 test -n "$ac_ct_DUMPBIN" && break
12596 if test "x$ac_ct_DUMPBIN" = x
; then
12599 case $cross_compiling:$ac_tool_warned in
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12603 ac_tool_warned
=yes ;;
12605 DUMPBIN
=$ac_ct_DUMPBIN
12609 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12611 DUMPBIN
="$DUMPBIN -symbols"
12619 if test "$DUMPBIN" != ":"; then
12623 test -z "$NM" && NM
=nm
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12631 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12632 if test "${lt_cv_nm_interface+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
12635 lt_cv_nm_interface
="BSD nm"
12636 echo "int some_variable = 0;" > conftest.
$ac_ext
12637 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12638 (eval "$ac_compile" 2>conftest.err
)
12639 cat conftest.err
>&5
12640 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12641 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12642 cat conftest.err
>&5
12643 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12644 cat conftest.out
>&5
12645 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12646 lt_cv_nm_interface
="MS dumpbin"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12651 $as_echo "$lt_cv_nm_interface" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12654 $as_echo_n "checking whether ln -s works... " >&6; }
12656 if test "$LN_S" = "ln -s"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658 $as_echo "yes" >&6; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12661 $as_echo "no, using $LN_S" >&6; }
12664 # find the maximum length of command line arguments
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12666 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12667 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12675 # On DJGPP, this test can blow up pretty badly due to problems in libc
12676 # (any single argument exceeding 2000 bytes causes a buffer overrun
12677 # during glob expansion). Even if it were fixed, the result of this
12678 # check would be larger than it should be.
12679 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12683 # Under GNU Hurd, this test is not required because there is
12684 # no limit to the length of command line arguments.
12685 # Libtool will interpret -1 as no limit whatsoever
12686 lt_cv_sys_max_cmd_len
=-1;
12689 cygwin
* | mingw
* | cegcc
*)
12690 # On Win9x/ME, this test blows up -- it succeeds, but takes
12691 # about 5 minutes as the teststring grows exponentially.
12692 # Worse, since 9x/ME are not pre-emptively multitasking,
12693 # you end up with a "frozen" computer, even though with patience
12694 # the test eventually succeeds (with a max line length of 256k).
12695 # Instead, let's just punt: use the minimum linelength reported by
12696 # all of the supported platforms: 8192 (on NT/2K/XP).
12697 lt_cv_sys_max_cmd_len
=8192;
12701 # On MiNT this can take a long time and run out of memory.
12702 lt_cv_sys_max_cmd_len
=8192;
12706 # On AmigaOS with pdksh, this test takes hours, literally.
12707 # So we just punt and use a minimum line length of 8192.
12708 lt_cv_sys_max_cmd_len
=8192;
12711 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12712 # This has been around since 386BSD, at least. Likely further.
12713 if test -x /sbin
/sysctl
; then
12714 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12715 elif test -x /usr
/sbin
/sysctl
; then
12716 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12718 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12720 # And add a safety zone
12721 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12722 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12726 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12727 lt_cv_sys_max_cmd_len
=196608
12731 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12732 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12733 # nice to cause kernel panics so lets avoid the loop below.
12734 # First set a reasonable default.
12735 lt_cv_sys_max_cmd_len
=16384
12737 if test -x /sbin
/sysconfig
; then
12738 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12739 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12744 lt_cv_sys_max_cmd_len
=102400
12746 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12747 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12748 if test -n "$kargmax"; then
12749 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12751 lt_cv_sys_max_cmd_len
=32768
12755 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12756 if test -n "$lt_cv_sys_max_cmd_len"; then
12757 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12758 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12760 # Make teststring a little bigger before we do anything with it.
12761 # a 1K string should be a reasonable start.
12762 for i
in 1 2 3 4 5 6 7 8 ; do
12763 teststring
=$teststring$teststring
12765 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12766 # If test is not a shell built-in, we'll probably end up computing a
12767 # maximum length that is only half of the actual maximum length, but
12769 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12770 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12771 test $i != 17 # 1/2 MB should be enough
12774 teststring
=$teststring$teststring
12776 # Only check the string length outside the loop.
12777 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12779 # Add a significant safety factor because C++ compilers can tack on
12780 # massive amounts of additional arguments before passing them to the
12781 # linker. It appears as though 1/2 is a usable value.
12782 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12789 if test -n $lt_cv_sys_max_cmd_len ; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12791 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12794 $as_echo "none" >&6; }
12796 max_cmd_len
=$lt_cv_sys_max_cmd_len
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12808 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12809 # Try some XSI features
12811 ( _lt_dummy
="a/b/c"
12812 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12814 && eval 'test $(( 1 + 1 )) -eq 2 \
12815 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12818 $as_echo "$xsi_shell" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12822 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12824 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12826 && lt_shell_append=yes
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12828 $as_echo "$lt_shell_append" >&6; }
12831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12841 # test EBCDIC or ASCII
12842 case `echo X|tr X '\101'` in
12843 A) # ASCII based system
12844 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12845 lt_SP2NL='tr \040 \012'
12846 lt_NL2SP='tr \015\012 \040\040'
12848 *) # EBCDIC based system
12849 lt_SP2NL='tr \100 \n'
12850 lt_NL2SP='tr \r\n \100\100'
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12863 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12864 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12865 $as_echo_n "(cached
) " >&6
12867 lt_cv_ld_reload_flag='-r'
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12871 reload_flag=$lt_cv_ld_reload_flag
12872 case $reload_flag in
12874 *) reload_flag=" $reload_flag" ;;
12876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12879 if test "$GCC" = yes; then
12880 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12895 if test -n "$ac_tool_prefix"; then
12896 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12897 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12899 $as_echo_n "checking
for $ac_word...
" >&6; }
12900 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12901 $as_echo_n "(cached
) " >&6
12903 if test -n "$OBJDUMP"; then
12904 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12913 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12923 OBJDUMP=$ac_cv_prog_OBJDUMP
12924 if test -n "$OBJDUMP"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12926 $as_echo "$OBJDUMP" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12929 $as_echo "no
" >&6; }
12934 if test -z "$ac_cv_prog_OBJDUMP"; then
12935 ac_ct_OBJDUMP=$OBJDUMP
12936 # Extract the first word of "objdump
", so it can be a program name with args.
12937 set dummy objdump; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12939 $as_echo_n "checking
for $ac_word...
" >&6; }
12940 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12941 $as_echo_n "(cached
) " >&6
12943 if test -n "$ac_ct_OBJDUMP"; then
12944 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12963 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12964 if test -n "$ac_ct_OBJDUMP"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12966 $as_echo "$ac_ct_OBJDUMP" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12969 $as_echo "no
" >&6; }
12972 if test "x
$ac_ct_OBJDUMP" = x; then
12975 case $cross_compiling:$ac_tool_warned in
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12978 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12979 ac_tool_warned=yes ;;
12981 OBJDUMP=$ac_ct_OBJDUMP
12984 OBJDUMP="$ac_cv_prog_OBJDUMP"
12987 test -z "$OBJDUMP" && OBJDUMP=objdump
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12998 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12999 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13000 $as_echo_n "(cached
) " >&6
13002 lt_cv_file_magic_cmd='$MAGIC_CMD'
13003 lt_cv_file_magic_test_file=
13004 lt_cv_deplibs_check_method='unknown'
13005 # Need to set the preceding variable on all platforms that support
13006 # interlibrary dependencies.
13007 # 'none' -- dependencies not supported.
13008 # `unknown' -- same as none, but documents that we really don't know.
13009 # 'pass_all' -- all dependencies passed with no checks.
13010 # 'test_compile' -- check by making test program.
13011 # 'file_magic [[regex]]' -- check by looking for files in library path
13012 # which responds to the $file_magic_cmd with a given extended regex.
13013 # If you have `file' or equivalent on your system and you're not sure
13014 # whether `pass_all' will *always* work, you probably want this one.
13018 lt_cv_deplibs_check_method=pass_all
13022 lt_cv_deplibs_check_method=pass_all
13026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13027 lt_cv_file_magic_cmd='/usr/bin/file -L'
13028 lt_cv_file_magic_test_file=/shlib/libc.so
13032 # func_win32_libid is a shell function defined in ltmain.sh
13033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13034 lt_cv_file_magic_cmd='func_win32_libid'
13038 # Base MSYS/MinGW do not provide the 'file' command needed by
13039 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13040 # unless we find 'file', for example because we are cross-compiling.
13041 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13042 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13043 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13044 lt_cv_file_magic_cmd='func_win32_libid'
13046 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13047 lt_cv_file_magic_cmd='$OBJDUMP -f'
13052 # use the weaker test based on 'objdump'. See mingw*.
13053 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13054 lt_cv_file_magic_cmd='$OBJDUMP -f'
13057 darwin* | rhapsody*)
13058 lt_cv_deplibs_check_method=pass_all
13061 freebsd* | dragonfly*)
13062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13065 # Not sure whether the presence of OpenBSD here was a mistake.
13066 # Let's accept both of them until this is cleared up.
13067 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13068 lt_cv_file_magic_cmd=/usr/bin/file
13069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13073 lt_cv_deplibs_check_method=pass_all
13078 lt_cv_deplibs_check_method=pass_all
13082 lt_cv_deplibs_check_method=pass_all
13085 hpux10.20* | hpux11*)
13086 lt_cv_file_magic_cmd=/usr/bin/file
13089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13093 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]'
13094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13104 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13108 irix5* | irix6* | nonstopux*)
13110 *-32|*"-32 ") libmagic=32-bit;;
13111 *-n32|*"-n32 ") libmagic=N32;;
13112 *-64|*"-64 ") libmagic=64-bit;;
13113 *) libmagic=never-match;;
13115 lt_cv_deplibs_check_method=pass_all
13118 # This must be Linux ELF.
13119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13120 lt_cv_deplibs_check_method=pass_all
13124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13133 lt_cv_file_magic_cmd=/usr/bin/file
13134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13138 lt_cv_deplibs_check_method=pass_all
13142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13149 osf3* | osf4* | osf5*)
13150 lt_cv_deplibs_check_method=pass_all
13154 lt_cv_deplibs_check_method=pass_all
13158 lt_cv_deplibs_check_method=pass_all
13161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162 lt_cv_deplibs_check_method=pass_all
13166 case $host_vendor in
13168 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]'
13169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13172 lt_cv_deplibs_check_method=pass_all
13175 lt_cv_file_magic_cmd='/bin/file'
13176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13179 lt_cv_file_magic_cmd='/bin/file'
13180 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13181 lt_cv_file_magic_test_file=/lib/libc.so
13184 lt_cv_deplibs_check_method=pass_all
13187 lt_cv_deplibs_check_method=pass_all
13193 lt_cv_deplibs_check_method=pass_all
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13199 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13200 file_magic_cmd=$lt_cv_file_magic_cmd
13201 deplibs_check_method=$lt_cv_deplibs_check_method
13202 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13215 if test -n "$ac_tool_prefix"; then
13216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13217 set dummy ${ac_tool_prefix}ar; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13219 $as_echo_n "checking
for $ac_word...
" >&6; }
13220 if test "${ac_cv_prog_AR+set}" = set; then :
13221 $as_echo_n "(cached
) " >&6
13223 if test -n "$AR"; then
13224 ac_cv_prog_AR="$AR" # Let the user override the test.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_prog_AR="${ac_tool_prefix}ar"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13244 if test -n "$AR"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13246 $as_echo "$AR" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13249 $as_echo "no
" >&6; }
13254 if test -z "$ac_cv_prog_AR"; then
13256 # Extract the first word of "ar", so it can be a program name with args.
13257 set dummy ar; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13259 $as_echo_n "checking
for $ac_word...
" >&6; }
13260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13261 $as_echo_n "(cached
) " >&6
13263 if test -n "$ac_ct_AR"; then
13264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273 ac_cv_prog_ac_ct_AR="ar"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13284 if test -n "$ac_ct_AR"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13286 $as_echo "$ac_ct_AR" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13289 $as_echo "no
" >&6; }
13292 if test "x
$ac_ct_AR" = x; then
13295 case $cross_compiling:$ac_tool_warned in
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13298 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13299 ac_tool_warned=yes ;;
13304 AR="$ac_cv_prog_AR"
13307 test -z "$AR" && AR=ar
13308 test -z "$AR_FLAGS" && AR_FLAGS=cru
13320 if test -n "$ac_tool_prefix"; then
13321 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13322 set dummy ${ac_tool_prefix}strip; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13324 $as_echo_n "checking
for $ac_word...
" >&6; }
13325 if test "${ac_cv_prog_STRIP+set}" = set; then :
13326 $as_echo_n "(cached
) " >&6
13328 if test -n "$STRIP"; then
13329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13338 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13348 STRIP=$ac_cv_prog_STRIP
13349 if test -n "$STRIP"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13351 $as_echo "$STRIP" >&6; }
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13354 $as_echo "no
" >&6; }
13359 if test -z "$ac_cv_prog_STRIP"; then
13361 # Extract the first word of "strip
", so it can be a program name with args.
13362 set dummy strip; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13364 $as_echo_n "checking
for $ac_word...
" >&6; }
13365 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13366 $as_echo_n "(cached
) " >&6
13368 if test -n "$ac_ct_STRIP"; then
13369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_ac_ct_STRIP="strip
"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13389 if test -n "$ac_ct_STRIP"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13391 $as_echo "$ac_ct_STRIP" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13394 $as_echo "no
" >&6; }
13397 if test "x
$ac_ct_STRIP" = x; then
13400 case $cross_compiling:$ac_tool_warned in
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13403 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13404 ac_tool_warned=yes ;;
13409 STRIP="$ac_cv_prog_STRIP"
13412 test -z "$STRIP" && STRIP=:
13419 if test -n "$ac_tool_prefix"; then
13420 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13423 $as_echo_n "checking
for $ac_word...
" >&6; }
13424 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13425 $as_echo_n "(cached
) " >&6
13427 if test -n "$RANLIB"; then
13428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13447 RANLIB=$ac_cv_prog_RANLIB
13448 if test -n "$RANLIB"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13450 $as_echo "$RANLIB" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13453 $as_echo "no
" >&6; }
13458 if test -z "$ac_cv_prog_RANLIB"; then
13459 ac_ct_RANLIB=$RANLIB
13460 # Extract the first word of "ranlib
", so it can be a program name with args.
13461 set dummy ranlib; ac_word=$2
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13463 $as_echo_n "checking
for $ac_word...
" >&6; }
13464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13465 $as_echo_n "(cached
) " >&6
13467 if test -n "$ac_ct_RANLIB"; then
13468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13477 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13488 if test -n "$ac_ct_RANLIB"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13490 $as_echo "$ac_ct_RANLIB" >&6; }
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13493 $as_echo "no
" >&6; }
13496 if test "x
$ac_ct_RANLIB" = x; then
13499 case $cross_compiling:$ac_tool_warned in
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13502 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13503 ac_tool_warned=yes ;;
13505 RANLIB=$ac_ct_RANLIB
13508 RANLIB="$ac_cv_prog_RANLIB"
13511 test -z "$RANLIB" && RANLIB=:
13518 # Determine commands to create old-style static archives.
13519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13520 old_postinstall_cmds='chmod 644 $oldlib'
13521 old_postuninstall_cmds=
13523 if test -n "$RANLIB"; then
13526 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13529 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13532 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13537 lock_old_archive_extraction=yes ;;
13539 lock_old_archive_extraction=no ;;
13580 # If no C compiler was specified, use CC.
13583 # If no C compiler flags were specified, use CFLAGS.
13584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13586 # Allow CC to be a program name with arguments.
13590 # Check for command to grab the raw symbol name followed by C symbol from nm.
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13592 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13593 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13594 $as_echo_n "(cached
) " >&6
13597 # These are sane defaults that work on at least a few old systems.
13598 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13600 # Character class describing NM global symbol codes.
13601 symcode='[BCDEGRST]'
13603 # Regexp to match symbols that can be accessed directly from C.
13604 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13606 # Define system-specific variables.
13611 cygwin* | mingw* | pw32* | cegcc*)
13612 symcode='[ABCDGISTW]'
13615 if test "$host_cpu" = ia64; then
13616 symcode='[ABCDEGRST]'
13619 irix* | nonstopux*)
13620 symcode='[BCDEGRST]'
13623 symcode='[BCDEGQRST]'
13634 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13642 # If we're using GNU nm, then use its standard symbol codes.
13643 case `$NM -V 2>&1` in
13644 *GNU* | *'with BFD'*)
13645 symcode='[ABCDGIRSTW]' ;;
13648 # Transform an extracted symbol line into a proper C declaration.
13649 # Some systems (esp. on ia64) link data and code symbols differently,
13650 # so use this general approach.
13651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13653 # Transform an extracted symbol line into symbol name and symbol address
13654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13655 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'"
13657 # Handle CRLF in mingw tool chain
13661 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13665 # Try without a prefix underscore, then with it.
13666 for ac_symprfx in "" "_
"; do
13668 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13669 symxfrm="\\1 $ac_symprfx\\2 \\2"
13671 # Write the raw and C identifiers.
13672 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13673 # Fake it for dumpbin and say T for any non-static function
13674 # and D for any global variable.
13675 # Also find C++ and __fastcall symbols from MSVC++,
13676 # which start with @ or ?.
13677 lt_cv_sys_global_symbol_pipe="$AWK '"\
13678 " {last_section=section; section=\$ 3};"\
13679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13680 " \$ 0!~/External *\|/{next};"\
13681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13682 " {if(hide[section]) next};"\
13683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13687 " ' prfx
=^
$ac_symprfx"
13689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13692 # Check to see that the pipe works correctly.
13696 cat > conftest.$ac_ext <<_LT_EOF
13701 void nm_test_func(void);
13702 void nm_test_func(void){}
13706 int main(){nm_test_var='a';nm_test_func();return(0);}
13709 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13710 (eval $ac_compile) 2>&5
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13713 test $ac_status = 0; }; then
13714 # Now try to grab the symbols.
13716 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13717 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13720 test $ac_status = 0; } && test -s "$nlist"; then
13721 # Try sorting and uniquifying the output.
13722 if sort "$nlist" | uniq > "$nlist"T; then
13723 mv -f "$nlist"T "$nlist"
13728 # Make sure that we snagged all the symbols we need.
13729 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13730 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13731 cat <<_LT_EOF > conftest.$ac_ext
13737 # Now generate the symbol file.
13738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13740 cat <<_LT_EOF >> conftest.$ac_ext
13742 /* The mapping between symbol names and symbols. */
13747 lt__PROGRAM__LTX_preloaded_symbols[] =
13749 { "@PROGRAM@
", (void *) 0 },
13751 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13752 cat <<\_LT_EOF >> conftest.$ac_ext
13756 /* This works around a problem in FreeBSD linker */
13757 #ifdef FREEBSD_WORKAROUND
13758 static const void *lt_preloaded_setup() {
13759 return lt__PROGRAM__LTX_preloaded_symbols;
13767 # Now try linking the two files.
13768 mv conftest.$ac_objext conftstm.$ac_objext
13769 lt_save_LIBS="$LIBS"
13770 lt_save_CFLAGS="$CFLAGS"
13771 LIBS="conftstm.
$ac_objext"
13772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13773 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13774 (eval $ac_link) 2>&5
13776 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13777 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13780 LIBS="$lt_save_LIBS"
13781 CFLAGS="$lt_save_CFLAGS"
13783 echo "cannot
find nm_test_func
in $nlist" >&5
13786 echo "cannot
find nm_test_var
in $nlist" >&5
13789 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13792 echo "$progname: failed program was
:" >&5
13793 cat conftest.$ac_ext >&5
13795 rm -rf conftest* conftst*
13797 # Do not use the global_symbol_pipe unless it works.
13798 if test "$pipe_works" = yes; then
13801 lt_cv_sys_global_symbol_pipe=
13807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13808 lt_cv_sys_global_symbol_to_cdecl=
13810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13812 $as_echo "failed
" >&6; }
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13815 $as_echo "ok
" >&6; }
13839 # Check whether --enable-libtool-lock was given.
13840 if test "${enable_libtool_lock+set}" = set; then :
13841 enableval=$enable_libtool_lock;
13844 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13846 # Some flags need to be propagated to the compiler or linker for good
13850 # Find out which ABI we are using.
13851 echo 'int i;' > conftest.$ac_ext
13852 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853 (eval $ac_compile) 2>&5
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 case `/usr/bin/file conftest.$ac_objext` in
13859 HPUX_IA64_MODE="32"
13862 HPUX_IA64_MODE="64"
13869 # Find out which ABI we are using.
13870 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13871 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13872 (eval $ac_compile) 2>&5
13874 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13875 test $ac_status = 0; }; then
13876 if test "$lt_cv_prog_gnu_ld" = yes; then
13877 case `/usr/bin/file conftest.$ac_objext` in
13879 LD="${LD-ld} -melf32bsmip"
13882 LD="${LD-ld} -melf32bmipn32"
13885 LD="${LD-ld} -melf64bmip"
13889 case `/usr/bin/file conftest.$ac_objext` in
13905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13907 # Find out which ABI we are using.
13908 echo 'int i;' > conftest.$ac_ext
13909 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910 (eval $ac_compile) 2>&5
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13913 test $ac_status = 0; }; then
13914 case `/usr/bin/file conftest.o` in
13917 x86_64-*kfreebsd*-gnu)
13918 LD="${LD-ld} -m elf_i386_fbsd
"
13921 case `/usr/bin/file conftest.o` in
13923 LD="${LD-ld} -m elf32_x86_64
"
13926 LD="${LD-ld} -m elf_i386
"
13930 powerpc64le-*linux*)
13931 LD="${LD-ld} -m elf32lppclinux
"
13934 LD="${LD-ld} -m elf32ppclinux
"
13937 LD="${LD-ld} -m elf_s390
"
13940 LD="${LD-ld} -m elf32_sparc
"
13946 x86_64-*kfreebsd*-gnu)
13947 LD="${LD-ld} -m elf_x86_64_fbsd
"
13950 LD="${LD-ld} -m elf_x86_64
"
13953 LD="${LD-ld} -m elf64lppc
"
13956 LD="${LD-ld} -m elf64ppc
"
13958 s390*-*linux*|s390*-*tpf*)
13959 LD="${LD-ld} -m elf64_s390
"
13962 LD="${LD-ld} -m elf64_sparc
"
13972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13973 SAVE_CFLAGS="$CFLAGS"
13974 CFLAGS="$CFLAGS -belf"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13976 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13977 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13978 $as_echo_n "(cached
) " >&6
13981 ac_cpp='$CPP $CPPFLAGS'
13982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13997 if ac_fn_c_try_link "$LINENO"; then :
13998 lt_cv_cc_needs_belf=yes
14000 lt_cv_cc_needs_belf=no
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14005 ac_cpp='$CPP $CPPFLAGS'
14006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14012 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14013 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14014 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14015 CFLAGS="$SAVE_CFLAGS"
14019 # Find out which ABI we are using.
14020 echo 'int i;' > conftest.$ac_ext
14021 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14022 (eval $ac_compile) 2>&5
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14025 test $ac_status = 0; }; then
14026 case `/usr/bin/file conftest.o` in
14028 case $lt_cv_prog_gnu_ld in
14029 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14043 need_locks="$enable_libtool_lock"
14047 rhapsody* | darwin*)
14048 if test -n "$ac_tool_prefix"; then
14049 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14050 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14052 $as_echo_n "checking
for $ac_word...
" >&6; }
14053 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14054 $as_echo_n "(cached
) " >&6
14056 if test -n "$DSYMUTIL"; then
14057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14076 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14077 if test -n "$DSYMUTIL"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14079 $as_echo "$DSYMUTIL" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14082 $as_echo "no
" >&6; }
14087 if test -z "$ac_cv_prog_DSYMUTIL"; then
14088 ac_ct_DSYMUTIL=$DSYMUTIL
14089 # Extract the first word of "dsymutil
", so it can be a program name with args.
14090 set dummy dsymutil; ac_word=$2
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14092 $as_echo_n "checking
for $ac_word...
" >&6; }
14093 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14094 $as_echo_n "(cached
) " >&6
14096 if test -n "$ac_ct_DSYMUTIL"; then
14097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 for as_dir in $PATH
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14116 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14117 if test -n "$ac_ct_DSYMUTIL"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14119 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14122 $as_echo "no
" >&6; }
14125 if test "x
$ac_ct_DSYMUTIL" = x; then
14128 case $cross_compiling:$ac_tool_warned in
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14131 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14132 ac_tool_warned=yes ;;
14134 DSYMUTIL=$ac_ct_DSYMUTIL
14137 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14140 if test -n "$ac_tool_prefix"; then
14141 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14142 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14144 $as_echo_n "checking
for $ac_word...
" >&6; }
14145 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14146 $as_echo_n "(cached
) " >&6
14148 if test -n "$NMEDIT"; then
14149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14168 NMEDIT=$ac_cv_prog_NMEDIT
14169 if test -n "$NMEDIT"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14171 $as_echo "$NMEDIT" >&6; }
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14174 $as_echo "no
" >&6; }
14179 if test -z "$ac_cv_prog_NMEDIT"; then
14180 ac_ct_NMEDIT=$NMEDIT
14181 # Extract the first word of "nmedit
", so it can be a program name with args.
14182 set dummy nmedit; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14184 $as_echo_n "checking
for $ac_word...
" >&6; }
14185 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14186 $as_echo_n "(cached
) " >&6
14188 if test -n "$ac_ct_NMEDIT"; then
14189 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14198 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14208 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14209 if test -n "$ac_ct_NMEDIT"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14211 $as_echo "$ac_ct_NMEDIT" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14214 $as_echo "no
" >&6; }
14217 if test "x
$ac_ct_NMEDIT" = x; then
14220 case $cross_compiling:$ac_tool_warned in
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14223 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14224 ac_tool_warned=yes ;;
14226 NMEDIT=$ac_ct_NMEDIT
14229 NMEDIT="$ac_cv_prog_NMEDIT"
14232 if test -n "$ac_tool_prefix"; then
14233 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14234 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14236 $as_echo_n "checking
for $ac_word...
" >&6; }
14237 if test "${ac_cv_prog_LIPO+set}" = set; then :
14238 $as_echo_n "(cached
) " >&6
14240 if test -n "$LIPO"; then
14241 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14250 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14251 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14260 LIPO=$ac_cv_prog_LIPO
14261 if test -n "$LIPO"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14263 $as_echo "$LIPO" >&6; }
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14266 $as_echo "no
" >&6; }
14271 if test -z "$ac_cv_prog_LIPO"; then
14273 # Extract the first word of "lipo
", so it can be a program name with args.
14274 set dummy lipo; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14276 $as_echo_n "checking
for $ac_word...
" >&6; }
14277 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14278 $as_echo_n "(cached
) " >&6
14280 if test -n "$ac_ct_LIPO"; then
14281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14290 ac_cv_prog_ac_ct_LIPO="lipo
"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14300 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14301 if test -n "$ac_ct_LIPO"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14303 $as_echo "$ac_ct_LIPO" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14306 $as_echo "no
" >&6; }
14309 if test "x
$ac_ct_LIPO" = x; then
14312 case $cross_compiling:$ac_tool_warned in
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14315 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14316 ac_tool_warned=yes ;;
14321 LIPO="$ac_cv_prog_LIPO"
14324 if test -n "$ac_tool_prefix"; then
14325 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14326 set dummy ${ac_tool_prefix}otool; ac_word=$2
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14328 $as_echo_n "checking
for $ac_word...
" >&6; }
14329 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14330 $as_echo_n "(cached
) " >&6
14332 if test -n "$OTOOL"; then
14333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14342 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14352 OTOOL=$ac_cv_prog_OTOOL
14353 if test -n "$OTOOL"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14355 $as_echo "$OTOOL" >&6; }
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14358 $as_echo "no
" >&6; }
14363 if test -z "$ac_cv_prog_OTOOL"; then
14365 # Extract the first word of "otool
", so it can be a program name with args.
14366 set dummy otool; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14368 $as_echo_n "checking
for $ac_word...
" >&6; }
14369 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14370 $as_echo_n "(cached
) " >&6
14372 if test -n "$ac_ct_OTOOL"; then
14373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_ac_ct_OTOOL="otool
"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14392 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14393 if test -n "$ac_ct_OTOOL"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14395 $as_echo "$ac_ct_OTOOL" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14398 $as_echo "no
" >&6; }
14401 if test "x
$ac_ct_OTOOL" = x; then
14404 case $cross_compiling:$ac_tool_warned in
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14407 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14408 ac_tool_warned=yes ;;
14413 OTOOL="$ac_cv_prog_OTOOL"
14416 if test -n "$ac_tool_prefix"; then
14417 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14420 $as_echo_n "checking
for $ac_word...
" >&6; }
14421 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14422 $as_echo_n "(cached
) " >&6
14424 if test -n "$OTOOL64"; then
14425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14431 test -z "$as_dir" && as_dir=.
14432 for ac_exec_ext in '' $ac_executable_extensions; do
14433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14435 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14444 OTOOL64=$ac_cv_prog_OTOOL64
14445 if test -n "$OTOOL64"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14447 $as_echo "$OTOOL64" >&6; }
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14450 $as_echo "no
" >&6; }
14455 if test -z "$ac_cv_prog_OTOOL64"; then
14456 ac_ct_OTOOL64=$OTOOL64
14457 # Extract the first word of "otool64
", so it can be a program name with args.
14458 set dummy otool64; ac_word=$2
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14460 $as_echo_n "checking
for $ac_word...
" >&6; }
14461 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14462 $as_echo_n "(cached
) " >&6
14464 if test -n "$ac_ct_OTOOL64"; then
14465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14468 for as_dir in $PATH
14471 test -z "$as_dir" && as_dir=.
14472 for ac_exec_ext in '' $ac_executable_extensions; do
14473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14474 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14475 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14485 if test -n "$ac_ct_OTOOL64"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14487 $as_echo "$ac_ct_OTOOL64" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14490 $as_echo "no
" >&6; }
14493 if test "x
$ac_ct_OTOOL64" = x; then
14496 case $cross_compiling:$ac_tool_warned in
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14499 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14500 ac_tool_warned=yes ;;
14502 OTOOL64=$ac_ct_OTOOL64
14505 OTOOL64="$ac_cv_prog_OTOOL64"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14535 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14536 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14537 $as_echo_n "(cached
) " >&6
14539 lt_cv_apple_cc_single_mod=no
14540 if test -z "${LT_MULTI_MODULE}"; then
14541 # By default we will add the -single_module flag. You can override
14542 # by either setting the environment variable LT_MULTI_MODULE
14543 # non-empty at configure time, or by adding -multi_module to the
14545 rm -rf libconftest.dylib*
14546 echo "int foo
(void
){return 1;}" > conftest.c
14547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14548 -dynamiclib -Wl,-single_module conftest.c
" >&5
14549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14552 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14553 lt_cv_apple_cc_single_mod=yes
14555 cat conftest.err >&5
14557 rm -rf libconftest.dylib*
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14562 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14564 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14565 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14566 $as_echo_n "(cached
) " >&6
14568 lt_cv_ld_exported_symbols_list=no
14569 save_LDFLAGS=$LDFLAGS
14570 echo "_main
" > conftest.sym
14571 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14583 if ac_fn_c_try_link "$LINENO"; then :
14584 lt_cv_ld_exported_symbols_list=yes
14586 lt_cv_ld_exported_symbols_list=no
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14590 LDFLAGS="$save_LDFLAGS"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14594 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14596 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14597 if test "${lt_cv_ld_force_load+set}" = set; then :
14598 $as_echo_n "(cached
) " >&6
14600 lt_cv_ld_force_load=no
14601 cat > conftest.c << _LT_EOF
14602 int forced_loaded() { return 2;}
14604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14606 echo "$AR cru libconftest.a conftest.o
" >&5
14607 $AR cru libconftest.a conftest.o 2>&5
14608 cat > conftest.c << _LT_EOF
14609 int main() { return 0;}
14611 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14612 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14614 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14615 lt_cv_ld_force_load=yes
14617 cat conftest.err >&5
14619 rm -f conftest.err libconftest.a conftest conftest.c
14620 rm -rf conftest.dSYM
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14624 $as_echo "$lt_cv_ld_force_load" >&6; }
14626 rhapsody* | darwin1.[012])
14627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14630 darwin*) # darwin 5.x on
14631 # if running on 10.5 or later, the deployment target defaults
14632 # to the OS version, if on x86, and 10.4, the deployment
14633 # target defaults to 10.4. Don't you love it?
14634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14645 _lt_dar_single_mod='$single_module'
14647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14652 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14653 _lt_dsymutil='~$DSYMUTIL $lib || :'
14660 for ac_header in dlfcn.h
14662 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14663 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_DLFCN_H 1
14682 enable_win32_dll=no
14685 # Check whether --enable-shared was given.
14686 if test "${enable_shared+set}" = set; then :
14687 enableval=$enable_shared; p=${PACKAGE-default}
14689 yes) enable_shared=yes ;;
14690 no) enable_shared=no ;;
14693 # Look at the argument we got. We use all the common list separators.
14694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14695 for pkg in $enableval; do
14697 if test "X
$pkg" = "X
$p"; then
14716 # Check whether --enable-static was given.
14717 if test "${enable_static+set}" = set; then :
14718 enableval=$enable_static; p=${PACKAGE-default}
14720 yes) enable_static=yes ;;
14721 no) enable_static=no ;;
14724 # Look at the argument we got. We use all the common list separators.
14725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14726 for pkg in $enableval; do
14728 if test "X
$pkg" = "X
$p"; then
14748 # Check whether --with-pic was given.
14749 if test "${with_pic+set}" = set; then :
14750 withval=$with_pic; pic_mode="$withval"
14756 test -z "$pic_mode" && pic_mode=default
14764 # Check whether --enable-fast-install was given.
14765 if test "${enable_fast_install+set}" = set; then :
14766 enableval=$enable_fast_install; p=${PACKAGE-default}
14768 yes) enable_fast_install=yes ;;
14769 no) enable_fast_install=no ;;
14771 enable_fast_install=no
14772 # Look at the argument we got. We use all the common list separators.
14773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14774 for pkg in $enableval; do
14776 if test "X
$pkg" = "X
$p"; then
14777 enable_fast_install=yes
14784 enable_fast_install=yes
14797 # This can be used to rebuild libtool when needed
14798 LIBTOOL_DEPS="$ltmain"
14800 # Always use our own libtool.
14801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14828 test -z "$LN_S" && LN_S="ln -s"
14843 if test -n "${ZSH_VERSION+set}" ; then
14844 setopt NO_GLOB_SUBST
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14848 $as_echo_n "checking
for objdir...
" >&6; }
14849 if test "${lt_cv_objdir+set}" = set; then :
14850 $as_echo_n "(cached
) " >&6
14852 rm -f .libs 2>/dev/null
14853 mkdir .libs 2>/dev/null
14854 if test -d .libs; then
14857 # MS-DOS does not allow filenames that begin with a dot.
14860 rmdir .libs 2>/dev/null
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14863 $as_echo "$lt_cv_objdir" >&6; }
14864 objdir=$lt_cv_objdir
14870 cat >>confdefs.h <<_ACEOF
14871 #define LT_OBJDIR "$lt_cv_objdir/"
14879 # AIX sometimes has problems with the GCC collect2 program. For some
14880 # reason, if we set the COLLECT_NAMES environment variable, the problems
14881 # vanish in a puff of smoke.
14882 if test "X
${COLLECT_NAMES+set}" != Xset; then
14884 export COLLECT_NAMES
14889 # Global variables:
14891 can_build_shared=yes
14893 # All known linkers require a `.a' archive for static linking (except MSVC,
14894 # which needs '.lib').
14897 with_gnu_ld="$lt_cv_prog_gnu_ld"
14900 old_CFLAGS="$CFLAGS"
14902 # Set sane defaults for various variables
14903 test -z "$CC" && CC=cc
14904 test -z "$LTCC" && LTCC=$CC
14905 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14906 test -z "$LD" && LD=ld
14907 test -z "$ac_objext" && ac_objext=o
14909 for cc_temp in $compiler""; do
14911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14917 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14920 # Only perform the check for file, if the check method requires it
14921 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14922 case $deplibs_check_method in
14924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14926 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14927 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14928 $as_echo_n "(cached
) " >&6
14932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14935 lt_save_MAGIC_CMD="$MAGIC_CMD"
14936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14937 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14938 for ac_dir in $ac_dummy; do
14940 test -z "$ac_dir" && ac_dir=.
14941 if test -f $ac_dir/${ac_tool_prefix}file; then
14942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14943 if test -n "$file_magic_test_file"; then
14944 case $deplibs_check_method in
14946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14949 $EGREP "$file_magic_regex" > /dev/null; then
14954 *** Warning: the command libtool uses to detect shared libraries,
14955 *** $file_magic_cmd, produces output that libtool cannot recognize.
14956 *** The result is that libtool may fail to recognize shared libraries
14957 *** as such. This will affect the creation of libtool libraries that
14958 *** depend on shared libraries, but programs linked with such libtool
14959 *** libraries will work regardless of this problem. Nevertheless, you
14960 *** may want to report the problem to your system manager and/or to
14961 *** bug-libtool@gnu.org
14971 MAGIC_CMD="$lt_save_MAGIC_CMD"
14976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14977 if test -n "$MAGIC_CMD"; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14979 $as_echo "$MAGIC_CMD" >&6; }
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14982 $as_echo "no
" >&6; }
14989 if test -z "$lt_cv_path_MAGIC_CMD"; then
14990 if test -n "$ac_tool_prefix"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14992 $as_echo_n "checking
for file...
" >&6; }
14993 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14994 $as_echo_n "(cached
) " >&6
14998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15001 lt_save_MAGIC_CMD="$MAGIC_CMD"
15002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15003 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15004 for ac_dir in $ac_dummy; do
15006 test -z "$ac_dir" && ac_dir=.
15007 if test -f $ac_dir/file; then
15008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15009 if test -n "$file_magic_test_file"; then
15010 case $deplibs_check_method in
15012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15015 $EGREP "$file_magic_regex" > /dev/null; then
15020 *** Warning: the command libtool uses to detect shared libraries,
15021 *** $file_magic_cmd, produces output that libtool cannot recognize.
15022 *** The result is that libtool may fail to recognize shared libraries
15023 *** as such. This will affect the creation of libtool libraries that
15024 *** depend on shared libraries, but programs linked with such libtool
15025 *** libraries will work regardless of this problem. Nevertheless, you
15026 *** may want to report the problem to your system manager and/or to
15027 *** bug-libtool@gnu.org
15037 MAGIC_CMD="$lt_save_MAGIC_CMD"
15042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15043 if test -n "$MAGIC_CMD"; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15045 $as_echo "$MAGIC_CMD" >&6; }
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15048 $as_echo "no
" >&6; }
15061 # Use C for the default configuration in the libtool script
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15071 # Source file extension for C test sources.
15074 # Object file extension for compiled C test sources.
15078 # Code to be used in simple compile tests
15079 lt_simple_compile_test_code="int some_variable
= 0;"
15081 # Code to be used in simple link tests
15082 lt_simple_link_test_code='int main(){return(0);}'
15090 # If no C compiler was specified, use CC.
15093 # If no C compiler flags were specified, use CFLAGS.
15094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15096 # Allow CC to be a program name with arguments.
15099 # Save the default compiler, since it gets overwritten when the other
15100 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15101 compiler_DEFAULT=$CC
15103 # save warnings/boilerplate of simple test code
15104 ac_outfile=conftest.$ac_objext
15105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15107 _lt_compiler_boilerplate=`cat conftest.err`
15110 ac_outfile=conftest.$ac_objext
15111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15113 _lt_linker_boilerplate=`cat conftest.err`
15118 ## There is no encapsulation within the following macros, do not change
15119 ## the running order or otherwise move them around unless you know exactly
15120 ## what you are doing...
15121 if test -n "$compiler"; then
15123 lt_prog_compiler_no_builtin_flag=
15125 if test "$GCC" = yes; then
15126 case $cc_basename in
15128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15134 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15135 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15136 $as_echo_n "(cached
) " >&6
15138 lt_cv_prog_compiler_rtti_exceptions=no
15139 ac_outfile=conftest.$ac_objext
15140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15141 lt_compiler_flag="-fno-rtti -fno-exceptions"
15142 # Insert the option either (1) after the last *FLAGS variable, or
15143 # (2) before a word containing "conftest.
", or (3) at the end.
15144 # Note that $ac_compile itself does not contain backslashes and begins
15145 # with a dollar sign (not a hyphen), so the echo should work correctly.
15146 # The option is referenced via a variable to avoid confusing sed.
15147 lt_compile=`echo "$ac_compile" | $SED \
15148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15150 -e 's:$: $lt_compiler_flag:'`
15151 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15152 (eval "$lt_compile" 2>conftest.err)
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15156 if (exit $ac_status) && test -s "$ac_outfile"; then
15157 # The compiler can only warn and ignore the option if not recognized
15158 # So say no if there are warnings other than the usual output.
15159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15162 lt_cv_prog_compiler_rtti_exceptions=yes
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15169 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15184 lt_prog_compiler_wl=
15185 lt_prog_compiler_pic=
15186 lt_prog_compiler_static=
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15189 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15191 if test "$GCC" = yes; then
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_static='-static'
15197 # All AIX code is PIC.
15198 if test "$host_cpu" = ia64; then
15199 # AIX 5 now supports IA64 processor
15200 lt_prog_compiler_static='-Bstatic'
15202 lt_prog_compiler_pic='-fPIC'
15208 # see comment about AmigaOS4 .so support
15209 lt_prog_compiler_pic='-fPIC'
15212 # FIXME: we need at least 68020 code to build shared libraries, but
15213 # adding the `-m68020' flag to GCC prevents building anything better,
15215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15221 # PIC is the default for these OSes.
15224 mingw* | cygwin* | pw32* | os2* | cegcc*)
15225 # This hack is so that the source file can tell whether it is being
15226 # built for inclusion in a dll (and should export symbols for example).
15227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15228 # (--disable-auto-import) libraries
15229 lt_prog_compiler_pic='-DDLL_EXPORT'
15232 darwin* | rhapsody*)
15233 # PIC is the default on this platform
15234 # Common symbols not allowed in MH_DYLIB files
15235 lt_prog_compiler_pic='-fno-common'
15239 # PIC is the default for Haiku.
15240 # The "-static" flag exists, but is broken.
15241 lt_prog_compiler_static=
15245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15247 # sets the default TLS model and affects inlining.
15253 lt_prog_compiler_pic='-fPIC'
15259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15260 # Instead, we relocate shared libraries at runtime.
15264 # Just because we use GCC doesn't mean we suddenly get shared libraries
15265 # on systems that don't support them.
15266 lt_prog_compiler_can_build_shared=no
15271 # QNX uses GNU C++, but need to define -shared option too, otherwise
15272 # it will coredump.
15273 lt_prog_compiler_pic='-fPIC -shared'
15277 if test -d /usr/nec; then
15278 lt_prog_compiler_pic=-Kconform_pic
15283 lt_prog_compiler_pic='-fPIC'
15287 case $cc_basename in
15288 nvcc*) # Cuda Compiler Driver 2.2
15289 lt_prog_compiler_wl='-Xlinker '
15290 lt_prog_compiler_pic='-Xcompiler -fPIC'
15294 # PORTME Check for flag to pass linker flags through the system compiler.
15297 lt_prog_compiler_wl='-Wl,'
15298 if test "$host_cpu" = ia64; then
15299 # AIX 5 now supports IA64 processor
15300 lt_prog_compiler_static='-Bstatic'
15302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15306 mingw* | cygwin* | pw32* | os2* | cegcc*)
15307 # This hack is so that the source file can tell whether it is being
15308 # built for inclusion in a dll (and should export symbols for example).
15309 lt_prog_compiler_pic='-DDLL_EXPORT'
15312 hpux9* | hpux10* | hpux11*)
15313 lt_prog_compiler_wl='-Wl,'
15314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15315 # not for PA HP-UX.
15321 lt_prog_compiler_pic='+Z'
15324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15325 lt_prog_compiler_static='${wl}-a ${wl}archive'
15328 irix5* | irix6* | nonstopux*)
15329 lt_prog_compiler_wl='-Wl,'
15330 # PIC (with -KPIC) is the default.
15331 lt_prog_compiler_static='-non_shared'
15334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15335 case $cc_basename in
15336 # old Intel for x86_64 which still supported -KPIC.
15338 lt_prog_compiler_wl='-Wl,'
15339 lt_prog_compiler_pic='-KPIC'
15340 lt_prog_compiler_static='-static'
15342 # icc used to be incompatible with GCC.
15343 # ICC 10 doesn't accept -KPIC any more.
15345 lt_prog_compiler_wl='-Wl,'
15346 lt_prog_compiler_pic='-fPIC'
15347 lt_prog_compiler_static='-static'
15349 # Lahey Fortran 8.1.
15351 lt_prog_compiler_wl='-Wl,'
15352 lt_prog_compiler_pic='--shared'
15353 lt_prog_compiler_static='--static'
15355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15356 # Portland Group compilers (*not* the Pentium gcc compiler,
15357 # which looks to be a dead project)
15358 lt_prog_compiler_wl='-Wl,'
15359 lt_prog_compiler_pic='-fpic'
15360 lt_prog_compiler_static='-Bstatic'
15363 lt_prog_compiler_wl='-Wl,'
15364 # All Alpha code is PIC.
15365 lt_prog_compiler_static='-non_shared'
15367 xl* | bgxl* | bgf* | mpixl*)
15368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15369 lt_prog_compiler_wl='-Wl,'
15370 lt_prog_compiler_pic='-qpic'
15371 lt_prog_compiler_static='-qstaticlink'
15374 case `$CC -V 2>&1 | sed 5q` in
15375 *Sun\ F* | *Sun*Fortran*)
15376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15377 lt_prog_compiler_pic='-KPIC'
15378 lt_prog_compiler_static='-Bstatic'
15379 lt_prog_compiler_wl=''
15383 lt_prog_compiler_pic='-KPIC'
15384 lt_prog_compiler_static='-Bstatic'
15385 lt_prog_compiler_wl='-Wl,'
15393 lt_prog_compiler_pic='-KPIC'
15394 lt_prog_compiler_static='-Bstatic'
15398 # QNX uses GNU C++, but need to define -shared option too, otherwise
15399 # it will coredump.
15400 lt_prog_compiler_pic='-fPIC -shared'
15403 osf3* | osf4* | osf5*)
15404 lt_prog_compiler_wl='-Wl,'
15405 # All OSF/1 code is PIC.
15406 lt_prog_compiler_static='-non_shared'
15410 lt_prog_compiler_static='-non_shared'
15414 lt_prog_compiler_pic='-KPIC'
15415 lt_prog_compiler_static='-Bstatic'
15416 case $cc_basename in
15417 f77* | f90* | f95*)
15418 lt_prog_compiler_wl='-Qoption ld ';;
15420 lt_prog_compiler_wl='-Wl,';;
15425 lt_prog_compiler_wl='-Qoption ld '
15426 lt_prog_compiler_pic='-PIC'
15427 lt_prog_compiler_static='-Bstatic'
15430 sysv4 | sysv4.2uw2* | sysv4.3*)
15431 lt_prog_compiler_wl='-Wl,'
15432 lt_prog_compiler_pic='-KPIC'
15433 lt_prog_compiler_static='-Bstatic'
15437 if test -d /usr/nec ;then
15438 lt_prog_compiler_pic='-Kconform_pic'
15439 lt_prog_compiler_static='-Bstatic'
15443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15444 lt_prog_compiler_wl='-Wl,'
15445 lt_prog_compiler_pic='-KPIC'
15446 lt_prog_compiler_static='-Bstatic'
15450 lt_prog_compiler_wl='-Wl,'
15451 lt_prog_compiler_can_build_shared=no
15455 lt_prog_compiler_pic='-pic'
15456 lt_prog_compiler_static='-Bstatic'
15460 lt_prog_compiler_can_build_shared=no
15466 # For platforms which do not support PIC, -DPIC is meaningless:
15468 lt_prog_compiler_pic=
15471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15475 $as_echo "$lt_prog_compiler_pic" >&6; }
15483 # Check to make sure the PIC flag actually works.
15485 if test -n "$lt_prog_compiler_pic"; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15487 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15488 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15489 $as_echo_n "(cached
) " >&6
15491 lt_cv_prog_compiler_pic_works=no
15492 ac_outfile=conftest.$ac_objext
15493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15494 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15495 # Insert the option either (1) after the last *FLAGS variable, or
15496 # (2) before a word containing "conftest.
", or (3) at the end.
15497 # Note that $ac_compile itself does not contain backslashes and begins
15498 # with a dollar sign (not a hyphen), so the echo should work correctly.
15499 # The option is referenced via a variable to avoid confusing sed.
15500 lt_compile=`echo "$ac_compile" | $SED \
15501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15503 -e 's:$: $lt_compiler_flag:'`
15504 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15505 (eval "$lt_compile" 2>conftest.err)
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15509 if (exit $ac_status) && test -s "$ac_outfile"; then
15510 # The compiler can only warn and ignore the option if not recognized
15511 # So say no if there are warnings other than the usual output.
15512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15515 lt_cv_prog_compiler_pic_works=yes
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15522 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15524 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15525 case $lt_prog_compiler_pic in
15527 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15530 lt_prog_compiler_pic=
15531 lt_prog_compiler_can_build_shared=no
15542 # Check to make sure the static flag actually works.
15544 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15546 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15547 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15548 $as_echo_n "(cached
) " >&6
15550 lt_cv_prog_compiler_static_works=no
15551 save_LDFLAGS="$LDFLAGS"
15552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555 # The linker can only warn and ignore the option if not recognized
15556 # So say no if there are warnings
15557 if test -s conftest.err; then
15558 # Append any errors to the config.log.
15559 cat conftest.err 1>&5
15560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562 if diff conftest.exp conftest.er2 >/dev/null; then
15563 lt_cv_prog_compiler_static_works=yes
15566 lt_cv_prog_compiler_static_works=yes
15570 LDFLAGS="$save_LDFLAGS"
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15574 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15576 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15579 lt_prog_compiler_static=
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15589 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15590 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15591 $as_echo_n "(cached
) " >&6
15593 lt_cv_prog_compiler_c_o=no
15594 $RM -r conftest 2>/dev/null
15598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15600 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15601 # Insert the option either (1) after the last *FLAGS variable, or
15602 # (2) before a word containing "conftest.
", or (3) at the end.
15603 # Note that $ac_compile itself does not contain backslashes and begins
15604 # with a dollar sign (not a hyphen), so the echo should work correctly.
15605 lt_compile=`echo "$ac_compile" | $SED \
15606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608 -e 's:$: $lt_compiler_flag:'`
15609 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15610 (eval "$lt_compile" 2>out/conftest.err)
15612 cat out/conftest.err >&5
15613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15616 # The compiler can only warn and ignore the option if not recognized
15617 # So say no if there are warnings
15618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15621 lt_cv_prog_compiler_c_o=yes
15626 # SGI C++ compiler will create directory out/ii_files/ for
15627 # template instantiation
15628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15629 $RM out/* && rmdir out
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15644 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15645 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15646 $as_echo_n "(cached
) " >&6
15648 lt_cv_prog_compiler_c_o=no
15649 $RM -r conftest 2>/dev/null
15653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15655 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15656 # Insert the option either (1) after the last *FLAGS variable, or
15657 # (2) before a word containing "conftest.
", or (3) at the end.
15658 # Note that $ac_compile itself does not contain backslashes and begins
15659 # with a dollar sign (not a hyphen), so the echo should work correctly.
15660 lt_compile=`echo "$ac_compile" | $SED \
15661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15663 -e 's:$: $lt_compiler_flag:'`
15664 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15665 (eval "$lt_compile" 2>out/conftest.err)
15667 cat out/conftest.err >&5
15668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15671 # The compiler can only warn and ignore the option if not recognized
15672 # So say no if there are warnings
15673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15676 lt_cv_prog_compiler_c_o=yes
15681 # SGI C++ compiler will create directory out/ii_files/ for
15682 # template instantiation
15683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15684 $RM out/* && rmdir out
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15691 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15696 hard_links="nottested
"
15697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15698 # do not overwrite the value of need_locks provided by the user
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15700 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15705 ln conftest.a conftest.b 2>&5 || hard_links=no
15706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15708 $as_echo "$hard_links" >&6; }
15709 if test "$hard_links" = no; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15711 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15724 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15727 allow_undefined_flag=
15728 always_export_symbols=no
15730 archive_expsym_cmds=
15731 compiler_needs_object=no
15732 enable_shared_with_static_runtimes=no
15733 export_dynamic_flag_spec=
15734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15735 hardcode_automatic=no
15737 hardcode_direct_absolute=no
15738 hardcode_libdir_flag_spec=
15739 hardcode_libdir_flag_spec_ld=
15740 hardcode_libdir_separator=
15741 hardcode_minus_L=no
15742 hardcode_shlibpath_var=unsupported
15744 link_all_deplibs=unknown
15746 module_expsym_cmds=
15747 old_archive_from_new_cmds=
15748 old_archive_from_expsyms_cmds=
15749 thread_safe_flag_spec=
15750 whole_archive_flag_spec=
15751 # include_expsyms should be a list of space-separated symbols to be *always*
15752 # included in the symbol list
15754 # exclude_expsyms can be an extended regexp of symbols to exclude
15755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15757 # as well as any symbol that contains `d'.
15758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15760 # platforms (ab)use it in PIC code, but their linkers get confused if
15761 # the symbol is explicitly referenced. Since portable code cannot
15762 # rely on this symbol name, it's probably fine to never include it in
15763 # preloaded symbol tables.
15764 # Exclude shared library initialization/finalization symbols.
15765 extract_expsyms_cmds=
15768 cygwin* | mingw* | pw32* | cegcc*)
15769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15770 # When not using gcc, we currently assume that we are using
15771 # Microsoft Visual C++.
15772 if test "$GCC" != yes; then
15777 # we just hope/assume this is gcc and not c89 (= MSVC++)
15787 # On some targets, GNU ld is compatible enough with the native linker
15788 # that we're better off using the native interface for both.
15789 lt_use_gnu_ld_interface=no
15790 if test "$with_gnu_ld" = yes; then
15793 # The AIX port of GNU ld has always aspired to compatibility
15794 # with the native linker. However, as the warning in the GNU ld
15795 # block says, versions before 2.19.5* couldn't really create working
15796 # shared libraries, regardless of the interface used.
15797 case `$LD -v 2>&1` in
15798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15802 lt_use_gnu_ld_interface=yes
15807 lt_use_gnu_ld_interface=yes
15812 if test "$lt_use_gnu_ld_interface" = yes; then
15813 # If archive_cmds runs LD, not CC, wlarc should be empty
15816 # Set some defaults for GNU ld with shared library support. These
15817 # are reset later if shared libraries are not supported. Putting them
15818 # here allows them to be overridden if necessary.
15819 runpath_var=LD_RUN_PATH
15820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15821 export_dynamic_flag_spec='${wl}--export-dynamic'
15822 # ancient GNU ld didn't support --whole-archive et. al.
15823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15826 whole_archive_flag_spec=
15828 supports_anon_versioning=no
15829 case `$LD -v 2>&1` in
15830 *GNU\ gold*) supports_anon_versioning=yes ;;
15831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15834 *\ 2.11.*) ;; # other 2.11 versions
15835 *) supports_anon_versioning=yes ;;
15838 # See if GNU ld supports shared libraries.
15841 # On AIX/PPC, the GNU linker is very broken
15842 if test "$host_cpu" != ia64; then
15846 *** Warning: the GNU linker, at least up to release 2.19, is reported
15847 *** to be unable to reliably create shared libraries on AIX.
15848 *** Therefore, libtool is disabling shared libraries support. If you
15849 *** really care for shared libraries, you may want to install binutils
15850 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15851 *** You will then need to restart the configuration process.
15860 # see comment about AmigaOS4 .so support
15861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15862 archive_expsym_cmds=''
15865 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)'
15866 hardcode_libdir_flag_spec
='-L$libdir'
15867 hardcode_minus_L
=yes
15873 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15874 allow_undefined_flag
=unsupported
15875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15876 # support --undefined. This deserves some investigation. FIXME
15877 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883 cygwin
* | mingw
* | pw32
* | cegcc
*)
15884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15885 # as there is no search path for DLLs.
15886 hardcode_libdir_flag_spec
='-L$libdir'
15887 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15888 allow_undefined_flag
=unsupported
15889 always_export_symbols
=no
15890 enable_shared_with_static_runtimes
=yes
15891 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15893 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15894 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15895 # If the export-symbols file already is a .def file (1st line
15896 # is EXPORTS), use it as is; otherwise, prepend...
15897 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15898 cp $export_symbols $output_objdir/$soname.def;
15900 echo EXPORTS > $output_objdir/$soname.def;
15901 cat $export_symbols >> $output_objdir/$soname.def;
15903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15910 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15911 link_all_deplibs
=yes
15916 hardcode_shlibpath_var
=no
15917 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15918 export_dynamic_flag_spec
='${wl}-E'
15919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15920 # Instead, shared libraries are loaded at an image base (0x10000000 by
15921 # default) and relocated if they conflict, which is a slow very memory
15922 # consuming and fragmenting process. To avoid this, we pick a random,
15923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15925 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15926 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'
15929 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15931 if test "$host_os" = linux-dietlibc
; then
15932 case $cc_basename in
15933 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15936 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15937 && test "$tmp_diet" = no
15939 tmp_addflag
=' $pic_flag'
15940 tmp_sharedflag
='-shared'
15941 case $cc_basename,$host_cpu in
15942 pgcc
*) # Portland Group C compiler
15943 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'
15944 tmp_addflag
=' $pic_flag'
15946 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15947 # Portland Group f77 and f90 compilers
15948 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'
15949 tmp_addflag
=' $pic_flag -Mnomain' ;;
15950 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15951 tmp_addflag
=' -i_dynamic' ;;
15952 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15953 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15954 ifc
* | ifort
*) # Intel Fortran compiler
15955 tmp_addflag
=' -nofor_main' ;;
15956 lf95
*) # Lahey Fortran 8.1
15957 whole_archive_flag_spec
=
15958 tmp_sharedflag
='--shared' ;;
15959 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15960 tmp_sharedflag
='-qmkshrobj'
15962 nvcc
*) # Cuda Compiler Driver 2.2
15963 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'
15964 compiler_needs_object
=yes
15967 case `$CC -V 2>&1 | sed 5q` in
15968 *Sun\ C
*) # Sun C 5.9
15969 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'
15970 compiler_needs_object
=yes
15971 tmp_sharedflag
='-G' ;;
15972 *Sun\ F
*) # Sun Fortran 8.3
15973 tmp_sharedflag
='-G' ;;
15975 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977 if test "x$supports_anon_versioning" = xyes
; then
15978 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 echo "local: *; };" >> $output_objdir/$libname.ver~
15981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15984 case $cc_basename in
15985 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15987 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15988 hardcode_libdir_flag_spec
=
15989 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15990 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15991 if test "x$supports_anon_versioning" = xyes
; then
15992 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15994 echo "local: *; };" >> $output_objdir/$libname.ver~
15995 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16005 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16006 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16009 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16010 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16015 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16020 *** create shared libraries on Solaris systems. Therefore, libtool
16021 *** is disabling shared libraries support. We urge you to upgrade GNU
16022 *** binutils to release 2.9.1 or newer. Another option is to modify
16023 *** your PATH or compiler configuration so that the native linker is
16024 *** used, and then restart.
16027 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16028 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16029 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16035 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16036 case `$LD -v 2>&1` in
16037 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16042 *** reliably create shared libraries on SCO systems. Therefore, libtool
16043 *** is disabling shared libraries support. We urge you to upgrade GNU
16044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16045 *** your PATH or compiler configuration so that the native linker is
16046 *** used, and then restart.
16051 # For security reasons, it is highly recommended that you always
16052 # use absolute paths for naming shared libraries, and exclude the
16053 # DT_RUNPATH tag from executables and libraries. But doing so
16054 # requires that you compile everything twice, which is a pain.
16055 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16056 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16057 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16067 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_direct
=yes
16070 hardcode_shlibpath_var
=no
16074 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16075 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16083 if test "$ld_shlibs" = no
; then
16085 hardcode_libdir_flag_spec
=
16086 export_dynamic_flag_spec
=
16087 whole_archive_flag_spec
=
16090 # PORTME fill in a description of your system's linker (not GNU ld)
16093 allow_undefined_flag
=unsupported
16094 always_export_symbols
=yes
16095 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'
16096 # Note: this linker hardcodes the directories in LIBPATH if there
16097 # are no directories specified by -L.
16098 hardcode_minus_L
=yes
16099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16100 # Neither direct hardcoding nor static linking is supported with a
16102 hardcode_direct
=unsupported
16107 if test "$host_cpu" = ia64
; then
16108 # On IA64, the linker does run time linking by default, so we don't
16109 # have to do anything special.
16110 aix_use_runtimelinking
=no
16111 exp_sym_flag
='-Bexport'
16114 # If we're using GNU nm, then we don't want the "-C" option.
16115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16116 # Also, AIX nm treats weak defined symbols like other global
16117 # defined symbols, whereas GNU nm marks them as "W".
16118 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16119 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'
16121 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'
16123 aix_use_runtimelinking
=no
16125 # Test if we are trying to use run time linking or normal
16126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16127 # need to do runtime linking.
16128 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16129 for ld_flag
in $LDFLAGS; do
16130 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16131 aix_use_runtimelinking
=yes
16138 exp_sym_flag
='-bexport'
16139 no_entry_flag
='-bnoentry'
16142 # When large executables or shared objects are built, AIX ld can
16143 # have problems creating the table of contents. If linking a library
16144 # or program results in "error TOC overflow" add -mminimal-toc to
16145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16149 hardcode_direct
=yes
16150 hardcode_direct_absolute
=yes
16151 hardcode_libdir_separator
=':'
16152 link_all_deplibs
=yes
16153 file_list_spec
='${wl}-f,'
16155 if test "$GCC" = yes; then
16156 case $host_os in aix4.
[012]|aix4.
[012].
*)
16157 # We only want to do this on AIX 4.2 and lower, the check
16158 # below for broken collect2 doesn't work under 4.3+
16159 collect2name
=`${CC} -print-prog-name=collect2`
16160 if test -f "$collect2name" &&
16161 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16163 # We have reworked collect2
16166 # We have old collect2
16167 hardcode_direct
=unsupported
16168 # It fails to find uninstalled libraries when the uninstalled
16169 # path is not listed in the libpath. Setting hardcode_minus_L
16170 # to unsupported forces relinking
16171 hardcode_minus_L
=yes
16172 hardcode_libdir_flag_spec
='-L$libdir'
16173 hardcode_libdir_separator
=
16177 shared_flag
='-shared'
16178 if test "$aix_use_runtimelinking" = yes; then
16179 shared_flag
="$shared_flag "'${wl}-G'
16183 if test "$host_cpu" = ia64
; then
16184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16185 # chokes on -Wl,-G. The following line is correct:
16188 if test "$aix_use_runtimelinking" = yes; then
16189 shared_flag
='${wl}-G'
16191 shared_flag
='${wl}-bM:SRE'
16196 export_dynamic_flag_spec
='${wl}-bexpall'
16197 # It seems that -bexpall does not export symbols beginning with
16198 # underscore (_), so it is better to generate a list of symbols to export.
16199 always_export_symbols
=yes
16200 if test "$aix_use_runtimelinking" = yes; then
16201 # Warning - without using the other runtime loading flags (-brtl),
16202 # -berok will link without error, but may produce a broken library.
16203 allow_undefined_flag
='-berok'
16204 # Determine the default libpath from the value encoded in an
16205 # empty executable.
16206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16217 if ac_fn_c_try_link
"$LINENO"; then :
16219 lt_aix_libpath_sed
='
16220 /Import File Strings/,/^$/ {
16226 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16227 # Check for a 64-bit object if we didn't find anything.
16228 if test -z "$aix_libpath"; then
16229 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16232 rm -f core conftest.err conftest.
$ac_objext \
16233 conftest
$ac_exeext conftest.
$ac_ext
16234 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16236 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16237 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"
16239 if test "$host_cpu" = ia64
; then
16240 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16241 allow_undefined_flag
="-z nodefs"
16242 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"
16244 # Determine the default libpath from the value encoded in an
16245 # empty executable.
16246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16257 if ac_fn_c_try_link
"$LINENO"; then :
16259 lt_aix_libpath_sed
='
16260 /Import File Strings/,/^$/ {
16266 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16267 # Check for a 64-bit object if we didn't find anything.
16268 if test -z "$aix_libpath"; then
16269 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16272 rm -f core conftest.err conftest.
$ac_objext \
16273 conftest
$ac_exeext conftest.
$ac_ext
16274 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16276 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16277 # Warning - without using the other run time loading flags,
16278 # -berok will link without error, but may produce a broken library.
16279 no_undefined_flag
=' ${wl}-bernotok'
16280 allow_undefined_flag
=' ${wl}-berok'
16281 if test "$with_gnu_ld" = yes; then
16282 # We only use this code for GNU lds that support --whole-archive.
16283 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16285 # Exported symbols can be pulled into shared objects from archives
16286 whole_archive_flag_spec
='$convenience'
16288 archive_cmds_need_lc
=yes
16289 # This is similar to how AIX traditionally builds its shared libraries.
16290 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'
16298 # see comment about AmigaOS4 .so support
16299 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16300 archive_expsym_cmds
=''
16303 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)'
16304 hardcode_libdir_flag_spec
='-L$libdir'
16305 hardcode_minus_L
=yes
16311 export_dynamic_flag_spec
=-rdynamic
16314 cygwin
* | mingw
* | pw32
* | cegcc
*)
16315 # When not using gcc, we currently assume that we are using
16316 # Microsoft Visual C++.
16317 # hardcode_libdir_flag_spec is actually meaningless, as there is
16318 # no search path for DLLs.
16319 hardcode_libdir_flag_spec
=' '
16320 allow_undefined_flag
=unsupported
16321 # Tell ltmain to make .lib files, not .a files.
16323 # Tell ltmain to make .dll files, not .so files.
16325 # FIXME: Setting linknames here is a bad hack.
16326 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16327 # The linker will automatically build a .lib file if we build a DLL.
16328 old_archive_from_new_cmds
='true'
16329 # FIXME: Should let the user specify the lib program.
16330 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16331 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16332 enable_shared_with_static_runtimes
=yes
16335 darwin
* | rhapsody
*)
16338 archive_cmds_need_lc
=no
16340 hardcode_automatic
=yes
16341 hardcode_shlibpath_var
=unsupported
16342 if test "$lt_cv_ld_force_load" = "yes"; then
16343 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\"`'
16345 whole_archive_flag_spec
=''
16347 link_all_deplibs
=yes
16348 allow_undefined_flag
="$_lt_dar_allow_undefined"
16349 case $cc_basename in
16350 ifort
*) _lt_dar_can_shared
=yes ;;
16351 *) _lt_dar_can_shared
=$GCC ;;
16353 if test "$_lt_dar_can_shared" = "yes"; then
16354 output_verbose_link_cmd
=func_echo_all
16355 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16356 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16357 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}"
16358 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}"
16367 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_libdir_flag_spec
='-L$libdir'
16369 hardcode_shlibpath_var
=no
16372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16373 # support. Future versions do this automatically, but an explicit c++rt0.o
16374 # does not break anything, and helps significantly (at the cost of a little
16377 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16378 hardcode_libdir_flag_spec
='-R$libdir'
16379 hardcode_direct
=yes
16380 hardcode_shlibpath_var
=no
16383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16385 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_direct
=yes
16387 hardcode_minus_L
=yes
16388 hardcode_shlibpath_var
=no
16391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16392 freebsd
* | dragonfly
*)
16393 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16394 hardcode_libdir_flag_spec
='-R$libdir'
16395 hardcode_direct
=yes
16396 hardcode_shlibpath_var
=no
16400 if test "$GCC" = yes; then
16401 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'
16403 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'
16405 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16406 hardcode_libdir_separator
=:
16407 hardcode_direct
=yes
16409 # hardcode_minus_L: Not really in the search PATH,
16410 # but as the default location of the library.
16411 hardcode_minus_L
=yes
16412 export_dynamic_flag_spec
='${wl}-E'
16416 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16417 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16421 if test "$with_gnu_ld" = no
; then
16422 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16423 hardcode_libdir_flag_spec_ld
='+b $libdir'
16424 hardcode_libdir_separator
=:
16425 hardcode_direct
=yes
16426 hardcode_direct_absolute
=yes
16427 export_dynamic_flag_spec
='${wl}-E'
16428 # hardcode_minus_L: Not really in the search PATH,
16429 # but as the default location of the library.
16430 hardcode_minus_L
=yes
16435 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16438 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16441 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16444 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16450 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16457 # Older versions of the 11.00 compiler do not understand -b yet
16458 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16460 $as_echo_n "checking if $CC understands -b... " >&6; }
16461 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16464 lt_cv_prog_compiler__b
=no
16465 save_LDFLAGS
="$LDFLAGS"
16466 LDFLAGS
="$LDFLAGS -b"
16467 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16468 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16469 # The linker can only warn and ignore the option if not recognized
16470 # So say no if there are warnings
16471 if test -s conftest.err
; then
16472 # Append any errors to the config.log.
16473 cat conftest.err
1>&5
16474 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16475 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16476 if diff conftest.exp conftest.er2
>/dev
/null
; then
16477 lt_cv_prog_compiler__b
=yes
16480 lt_cv_prog_compiler__b
=yes
16484 LDFLAGS
="$save_LDFLAGS"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16488 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16490 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16491 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16493 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16499 if test "$with_gnu_ld" = no
; then
16500 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16501 hardcode_libdir_separator
=:
16506 hardcode_shlibpath_var
=no
16509 hardcode_direct
=yes
16510 hardcode_direct_absolute
=yes
16511 export_dynamic_flag_spec
='${wl}-E'
16513 # hardcode_minus_L: Not really in the search PATH,
16514 # but as the default location of the library.
16515 hardcode_minus_L
=yes
16521 irix5
* | irix6
* | nonstopux
*)
16522 if test "$GCC" = yes; then
16523 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'
16524 # Try to use the -exported_symbol ld option, if it does not
16525 # work, assume that -exports_file does not work either and
16526 # implicitly export all symbols.
16527 save_LDFLAGS
="$LDFLAGS"
16528 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16533 if ac_fn_c_try_link
"$LINENO"; then :
16534 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'
16537 rm -f core conftest.err conftest.
$ac_objext \
16538 conftest
$ac_exeext conftest.
$ac_ext
16539 LDFLAGS
="$save_LDFLAGS"
16541 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'
16542 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'
16544 archive_cmds_need_lc
='no'
16545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16546 hardcode_libdir_separator
=:
16548 link_all_deplibs
=yes
16552 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16553 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16555 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16557 hardcode_libdir_flag_spec
='-R$libdir'
16558 hardcode_direct
=yes
16559 hardcode_shlibpath_var
=no
16563 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_direct
=yes
16565 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16566 hardcode_libdir_separator
=:
16567 hardcode_shlibpath_var
=no
16574 if test -f /usr
/libexec
/ld.so
; then
16575 hardcode_direct
=yes
16576 hardcode_shlibpath_var
=no
16577 hardcode_direct_absolute
=yes
16578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16579 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16580 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16581 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16582 export_dynamic_flag_spec
='${wl}-E'
16585 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16586 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_libdir_flag_spec
='-R$libdir'
16590 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16591 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16601 hardcode_libdir_flag_spec
='-L$libdir'
16602 hardcode_minus_L
=yes
16603 allow_undefined_flag
=unsupported
16604 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'
16605 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16609 if test "$GCC" = yes; then
16610 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16611 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'
16613 allow_undefined_flag
=' -expect_unresolved \*'
16614 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'
16616 archive_cmds_need_lc
='no'
16617 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16618 hardcode_libdir_separator
=:
16621 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16622 if test "$GCC" = yes; then
16623 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16624 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'
16625 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16627 allow_undefined_flag
=' -expect_unresolved \*'
16628 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'
16629 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~
16630 $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'
16632 # Both c and cxx compiler support -rpath directly
16633 hardcode_libdir_flag_spec
='-rpath $libdir'
16635 archive_cmds_need_lc
='no'
16636 hardcode_libdir_separator
=:
16640 no_undefined_flag
=' -z defs'
16641 if test "$GCC" = yes; then
16643 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16644 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16647 case `$CC -V 2>&1` in
16650 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16656 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16662 hardcode_libdir_flag_spec
='-R$libdir'
16663 hardcode_shlibpath_var
=no
16665 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16667 # The compiler driver will combine and reorder linker options,
16668 # but understands `-z linker_flag'. GCC discards it without `$wl',
16669 # but is careful enough not to reorder.
16670 # Supported since Solaris 2.6 (maybe 2.5.1?)
16671 if test "$GCC" = yes; then
16672 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16674 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16678 link_all_deplibs
=yes
16682 if test "x$host_vendor" = xsequent
; then
16683 # Use $CC to link under sequent, because it throws in some extra .o
16684 # files that make .init and .fini sections work.
16685 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16687 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_libdir_flag_spec
='-L$libdir'
16690 hardcode_direct
=yes
16691 hardcode_minus_L
=yes
16692 hardcode_shlibpath_var
=no
16696 case $host_vendor in
16698 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct
=yes # is this really true???
16702 ## LD is ld it makes a PLAMLIB
16703 ## CC just makes a GrossModule.
16704 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16705 reload_cmds
='$CC -r -o $output$reload_objs'
16709 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16713 runpath_var
='LD_RUN_PATH'
16714 hardcode_shlibpath_var
=no
16718 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_shlibpath_var
=no
16720 export_dynamic_flag_spec
='-Bexport'
16724 if test -d /usr
/nec
; then
16725 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var
=no
16727 runpath_var
=LD_RUN_PATH
16728 hardcode_runpath_var
=yes
16733 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16734 no_undefined_flag
='${wl}-z,text'
16735 archive_cmds_need_lc
=no
16736 hardcode_shlibpath_var
=no
16737 runpath_var
='LD_RUN_PATH'
16739 if test "$GCC" = yes; then
16740 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16741 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 sysv5
* | sco3.2v5
* | sco5v6
*)
16749 # Note: We can NOT use -z defs as we might desire, because we do not
16750 # link with -lc, and that would cause any symbols used from libc to
16751 # always be unresolved, which means just about no library would
16752 # ever link correctly. If we're not using GNU ld we use -z text
16753 # though, which does catch some bad symbols but isn't as heavy-handed
16755 no_undefined_flag
='${wl}-z,text'
16756 allow_undefined_flag
='${wl}-z,nodefs'
16757 archive_cmds_need_lc
=no
16758 hardcode_shlibpath_var
=no
16759 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16760 hardcode_libdir_separator
=':'
16761 link_all_deplibs
=yes
16762 export_dynamic_flag_spec
='${wl}-Bexport'
16763 runpath_var
='LD_RUN_PATH'
16765 if test "$GCC" = yes; then
16766 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776 hardcode_libdir_flag_spec
='-L$libdir'
16777 hardcode_shlibpath_var
=no
16785 if test x
$host_vendor = xsni
; then
16787 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16788 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16795 $as_echo "$ld_shlibs" >&6; }
16796 test "$ld_shlibs" = no
&& can_build_shared
=no
16798 with_gnu_ld
=$with_gnu_ld
16815 # Do we need to explicitly link libc?
16817 case "x$archive_cmds_need_lc" in
16819 # Assume -lc should be added
16820 archive_cmds_need_lc
=yes
16822 if test "$enable_shared" = yes && test "$GCC" = yes; then
16823 case $archive_cmds in
16825 # FIXME: we may have to deal with multi-command sequences.
16828 # Test whether the compiler implicitly links with -lc since on some
16829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16830 # to ld, don't add -lc before -lgcc.
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16833 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16834 $as_echo_n "(cached) " >&6
16837 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16840 (eval $ac_compile) 2>&5
16842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16843 test $ac_status = 0; } 2>conftest.err
; then
16846 libobjs
=conftest.
$ac_objext
16848 wl
=$lt_prog_compiler_wl
16849 pic_flag
=$lt_prog_compiler_pic
16855 lt_save_allow_undefined_flag
=$allow_undefined_flag
16856 allow_undefined_flag
=
16857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16858 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16861 test $ac_status = 0; }
16863 lt_cv_archive_cmds_need_lc
=no
16865 lt_cv_archive_cmds_need_lc
=yes
16867 allow_undefined_flag
=$lt_save_allow_undefined_flag
16869 cat conftest.err
1>&5
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16875 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16876 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17040 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17042 if test "$GCC" = yes; then
17044 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17045 *) lt_awk_arg
="/^libraries:/" ;;
17048 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17049 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17051 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17052 case $lt_search_path_spec in
17054 # if the path contains ";" then we assume it to be the separator
17055 # otherwise default to the standard path separator (i.e. ":") - it is
17056 # assumed that no part of a normal pathname contains ";" but that should
17057 # okay in the real world where ";" in dirpaths is itself problematic.
17058 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17061 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17064 # Ok, now we have the path, separated by spaces, we can step through it
17065 # and add multilib dir if necessary.
17066 lt_tmp_lt_search_path_spec
=
17067 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17068 for lt_sys_path
in $lt_search_path_spec; do
17069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17070 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17072 test -d "$lt_sys_path" && \
17073 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17076 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17077 BEGIN {RS=" "; FS="/|\n";} {
17080 for (lt_i = NF; lt_i > 0; lt_i--) {
17081 if ($lt_i != "" && $lt_i != ".") {
17082 if ($lt_i == "..") {
17085 if (lt_count == 0) {
17086 lt_foo="/" $lt_i lt_foo;
17093 if (lt_foo != "") { lt_freq[lt_foo]++; }
17094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17096 # AWK program above erroneously prepends '/' to C:/dos/paths
17099 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17100 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17102 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17104 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17106 library_names_spec
=
17107 libname_spec
='lib$name'
17111 postuninstall_cmds
=
17115 shlibpath_overrides_runpath
=unknown
17117 dynamic_linker
="$host_os ld.so"
17118 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17119 need_lib_prefix
=unknown
17120 hardcode_into_libs
=no
17122 # when you set need_version to no, make sure it does not cause -set_version
17123 # flags to be left without arguments
17124 need_version
=unknown
17129 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17130 shlibpath_var
=LIBPATH
17132 # AIX 3 has no versioning support, so we append a major version to the name.
17133 soname_spec
='${libname}${release}${shared_ext}$major'
17140 hardcode_into_libs
=yes
17141 if test "$host_cpu" = ia64
; then
17142 # AIX 5 supports IA64
17143 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17144 shlibpath_var
=LD_LIBRARY_PATH
17146 # With GCC up to 2.95.x, collect2 would create an import file
17147 # for dependence libraries. The import file would start with
17148 # the line `#! .'. This would cause the generated library to
17149 # depend on `.', always an invalid library. This was fixed in
17150 # development snapshots of GCC prior to 3.0.
17152 aix4 | aix4.
[01] | aix4.
[01].
*)
17153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17155 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17158 can_build_shared
=no
17162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17163 # soname into executable. Probably we can add versioning support to
17164 # collect2, so additional links can be useful in future.
17165 if test "$aix_use_runtimelinking" = yes; then
17166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17167 # instead of lib<name>.a to let people know that these are not
17168 # typical AIX shared libraries.
17169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 # We preserve .a as extension for shared libraries through AIX4.2
17172 # and later when we are not doing run time linking.
17173 library_names_spec
='${libname}${release}.a $libname.a'
17174 soname_spec
='${libname}${release}${shared_ext}$major'
17176 shlibpath_var
=LIBPATH
17183 # Since July 2007 AmigaOS4 officially supports .so libraries.
17184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 library_names_spec
='$libname.ixlibrary $libname.a'
17189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17190 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'
17196 library_names_spec
='${libname}${shared_ext}'
17197 dynamic_linker
="$host_os ld.so"
17198 shlibpath_var
=LIBRARY_PATH
17204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 soname_spec
='${libname}${release}${shared_ext}$major'
17206 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17207 shlibpath_var
=LD_LIBRARY_PATH
17208 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17209 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17210 # the default ld.so.conf also contains /usr/contrib/lib and
17211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17212 # libtool to hard-code these into programs
17215 cygwin
* | mingw
* | pw32
* | cegcc
*)
17216 version_type
=windows
17221 case $GCC,$host_os in
17222 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17223 library_names_spec
='$libname.dll.a'
17224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17225 postinstall_cmds
='base_file=`basename \${file}`~
17226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17227 dldir=$destdir/`dirname \$dlpath`~
17228 test -d \$dldir || mkdir -p \$dldir~
17229 $install_prog $dir/$dlname \$dldir/$dlname~
17230 chmod a+x \$dldir/$dlname~
17231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17234 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17235 dlpath=$dir/\$dldll~
17237 shlibpath_overrides_runpath
=yes
17241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17242 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17244 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17247 # MinGW DLLs use traditional 'lib' prefix
17248 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17251 # pw32 DLLs use 'pw' prefix rather than 'lib'
17252 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17258 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17261 dynamic_linker
='Win32 ld.exe'
17262 # FIXME: first we should search . and the directory the executable is in
17266 darwin
* | rhapsody
*)
17267 dynamic_linker
="$host_os dyld"
17268 version_type
=darwin
17271 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17272 soname_spec
='${libname}${release}${major}$shared_ext'
17273 shlibpath_overrides_runpath
=yes
17274 shlibpath_var
=DYLD_LIBRARY_PATH
17275 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17277 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17278 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17286 soname_spec
='${libname}${release}${shared_ext}$major'
17287 shlibpath_var
=LD_LIBRARY_PATH
17290 freebsd
* | dragonfly
*)
17291 # DragonFly does not have aout. When/if they implement a new
17292 # versioning mechanism, adjust this.
17293 if test -x /usr
/bin
/objformat
; then
17294 objformat
=`/usr/bin/objformat`
17297 freebsd
[23].
*) objformat
=aout
;;
17298 *) objformat
=elf
;;
17301 version_type
=freebsd-
$objformat
17302 case $version_type in
17304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17309 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17313 shlibpath_var
=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath
=yes
17318 freebsd3.
[01]* | freebsdelf3.
[01]*)
17319 shlibpath_overrides_runpath
=yes
17320 hardcode_into_libs
=yes
17322 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17323 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17324 shlibpath_overrides_runpath
=no
17325 hardcode_into_libs
=yes
17327 *) # from 4.6 on, and DragonFly
17328 shlibpath_overrides_runpath
=yes
17329 hardcode_into_libs
=yes
17338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17339 soname_spec
='${libname}${release}${shared_ext}$major'
17340 shlibpath_var
=LD_LIBRARY_PATH
17341 hardcode_into_libs
=yes
17348 dynamic_linker
="$host_os runtime_loader"
17349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17350 soname_spec
='${libname}${release}${shared_ext}$major'
17351 shlibpath_var
=LIBRARY_PATH
17352 shlibpath_overrides_runpath
=yes
17353 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17354 hardcode_into_libs
=yes
17357 hpux9
* | hpux10
* | hpux11
*)
17358 # Give a soname corresponding to the major version so that dld.sl refuses to
17359 # link against other versions.
17366 hardcode_into_libs
=yes
17367 dynamic_linker
="$host_os dld.so"
17368 shlibpath_var
=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 soname_spec
='${libname}${release}${shared_ext}$major'
17372 if test "X$HPUX_IA64_MODE" = X32
; then
17373 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17375 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17377 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17381 hardcode_into_libs
=yes
17382 dynamic_linker
="$host_os dld.sl"
17383 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17384 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec
='${libname}${release}${shared_ext}$major'
17387 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17388 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17392 dynamic_linker
="$host_os dld.sl"
17393 shlibpath_var
=SHLIB_PATH
17394 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec
='${libname}${release}${shared_ext}$major'
17399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17400 postinstall_cmds
='chmod 555 $lib'
17401 # or fails outright, so override atomically:
17402 install_override_mode
=555
17409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17410 soname_spec
='${libname}${release}${shared_ext}$major'
17411 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17412 shlibpath_var
=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath
=no
17414 hardcode_into_libs
=yes
17417 irix5
* | irix6
* | nonstopux
*)
17419 nonstopux
*) version_type
=nonstopux
;;
17421 if test "$lt_cv_prog_gnu_ld" = yes; then
17429 soname_spec
='${libname}${release}${shared_ext}$major'
17430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17432 irix5
* | nonstopux
*)
17433 libsuff
= shlibsuff
=
17436 case $LD in # libtool.m4 will add one of these switches to LD
17437 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17438 libsuff
= shlibsuff
= libmagic
=32-bit;;
17439 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17440 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17441 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17442 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17443 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17447 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17448 shlibpath_overrides_runpath
=no
17449 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17450 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17451 hardcode_into_libs
=yes
17454 # No shared lib support for Linux oldld, aout, or coff.
17455 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17459 # This must be Linux ELF.
17460 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 soname_spec
='${libname}${release}${shared_ext}$major'
17466 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17467 shlibpath_var
=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath
=no
17470 # Some binutils ld are patched to set DT_RUNPATH
17471 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17472 $as_echo_n "(cached) " >&6
17474 lt_cv_shlibpath_overrides_runpath
=no
17475 save_LDFLAGS
=$LDFLAGS
17476 save_libdir
=$libdir
17477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17490 if ac_fn_c_try_link
"$LINENO"; then :
17491 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17492 lt_cv_shlibpath_overrides_runpath
=yes
17495 rm -f core conftest.err conftest.
$ac_objext \
17496 conftest
$ac_exeext conftest.
$ac_ext
17497 LDFLAGS
=$save_LDFLAGS
17498 libdir
=$save_libdir
17502 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17504 # This implies no fast_install, which is unacceptable.
17505 # Some rework will be needed to allow for fast_install
17506 # before this can be enabled.
17507 hardcode_into_libs
=yes
17509 # Append ld.so.conf contents to the search path
17510 if test -f /etc
/ld.so.conf
; then
17511 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' ' '`
17512 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17515 # We used to test for /lib/ld.so.1 and disable shared libraries on
17516 # powerpc, because MkLinux only supported shared libraries with the
17517 # GNU dynamic linker. Since this was broken with cross compilers,
17518 # most powerpc-linux boxes support dynamic linking these days and
17519 # people can always --disable-shared, the test was removed, and we
17520 # assume the GNU/Linux dynamic linker is in use.
17521 dynamic_linker
='GNU/Linux ld.so'
17528 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17530 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17531 dynamic_linker
='NetBSD (a.out) ld.so'
17533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17534 soname_spec
='${libname}${release}${shared_ext}$major'
17535 dynamic_linker
='NetBSD ld.elf_so'
17537 shlibpath_var
=LD_LIBRARY_PATH
17538 shlibpath_overrides_runpath
=yes
17539 hardcode_into_libs
=yes
17544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545 shlibpath_var
=LD_LIBRARY_PATH
17546 shlibpath_overrides_runpath
=yes
17553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec
='${libname}${release}${shared_ext}$major'
17555 shlibpath_var
=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath
=no
17557 hardcode_into_libs
=yes
17558 dynamic_linker
='ldqnx.so'
17563 sys_lib_dlsearch_path_spec
="/usr/lib"
17565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17567 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17568 *) need_version
=no
;;
17570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17572 shlibpath_var
=LD_LIBRARY_PATH
17573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17575 openbsd2.
[89] | openbsd2.
[89].
*)
17576 shlibpath_overrides_runpath
=no
17579 shlibpath_overrides_runpath
=yes
17583 shlibpath_overrides_runpath
=yes
17588 libname_spec
='$name'
17591 library_names_spec
='$libname${shared_ext} $libname.a'
17592 dynamic_linker
='OS/2 ld.exe'
17593 shlibpath_var
=LIBPATH
17596 osf3
* | osf4
* | osf5
*)
17600 soname_spec
='${libname}${release}${shared_ext}$major'
17601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602 shlibpath_var
=LD_LIBRARY_PATH
17603 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17604 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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
17618 shlibpath_overrides_runpath
=yes
17619 hardcode_into_libs
=yes
17620 # ldd complains unless libraries are executable
17621 postinstall_cmds
='chmod +x $lib'
17626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17627 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17628 shlibpath_var
=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath
=yes
17630 if test "$with_gnu_ld" = yes; then
17638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639 soname_spec
='${libname}${release}${shared_ext}$major'
17640 shlibpath_var
=LD_LIBRARY_PATH
17641 case $host_vendor in
17643 shlibpath_overrides_runpath
=no
17645 runpath_var
=LD_RUN_PATH
17653 shlibpath_overrides_runpath
=no
17654 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17660 if test -d /usr
/nec
;then
17662 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17663 soname_spec
='$libname${shared_ext}.$major'
17664 shlibpath_var
=LD_LIBRARY_PATH
17668 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17669 version_type
=freebsd-elf
17672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17673 soname_spec
='${libname}${release}${shared_ext}$major'
17674 shlibpath_var
=LD_LIBRARY_PATH
17675 shlibpath_overrides_runpath
=yes
17676 hardcode_into_libs
=yes
17677 if test "$with_gnu_ld" = yes; then
17678 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17680 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17683 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17687 sys_lib_dlsearch_path_spec
='/usr/lib'
17691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17696 shlibpath_var
=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath
=no
17698 hardcode_into_libs
=yes
17703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec
='${libname}${release}${shared_ext}$major'
17705 shlibpath_var
=LD_LIBRARY_PATH
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17713 $as_echo "$dynamic_linker" >&6; }
17714 test "$dynamic_linker" = no
&& can_build_shared
=no
17716 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17717 if test "$GCC" = yes; then
17718 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17721 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17722 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17724 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17725 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17822 if test -n "$hardcode_libdir_flag_spec" ||
17823 test -n "$runpath_var" ||
17824 test "X$hardcode_automatic" = "Xyes" ; then
17826 # We can hardcode non-existent directories.
17827 if test "$hardcode_direct" != no
&&
17828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17829 # have to relink, otherwise we might link with an installed library
17830 # when we should be linking with a yet-to-be-installed one
17831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17832 test "$hardcode_minus_L" != no
; then
17833 # Linking always hardcodes the temporary library directory.
17834 hardcode_action
=relink
17836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17837 hardcode_action
=immediate
17840 # We cannot hardcode anything, or else we can only hardcode existing
17842 hardcode_action
=unsupported
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17845 $as_echo "$hardcode_action" >&6; }
17847 if test "$hardcode_action" = relink ||
17848 test "$inherit_rpath" = yes; then
17849 # Fast installation is not supported
17850 enable_fast_install
=no
17851 elif test "$shlibpath_overrides_runpath" = yes ||
17852 test "$enable_shared" = no
; then
17853 # Fast installation is not necessary
17854 enable_fast_install
=needless
17862 if test "x$enable_dlopen" != xyes
; then
17863 enable_dlopen
=unknown
17864 enable_dlopen_self
=unknown
17865 enable_dlopen_self_static
=unknown
17872 lt_cv_dlopen
="load_add_on"
17874 lt_cv_dlopen_self
=yes
17877 mingw
* | pw32
* | cegcc
*)
17878 lt_cv_dlopen
="LoadLibrary"
17883 lt_cv_dlopen
="dlopen"
17888 # if libdl is installed we need to link against it
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17894 ac_check_lib_save_LIBS
=$LIBS
17896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17899 /* Override any GCC internal prototype to avoid an error.
17900 Use char because int might match the return type of a GCC
17901 builtin and then its argument prototype would still apply. */
17914 if ac_fn_c_try_link
"$LINENO"; then :
17915 ac_cv_lib_dl_dlopen
=yes
17917 ac_cv_lib_dl_dlopen
=no
17919 rm -f core conftest.err conftest.
$ac_objext \
17920 conftest
$ac_exeext conftest.
$ac_ext
17921 LIBS
=$ac_check_lib_save_LIBS
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17925 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17926 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17929 lt_cv_dlopen
="dyld"
17931 lt_cv_dlopen_self
=yes
17938 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17939 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17940 lt_cv_dlopen
="shl_load"
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17944 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17945 $as_echo_n "(cached) " >&6
17947 ac_check_lib_save_LIBS
=$LIBS
17949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17952 /* Override any GCC internal prototype to avoid an error.
17953 Use char because int might match the return type of a GCC
17954 builtin and then its argument prototype would still apply. */
17962 return shl_load ();
17967 if ac_fn_c_try_link
"$LINENO"; then :
17968 ac_cv_lib_dld_shl_load
=yes
17970 ac_cv_lib_dld_shl_load
=no
17972 rm -f core conftest.err conftest.
$ac_objext \
17973 conftest
$ac_exeext conftest.
$ac_ext
17974 LIBS
=$ac_check_lib_save_LIBS
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17978 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17979 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17981 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17982 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17983 lt_cv_dlopen
="dlopen"
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17990 ac_check_lib_save_LIBS
=$LIBS
17992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
17995 /* Override any GCC internal prototype to avoid an error.
17996 Use char because int might match the return type of a GCC
17997 builtin and then its argument prototype would still apply. */
18010 if ac_fn_c_try_link
"$LINENO"; then :
18011 ac_cv_lib_dl_dlopen
=yes
18013 ac_cv_lib_dl_dlopen
=no
18015 rm -f core conftest.err conftest.
$ac_objext \
18016 conftest
$ac_exeext conftest.
$ac_ext
18017 LIBS
=$ac_check_lib_save_LIBS
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18021 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18022 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18025 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18026 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18027 $as_echo_n "(cached) " >&6
18029 ac_check_lib_save_LIBS
=$LIBS
18030 LIBS
="-lsvld $LIBS"
18031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18049 if ac_fn_c_try_link
"$LINENO"; then :
18050 ac_cv_lib_svld_dlopen
=yes
18052 ac_cv_lib_svld_dlopen
=no
18054 rm -f core conftest.err conftest.
$ac_objext \
18055 conftest
$ac_exeext conftest.
$ac_ext
18056 LIBS
=$ac_check_lib_save_LIBS
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18059 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18060 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18061 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18064 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18066 $as_echo_n "(cached) " >&6
18068 ac_check_lib_save_LIBS
=$LIBS
18070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18083 return dld_link ();
18088 if ac_fn_c_try_link
"$LINENO"; then :
18089 ac_cv_lib_dld_dld_link
=yes
18091 ac_cv_lib_dld_dld_link
=no
18093 rm -f core conftest.err conftest.
$ac_objext \
18094 conftest
$ac_exeext conftest.
$ac_ext
18095 LIBS
=$ac_check_lib_save_LIBS
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18098 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18099 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18100 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18121 if test "x$lt_cv_dlopen" != xno
; then
18127 case $lt_cv_dlopen in
18129 save_CPPFLAGS
="$CPPFLAGS"
18130 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18132 save_LDFLAGS
="$LDFLAGS"
18133 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18136 LIBS
="$lt_cv_dlopen_libs $LIBS"
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18139 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18140 if test "${lt_cv_dlopen_self+set}" = set; then :
18141 $as_echo_n "(cached) " >&6
18143 if test "$cross_compiling" = yes; then :
18144 lt_cv_dlopen_self
=cross
18146 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18147 lt_status
=$lt_dlunknown
18148 cat > conftest.
$ac_ext <<_LT_EOF
18149 #line 18149 "configure"
18150 #include "confdefs.h"
18159 # define LT_DLGLOBAL RTLD_GLOBAL
18162 # define LT_DLGLOBAL DL_GLOBAL
18164 # define LT_DLGLOBAL 0
18168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18169 find out it does not work in some platform. */
18170 #ifndef LT_DLLAZY_OR_NOW
18172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18175 # define LT_DLLAZY_OR_NOW DL_LAZY
18178 # define LT_DLLAZY_OR_NOW RTLD_NOW
18181 # define LT_DLLAZY_OR_NOW DL_NOW
18183 # define LT_DLLAZY_OR_NOW 0
18190 /* When -fvisbility=hidden is used, assume the code has been annotated
18191 correspondingly for the symbols needed. */
18192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18193 void fnord () __attribute__((visibility("default")));
18196 void fnord () { int i=42; }
18199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18200 int status = $lt_dlunknown;
18204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18208 else puts (dlerror ());
18210 /* dlclose (self); */
18218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18219 (eval $ac_link) 2>&5
18221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18222 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18223 (.
/conftest
; exit; ) >&5 2>/dev
/null
18225 case x
$lt_status in
18226 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18227 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18228 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18231 # compilation failed
18232 lt_cv_dlopen_self
=no
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18240 $as_echo "$lt_cv_dlopen_self" >&6; }
18242 if test "x$lt_cv_dlopen_self" = xyes
; then
18243 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18245 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18246 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18249 if test "$cross_compiling" = yes; then :
18250 lt_cv_dlopen_self_static
=cross
18252 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18253 lt_status
=$lt_dlunknown
18254 cat > conftest.
$ac_ext <<_LT_EOF
18255 #line 18255 "configure"
18256 #include "confdefs.h"
18265 # define LT_DLGLOBAL RTLD_GLOBAL
18268 # define LT_DLGLOBAL DL_GLOBAL
18270 # define LT_DLGLOBAL 0
18274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18275 find out it does not work in some platform. */
18276 #ifndef LT_DLLAZY_OR_NOW
18278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18281 # define LT_DLLAZY_OR_NOW DL_LAZY
18284 # define LT_DLLAZY_OR_NOW RTLD_NOW
18287 # define LT_DLLAZY_OR_NOW DL_NOW
18289 # define LT_DLLAZY_OR_NOW 0
18296 /* When -fvisbility=hidden is used, assume the code has been annotated
18297 correspondingly for the symbols needed. */
18298 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18299 void fnord () __attribute__((visibility("default")));
18302 void fnord () { int i=42; }
18305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18306 int status = $lt_dlunknown;
18310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18314 else puts (dlerror ());
18316 /* dlclose (self); */
18324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18325 (eval $ac_link) 2>&5
18327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18328 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18329 (.
/conftest
; exit; ) >&5 2>/dev
/null
18331 case x
$lt_status in
18332 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18333 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18334 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18337 # compilation failed
18338 lt_cv_dlopen_self_static
=no
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18346 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18349 CPPFLAGS
="$save_CPPFLAGS"
18350 LDFLAGS
="$save_LDFLAGS"
18355 case $lt_cv_dlopen_self in
18356 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18357 *) enable_dlopen_self
=unknown
;;
18360 case $lt_cv_dlopen_self_static in
18361 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18362 *) enable_dlopen_self_static
=unknown
;;
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18385 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18386 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18387 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18388 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18392 # FIXME - insert some real tests, host_os isn't really good enough
18395 if test -n "$STRIP" ; then
18396 striplib
="$STRIP -x"
18397 old_striplib
="$STRIP -S"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18399 $as_echo "yes" >&6; }
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18407 $as_echo "no" >&6; }
18423 # Report which library types will actually be built
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18427 $as_echo "$can_build_shared" >&6; }
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18430 $as_echo_n "checking whether to build shared libraries... " >&6; }
18431 test "$can_build_shared" = "no" && enable_shared
=no
18433 # On AIX, shared libraries and static libraries use the same namespace, and
18434 # are all built from PIC.
18437 test "$enable_shared" = yes && enable_static
=no
18438 if test -n "$RANLIB"; then
18439 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18440 postinstall_cmds
='$RANLIB $lib'
18445 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18446 test "$enable_shared" = yes && enable_static
=no
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18451 $as_echo "$enable_shared" >&6; }
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18454 $as_echo_n "checking whether to build static libraries... " >&6; }
18455 # Make sure either enable_shared or enable_static is yes.
18456 test "$enable_shared" = yes || enable_static
=yes
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18458 $as_echo "$enable_static" >&6; }
18465 ac_cpp
='$CPP $CPPFLAGS'
18466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18474 (test "X$CXX" != "Xg++"))) ; then
18476 ac_cpp
='$CXXCPP $CPPFLAGS'
18477 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18478 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18479 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18481 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18482 if test -z "$CXXCPP"; then
18483 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18484 $as_echo_n "(cached) " >&6
18486 # Double quotes because CXXCPP needs to be expanded
18487 for CXXCPP
in "$CXX -E" "/lib/cpp"
18489 ac_preproc_ok
=false
18490 for ac_cxx_preproc_warn_flag
in '' yes
18492 # Use a header file that comes with gcc, so configuring glibc
18493 # with a fresh cross-compiler works.
18494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 # <limits.h> exists even on freestanding compilers.
18496 # On the NeXT, cc -E runs the code through the compiler's parser,
18497 # not just through cpp. "Syntax error" is here to catch this case.
18498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18501 # include <limits.h>
18503 # include <assert.h>
18507 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18510 # Broken: fails on valid input.
18513 rm -f conftest.err conftest.
$ac_ext
18515 # OK, works on sane cases. Now check whether nonexistent headers
18516 # can be detected and how.
18517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 #include <ac_nonexistent.h>
18521 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18522 # Broken: success on invalid input.
18525 # Passes both tests.
18529 rm -f conftest.err conftest.
$ac_ext
18532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18533 rm -f conftest.err conftest.
$ac_ext
18534 if $ac_preproc_ok; then :
18539 ac_cv_prog_CXXCPP
=$CXXCPP
18542 CXXCPP
=$ac_cv_prog_CXXCPP
18544 ac_cv_prog_CXXCPP
=$CXXCPP
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18547 $as_echo "$CXXCPP" >&6; }
18548 ac_preproc_ok
=false
18549 for ac_cxx_preproc_warn_flag
in '' yes
18551 # Use a header file that comes with gcc, so configuring glibc
18552 # with a fresh cross-compiler works.
18553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18554 # <limits.h> exists even on freestanding compilers.
18555 # On the NeXT, cc -E runs the code through the compiler's parser,
18556 # not just through cpp. "Syntax error" is here to catch this case.
18557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18560 # include <limits.h>
18562 # include <assert.h>
18566 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18569 # Broken: fails on valid input.
18572 rm -f conftest.err conftest.
$ac_ext
18574 # OK, works on sane cases. Now check whether nonexistent headers
18575 # can be detected and how.
18576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18578 #include <ac_nonexistent.h>
18580 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18581 # Broken: success on invalid input.
18584 # Passes both tests.
18588 rm -f conftest.err conftest.
$ac_ext
18591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18592 rm -f conftest.err conftest.
$ac_ext
18593 if $ac_preproc_ok; then :
18596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18598 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18599 See \`config.log' for more details." "$LINENO" 5; }
18603 ac_cpp
='$CPP $CPPFLAGS'
18604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18609 _lt_caught_CXX_error
=yes
18613 ac_cpp
='$CXXCPP $CPPFLAGS'
18614 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18618 archive_cmds_need_lc_CXX
=no
18619 allow_undefined_flag_CXX
=
18620 always_export_symbols_CXX
=no
18621 archive_expsym_cmds_CXX
=
18622 compiler_needs_object_CXX
=no
18623 export_dynamic_flag_spec_CXX
=
18624 hardcode_direct_CXX
=no
18625 hardcode_direct_absolute_CXX
=no
18626 hardcode_libdir_flag_spec_CXX
=
18627 hardcode_libdir_flag_spec_ld_CXX
=
18628 hardcode_libdir_separator_CXX
=
18629 hardcode_minus_L_CXX
=no
18630 hardcode_shlibpath_var_CXX
=unsupported
18631 hardcode_automatic_CXX
=no
18632 inherit_rpath_CXX
=no
18634 module_expsym_cmds_CXX
=
18635 link_all_deplibs_CXX
=unknown
18636 old_archive_cmds_CXX
=$old_archive_cmds
18637 reload_flag_CXX
=$reload_flag
18638 reload_cmds_CXX
=$reload_cmds
18639 no_undefined_flag_CXX
=
18640 whole_archive_flag_spec_CXX
=
18641 enable_shared_with_static_runtimes_CXX
=no
18643 # Source file extension for C++ test sources.
18646 # Object file extension for compiled C++ test sources.
18650 # No sense in running all these tests if we already determined that
18651 # the CXX compiler isn't working. Some variables (like enable_shared)
18652 # are currently assumed to apply to all compilers on this platform,
18653 # and will be corrupted by setting them based on a non-working compiler.
18654 if test "$_lt_caught_CXX_error" != yes; then
18655 # Code to be used in simple compile tests
18656 lt_simple_compile_test_code
="int some_variable = 0;"
18658 # Code to be used in simple link tests
18659 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18668 # If no C compiler was specified, use CC.
18671 # If no C compiler flags were specified, use CFLAGS.
18672 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18674 # Allow CC to be a program name with arguments.
18678 # save warnings/boilerplate of simple test code
18679 ac_outfile
=conftest.
$ac_objext
18680 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18681 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18682 _lt_compiler_boilerplate
=`cat conftest.err`
18685 ac_outfile
=conftest.
$ac_objext
18686 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18687 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18688 _lt_linker_boilerplate
=`cat conftest.err`
18692 # Allow CC to be a program name with arguments.
18697 lt_save_with_gnu_ld
=$with_gnu_ld
18698 lt_save_path_LD
=$lt_cv_path_LD
18699 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18700 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18702 $as_unset lt_cv_prog_gnu_ld
18704 if test -n "${lt_cv_path_LDCXX+set}"; then
18705 lt_cv_path_LD
=$lt_cv_path_LDCXX
18707 $as_unset lt_cv_path_LD
18709 test -z "${LDCXX+set}" || LD
=$LDCXX
18713 for cc_temp
in $compiler""; do
18715 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18716 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18721 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18724 if test -n "$compiler"; then
18725 # We don't want -fno-exception when compiling C++ code, so set the
18726 # no_builtin_flag separately
18727 if test "$GXX" = yes; then
18728 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18730 lt_prog_compiler_no_builtin_flag_CXX
=
18733 if test "$GXX" = yes; then
18734 # Set up default GNU C++ configuration
18738 # Check whether --with-gnu-ld was given.
18739 if test "${with_gnu_ld+set}" = set; then :
18740 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18746 if test "$GCC" = yes; then
18747 # Check if gcc -print-prog-name=ld gives a path.
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18749 $as_echo_n "checking for ld used by $CC... " >&6; }
18752 # gcc leaves a trailing carriage return which upsets mingw
18753 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18755 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18758 # Accept absolute paths.
18760 re_direlt
='/[^/][^/]*/\.\./'
18761 # Canonicalize the pathname of ld
18762 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18763 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18764 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18766 test -z "$LD" && LD
="$ac_prog"
18769 # If it fails, then pretend we aren't using GCC.
18773 # If it is relative, then search for the first ld in PATH.
18774 with_gnu_ld
=unknown
18777 elif test "$with_gnu_ld" = yes; then
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18779 $as_echo_n "checking for GNU ld... " >&6; }
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18782 $as_echo_n "checking for non-GNU ld... " >&6; }
18784 if test "${lt_cv_path_LD+set}" = set; then :
18785 $as_echo_n "(cached) " >&6
18787 if test -z "$LD"; then
18788 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18789 for ac_dir
in $PATH; do
18791 test -z "$ac_dir" && ac_dir
=.
18792 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18793 lt_cv_path_LD
="$ac_dir/$ac_prog"
18794 # Check to see if the program is GNU ld. I'd rather use --version,
18795 # but apparently some variants of GNU ld only accept -v.
18796 # Break only if it was the GNU/non-GNU ld that we prefer.
18797 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18798 *GNU
* |
*'with BFD'*)
18799 test "$with_gnu_ld" != no
&& break
18802 test "$with_gnu_ld" != yes && break
18809 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18813 LD
="$lt_cv_path_LD"
18814 if test -n "$LD"; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18816 $as_echo "$LD" >&6; }
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18821 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18824 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18825 $as_echo_n "(cached) " >&6
18827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18828 case `$LD -v 2>&1 </dev/null` in
18829 *GNU
* |
*'with BFD'*)
18830 lt_cv_prog_gnu_ld
=yes
18833 lt_cv_prog_gnu_ld
=no
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18838 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18839 with_gnu_ld
=$lt_cv_prog_gnu_ld
18847 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18848 # archiving commands below assume that GNU ld is being used.
18849 if test "$with_gnu_ld" = yes; then
18850 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18851 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18853 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18854 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18856 # If archive_cmds runs LD, not CC, wlarc should be empty
18857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18858 # investigate it a little bit more. (MM)
18861 # ancient GNU ld didn't support --whole-archive et. al.
18862 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18863 $GREP 'no-whole-archive' > /dev
/null
; then
18864 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18866 whole_archive_flag_spec_CXX
=
18872 # A generic and very simple default shared library creation
18873 # command for GNU C++ for the case where it uses the native
18874 # linker, instead of GNU ld. If possible, this setting should
18875 # overridden to take advantage of the native linker features on
18876 # the platform it is being used on.
18877 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18880 # Commands to make compiler produce verbose output that lists
18881 # what "hidden" libraries, object files and flags are used when
18882 # linking a shared library.
18883 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18891 # PORTME: fill in a description of your system's C++ link characteristics
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18897 # FIXME: insert proper C++ library support
18901 if test "$host_cpu" = ia64
; then
18902 # On IA64, the linker does run time linking by default, so we don't
18903 # have to do anything special.
18904 aix_use_runtimelinking
=no
18905 exp_sym_flag
='-Bexport'
18908 aix_use_runtimelinking
=no
18910 # Test if we are trying to use run time linking or normal
18911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18912 # need to do runtime linking.
18913 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18914 for ld_flag
in $LDFLAGS; do
18917 aix_use_runtimelinking
=yes
18925 exp_sym_flag
='-bexport'
18926 no_entry_flag
='-bnoentry'
18929 # When large executables or shared objects are built, AIX ld can
18930 # have problems creating the table of contents. If linking a library
18931 # or program results in "error TOC overflow" add -mminimal-toc to
18932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18935 archive_cmds_CXX
=''
18936 hardcode_direct_CXX
=yes
18937 hardcode_direct_absolute_CXX
=yes
18938 hardcode_libdir_separator_CXX
=':'
18939 link_all_deplibs_CXX
=yes
18940 file_list_spec_CXX
='${wl}-f,'
18942 if test "$GXX" = yes; then
18943 case $host_os in aix4.
[012]|aix4.
[012].
*)
18944 # We only want to do this on AIX 4.2 and lower, the check
18945 # below for broken collect2 doesn't work under 4.3+
18946 collect2name
=`${CC} -print-prog-name=collect2`
18947 if test -f "$collect2name" &&
18948 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18950 # We have reworked collect2
18953 # We have old collect2
18954 hardcode_direct_CXX
=unsupported
18955 # It fails to find uninstalled libraries when the uninstalled
18956 # path is not listed in the libpath. Setting hardcode_minus_L
18957 # to unsupported forces relinking
18958 hardcode_minus_L_CXX
=yes
18959 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18960 hardcode_libdir_separator_CXX
=
18963 shared_flag
='-shared'
18964 if test "$aix_use_runtimelinking" = yes; then
18965 shared_flag
="$shared_flag "'${wl}-G'
18969 if test "$host_cpu" = ia64
; then
18970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18971 # chokes on -Wl,-G. The following line is correct:
18974 if test "$aix_use_runtimelinking" = yes; then
18975 shared_flag
='${wl}-G'
18977 shared_flag
='${wl}-bM:SRE'
18982 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18983 # It seems that -bexpall does not export symbols beginning with
18984 # underscore (_), so it is better to generate a list of symbols to
18986 always_export_symbols_CXX
=yes
18987 if test "$aix_use_runtimelinking" = yes; then
18988 # Warning - without using the other runtime loading flags (-brtl),
18989 # -berok will link without error, but may produce a broken library.
18990 allow_undefined_flag_CXX
='-berok'
18991 # Determine the default libpath from the value encoded in an empty
18993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
19004 if ac_fn_cxx_try_link
"$LINENO"; then :
19006 lt_aix_libpath_sed
='
19007 /Import File Strings/,/^$/ {
19013 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19014 # Check for a 64-bit object if we didn't find anything.
19015 if test -z "$aix_libpath"; then
19016 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19019 rm -f core conftest.err conftest.
$ac_objext \
19020 conftest
$ac_exeext conftest.
$ac_ext
19021 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19023 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19025 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"
19027 if test "$host_cpu" = ia64
; then
19028 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19029 allow_undefined_flag_CXX
="-z nodefs"
19030 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"
19032 # Determine the default libpath from the value encoded in an
19033 # empty executable.
19034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19045 if ac_fn_cxx_try_link
"$LINENO"; then :
19047 lt_aix_libpath_sed
='
19048 /Import File Strings/,/^$/ {
19054 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19055 # Check for a 64-bit object if we didn't find anything.
19056 if test -z "$aix_libpath"; then
19057 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19060 rm -f core conftest.err conftest.
$ac_objext \
19061 conftest
$ac_exeext conftest.
$ac_ext
19062 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19064 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19065 # Warning - without using the other run time loading flags,
19066 # -berok will link without error, but may produce a broken library.
19067 no_undefined_flag_CXX
=' ${wl}-bernotok'
19068 allow_undefined_flag_CXX
=' ${wl}-berok'
19069 if test "$with_gnu_ld" = yes; then
19070 # We only use this code for GNU lds that support --whole-archive.
19071 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19073 # Exported symbols can be pulled into shared objects from archives
19074 whole_archive_flag_spec_CXX
='$convenience'
19076 archive_cmds_need_lc_CXX
=yes
19077 # This is similar to how AIX traditionally builds its shared
19079 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'
19085 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19086 allow_undefined_flag_CXX
=unsupported
19087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19088 # support --undefined. This deserves some investigation. FIXME
19089 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19096 case $cc_basename in
19098 # FIXME: insert proper C++ library support
19104 cygwin
* | mingw
* | pw32
* | cegcc
*)
19105 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19106 # as there is no search path for DLLs.
19107 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19108 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19109 allow_undefined_flag_CXX
=unsupported
19110 always_export_symbols_CXX
=no
19111 enable_shared_with_static_runtimes_CXX
=yes
19113 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19114 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'
19115 # If the export-symbols file already is a .def file (1st line
19116 # is EXPORTS), use it as is; otherwise, prepend...
19117 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19118 cp $export_symbols $output_objdir/$soname.def;
19120 echo EXPORTS > $output_objdir/$soname.def;
19121 cat $export_symbols >> $output_objdir/$soname.def;
19123 $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'
19128 darwin
* | rhapsody
*)
19131 archive_cmds_need_lc_CXX
=no
19132 hardcode_direct_CXX
=no
19133 hardcode_automatic_CXX
=yes
19134 hardcode_shlibpath_var_CXX
=unsupported
19135 if test "$lt_cv_ld_force_load" = "yes"; then
19136 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\"`'
19138 whole_archive_flag_spec_CXX
=''
19140 link_all_deplibs_CXX
=yes
19141 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19142 case $cc_basename in
19143 ifort
*) _lt_dar_can_shared
=yes ;;
19144 *) _lt_dar_can_shared
=$GCC ;;
19146 if test "$_lt_dar_can_shared" = "yes"; then
19147 output_verbose_link_cmd
=func_echo_all
19148 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}"
19149 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19150 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}"
19151 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}"
19152 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19153 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}"
19154 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}"
19164 case $cc_basename in
19166 # FIXME: insert proper C++ library support
19170 # Green Hills C++ Compiler
19171 # FIXME: insert proper C++ library support
19175 # FIXME: insert proper C++ library support
19182 # C++ shared libraries reported to be fairly broken before
19188 archive_cmds_need_lc_CXX
=no
19191 freebsd
* | dragonfly
*)
19192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19201 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19202 link_all_deplibs_CXX
=yes
19206 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19207 hardcode_libdir_separator_CXX
=:
19208 export_dynamic_flag_spec_CXX
='${wl}-E'
19209 hardcode_direct_CXX
=yes
19210 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19211 # but as the default
19212 # location of the library.
19214 case $cc_basename in
19216 # FIXME: insert proper C++ library support
19220 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'
19221 # Commands to make compiler produce verbose output that lists
19222 # what "hidden" libraries, object files and flags are used when
19223 # linking a shared library.
19225 # There doesn't appear to be a way to prevent this compiler from
19226 # explicitly linking system object files so we need to strip them
19227 # from the output so that they don't get included in the library
19229 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"'
19232 if test "$GXX" = yes; then
19233 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'
19235 # FIXME: insert proper C++ library support
19243 if test $with_gnu_ld = no
; then
19244 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19245 hardcode_libdir_separator_CXX
=:
19251 export_dynamic_flag_spec_CXX
='${wl}-E'
19257 hardcode_direct_CXX
=no
19258 hardcode_shlibpath_var_CXX
=no
19261 hardcode_direct_CXX
=yes
19262 hardcode_direct_absolute_CXX
=yes
19263 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19264 # but as the default
19265 # location of the library.
19269 case $cc_basename in
19271 # FIXME: insert proper C++ library support
19277 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19280 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19283 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19286 # Commands to make compiler produce verbose output that lists
19287 # what "hidden" libraries, object files and flags are used when
19288 # linking a shared library.
19290 # There doesn't appear to be a way to prevent this compiler from
19291 # explicitly linking system object files so we need to strip them
19292 # from the output so that they don't get included in the library
19294 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"'
19297 if test "$GXX" = yes; then
19298 if test $with_gnu_ld = no
; then
19301 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19304 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19307 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'
19312 # FIXME: insert proper C++ library support
19320 hardcode_direct_CXX
=no
19321 hardcode_shlibpath_var_CXX
=no
19322 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19323 export_dynamic_flag_spec_CXX
='${wl}-E'
19324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19325 # Instead, shared libraries are loaded at an image base (0x10000000 by
19326 # default) and relocated if they conflict, which is a slow very memory
19327 # consuming and fragmenting process. To avoid this, we pick a random,
19328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19330 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'
19331 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'
19334 case $cc_basename in
19337 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'
19339 # Archives containing C++ object files must be created using
19340 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19341 # necessary to make sure instantiated templates are included
19343 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19346 if test "$GXX" = yes; then
19347 if test "$with_gnu_ld" = no
; then
19348 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'
19350 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'
19353 link_all_deplibs_CXX
=yes
19356 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19357 hardcode_libdir_separator_CXX
=:
19358 inherit_rpath_CXX
=yes
19361 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19362 case $cc_basename in
19364 # Kuck and Associates, Inc. (KAI) C++ Compiler
19366 # KCC will only create a shared library if the output file
19367 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19368 # to its proper name (with version) after linking.
19369 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'
19370 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'
19371 # Commands to make compiler produce verbose output that lists
19372 # what "hidden" libraries, object files and flags are used when
19373 # linking a shared library.
19375 # There doesn't appear to be a way to prevent this compiler from
19376 # explicitly linking system object files so we need to strip them
19377 # from the output so that they don't get included in the library
19379 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"'
19381 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19382 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19384 # Archives containing C++ object files must be created using
19385 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19386 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19391 # version 8.0 and above of icpc choke on multiply defined symbols
19392 # if we add $predep_objects and $postdep_objects, however 7.1 and
19393 # earlier do not add the objects themselves.
19394 case `$CC -V 2>&1` in
19396 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 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'
19399 *) # Version 8.0 or newer
19402 ia64
*) tmp_idyn
=' -i_dynamic';;
19404 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19405 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'
19408 archive_cmds_need_lc_CXX
=no
19409 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19410 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19411 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19414 # Portland Group C++ compiler
19416 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19417 prelink_cmds_CXX
='tpldir=Template.dir~
19419 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19420 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19421 old_archive_cmds_CXX
='tpldir=Template.dir~
19423 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19424 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19426 archive_cmds_CXX
='tpldir=Template.dir~
19428 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19429 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19430 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19432 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19433 $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'
19435 *) # Version 6 and above use weak symbols
19436 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19437 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'
19441 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19442 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19443 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'
19447 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19448 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'
19450 runpath_var
=LD_RUN_PATH
19451 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19452 hardcode_libdir_separator_CXX
=:
19454 # Commands to make compiler produce verbose output that lists
19455 # what "hidden" libraries, object files and flags are used when
19456 # linking a shared library.
19458 # There doesn't appear to be a way to prevent this compiler from
19459 # explicitly linking system object files so we need to strip them
19460 # from the output so that they don't get included in the library
19462 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'
19464 xl
* | mpixl
* | bgxl
*)
19465 # IBM XL 8.0 on PPC, with GNU ld
19466 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19467 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19468 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19469 if test "x$supports_anon_versioning" = xyes
; then
19470 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19472 echo "local: *; };" >> $output_objdir/$libname.ver~
19473 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19477 case `$CC -V 2>&1 | sed 5q` in
19480 no_undefined_flag_CXX
=' -zdefs'
19481 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19482 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'
19483 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19484 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'
19485 compiler_needs_object_CXX
=yes
19487 # Not sure whether something based on
19488 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19490 output_verbose_link_cmd
='func_echo_all'
19492 # Archives containing C++ object files must be created using
19493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19494 # necessary to make sure instantiated templates are included
19496 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19504 # FIXME: insert proper C++ library support
19509 # FIXME: insert proper C++ library support
19514 case $cc_basename in
19516 # FIXME: insert proper C++ library support
19520 # FIXME: insert proper C++ library support
19527 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19528 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19530 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19531 hardcode_direct_CXX
=yes
19532 hardcode_shlibpath_var_CXX
=no
19534 # Workaround some broken pre-1.5 toolchains
19535 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19543 # C++ shared libraries are fairly broken
19548 if test -f /usr
/libexec
/ld.so
; then
19549 hardcode_direct_CXX
=yes
19550 hardcode_shlibpath_var_CXX
=no
19551 hardcode_direct_absolute_CXX
=yes
19552 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19553 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19555 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19556 export_dynamic_flag_spec_CXX
='${wl}-E'
19557 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19559 output_verbose_link_cmd
=func_echo_all
19565 osf3
* | osf4
* | osf5
*)
19566 case $cc_basename in
19568 # Kuck and Associates, Inc. (KAI) C++ Compiler
19570 # KCC will only create a shared library if the output file
19571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19572 # to its proper name (with version) after linking.
19573 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'
19575 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19576 hardcode_libdir_separator_CXX
=:
19578 # Archives containing C++ object files must be created using
19579 # the KAI C++ compiler.
19581 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19582 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19586 # Rational C++ 2.4.1
19587 # FIXME: insert proper C++ library support
19593 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19594 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'
19595 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19598 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19599 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'
19600 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19601 echo "-hidden">> $lib.exp~
19602 $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~
19604 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19608 hardcode_libdir_separator_CXX
=:
19610 # Commands to make compiler produce verbose output that lists
19611 # what "hidden" libraries, object files and flags are used when
19612 # linking a shared library.
19614 # There doesn't appear to be a way to prevent this compiler from
19615 # explicitly linking system object files so we need to strip them
19616 # from the output so that they don't get included in the library
19618 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"'
19621 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19622 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19625 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'
19628 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'
19632 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19633 hardcode_libdir_separator_CXX
=:
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19638 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19641 # FIXME: insert proper C++ library support
19649 # FIXME: insert proper C++ library support
19654 case $cc_basename in
19657 # FIXME: insert proper C++ library support
19662 # FIXME: insert proper C++ library support
19666 # FIXME: insert proper C++ library support
19673 case $cc_basename in
19675 # Sun C++ 4.2, 5.x and Centerline C++
19676 archive_cmds_need_lc_CXX
=yes
19677 no_undefined_flag_CXX
=' -zdefs'
19678 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19679 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19680 $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'
19682 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19683 hardcode_shlibpath_var_CXX
=no
19685 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19687 # The compiler driver will combine and reorder linker options,
19688 # but understands `-z linker_flag'.
19689 # Supported since Solaris 2.6 (maybe 2.5.1?)
19690 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19693 link_all_deplibs_CXX
=yes
19695 output_verbose_link_cmd
='func_echo_all'
19697 # Archives containing C++ object files must be created using
19698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19699 # necessary to make sure instantiated templates are included
19701 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19704 # Green Hills C++ Compiler
19705 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19707 # The C++ compiler must be used to create the archive.
19708 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19711 # GNU C++ compiler with Solaris linker
19712 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19713 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19714 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19715 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19716 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19717 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19719 # Commands to make compiler produce verbose output that lists
19720 # what "hidden" libraries, object files and flags are used when
19721 # linking a shared library.
19722 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19724 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19726 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19727 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19728 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19733 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19736 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19738 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19740 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19748 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19749 no_undefined_flag_CXX
='${wl}-z,text'
19750 archive_cmds_need_lc_CXX
=no
19751 hardcode_shlibpath_var_CXX
=no
19752 runpath_var
='LD_RUN_PATH'
19754 case $cc_basename in
19756 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19757 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19766 sysv5
* | sco3.2v5
* | sco5v6
*)
19767 # Note: We can NOT use -z defs as we might desire, because we do not
19768 # link with -lc, and that would cause any symbols used from libc to
19769 # always be unresolved, which means just about no library would
19770 # ever link correctly. If we're not using GNU ld we use -z text
19771 # though, which does catch some bad symbols but isn't as heavy-handed
19773 no_undefined_flag_CXX
='${wl}-z,text'
19774 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19775 archive_cmds_need_lc_CXX
=no
19776 hardcode_shlibpath_var_CXX
=no
19777 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19778 hardcode_libdir_separator_CXX
=':'
19779 link_all_deplibs_CXX
=yes
19780 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19781 runpath_var
='LD_RUN_PATH'
19783 case $cc_basename in
19785 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19786 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19787 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19788 '"$old_archive_cmds_CXX"
19789 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19790 '"$reload_cmds_CXX"
19793 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19794 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800 case $cc_basename in
19802 # NonStop-UX NCC 3.20
19803 # FIXME: insert proper C++ library support
19807 # FIXME: insert proper C++ library support
19814 # FIXME: insert proper C++ library support
19819 # FIXME: insert proper C++ library support
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19825 $as_echo "$ld_shlibs_CXX" >&6; }
19826 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19832 ## There is no encapsulation within the following macros, do not change
19833 ## the running order or otherwise move them around unless you know exactly
19834 ## what you are doing...
19835 # Dependencies to place before and after the object being linked:
19836 predep_objects_CXX
=
19837 postdep_objects_CXX
=
19840 compiler_lib_search_path_CXX
=
19842 cat > conftest.
$ac_ext <<_LT_EOF
19846 Foo (void) { a = 0; }
19852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19853 (eval $ac_compile) 2>&5
19855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19856 test $ac_status = 0; }; then
19857 # Parse the compiler output and extract the necessary
19858 # objects, libraries and library flags.
19860 # Sentinel used to keep track of whether or not we are before
19861 # the conftest object file.
19862 pre_test_object_deps_done
=no
19864 for p
in `eval "$output_verbose_link_cmd"`; do
19868 # Some compilers place space between "-{L,R}" and the path.
19869 # Remove the space.
19870 if test $p = "-L" ||
19871 test $p = "-R"; then
19878 if test "$pre_test_object_deps_done" = no
; then
19881 # Internal compiler library paths should come after those
19882 # provided the user. The postdeps already come after the
19883 # user supplied libs so there is no need to process them.
19884 if test -z "$compiler_lib_search_path_CXX"; then
19885 compiler_lib_search_path_CXX
="${prev}${p}"
19887 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19890 # The "-l" case would never come before the object being
19891 # linked, so don't bother handling this case.
19894 if test -z "$postdeps_CXX"; then
19895 postdeps_CXX
="${prev}${p}"
19897 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19903 # This assumes that the test object file only shows up
19904 # once in the compiler output.
19905 if test "$p" = "conftest.$objext"; then
19906 pre_test_object_deps_done
=yes
19910 if test "$pre_test_object_deps_done" = no
; then
19911 if test -z "$predep_objects_CXX"; then
19912 predep_objects_CXX
="$p"
19914 predep_objects_CXX
="$predep_objects_CXX $p"
19917 if test -z "$postdep_objects_CXX"; then
19918 postdep_objects_CXX
="$p"
19920 postdep_objects_CXX
="$postdep_objects_CXX $p"
19925 *) ;; # Ignore the rest.
19933 echo "libtool.m4: error: problem compiling CXX test program"
19936 $RM -f confest.
$objext
19938 # PORTME: override above test on systems where it is broken
19941 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19942 # hack all around it, let's just trust "g++" to DTRT.
19943 predep_objects_CXX
=
19944 postdep_objects_CXX
=
19949 case `$CC -V 2>&1 | sed 5q` in
19953 # The more standards-conforming stlport4 library is
19954 # incompatible with the Cstd library. Avoid specifying
19955 # it if it's in CXXFLAGS. Ignore libCrun as
19956 # -library=stlport4 depends on it.
19957 case " $CXX $CXXFLAGS " in
19958 *" -library=stlport4 "*)
19959 solaris_use_stlport4
=yes
19963 if test "$solaris_use_stlport4" != yes; then
19964 postdeps_CXX
='-library=Cstd -library=Crun'
19971 case $cc_basename in
19973 # The more standards-conforming stlport4 library is
19974 # incompatible with the Cstd library. Avoid specifying
19975 # it if it's in CXXFLAGS. Ignore libCrun as
19976 # -library=stlport4 depends on it.
19977 case " $CXX $CXXFLAGS " in
19978 *" -library=stlport4 "*)
19979 solaris_use_stlport4
=yes
19983 # Adding this requires a known-good setup of shared libraries for
19984 # Sun compiler versions before 5.6, else PIC objects from an old
19985 # archive will be linked into the output, leading to subtle bugs.
19986 if test "$solaris_use_stlport4" != yes; then
19987 postdeps_CXX
='-library=Cstd -library=Crun'
19995 case " $postdeps_CXX " in
19996 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19998 compiler_lib_search_dirs_CXX
=
19999 if test -n "${compiler_lib_search_path_CXX}"; then
20000 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20033 lt_prog_compiler_wl_CXX
=
20034 lt_prog_compiler_pic_CXX
=
20035 lt_prog_compiler_static_CXX
=
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20040 # C++ specific cases for pic, static, wl, etc.
20041 if test "$GXX" = yes; then
20042 lt_prog_compiler_wl_CXX
='-Wl,'
20043 lt_prog_compiler_static_CXX
='-static'
20047 # All AIX code is PIC.
20048 if test "$host_cpu" = ia64
; then
20049 # AIX 5 now supports IA64 processor
20050 lt_prog_compiler_static_CXX
='-Bstatic'
20052 lt_prog_compiler_pic_CXX
='-fPIC'
20058 # see comment about AmigaOS4 .so support
20059 lt_prog_compiler_pic_CXX
='-fPIC'
20062 # FIXME: we need at least 68020 code to build shared libraries, but
20063 # adding the `-m68020' flag to GCC prevents building anything better,
20065 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20070 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20071 # PIC is the default for these OSes.
20073 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20074 # This hack is so that the source file can tell whether it is being
20075 # built for inclusion in a dll (and should export symbols for example).
20076 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20077 # (--disable-auto-import) libraries
20078 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20080 darwin
* | rhapsody
*)
20081 # PIC is the default on this platform
20082 # Common symbols not allowed in MH_DYLIB files
20083 lt_prog_compiler_pic_CXX
='-fno-common'
20086 # DJGPP does not support shared libraries at all
20087 lt_prog_compiler_pic_CXX
=
20090 # PIC is the default for Haiku.
20091 # The "-static" flag exists, but is broken.
20092 lt_prog_compiler_static_CXX
=
20095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20096 # Instead, we relocate shared libraries at runtime.
20099 if test -d /usr
/nec
; then
20100 lt_prog_compiler_pic_CXX
=-Kconform_pic
20104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20106 # sets the default TLS model and affects inlining.
20111 lt_prog_compiler_pic_CXX
='-fPIC'
20116 # QNX uses GNU C++, but need to define -shared option too, otherwise
20117 # it will coredump.
20118 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20121 lt_prog_compiler_pic_CXX
='-fPIC'
20127 # All AIX code is PIC.
20128 if test "$host_cpu" = ia64
; then
20129 # AIX 5 now supports IA64 processor
20130 lt_prog_compiler_static_CXX
='-Bstatic'
20132 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20136 case $cc_basename in
20138 # Green Hills C++ Compiler
20139 # _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"
20144 case $cc_basename in
20146 lt_prog_compiler_pic_CXX
='-KPIC'
20149 # Green Hills C++ Compiler
20150 lt_prog_compiler_pic_CXX
='-pic'
20156 freebsd
* | dragonfly
*)
20157 # FreeBSD uses GNU C++
20159 hpux9
* | hpux10
* | hpux11
*)
20160 case $cc_basename in
20162 lt_prog_compiler_wl_CXX
='-Wl,'
20163 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20164 if test "$host_cpu" != ia64
; then
20165 lt_prog_compiler_pic_CXX
='+Z'
20169 lt_prog_compiler_wl_CXX
='-Wl,'
20170 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20176 lt_prog_compiler_pic_CXX
='+Z'
20185 # This is c89, which is MS Visual C++ (no shared libs)
20186 # Anyone wants to do a port?
20188 irix5
* | irix6
* | nonstopux
*)
20189 case $cc_basename in
20191 lt_prog_compiler_wl_CXX
='-Wl,'
20192 lt_prog_compiler_static_CXX
='-non_shared'
20193 # CC pic flag -KPIC is the default.
20199 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20200 case $cc_basename in
20203 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20204 lt_prog_compiler_pic_CXX
='-fPIC'
20207 # old Intel C++ for x86_64 which still supported -KPIC.
20208 lt_prog_compiler_wl_CXX
='-Wl,'
20209 lt_prog_compiler_pic_CXX
='-KPIC'
20210 lt_prog_compiler_static_CXX
='-static'
20213 # Intel C++, used to be incompatible with GCC.
20214 # ICC 10 doesn't accept -KPIC any more.
20215 lt_prog_compiler_wl_CXX
='-Wl,'
20216 lt_prog_compiler_pic_CXX
='-fPIC'
20217 lt_prog_compiler_static_CXX
='-static'
20220 # Portland Group C++ compiler
20221 lt_prog_compiler_wl_CXX
='-Wl,'
20222 lt_prog_compiler_pic_CXX
='-fpic'
20223 lt_prog_compiler_static_CXX
='-Bstatic'
20227 # Make sure the PIC flag is empty. It appears that all Alpha
20228 # Linux and Compaq Tru64 Unix objects are PIC.
20229 lt_prog_compiler_pic_CXX
=
20230 lt_prog_compiler_static_CXX
='-non_shared'
20232 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20233 # IBM XL 8.0, 9.0 on PPC and BlueGene
20234 lt_prog_compiler_wl_CXX
='-Wl,'
20235 lt_prog_compiler_pic_CXX
='-qpic'
20236 lt_prog_compiler_static_CXX
='-qstaticlink'
20239 case `$CC -V 2>&1 | sed 5q` in
20242 lt_prog_compiler_pic_CXX
='-KPIC'
20243 lt_prog_compiler_static_CXX
='-Bstatic'
20244 lt_prog_compiler_wl_CXX
='-Qoption ld '
20255 case $cc_basename in
20257 lt_prog_compiler_pic_CXX
='-W c,exportall'
20266 # QNX uses GNU C++, but need to define -shared option too, otherwise
20267 # it will coredump.
20268 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20270 osf3
* | osf4
* | osf5
*)
20271 case $cc_basename in
20273 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20276 # Rational C++ 2.4.1
20277 lt_prog_compiler_pic_CXX
='-pic'
20280 # Digital/Compaq C++
20281 lt_prog_compiler_wl_CXX
='-Wl,'
20282 # Make sure the PIC flag is empty. It appears that all Alpha
20283 # Linux and Compaq Tru64 Unix objects are PIC.
20284 lt_prog_compiler_pic_CXX
=
20285 lt_prog_compiler_static_CXX
='-non_shared'
20294 case $cc_basename in
20296 # Sun C++ 4.2, 5.x and Centerline C++
20297 lt_prog_compiler_pic_CXX
='-KPIC'
20298 lt_prog_compiler_static_CXX
='-Bstatic'
20299 lt_prog_compiler_wl_CXX
='-Qoption ld '
20302 # Green Hills C++ Compiler
20303 lt_prog_compiler_pic_CXX
='-PIC'
20310 case $cc_basename in
20313 lt_prog_compiler_pic_CXX
='-pic'
20314 lt_prog_compiler_static_CXX
='-Bstatic'
20318 lt_prog_compiler_pic_CXX
='-pic'
20324 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20325 case $cc_basename in
20327 lt_prog_compiler_wl_CXX
='-Wl,'
20328 lt_prog_compiler_pic_CXX
='-KPIC'
20329 lt_prog_compiler_static_CXX
='-Bstatic'
20334 case $cc_basename in
20336 # NonStop-UX NCC 3.20
20337 lt_prog_compiler_pic_CXX
='-KPIC'
20346 lt_prog_compiler_can_build_shared_CXX
=no
20352 # For platforms which do not support PIC, -DPIC is meaningless:
20354 lt_prog_compiler_pic_CXX
=
20357 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20361 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20366 # Check to make sure the PIC flag actually works.
20368 if test -n "$lt_prog_compiler_pic_CXX"; then
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20370 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20371 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20374 lt_cv_prog_compiler_pic_works_CXX
=no
20375 ac_outfile
=conftest.
$ac_objext
20376 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20377 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20378 # Insert the option either (1) after the last *FLAGS variable, or
20379 # (2) before a word containing "conftest.", or (3) at the end.
20380 # Note that $ac_compile itself does not contain backslashes and begins
20381 # with a dollar sign (not a hyphen), so the echo should work correctly.
20382 # The option is referenced via a variable to avoid confusing sed.
20383 lt_compile
=`echo "$ac_compile" | $SED \
20384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20386 -e 's:$: $lt_compiler_flag:'`
20387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20388 (eval "$lt_compile" 2>conftest.err
)
20390 cat conftest.err
>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 if (exit $ac_status) && test -s "$ac_outfile"; then
20393 # The compiler can only warn and ignore the option if not recognized
20394 # So say no if there are warnings other than the usual output.
20395 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20396 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20397 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20398 lt_cv_prog_compiler_pic_works_CXX
=yes
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20405 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20407 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20408 case $lt_prog_compiler_pic_CXX in
20410 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20413 lt_prog_compiler_pic_CXX
=
20414 lt_prog_compiler_can_build_shared_CXX
=no
20422 # Check to make sure the static flag actually works.
20424 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20427 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20428 $as_echo_n "(cached) " >&6
20430 lt_cv_prog_compiler_static_works_CXX
=no
20431 save_LDFLAGS
="$LDFLAGS"
20432 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20433 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20434 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20435 # The linker can only warn and ignore the option if not recognized
20436 # So say no if there are warnings
20437 if test -s conftest.err
; then
20438 # Append any errors to the config.log.
20439 cat conftest.err
1>&5
20440 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20441 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20442 if diff conftest.exp conftest.er2
>/dev
/null
; then
20443 lt_cv_prog_compiler_static_works_CXX
=yes
20446 lt_cv_prog_compiler_static_works_CXX
=yes
20450 LDFLAGS
="$save_LDFLAGS"
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20454 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20456 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20459 lt_prog_compiler_static_CXX
=
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20470 lt_cv_prog_compiler_c_o_CXX
=no
20471 $RM -r conftest
2>/dev
/null
20475 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20477 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20478 # Insert the option either (1) after the last *FLAGS variable, or
20479 # (2) before a word containing "conftest.", or (3) at the end.
20480 # Note that $ac_compile itself does not contain backslashes and begins
20481 # with a dollar sign (not a hyphen), so the echo should work correctly.
20482 lt_compile
=`echo "$ac_compile" | $SED \
20483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20485 -e 's:$: $lt_compiler_flag:'`
20486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20487 (eval "$lt_compile" 2>out
/conftest.err
)
20489 cat out
/conftest.err
>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20493 # The compiler can only warn and ignore the option if not recognized
20494 # So say no if there are warnings
20495 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20496 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20497 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20498 lt_cv_prog_compiler_c_o_CXX
=yes
20503 # SGI C++ compiler will create directory out/ii_files/ for
20504 # template instantiation
20505 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20506 $RM out
/* && rmdir out
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20513 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20519 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20520 $as_echo_n "(cached) " >&6
20522 lt_cv_prog_compiler_c_o_CXX
=no
20523 $RM -r conftest
2>/dev
/null
20527 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20529 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20530 # Insert the option either (1) after the last *FLAGS variable, or
20531 # (2) before a word containing "conftest.", or (3) at the end.
20532 # Note that $ac_compile itself does not contain backslashes and begins
20533 # with a dollar sign (not a hyphen), so the echo should work correctly.
20534 lt_compile
=`echo "$ac_compile" | $SED \
20535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20537 -e 's:$: $lt_compiler_flag:'`
20538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20539 (eval "$lt_compile" 2>out
/conftest.err
)
20541 cat out
/conftest.err
>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20545 # The compiler can only warn and ignore the option if not recognized
20546 # So say no if there are warnings
20547 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20548 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20549 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20550 lt_cv_prog_compiler_c_o_CXX
=yes
20555 # SGI C++ compiler will create directory out/ii_files/ for
20556 # template instantiation
20557 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20558 $RM out
/* && rmdir out
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20565 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20570 hard_links
="nottested"
20571 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20572 # do not overwrite the value of need_locks provided by the user
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20574 $as_echo_n "checking if we can lock with hard links... " >&6; }
20577 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20579 ln conftest.a conftest.b
2>&5 || hard_links
=no
20580 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20582 $as_echo "$hard_links" >&6; }
20583 if test "$hard_links" = no
; then
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20597 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20600 # If we're using GNU nm, then we don't want the "-C" option.
20601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20602 # Also, AIX nm treats weak defined symbols like other global defined
20603 # symbols, whereas GNU nm marks them as "W".
20604 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20605 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'
20607 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'
20611 export_symbols_cmds_CXX
="$ltdll_cmds"
20613 cygwin
* | mingw
* | cegcc
*)
20614 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'
20617 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20620 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20623 $as_echo "$ld_shlibs_CXX" >&6; }
20624 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20626 with_gnu_ld_CXX
=$with_gnu_ld
20634 # Do we need to explicitly link libc?
20636 case "x$archive_cmds_need_lc_CXX" in
20638 # Assume -lc should be added
20639 archive_cmds_need_lc_CXX
=yes
20641 if test "$enable_shared" = yes && test "$GCC" = yes; then
20642 case $archive_cmds_CXX in
20644 # FIXME: we may have to deal with multi-command sequences.
20647 # Test whether the compiler implicitly links with -lc since on some
20648 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20649 # to ld, don't add -lc before -lgcc.
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20651 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20652 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20653 $as_echo_n "(cached) " >&6
20656 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20659 (eval $ac_compile) 2>&5
20661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20662 test $ac_status = 0; } 2>conftest.err
; then
20665 libobjs
=conftest.
$ac_objext
20667 wl
=$lt_prog_compiler_wl_CXX
20668 pic_flag
=$lt_prog_compiler_pic_CXX
20674 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20675 allow_undefined_flag_CXX
=
20676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20677 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20680 test $ac_status = 0; }
20682 lt_cv_archive_cmds_need_lc_CXX
=no
20684 lt_cv_archive_cmds_need_lc_CXX
=yes
20686 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20688 cat conftest.err
1>&5
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20694 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20695 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20766 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20768 library_names_spec
=
20769 libname_spec
='lib$name'
20773 postuninstall_cmds
=
20777 shlibpath_overrides_runpath
=unknown
20779 dynamic_linker
="$host_os ld.so"
20780 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20781 need_lib_prefix
=unknown
20782 hardcode_into_libs
=no
20784 # when you set need_version to no, make sure it does not cause -set_version
20785 # flags to be left without arguments
20786 need_version
=unknown
20791 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20792 shlibpath_var
=LIBPATH
20794 # AIX 3 has no versioning support, so we append a major version to the name.
20795 soname_spec
='${libname}${release}${shared_ext}$major'
20802 hardcode_into_libs
=yes
20803 if test "$host_cpu" = ia64
; then
20804 # AIX 5 supports IA64
20805 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20806 shlibpath_var
=LD_LIBRARY_PATH
20808 # With GCC up to 2.95.x, collect2 would create an import file
20809 # for dependence libraries. The import file would start with
20810 # the line `#! .'. This would cause the generated library to
20811 # depend on `.', always an invalid library. This was fixed in
20812 # development snapshots of GCC prior to 3.0.
20814 aix4 | aix4.
[01] | aix4.
[01].
*)
20815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20817 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20820 can_build_shared
=no
20824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20825 # soname into executable. Probably we can add versioning support to
20826 # collect2, so additional links can be useful in future.
20827 if test "$aix_use_runtimelinking" = yes; then
20828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20829 # instead of lib<name>.a to let people know that these are not
20830 # typical AIX shared libraries.
20831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 # We preserve .a as extension for shared libraries through AIX4.2
20834 # and later when we are not doing run time linking.
20835 library_names_spec
='${libname}${release}.a $libname.a'
20836 soname_spec
='${libname}${release}${shared_ext}$major'
20838 shlibpath_var
=LIBPATH
20845 # Since July 2007 AmigaOS4 officially supports .so libraries.
20846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 library_names_spec
='$libname.ixlibrary $libname.a'
20851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20852 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'
20858 library_names_spec
='${libname}${shared_ext}'
20859 dynamic_linker
="$host_os ld.so"
20860 shlibpath_var
=LIBRARY_PATH
20866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20867 soname_spec
='${libname}${release}${shared_ext}$major'
20868 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20869 shlibpath_var
=LD_LIBRARY_PATH
20870 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20871 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20872 # the default ld.so.conf also contains /usr/contrib/lib and
20873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20874 # libtool to hard-code these into programs
20877 cygwin
* | mingw
* | pw32
* | cegcc
*)
20878 version_type
=windows
20883 case $GCC,$host_os in
20884 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20885 library_names_spec
='$libname.dll.a'
20886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20887 postinstall_cmds
='base_file=`basename \${file}`~
20888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20889 dldir=$destdir/`dirname \$dlpath`~
20890 test -d \$dldir || mkdir -p \$dldir~
20891 $install_prog $dir/$dlname \$dldir/$dlname~
20892 chmod a+x \$dldir/$dlname~
20893 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20894 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20896 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20897 dlpath=$dir/\$dldll~
20899 shlibpath_overrides_runpath
=yes
20903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20904 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20908 # MinGW DLLs use traditional 'lib' prefix
20909 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20912 # pw32 DLLs use 'pw' prefix rather than 'lib'
20913 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20919 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20922 dynamic_linker
='Win32 ld.exe'
20923 # FIXME: first we should search . and the directory the executable is in
20927 darwin
* | rhapsody
*)
20928 dynamic_linker
="$host_os dyld"
20929 version_type
=darwin
20932 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20933 soname_spec
='${libname}${release}${major}$shared_ext'
20934 shlibpath_overrides_runpath
=yes
20935 shlibpath_var
=DYLD_LIBRARY_PATH
20936 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20938 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20946 soname_spec
='${libname}${release}${shared_ext}$major'
20947 shlibpath_var
=LD_LIBRARY_PATH
20950 freebsd
* | dragonfly
*)
20951 # DragonFly does not have aout. When/if they implement a new
20952 # versioning mechanism, adjust this.
20953 if test -x /usr
/bin
/objformat
; then
20954 objformat
=`/usr/bin/objformat`
20957 freebsd
[23].
*) objformat
=aout
;;
20958 *) objformat
=elf
;;
20961 version_type
=freebsd-
$objformat
20962 case $version_type in
20964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20969 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20973 shlibpath_var
=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath
=yes
20978 freebsd3.
[01]* | freebsdelf3.
[01]*)
20979 shlibpath_overrides_runpath
=yes
20980 hardcode_into_libs
=yes
20982 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20983 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20984 shlibpath_overrides_runpath
=no
20985 hardcode_into_libs
=yes
20987 *) # from 4.6 on, and DragonFly
20988 shlibpath_overrides_runpath
=yes
20989 hardcode_into_libs
=yes
20998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20999 soname_spec
='${libname}${release}${shared_ext}$major'
21000 shlibpath_var
=LD_LIBRARY_PATH
21001 hardcode_into_libs
=yes
21008 dynamic_linker
="$host_os runtime_loader"
21009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21010 soname_spec
='${libname}${release}${shared_ext}$major'
21011 shlibpath_var
=LIBRARY_PATH
21012 shlibpath_overrides_runpath
=yes
21013 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21014 hardcode_into_libs
=yes
21017 hpux9
* | hpux10
* | hpux11
*)
21018 # Give a soname corresponding to the major version so that dld.sl refuses to
21019 # link against other versions.
21026 hardcode_into_libs
=yes
21027 dynamic_linker
="$host_os dld.so"
21028 shlibpath_var
=LD_LIBRARY_PATH
21029 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21031 soname_spec
='${libname}${release}${shared_ext}$major'
21032 if test "X$HPUX_IA64_MODE" = X32
; then
21033 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21035 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21037 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21041 hardcode_into_libs
=yes
21042 dynamic_linker
="$host_os dld.sl"
21043 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21044 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec
='${libname}${release}${shared_ext}$major'
21047 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21048 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21052 dynamic_linker
="$host_os dld.sl"
21053 shlibpath_var
=SHLIB_PATH
21054 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21056 soname_spec
='${libname}${release}${shared_ext}$major'
21059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21060 postinstall_cmds
='chmod 555 $lib'
21061 # or fails outright, so override atomically:
21062 install_override_mode
=555
21069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21070 soname_spec
='${libname}${release}${shared_ext}$major'
21071 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21072 shlibpath_var
=LD_LIBRARY_PATH
21073 shlibpath_overrides_runpath
=no
21074 hardcode_into_libs
=yes
21077 irix5
* | irix6
* | nonstopux
*)
21079 nonstopux
*) version_type
=nonstopux
;;
21081 if test "$lt_cv_prog_gnu_ld" = yes; then
21089 soname_spec
='${libname}${release}${shared_ext}$major'
21090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21092 irix5
* | nonstopux
*)
21093 libsuff
= shlibsuff
=
21096 case $LD in # libtool.m4 will add one of these switches to LD
21097 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21098 libsuff
= shlibsuff
= libmagic
=32-bit;;
21099 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21100 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21101 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21102 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21103 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21107 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21108 shlibpath_overrides_runpath
=no
21109 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21110 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21111 hardcode_into_libs
=yes
21114 # No shared lib support for Linux oldld, aout, or coff.
21115 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21119 # This must be Linux ELF.
21120 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21125 soname_spec
='${libname}${release}${shared_ext}$major'
21126 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21127 shlibpath_var
=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath
=no
21130 # Some binutils ld are patched to set DT_RUNPATH
21131 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21132 $as_echo_n "(cached) " >&6
21134 lt_cv_shlibpath_overrides_runpath
=no
21135 save_LDFLAGS
=$LDFLAGS
21136 save_libdir
=$libdir
21137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21140 /* end confdefs.h. */
21150 if ac_fn_cxx_try_link
"$LINENO"; then :
21151 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21152 lt_cv_shlibpath_overrides_runpath
=yes
21155 rm -f core conftest.err conftest.
$ac_objext \
21156 conftest
$ac_exeext conftest.
$ac_ext
21157 LDFLAGS
=$save_LDFLAGS
21158 libdir
=$save_libdir
21162 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21164 # This implies no fast_install, which is unacceptable.
21165 # Some rework will be needed to allow for fast_install
21166 # before this can be enabled.
21167 hardcode_into_libs
=yes
21169 # Append ld.so.conf contents to the search path
21170 if test -f /etc
/ld.so.conf
; then
21171 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' ' '`
21172 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21175 # We used to test for /lib/ld.so.1 and disable shared libraries on
21176 # powerpc, because MkLinux only supported shared libraries with the
21177 # GNU dynamic linker. Since this was broken with cross compilers,
21178 # most powerpc-linux boxes support dynamic linking these days and
21179 # people can always --disable-shared, the test was removed, and we
21180 # assume the GNU/Linux dynamic linker is in use.
21181 dynamic_linker
='GNU/Linux ld.so'
21188 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21190 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21191 dynamic_linker
='NetBSD (a.out) ld.so'
21193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21194 soname_spec
='${libname}${release}${shared_ext}$major'
21195 dynamic_linker
='NetBSD ld.elf_so'
21197 shlibpath_var
=LD_LIBRARY_PATH
21198 shlibpath_overrides_runpath
=yes
21199 hardcode_into_libs
=yes
21204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21205 shlibpath_var
=LD_LIBRARY_PATH
21206 shlibpath_overrides_runpath
=yes
21213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 soname_spec
='${libname}${release}${shared_ext}$major'
21215 shlibpath_var
=LD_LIBRARY_PATH
21216 shlibpath_overrides_runpath
=no
21217 hardcode_into_libs
=yes
21218 dynamic_linker
='ldqnx.so'
21223 sys_lib_dlsearch_path_spec
="/usr/lib"
21225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21227 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21228 *) need_version
=no
;;
21230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21231 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21232 shlibpath_var
=LD_LIBRARY_PATH
21233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21235 openbsd2.
[89] | openbsd2.
[89].
*)
21236 shlibpath_overrides_runpath
=no
21239 shlibpath_overrides_runpath
=yes
21243 shlibpath_overrides_runpath
=yes
21248 libname_spec
='$name'
21251 library_names_spec
='$libname${shared_ext} $libname.a'
21252 dynamic_linker
='OS/2 ld.exe'
21253 shlibpath_var
=LIBPATH
21256 osf3
* | osf4
* | osf5
*)
21260 soname_spec
='${libname}${release}${shared_ext}$major'
21261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21262 shlibpath_var
=LD_LIBRARY_PATH
21263 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21264 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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
21278 shlibpath_overrides_runpath
=yes
21279 hardcode_into_libs
=yes
21280 # ldd complains unless libraries are executable
21281 postinstall_cmds
='chmod +x $lib'
21286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21287 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21288 shlibpath_var
=LD_LIBRARY_PATH
21289 shlibpath_overrides_runpath
=yes
21290 if test "$with_gnu_ld" = yes; then
21298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21299 soname_spec
='${libname}${release}${shared_ext}$major'
21300 shlibpath_var
=LD_LIBRARY_PATH
21301 case $host_vendor in
21303 shlibpath_overrides_runpath
=no
21305 runpath_var
=LD_RUN_PATH
21313 shlibpath_overrides_runpath
=no
21314 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21320 if test -d /usr
/nec
;then
21322 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21323 soname_spec
='$libname${shared_ext}.$major'
21324 shlibpath_var
=LD_LIBRARY_PATH
21328 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21329 version_type
=freebsd-elf
21332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21333 soname_spec
='${libname}${release}${shared_ext}$major'
21334 shlibpath_var
=LD_LIBRARY_PATH
21335 shlibpath_overrides_runpath
=yes
21336 hardcode_into_libs
=yes
21337 if test "$with_gnu_ld" = yes; then
21338 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21340 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21343 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21347 sys_lib_dlsearch_path_spec
='/usr/lib'
21351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21356 shlibpath_var
=LD_LIBRARY_PATH
21357 shlibpath_overrides_runpath
=no
21358 hardcode_into_libs
=yes
21363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec
='${libname}${release}${shared_ext}$major'
21365 shlibpath_var
=LD_LIBRARY_PATH
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21373 $as_echo "$dynamic_linker" >&6; }
21374 test "$dynamic_linker" = no
&& can_build_shared
=no
21376 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21377 if test "$GCC" = yes; then
21378 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21381 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21382 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21384 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21385 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21426 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21427 hardcode_action_CXX
=
21428 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21429 test -n "$runpath_var_CXX" ||
21430 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21432 # We can hardcode non-existent directories.
21433 if test "$hardcode_direct_CXX" != no
&&
21434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21435 # have to relink, otherwise we might link with an installed library
21436 # when we should be linking with a yet-to-be-installed one
21437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21438 test "$hardcode_minus_L_CXX" != no
; then
21439 # Linking always hardcodes the temporary library directory.
21440 hardcode_action_CXX
=relink
21442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21443 hardcode_action_CXX
=immediate
21446 # We cannot hardcode anything, or else we can only hardcode existing
21448 hardcode_action_CXX
=unsupported
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21451 $as_echo "$hardcode_action_CXX" >&6; }
21453 if test "$hardcode_action_CXX" = relink ||
21454 test "$inherit_rpath_CXX" = yes; then
21455 # Fast installation is not supported
21456 enable_fast_install
=no
21457 elif test "$shlibpath_overrides_runpath" = yes ||
21458 test "$enable_shared" = no
; then
21459 # Fast installation is not necessary
21460 enable_fast_install
=needless
21469 fi # test -n "$compiler"
21475 with_gnu_ld
=$lt_save_with_gnu_ld
21476 lt_cv_path_LDCXX
=$lt_cv_path_LD
21477 lt_cv_path_LD
=$lt_save_path_LD
21478 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21479 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21480 fi # test "$_lt_caught_CXX_error" != yes
21483 ac_cpp
='$CPP $CPPFLAGS'
21484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21503 # Only expand once:
21509 # Identify the assembler which will work hand-in-glove with the newly
21510 # built GCC, so that we can examine its features. This is the assembler
21511 # which will be driven by the driver program.
21513 # If build != host, and we aren't building gas in-tree, we identify a
21514 # build->target assembler and hope that it will have the same features
21515 # as the host->target assembler we'll be using.
21516 gcc_cv_gas_major_version
=
21517 gcc_cv_gas_minor_version
=
21518 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21520 if test "${gcc_cv_as+set}" = set; then :
21524 if test -x "$DEFAULT_ASSEMBLER"; then
21525 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21526 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21527 && test -f ..
/gas
/Makefile \
21528 && test x
$build = x
$host; then
21529 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21530 elif test -x as
$build_exeext; then
21531 # Build using assembler in the current directory.
21532 gcc_cv_as
=.
/as
$build_exeext
21533 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21534 gcc_cv_as
="$AS_FOR_TARGET"
21536 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21537 set dummy
$AS_FOR_TARGET; ac_word
=$2
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21539 $as_echo_n "checking for $ac_word... " >&6; }
21540 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21545 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21549 for as_dir
in $PATH
21552 test -z "$as_dir" && as_dir
=.
21553 for ac_exec_ext
in '' $ac_executable_extensions; do
21554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21555 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21566 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21567 if test -n "$gcc_cv_as"; then
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21569 $as_echo "$gcc_cv_as" >&6; }
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 $as_echo "no" >&6; }
21579 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21581 case "$ORIGINAL_AS_FOR_TARGET" in
21582 .
/as | .
/as
$build_exeext) ;;
21583 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21588 $as_echo_n "checking what assembler to use... " >&6; }
21589 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21590 # Single tree build which includes gas. We want to prefer it
21591 # over whatever linker top-level may have detected, since
21592 # we'll use what we're building after installation anyway.
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21594 $as_echo "newly built gas" >&6; }
21596 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21597 for f
in $gcc_cv_as_bfd_srcdir/configure \
21598 $gcc_cv_as_gas_srcdir/configure \
21599 $gcc_cv_as_gas_srcdir/configure.
in \
21600 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21601 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21602 if test x
$gcc_cv_gas_version != x
; then
21606 case $gcc_cv_gas_version in
21608 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21610 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21611 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21612 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21613 case $gcc_cv_gas_patch_version in
21614 "") gcc_cv_gas_patch_version
="0" ;;
21616 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21617 + $gcc_cv_gas_minor_version \) \* 1000 \
21618 + $gcc_cv_gas_patch_version`
21620 in_tree_gas_is_elf
=no
21621 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21622 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21623 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21625 in_tree_gas_is_elf
=yes
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21629 $as_echo "$gcc_cv_as" >&6; }
21634 # Check whether --enable-ld was given.
21635 if test "${enable_ld+set}" = set; then :
21636 enableval
=$enable_ld; case "${enableval}" in
21644 install_gold_as_default
=no
21645 # Check whether --enable-gold was given.
21646 if test "${enable_gold+set}" = set; then :
21647 enableval
=$enable_gold; case "${enableval}" in
21649 install_gold_as_default
=yes
21652 if test x
${default_ld} != x
; then
21653 install_gold_as_default
=yes
21659 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21665 # Identify the linker which will work hand-in-glove with the newly
21666 # built GCC, so that we can examine its features. This is the linker
21667 # which will be driven by the driver program.
21669 # If build != host, and we aren't building gas in-tree, we identify a
21670 # build->target linker and hope that it will have the same features
21671 # as the host->target linker we'll be using.
21672 gcc_cv_gld_major_version
=
21673 gcc_cv_gld_minor_version
=
21674 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21675 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21676 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21678 if test "${gcc_cv_ld+set}" = set; then :
21682 if test -x "$DEFAULT_LINKER"; then
21683 gcc_cv_ld
="$DEFAULT_LINKER"
21684 elif test $install_gold_as_default = yes \
21685 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21686 && test -f ..
/gold
/Makefile \
21687 && test x
$build = x
$host; then
21688 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21689 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21690 && test -f ..
/ld
/Makefile \
21691 && test x
$build = x
$host; then
21692 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21693 elif test -x collect-ld
$build_exeext; then
21694 # Build using linker in the current directory.
21695 gcc_cv_ld
=.
/collect-ld
$build_exeext
21696 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21697 gcc_cv_ld
="$LD_FOR_TARGET"
21699 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21700 set dummy
$LD_FOR_TARGET; ac_word
=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21708 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21712 for as_dir
in $PATH
21715 test -z "$as_dir" && as_dir
=.
21716 for ac_exec_ext
in '' $ac_executable_extensions; do
21717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21718 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21729 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21730 if test -n "$gcc_cv_ld"; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21732 $as_echo "$gcc_cv_ld" >&6; }
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21742 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21743 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21744 # if the PLUGIN_LD is set ld-new, just have it as ld
21745 # as that is the installed named.
21746 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21747 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21748 PLUGIN_LD_SUFFIX
=ld
21751 # Check whether --with-plugin-ld was given.
21752 if test "${with_plugin_ld+set}" = set; then :
21753 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21754 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21755 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21761 cat >>confdefs.h
<<_ACEOF
21762 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21766 # Check to see if we are using gold instead of ld
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21768 $as_echo_n "checking whether we are using gold... " >&6; }
21770 if test x
$gcc_cv_ld != x
; then
21771 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21772 |
grep "GNU gold" > /dev
/null
; then
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21777 $as_echo "$ld_is_gold" >&6; }
21779 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21781 case "$ORIGINAL_LD_FOR_TARGET" in
21782 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21783 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21788 $as_echo_n "checking what linker to use... " >&6; }
21789 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21790 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21791 # Single tree build which includes ld. We want to prefer it
21792 # over whatever linker top-level may have detected, since
21793 # we'll use what we're building after installation anyway.
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21795 $as_echo "newly built ld" >&6; }
21797 in_tree_ld_is_elf
=no
21798 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21799 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21800 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21801 in_tree_ld_is_elf
=yes
21802 elif test "$ld_is_gold" = yes; then
21803 in_tree_ld_is_elf
=yes
21805 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
21807 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21808 if test x
$gcc_cv_gld_version != x
; then
21812 case $gcc_cv_gld_version in
21814 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21816 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21817 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21818 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21819 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21822 $as_echo "$gcc_cv_ld" >&6; }
21824 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21825 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21826 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21832 # Figure out what nm we will be using.
21833 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21834 if test "${gcc_cv_nm+set}" = set; then :
21838 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21839 && test -f ..
/binutils
/Makefile \
21840 && test x
$build = x
$host; then
21841 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21842 elif test -x nm
$build_exeext; then
21843 gcc_cv_nm
=.
/nm
$build_exeext
21844 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21845 gcc_cv_nm
="$NM_FOR_TARGET"
21847 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21848 set dummy
$NM_FOR_TARGET; ac_word
=$2
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21850 $as_echo_n "checking for $ac_word... " >&6; }
21851 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
21856 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21860 for as_dir
in $PATH
21863 test -z "$as_dir" && as_dir
=.
21864 for ac_exec_ext
in '' $ac_executable_extensions; do
21865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21866 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21877 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21878 if test -n "$gcc_cv_nm"; then
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21880 $as_echo "$gcc_cv_nm" >&6; }
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21883 $as_echo "no" >&6; }
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21891 $as_echo_n "checking what nm to use... " >&6; }
21892 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21893 # Single tree build which includes binutils.
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21895 $as_echo "newly built nm" >&6; }
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21899 $as_echo "$gcc_cv_nm" >&6; }
21903 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21905 case "$ORIGINAL_NM_FOR_TARGET" in
21906 .
/nm | .
/nm
$build_exeext) ;;
21907 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21912 # Figure out what objdump we will be using.
21913 if test "${gcc_cv_objdump+set}" = set; then :
21917 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21918 && test -f ..
/binutils
/Makefile \
21919 && test x
$build = x
$host; then
21920 # Single tree build which includes binutils.
21921 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21922 elif test -x objdump
$build_exeext; then
21923 gcc_cv_objdump
=.
/objdump
$build_exeext
21924 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21925 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21927 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21928 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21930 $as_echo_n "checking for $ac_word... " >&6; }
21931 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21934 case $gcc_cv_objdump in
21936 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21940 for as_dir
in $PATH
21943 test -z "$as_dir" && as_dir
=.
21944 for ac_exec_ext
in '' $ac_executable_extensions; do
21945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21946 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21957 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21958 if test -n "$gcc_cv_objdump"; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21960 $as_echo "$gcc_cv_objdump" >&6; }
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21971 $as_echo_n "checking what objdump to use... " >&6; }
21972 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21973 # Single tree build which includes binutils.
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21975 $as_echo "newly built objdump" >&6; }
21976 elif test x
$gcc_cv_objdump = x
; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21978 $as_echo "not found" >&6; }
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21981 $as_echo "$gcc_cv_objdump" >&6; }
21984 # Figure out what readelf we will be using.
21985 if test "${gcc_cv_readelf+set}" = set; then :
21989 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21990 && test -f ..
/binutils
/Makefile \
21991 && test x
$build = x
$host; then
21992 # Single tree build which includes binutils.
21993 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21994 elif test -x readelf
$build_exeext; then
21995 gcc_cv_readelf
=.
/readelf
$build_exeext
21997 # Extract the first word of "readelf", so it can be a program name with args.
21998 set dummy readelf
; ac_word
=$2
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22000 $as_echo_n "checking for $ac_word... " >&6; }
22001 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22004 case $gcc_cv_readelf in
22006 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22010 for as_dir
in $PATH
22013 test -z "$as_dir" && as_dir
=.
22014 for ac_exec_ext
in '' $ac_executable_extensions; do
22015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22016 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22027 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22028 if test -n "$gcc_cv_readelf"; then
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22030 $as_echo "$gcc_cv_readelf" >&6; }
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22041 $as_echo_n "checking what readelf to use... " >&6; }
22042 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22043 # Single tree build which includes binutils.
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22045 $as_echo "newly built readelf" >&6; }
22046 elif test x
$gcc_cv_readelf = x
; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22048 $as_echo "not found" >&6; }
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22051 $as_echo "$gcc_cv_readelf" >&6; }
22054 # Figure out what assembler alignment features are present.
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22056 $as_echo_n "checking assembler flags... " >&6; }
22057 if test "${gcc_cv_as_flags+set}" = set; then :
22058 $as_echo_n "(cached) " >&6
22061 i
[34567]86-*-linux*)
22062 gcc_cv_as_flags
=--32
22064 x86_64-
*-linux-gnux32)
22065 gcc_cv_as_flags
=--x32
22068 gcc_cv_as_flags
=--64
22070 powerpc
*-*-darwin*)
22071 gcc_cv_as_flags
="-arch ppc"
22074 gcc_cv_as_flags
=" "
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22079 $as_echo "$gcc_cv_as_flags" >&6; }
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22082 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22083 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22084 $as_echo_n "(cached) " >&6
22086 gcc_cv_as_balign_and_p2align
=no
22087 if test $in_tree_gas = yes; then
22088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22089 then gcc_cv_as_balign_and_p2align
=yes
22091 elif test x
$gcc_cv_as != x
; then
22092 $as_echo '.balign 4
22093 .p2align 2' > conftest.s
22094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22096 (eval $ac_try) 2>&5
22098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099 test $ac_status = 0; }; }
22101 gcc_cv_as_balign_and_p2align
=yes
22103 echo "configure: failed program was" >&5
22106 rm -f conftest.o conftest.s
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22110 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22111 if test $gcc_cv_as_balign_and_p2align = yes; then
22113 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22118 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22119 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22120 $as_echo_n "(cached) " >&6
22122 gcc_cv_as_max_skip_p2align
=no
22123 if test $in_tree_gas = yes; then
22124 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22125 then gcc_cv_as_max_skip_p2align
=yes
22127 elif test x
$gcc_cv_as != x
; then
22128 $as_echo '.p2align 4,,7' > conftest.s
22129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22131 (eval $ac_try) 2>&5
22133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22134 test $ac_status = 0; }; }
22136 gcc_cv_as_max_skip_p2align
=yes
22138 echo "configure: failed program was" >&5
22141 rm -f conftest.o conftest.s
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22145 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22146 if test $gcc_cv_as_max_skip_p2align = yes; then
22148 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22153 $as_echo_n "checking assembler for .literal16... " >&6; }
22154 if test "${gcc_cv_as_literal16+set}" = set; then :
22155 $as_echo_n "(cached) " >&6
22157 gcc_cv_as_literal16
=no
22158 if test $in_tree_gas = yes; then
22159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22160 then gcc_cv_as_literal16
=yes
22162 elif test x
$gcc_cv_as != x
; then
22163 $as_echo '.literal16' > conftest.s
22164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22166 (eval $ac_try) 2>&5
22168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22169 test $ac_status = 0; }; }
22171 gcc_cv_as_literal16
=yes
22173 echo "configure: failed program was" >&5
22176 rm -f conftest.o conftest.s
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22180 $as_echo "$gcc_cv_as_literal16" >&6; }
22181 if test $gcc_cv_as_literal16 = yes; then
22183 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22188 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22189 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22190 $as_echo_n "(cached) " >&6
22192 gcc_cv_as_subsection_m1
=no
22193 if test $in_tree_gas = yes; then
22194 if test $in_tree_gas_is_elf = yes \
22195 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22196 then gcc_cv_as_subsection_m1
=yes
22198 elif test x
$gcc_cv_as != x
; then
22199 $as_echo 'conftest_label1: .word 0
22201 conftest_label2: .word 0
22202 .previous' > conftest.s
22203 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22205 (eval $ac_try) 2>&5
22207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22208 test $ac_status = 0; }; }
22210 if test x
$gcc_cv_nm != x
; then
22211 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22212 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22213 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22215 else gcc_cv_as_subsection_m1
=yes
22217 rm -f conftest.nm1 conftest.nm2
22220 echo "configure: failed program was" >&5
22223 rm -f conftest.o conftest.s
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22227 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22228 if test $gcc_cv_as_subsection_m1 = yes; then
22230 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22235 $as_echo_n "checking assembler for .weak... " >&6; }
22236 if test "${gcc_cv_as_weak+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22240 if test $in_tree_gas = yes; then
22241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22242 then gcc_cv_as_weak
=yes
22244 elif test x
$gcc_cv_as != x
; then
22245 $as_echo ' .weak foobar' > conftest.s
22246 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22248 (eval $ac_try) 2>&5
22250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22251 test $ac_status = 0; }; }
22255 echo "configure: failed program was" >&5
22258 rm -f conftest.o conftest.s
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22262 $as_echo "$gcc_cv_as_weak" >&6; }
22263 if test $gcc_cv_as_weak = yes; then
22265 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22270 $as_echo_n "checking assembler for .weakref... " >&6; }
22271 if test "${gcc_cv_as_weakref+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22274 gcc_cv_as_weakref
=no
22275 if test $in_tree_gas = yes; then
22276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22277 then gcc_cv_as_weakref
=yes
22279 elif test x
$gcc_cv_as != x
; then
22280 $as_echo ' .weakref foobar, barfnot' > conftest.s
22281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22283 (eval $ac_try) 2>&5
22285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22286 test $ac_status = 0; }; }
22288 gcc_cv_as_weakref
=yes
22290 echo "configure: failed program was" >&5
22293 rm -f conftest.o conftest.s
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22297 $as_echo "$gcc_cv_as_weakref" >&6; }
22298 if test $gcc_cv_as_weakref = yes; then
22300 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22305 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22306 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22307 $as_echo_n "(cached) " >&6
22309 gcc_cv_as_nsubspa_comdat
=no
22310 if test $in_tree_gas = yes; then
22311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22312 then gcc_cv_as_nsubspa_comdat
=yes
22314 elif test x
$gcc_cv_as != x
; then
22315 $as_echo ' .SPACE $TEXT$
22316 .NSUBSPA $CODE$,COMDAT' > conftest.s
22317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22319 (eval $ac_try) 2>&5
22321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22322 test $ac_status = 0; }; }
22324 gcc_cv_as_nsubspa_comdat
=yes
22326 echo "configure: failed program was" >&5
22329 rm -f conftest.o conftest.s
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22333 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22334 if test $gcc_cv_as_nsubspa_comdat = yes; then
22336 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22340 # .hidden needs to be supported in both the assembler and the linker,
22341 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22342 # This is irritatingly difficult to feature test for; we have to check the
22343 # date string after the version number. If we've got an in-tree
22344 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22346 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22348 $as_echo_n "checking assembler for .hidden... " >&6; }
22349 if test "${gcc_cv_as_hidden+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22352 gcc_cv_as_hidden
=no
22353 if test $in_tree_gas = yes; then
22354 if test $in_tree_gas_is_elf = yes \
22355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22356 then gcc_cv_as_hidden
=yes
22358 elif test x
$gcc_cv_as != x
; then
22359 $as_echo ' .hidden foobar
22360 foobar:' > conftest.s
22361 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22363 (eval $ac_try) 2>&5
22365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22366 test $ac_status = 0; }; }
22368 gcc_cv_as_hidden
=yes
22370 echo "configure: failed program was" >&5
22373 rm -f conftest.o conftest.s
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22377 $as_echo "$gcc_cv_as_hidden" >&6; }
22379 case "${target}" in
22381 # Darwin as has some visibility support, though with a different syntax.
22382 gcc_cv_as_hidden
=yes
22386 # gnu_indirect_function type is an extension proposed at
22387 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22388 # selection of function implementation
22389 # Check whether --enable-gnu-indirect-function was given.
22390 if test "${enable_gnu_indirect_function+set}" = set; then :
22391 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22393 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22394 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22397 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22401 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22403 cat >>confdefs.h
<<_ACEOF
22404 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22409 if test $in_tree_ld != yes ; then
22410 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22411 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22412 if test x
"$ld_is_gold" = xyes
; then
22413 # GNU gold --version looks like this:
22415 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22417 # We extract the binutils version which is more familiar and specific
22418 # than the gold version.
22419 ld_vers
=`echo $ld_ver | sed -n \
22420 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22422 # GNU ld --version looks like this:
22424 # GNU ld (GNU Binutils) 2.21.51.20110225
22425 ld_vers
=`echo $ld_ver | sed -n \
22426 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22428 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'`
22429 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22430 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22431 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22433 case "${target}" in
22435 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22438 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22439 # /usr/ccs/bin/ld has been configured.
22440 ld_ver
=`$gcc_cv_ld -V 2>&1`
22441 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22442 ld_vers
=`echo $ld_ver | sed -n \
22443 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22444 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22445 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22453 $as_echo_n "checking linker for .hidden support... " >&6; }
22454 if test "${gcc_cv_ld_hidden+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22457 if test $in_tree_ld = yes ; then
22458 gcc_cv_ld_hidden
=no
22459 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 \
22460 && test $in_tree_ld_is_elf = yes; then
22461 gcc_cv_ld_hidden
=yes
22464 gcc_cv_ld_hidden
=yes
22465 if test x
"$ld_is_gold" = xyes
; then
22467 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22468 case "${target}" in
22469 mmix-knuth-mmixware
)
22470 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22471 gcc_cv_ld_hidden
=no
22474 if test 0"$ld_date" -lt 20020404; then
22475 if test -n "$ld_date"; then
22476 # If there was date string, but was earlier than 2002-04-04, fail
22477 gcc_cv_ld_hidden
=no
22478 elif test -z "$ld_vers"; then
22479 # If there was no date string nor ld version number, something is wrong
22480 gcc_cv_ld_hidden
=no
22482 test -z "$ld_vers_patch" && ld_vers_patch
=0
22483 if test "$ld_vers_major" -lt 2; then
22484 gcc_cv_ld_hidden
=no
22485 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22486 gcc_cv_ld_hidden
="no"
22487 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22488 gcc_cv_ld_hidden
=no
22493 case "${target}" in
22495 # Darwin ld has some visibility support.
22496 gcc_cv_ld_hidden
=yes
22498 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22499 gcc_cv_ld_hidden
=yes
22501 *-*-solaris2.1
[0-9]*)
22502 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22503 # .symbolic was only added in Solaris 9 12/02.
22504 gcc_cv_ld_hidden
=yes
22507 gcc_cv_ld_hidden
=no
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22514 $as_echo "$gcc_cv_ld_hidden" >&6; }
22515 libgcc_visibility
=no
22518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22519 libgcc_visibility
=yes
22521 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22526 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22527 gcc_cv_ld_ro_rw_mix
=unknown
22528 if test $in_tree_ld = yes ; then
22529 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 \
22530 && test $in_tree_ld_is_elf = yes; then
22531 gcc_cv_ld_ro_rw_mix
=read-write
22533 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22534 echo '.section myfoosect, "a"' > conftest1.s
22535 echo '.section myfoosect, "aw"' > conftest2.s
22536 echo '.byte 1' >> conftest2.s
22537 echo '.section myfoosect, "a"' > conftest3.s
22538 echo '.byte 0' >> conftest3.s
22539 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22540 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22541 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22542 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22543 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22544 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22545 | sed -e '/myfoosect/!d' -e N`
22546 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22547 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22548 gcc_cv_ld_ro_rw_mix
=read-only
22550 gcc_cv_ld_ro_rw_mix
=read-write
22554 rm -f conftest.
* conftest
[123].
*
22556 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22558 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22562 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22564 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22565 case "${target}" in
22568 # Solaris 2 ld -V output looks like this for a regular version:
22570 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22572 # but test versions add stuff at the end:
22574 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22576 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22577 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22578 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22579 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22580 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22581 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22587 # Check whether --enable-initfini-array was given.
22588 if test "${enable_initfini_array+set}" = set; then :
22589 enableval
=$enable_initfini_array;
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22593 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22594 if test "${gcc_cv_initfini_array+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22597 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22598 case "${target}" in
22600 if test "$cross_compiling" = yes; then :
22601 gcc_cv_initfini_array
=no
22603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22607 #error Not an ELF OS
22609 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22610 if it can be used. */
22612 int main (void) { return x; }
22613 int foo (void) { x = 0; }
22614 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22617 if ac_fn_c_try_run
"$LINENO"; then :
22618 gcc_cv_initfini_array
=yes
22620 gcc_cv_initfini_array
=no
22622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22627 gcc_cv_initfini_array
=no
22628 if test $in_tree_ld = yes ; then
22629 if test "$gcc_cv_gld_major_version" -eq 2 \
22630 -a "$gcc_cv_gld_minor_version" -ge 22 \
22631 -o "$gcc_cv_gld_major_version" -gt 2 \
22632 && test $in_tree_ld_is_elf = yes; then
22633 gcc_cv_initfini_array
=yes
22635 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22636 cat > conftest.s
<<\EOF
22637 .section .dtors
,"a",%progbits
22639 .byte
'A', 'A', 'A', 'A'
22640 .section .ctors
,"a",%progbits
22642 .byte
'B', 'B', 'B', 'B'
22643 .section .fini_array
.65530,"a",%progbits
22645 .byte
'C', 'C', 'C', 'C'
22646 .section .init_array
.65530,"a",%progbits
22648 .byte
'D', 'D', 'D', 'D'
22649 .section .dtors
.64528,"a",%progbits
22651 .byte
'E', 'E', 'E', 'E'
22652 .section .ctors
.64528,"a",%progbits
22654 .byte
'F', 'F', 'F', 'F'
22655 .section .fini_array
.01005,"a",%progbits
22657 .byte
'G', 'G', 'G', 'G'
22658 .section .init_array
.01005,"a",%progbits
22660 .byte
'H', 'H', 'H', 'H'
22665 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22666 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22667 && $gcc_cv_objdump -s -j .init_array conftest \
22668 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22669 && $gcc_cv_objdump -s -j .fini_array conftest \
22670 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22671 gcc_cv_initfini_array
=yes
22673 rm -f conftest conftest.
*
22675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22679 # error Not an ELF OS
22681 #include <stdlib.h>
22682 #if defined __GLIBC_PREREQ
22683 # if __GLIBC_PREREQ (2, 4)
22685 # error GLIBC 2.4 required
22688 # if defined __sun__ && defined __svr4__
22689 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22691 # error The C library not known to support .init_array/.fini_array
22696 if ac_fn_c_try_cpp
"$LINENO"; then :
22699 gcc_cv_initfini_array
=no
22701 rm -f conftest.err conftest.
$ac_ext;;
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22705 $as_echo_n "checking cross compile... guessing... " >&6; }
22706 gcc_cv_initfini_array
=no
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22710 $as_echo "$gcc_cv_initfini_array" >&6; }
22711 enable_initfini_array
=$gcc_cv_initfini_array
22715 if test $enable_initfini_array = yes; then
22717 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22721 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22723 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22724 if test "${gcc_cv_as_leb128+set}" = set; then :
22725 $as_echo_n "(cached) " >&6
22727 gcc_cv_as_leb128
=no
22728 if test $in_tree_gas = yes; then
22729 if test $in_tree_gas_is_elf = yes \
22730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22731 then gcc_cv_as_leb128
=yes
22733 elif test x
$gcc_cv_as != x
; then
22740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22742 (eval $ac_try) 2>&5
22744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22745 test $ac_status = 0; }; }
22747 # GAS versions before 2.11 do not support uleb128,
22748 # despite appearing to.
22749 # ??? There exists an elf-specific test that will crash
22750 # the assembler. Perhaps it's better to figure out whether
22751 # arbitrary sections are supported and try the test.
22752 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22753 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22754 as_vers
=`echo $as_ver | sed -n \
22755 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22756 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22757 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22758 if test $as_major -eq 2 && test $as_minor -lt 11
22760 else gcc_cv_as_leb128
=yes
22764 echo "configure: failed program was" >&5
22767 rm -f conftest.o conftest.s
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22771 $as_echo "$gcc_cv_as_leb128" >&6; }
22772 if test $gcc_cv_as_leb128 = yes; then
22774 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22778 # Check if we have assembler support for unwind directives.
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22780 $as_echo_n "checking assembler for cfi directives... " >&6; }
22781 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22782 $as_echo_n "(cached) " >&6
22784 gcc_cv_as_cfi_directive
=no
22785 if test x
$gcc_cv_as != x
; then
22791 .cfi_escape 1, 2, 3, 4, 5
22792 .cfi_endproc' > conftest.s
22793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22795 (eval $ac_try) 2>&5
22797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798 test $ac_status = 0; }; }
22802 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22803 # read-only and read-write sections, we need to make sure that the
22804 # assembler used emits read-write .eh_frame sections.
22805 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22806 if test "x$gcc_cv_objdump" != x
; then
22807 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22808 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22809 gcc_cv_as_cfi_directive
=no
22812 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22813 # On Solaris/x86, make sure that GCC and assembler agree on using
22814 # read-only .eh_frame sections for 64-bit.
22815 if test x
$gas = xyes
; then
22816 as_ix86_64_opt
="--64"
22818 as_ix86_64_opt
="-xarch=amd64"
22820 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22821 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22822 sed -e /.eh_frame
/!d
-e N | \
22823 grep READONLY
> /dev
/null
; then
22824 gcc_cv_as_cfi_directive
=yes
22826 gcc_cv_as_cfi_directive
=no
22830 gcc_cv_as_cfi_directive
=yes
22835 # no objdump, err on the side of caution
22836 gcc_cv_as_cfi_directive
=no
22839 gcc_cv_as_cfi_directive
=yes
22843 gcc_cv_as_cfi_directive
=yes
22847 echo "configure: failed program was" >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22854 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22856 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22858 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22859 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22862 gcc_cv_as_cfi_advance_working
=no
22863 if test x
$gcc_cv_as != x
; then
22866 .cfi_adjust_cfa_offset 64
22868 .cfi_adjust_cfa_offset 128
22869 .cfi_endproc' > conftest.s
22870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }
22878 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22879 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22880 gcc_cv_as_cfi_advance_working
=yes
22884 echo "configure: failed program was" >&5
22887 rm -f conftest.o conftest.s
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22891 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22894 # no objdump, err on the side of caution
22895 gcc_cv_as_cfi_advance_working
=no
22899 cat >>confdefs.h
<<_ACEOF
22900 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22901 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22907 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22908 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22911 gcc_cv_as_cfi_personality_directive
=no
22912 if test x
$gcc_cv_as != x
; then
22915 .cfi_personality 0, symbol
22916 .cfi_endproc' > conftest.s
22917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22919 (eval $ac_try) 2>&5
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; }
22924 gcc_cv_as_cfi_personality_directive
=yes
22926 echo "configure: failed program was" >&5
22929 rm -f conftest.o conftest.s
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22933 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22936 cat >>confdefs.h
<<_ACEOF
22937 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22938 then echo 1; else echo 0; fi`
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22943 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22944 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22945 $as_echo_n "(cached) " >&6
22947 gcc_cv_as_cfi_sections_directive
=no
22948 if test x
$gcc_cv_as != x
; then
22950 .cfi_sections .debug_frame, .eh_frame
22952 .cfi_endproc' > conftest.s
22953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22955 (eval $ac_try) 2>&5
22957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22958 test $ac_status = 0; }; }
22961 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22962 # Need to check that we generated the correct relocation for the
22963 # .debug_frame section. This was fixed for binutils 2.21.
22964 gcc_cv_as_cfi_sections_directive
=no
22965 if test "x$gcc_cv_objdump" != x
; then
22966 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22967 grep secrel
> /dev
/null
; then
22968 gcc_cv_as_cfi_sections_directive
=yes
22973 gcc_cv_as_cfi_sections_directive
=yes
22977 echo "configure: failed program was" >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22984 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22988 cat >>confdefs.h
<<_ACEOF
22989 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22990 then echo 1; else echo 0; fi`
22994 # GAS versions up to and including 2.11.0 may mis-optimize
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22997 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22998 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22999 $as_echo_n "(cached) " >&6
23001 gcc_cv_as_eh_frame
=no
23002 if test $in_tree_gas = yes; then
23003 if test $in_tree_gas_is_elf = yes \
23004 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23005 then gcc_cv_as_eh_frame
=yes
23007 elif test x
$gcc_cv_as != x
; then
23014 .section .eh_frame,"aw",@progbits
23016 .4byte .LECIE1-.LSCIE1
23030 .4byte .LEFDE1-.LASFDE1
23032 .4byte .LASFDE1-__FRAME_BEGIN__
23039 .LEFDE1:' > conftest.s
23040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23042 (eval $ac_try) 2>&5
23044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23045 test $ac_status = 0; }; }
23047 cat > conftest.lit
<<EOF
23048 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23049 0010 01000000 12000000 18000000 00000000 ................
23050 0020 08000000 04080000 0044 .........D
23052 cat > conftest.big
<<EOF
23053 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23054 0010 00000001 00000012 00000018 00000000 ................
23055 0020 00000008 04000000 0844 .........D
23057 # If the assembler didn't choke, and we can objdump,
23058 # and we got the correct data, then succeed.
23059 # The text in the here-document typically retains its unix-style line
23060 # endings, while the output of objdump will use host line endings.
23061 # Therefore, use diff -b for the comparisons.
23062 if test x
$gcc_cv_objdump != x \
23063 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23064 |
tail -3 > conftest.got \
23065 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23066 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23068 gcc_cv_as_eh_frame
=yes
23069 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23071 (eval $ac_try) 2>&5
23073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23074 test $ac_status = 0; }; }; then
23075 gcc_cv_as_eh_frame
=buggy
23077 # Uh oh, what do we do now?
23078 gcc_cv_as_eh_frame
=no
23081 echo "configure: failed program was" >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23088 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23091 if test $gcc_cv_as_eh_frame = buggy
; then
23093 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23098 $as_echo_n "checking assembler for section merging support... " >&6; }
23099 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23102 gcc_cv_as_shf_merge
=no
23103 if test $in_tree_gas = yes; then
23104 if test $in_tree_gas_is_elf = yes \
23105 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23106 then gcc_cv_as_shf_merge
=yes
23108 elif test x
$gcc_cv_as != x
; then
23109 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23112 (eval $ac_try) 2>&5
23114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23115 test $ac_status = 0; }; }
23117 gcc_cv_as_shf_merge
=yes
23119 echo "configure: failed program was" >&5
23122 rm -f conftest.o conftest.s
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23126 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23128 if test $gcc_cv_as_shf_merge = no
; then
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23130 $as_echo_n "checking assembler for section merging support... " >&6; }
23131 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23132 $as_echo_n "(cached) " >&6
23134 gcc_cv_as_shf_merge
=no
23135 if test $in_tree_gas = yes; then
23136 if test $in_tree_gas_is_elf = yes \
23137 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23138 then gcc_cv_as_shf_merge
=yes
23140 elif test x
$gcc_cv_as != x
; then
23141 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23149 gcc_cv_as_shf_merge
=yes
23151 echo "configure: failed program was" >&5
23154 rm -f conftest.o conftest.s
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23158 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23162 cat >>confdefs.h
<<_ACEOF
23163 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23168 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23169 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23170 $as_echo_n "(cached) " >&6
23172 gcc_cv_as_comdat_group
=no
23173 if test $in_tree_gas = yes; then
23174 if test $in_tree_gas_is_elf = yes \
23175 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23176 then gcc_cv_as_comdat_group
=yes
23178 elif test x
$gcc_cv_as != x
; then
23179 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23180 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23182 (eval $ac_try) 2>&5
23184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23185 test $ac_status = 0; }; }
23187 gcc_cv_as_comdat_group
=yes
23189 echo "configure: failed program was" >&5
23192 rm -f conftest.o conftest.s
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23196 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23198 if test $gcc_cv_as_comdat_group = yes; then
23199 gcc_cv_as_comdat_group_percent
=no
23200 gcc_cv_as_comdat_group_group
=no
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23203 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23204 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23205 $as_echo_n "(cached) " >&6
23207 gcc_cv_as_comdat_group_percent
=no
23208 if test $in_tree_gas = yes; then
23209 if test $in_tree_gas_is_elf = yes \
23210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23211 then gcc_cv_as_comdat_group_percent
=yes
23213 elif test x
$gcc_cv_as != x
; then
23214 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23217 (eval $ac_try) 2>&5
23219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23220 test $ac_status = 0; }; }
23222 gcc_cv_as_comdat_group_percent
=yes
23224 echo "configure: failed program was" >&5
23227 rm -f conftest.o conftest.s
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23231 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23233 if test $gcc_cv_as_comdat_group_percent = yes; then
23234 gcc_cv_as_comdat_group_group
=no
23236 case "${target}" in
23237 # Sun as uses a completely different syntax.
23239 case "${target}" in
23240 sparc
*-*-solaris2*)
23242 .group foo,".text%foo",#comdat
23243 .section ".text%foo", #alloc,#execinstr,#progbits
23248 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23250 .group foo,.text%foo,#comdat
23251 .section .text%foo, "ax", @progbits
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23258 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23259 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23260 $as_echo_n "(cached) " >&6
23262 gcc_cv_as_comdat_group_group
=no
23263 if test x
$gcc_cv_as != x
; then
23264 $as_echo "$conftest_s" > conftest.s
23265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23267 (eval $ac_try) 2>&5
23269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23270 test $ac_status = 0; }; }
23272 gcc_cv_as_comdat_group_group
=yes
23274 echo "configure: failed program was" >&5
23277 rm -f conftest.o conftest.s
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23281 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23285 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23286 gcc_cv_as_comdat_group_group
=no
23290 if test x
"$ld_is_gold" = xyes
; then
23292 elif test $in_tree_ld = yes ; then
23294 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 \
23295 && test $in_tree_ld_is_elf = yes; then
23298 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23300 if test 0"$ld_date" -lt 20050308; then
23301 if test -n "$ld_date"; then
23302 # If there was date string, but was earlier than 2005-03-08, fail
23304 elif test "$ld_vers_major" -lt 2; then
23306 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23311 case "${target}" in
23312 *-*-solaris2.1
[1-9]*)
23314 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23315 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23318 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23319 # least ld version 1.2267.
23320 if test "$ld_vers_major" -gt 1; then
23322 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23324 elif test "$ld_vers_minor" -ge 2267; then
23329 # Assume linkers other than GNU ld don't support COMDAT group.
23334 # Allow overriding the automatic COMDAT group tests above.
23335 # Check whether --enable-comdat was given.
23336 if test "${enable_comdat+set}" = set; then :
23337 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23340 if test $comdat_group = no
; then
23341 gcc_cv_as_comdat_group
=no
23342 gcc_cv_as_comdat_group_percent
=no
23343 gcc_cv_as_comdat_group_group
=no
23346 cat >>confdefs.h
<<_ACEOF
23347 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23348 || test $gcc_cv_as_comdat_group_percent = yes \
23349 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23354 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23355 if test "${gcc_cv_as_discriminator+set}" = set; then :
23356 $as_echo_n "(cached) " >&6
23358 gcc_cv_as_discriminator
=no
23359 if test $in_tree_gas = yes; then
23360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23361 then gcc_cv_as_discriminator
=yes
23363 elif test x
$gcc_cv_as != x
; then
23366 .loc 1 1 0 discriminator 1' > conftest.s
23367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23369 (eval $ac_try) 2>&5
23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; }
23374 gcc_cv_as_discriminator
=yes
23376 echo "configure: failed program was" >&5
23379 rm -f conftest.o conftest.s
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23383 $as_echo "$gcc_cv_as_discriminator" >&6; }
23384 if test $gcc_cv_as_discriminator = yes; then
23386 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23390 # Thread-local storage - the check is heavily parameterized.
23398 .section ".tdata","awT",@progbits
23401 ldq $27,__tls_get_addr($29) !literal!1
23402 lda $16,foo($29) !tlsgd!1
23403 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23404 ldq $27,__tls_get_addr($29) !literal!2
23405 lda $16,foo($29) !tlsldm!2
23406 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23407 ldq $1,foo($29) !gotdtprel
23408 ldah $2,foo($29) !dtprelhi
23409 lda $3,foo($2) !dtprello
23410 lda $4,foo($29) !dtprel
23411 ldq $1,foo($29) !gottprel
23412 ldah $2,foo($29) !tprelhi
23413 lda $3,foo($2) !tprello
23414 lda $4,foo($29) !tprel'
23417 tls_as_opt
=--fatal-warnings
23419 cris-
*-*|crisv32-
*-*)
23421 .section ".tdata","awT",@progbits
23428 tls_as_opt
=--fatal-warnings
23432 .section ".tdata","awT",@progbits
23435 call #gettlsoff(x)'
23444 .section ".tdata","awT",@progbits
23448 addil LT%foo-$tls_gdidx$,gp
23449 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23452 addil LT%foo-$tls_ldidx$,gp
23454 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23455 addil LR%foo-$tls_dtpoff$,%ret0
23456 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23458 addil LT%foo-$tls_ieoff$,gp
23459 ldw RT%foo-$tls_ieoff$(%r1),%t2
23462 addil LR%foo-$tls_leoff$,%t1
23463 ldo RR%foo-$tls_leoff$(%r1),%t2'
23466 tls_as_opt
=--fatal-warnings
23470 .section ".tdata","awT",%progbits
23473 .word foo(gottpoff)
23481 i
[34567]86-*-* | x86_64-
*-*)
23483 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23490 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23492 .section .tdata,"awt",@progbits'
23497 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23501 .section ".tdata","awT",@progbits'
23505 tls_as_opt
="--fatal-warnings"
23509 conftest_s
="$conftest_s
23513 leal foo@tlsgd(,%ebx,1), %eax
23514 leal foo@tlsldm(%ebx), %eax
23515 leal foo@dtpoff(%eax), %edx
23516 movl foo@gottpoff(%ebx), %eax
23517 subl foo@gottpoff(%ebx), %eax
23518 addl foo@gotntpoff(%ebx), %eax
23519 movl foo@indntpoff, %eax
23520 movl \$foo@tpoff, %eax
23521 subl \$foo@tpoff, %eax
23522 leal foo@ntpoff(%ecx), %eax"
23525 if test x
$on_solaris = xyes
; then
23527 yes) tls_as_opt
="$tls_as_opt --64" ;;
23528 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23531 conftest_s
="$conftest_s
23535 leaq foo@tlsgd(%rip), %rdi
23536 leaq foo@tlsld(%rip), %rdi
23537 leaq foo@dtpoff(%rax), %rdx
23538 movq foo@gottpoff(%rip), %rax
23539 movq \$foo@tpoff, %rax"
23545 .section ".tdata","awT",@progbits
23548 addl r16 = @ltoff(@dtpmod(foo#)), gp
23549 addl r17 = @ltoff(@dtprel(foo#)), gp
23550 addl r18 = @ltoff(@tprel(foo#)), gp
23551 addl r19 = @dtprel(foo#), gp
23552 adds r21 = @dtprel(foo#), r13
23553 movl r23 = @dtprel(foo#)
23554 addl r20 = @tprel(foo#), gp
23555 adds r22 = @tprel(foo#), r13
23556 movl r24 = @tprel(foo#)'
23559 tls_as_opt
=--fatal-warnings
23563 .section .tdata,"awT",@progbits
23567 addik r5,r20,x@TLSGD
23568 addik r5,r20,x@TLSLDM'
23571 tls_as_opt
='--fatal-warnings'
23575 .section .tdata,"awT",@progbits
23579 addiu $4, $28, %tlsgd(x)
23580 addiu $4, $28, %tlsldm(x)
23581 lui $4, %dtprel_hi(x)
23582 addiu $4, $4, %dtprel_lo(x)
23583 lw $4, %gottprel(x)($28)
23584 lui $4, %tprel_hi(x)
23585 addiu $4, $4, %tprel_lo(x)'
23588 tls_as_opt
='-32 --fatal-warnings'
23592 .section .tdata,"awT",@progbits
23597 move.l x@TLSGD(%a5),%a0
23598 move.l x@TLSLDM(%a5),%a0
23599 move.l x@TLSLDO(%a5),%a0
23600 move.l x@TLSIE(%a5),%a0
23601 move.l x@TLSLE(%a5),%a0'
23604 tls_as_opt
='--fatal-warnings'
23608 .section ".tdata","awT",@progbits'
23611 tls_as_opt
="--fatal-warnings"
23615 .section ".tdata","awT",%progbits
23619 add x0, x0, #:tlsgd_lo12:x
23624 tls_as_opt
='--fatal-warnings'
23628 .extern __get_tpointer
23646 .section ".tdata","awT",@progbits
23654 addi 3,2,ld0@got@tlsgd
23660 addi 3,2,x1@got@tlsld
23666 addis 9,3,x2@dtprel@ha
23667 addi 9,9,x2@dtprel@l
23670 ld 9,x3@got@dtprel(2)
23676 tls_as_opt
="-a64 --fatal-warnings"
23680 .section ".tdata","awT",@progbits
23688 addi 3,31,ld0@got@tlsgd
23690 addi 3,31,x1@got@tlsld
23693 addis 9,3,x2@dtprel@ha
23694 addi 9,9,x2@dtprel@l
23695 lwz 9,x3@got@tprel(31)
23698 addis 9,2,x2@tprel@ha
23699 addi 9,9,x2@tprel@l'
23702 tls_as_opt
="-a32 --fatal-warnings"
23706 .section ".tdata","awT",@progbits
23713 .long foo@GOTNTPOFF
23714 .long foo@INDNTPOFF
23715 l %r1,foo@GOTNTPOFF(%r12)
23716 l %r1,0(%r1):tls_load:foo
23717 bas %r14,0(%r1,%r13):tls_gdcall:foo
23718 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23721 tls_as_opt
="-m31 --fatal-warnings"
23725 .section ".tdata","awT",@progbits
23732 .quad foo@GOTNTPOFF
23733 lg %r1,foo@GOTNTPOFF(%r12)
23734 larl %r1,foo@INDNTPOFF
23735 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23736 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23739 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23741 sh-
*-* | sh
[34]-*-*)
23743 .section ".tdata","awT",@progbits
23753 tls_as_opt
=--fatal-warnings
23757 sparc
*-sun-solaris2.
*)
23764 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23766 .section ".tdata",#alloc,#write,#tls'
23771 .section ".tdata","awT",@progbits'
23774 tls_as_opt
="-32 --fatal-warnings"
23776 conftest_s
="$conftest_s
23779 sethi %tgd_hi22(foo), %o0
23780 add %o0, %tgd_lo10(foo), %o1
23781 add %l7, %o1, %o0, %tgd_add(foo)
23782 call __tls_get_addr, %tgd_call(foo)
23783 sethi %tldm_hi22(foo), %l1
23784 add %l1, %tldm_lo10(foo), %l2
23785 add %l7, %l2, %o0, %tldm_add(foo)
23786 call __tls_get_addr, %tldm_call(foo)
23787 sethi %tldo_hix22(foo), %l3
23788 xor %l3, %tldo_lox10(foo), %l4
23789 add %o0, %l4, %l5, %tldo_add(foo)
23790 sethi %tie_hi22(foo), %o3
23791 add %o3, %tie_lo10(foo), %o3
23792 ld [%l7 + %o3], %o2, %tie_ld(foo)
23793 add %g7, %o2, %o4, %tie_add(foo)
23794 sethi %tle_hix22(foo), %l1
23795 xor %l1, %tle_lox10(foo), %o5
23796 ld [%g7 + %o5], %o1"
23800 .section ".tdata","awT",@progbits
23803 addli r0, zero, tls_gd(foo)
23804 auli r0, zero, tls_gd_ha16(foo)
23805 addli r0, r0, tls_gd_lo16(foo)
23807 addli r0, zero, tls_ie(foo)
23808 auli r0, r0, tls_ie_ha16(foo)
23809 addli r0, r0, tls_ie_lo16(foo)'
23812 tls_as_opt
="--fatal-warnings"
23816 .section ".tdata","awT",@progbits
23819 shl16insli r0, zero, hw0_last_tls_gd(foo)
23820 shl16insli r0, zero, hw1_last_tls_gd(foo)
23821 shl16insli r0, r0, hw0_tls_gd(foo)
23823 shl16insli r0, zero, hw1_last_tls_ie(foo)
23824 shl16insli r0, r0, hw0_tls_ie(foo)'
23827 tls_as_opt
="--fatal-warnings"
23831 .section ".tdata","awT",@progbits
23834 movi a8, foo@TLSFUNC
23835 movi a10, foo@TLSARG
23836 callx8.tls a8, foo@TLSCALL'
23842 if test "x$enable_tls" = xno
; then
23843 : # TLS explicitly disabled.
23844 elif test "x$enable_tls" = xyes
; then
23845 set_have_as_tls
=yes # TLS explicitly enabled.
23846 elif test -z "$tls_first_major"; then
23847 : # If we don't have a check, assume no support.
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23850 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23851 if test "${gcc_cv_as_tls+set}" = set; then :
23852 $as_echo_n "(cached) " >&6
23855 if test $in_tree_gas = yes; then
23856 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23857 then gcc_cv_as_tls
=yes
23859 elif test x
$gcc_cv_as != x
; then
23860 $as_echo "$conftest_s" > conftest.s
23861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23863 (eval $ac_try) 2>&5
23865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23866 test $ac_status = 0; }; }
23870 echo "configure: failed program was" >&5
23873 rm -f conftest.o conftest.s
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23877 $as_echo "$gcc_cv_as_tls" >&6; }
23878 if test $gcc_cv_as_tls = yes; then
23879 set_have_as_tls
=yes
23882 if test $set_have_as_tls = yes ; then
23884 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23888 # Target-specific assembler checks.
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23891 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23892 gcc_cv_ld_static_dynamic
=no
23893 gcc_cv_ld_static_option
='-Bstatic'
23894 gcc_cv_ld_dynamic_option
='-Bdynamic'
23895 if test $in_tree_ld = yes ; then
23896 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
23897 gcc_cv_ld_static_dynamic
=yes
23899 elif test x
$gcc_cv_ld != x
; then
23900 # Check if linker supports -Bstatic/-Bdynamic option
23901 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23902 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23903 gcc_cv_ld_static_dynamic
=yes
23906 # AIX ld uses -b flags
23907 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23908 gcc_cv_ld_static_dynamic
=yes
23909 gcc_cv_ld_static_option
="-bstatic"
23910 gcc_cv_ld_dynamic_option
="-bdynamic"
23912 # HP-UX ld uses -a flags to select between shared and archive.
23914 if test x
"$gnu_ld" = xno
; then
23915 gcc_cv_ld_static_dynamic
=yes
23916 gcc_cv_ld_static_option
="-aarchive_shared"
23917 gcc_cv_ld_dynamic_option
="-adefault"
23920 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23922 gcc_cv_ld_static_dynamic
=yes
23927 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23929 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23932 cat >>confdefs.h
<<_ACEOF
23933 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23937 cat >>confdefs.h
<<_ACEOF
23938 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23943 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23945 if test x
"$demangler_in_ld" = xyes
; then
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23947 $as_echo_n "checking linker --demangle support... " >&6; }
23948 gcc_cv_ld_demangle
=no
23949 if test $in_tree_ld = yes; then
23950 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 \
23951 gcc_cv_ld_demangle
=yes
23953 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23954 # Check if the GNU linker supports --demangle option
23955 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23956 gcc_cv_ld_demangle
=yes
23959 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23961 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23965 $as_echo "$gcc_cv_ld_demangle" >&6; }
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23969 $as_echo_n "checking linker plugin support... " >&6; }
23970 gcc_cv_lto_plugin
=0
23971 if test -f liblto_plugin.la
; then
23972 save_ld_ver
="$ld_ver"
23973 save_ld_vers_major
="$ld_vers_major"
23974 save_ld_vers_minor
="$ld_vers_minor"
23975 save_ld_is_gold
="$ld_is_gold"
23979 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23981 # FIXME: ld_is_gold?
23982 ld_vers_major
="$gcc_cv_gld_major_version"
23983 ld_vers_minor
="$gcc_cv_gld_minor_version"
23985 # Determine plugin linker version.
23986 # FIXME: Partial duplicate from above, generalize.
23987 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23988 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23989 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23991 ld_vers
=`echo $ld_ver | sed -n \
23992 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23994 ld_vers
=`echo $ld_ver | sed -n \
23995 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23997 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23998 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24002 # Determine plugin support.
24003 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24004 # Require GNU ld or gold 2.21+ for plugin support by default.
24005 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24006 gcc_cv_lto_plugin
=2
24007 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24008 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24009 gcc_cv_lto_plugin
=1
24013 ld_ver
="$save_ld_ver"
24014 ld_vers_major
="$save_ld_vers_major"
24015 ld_vers_minor
="$save_ld_vers_minor"
24016 ld_is_gold
="$save_ld_is_gold"
24019 cat >>confdefs.h
<<_ACEOF
24020 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24024 $as_echo "$gcc_cv_lto_plugin" >&6; }
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24029 $as_echo_n "checking assembler for -mabi option... " >&6; }
24030 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24031 $as_echo_n "(cached) " >&6
24033 gcc_cv_as_aarch64_mabi
=no
24034 if test x
$gcc_cv_as != x
; then
24035 $as_echo '.text' > conftest.s
24036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24043 gcc_cv_as_aarch64_mabi
=yes
24045 echo "configure: failed program was" >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24052 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24054 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24056 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24059 if test x
$with_abi = xilp32
; then
24060 as_fn_error
"Assembler does not support -mabi=ilp32.\
24061 Upgrade the Assembler." "$LINENO" 5
24063 if test x
"$with_multilib_list" = xdefault
; then
24064 TM_MULTILIB_CONFIG
=lp64
24066 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24067 for aarch64_multilib
in ${aarch64_multilibs}; do
24068 case ${aarch64_multilib} in
24070 as_fn_error
"Assembler does not support -mabi=ilp32.\
24071 Upgrade the Assembler." "$LINENO" 5
24079 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24080 # Check whether --enable-fix-cortex-a53-835769 was given.
24081 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24082 enableval
=$enable_fix_cortex_a53_835769;
24085 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24090 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24091 Valid choices are 'yes' and 'no'." "$LINENO" 5
24100 # All TARGET_ABI_OSF targets.
24101 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24103 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24104 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24105 $as_echo_n "(cached) " >&6
24107 gcc_cv_as_alpha_explicit_relocs
=no
24108 if test $in_tree_gas = yes; then
24109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24110 then gcc_cv_as_alpha_explicit_relocs
=yes
24112 elif test x
$gcc_cv_as != x
; then
24113 $as_echo ' .set nomacro
24115 extbl $3, $2, $3 !lituse_bytoff!1
24116 ldq $2, a($29) !literal!1
24117 ldq $4, b($29) !literal!2
24118 ldq_u $3, 0($2) !lituse_base!1
24119 ldq $27, f($29) !literal!5
24120 jsr $26, ($27), f !lituse_jsr!5
24121 ldah $29, 0($26) !gpdisp!3
24122 lda $0, c($29) !gprel
24123 ldah $1, d($29) !gprelhigh
24124 lda $1, d($1) !gprellow
24125 lda $29, 0($29) !gpdisp!3' > conftest.s
24126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; }
24133 gcc_cv_as_alpha_explicit_relocs
=yes
24135 echo "configure: failed program was" >&5
24138 rm -f conftest.o conftest.s
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24142 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24143 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24145 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24149 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24150 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24151 $as_echo_n "(cached) " >&6
24153 gcc_cv_as_alpha_jsrdirect_relocs
=no
24154 if test $in_tree_gas = yes; then
24155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24156 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24158 elif test x
$gcc_cv_as != x
; then
24159 $as_echo ' .set nomacro
24161 ldq $27, a($29) !literal!1
24162 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24165 (eval $ac_try) 2>&5
24167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168 test $ac_status = 0; }; }
24170 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24172 echo "configure: failed program was" >&5
24175 rm -f conftest.o conftest.s
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24179 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24180 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24182 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24189 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24190 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24193 gcc_cv_as_cris_no_mul_bug
=no
24194 if test $in_tree_gas = yes; then
24195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24196 then gcc_cv_as_cris_no_mul_bug
=yes
24198 elif test x
$gcc_cv_as != x
; then
24199 $as_echo '.text' > conftest.s
24200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }
24207 gcc_cv_as_cris_no_mul_bug
=yes
24209 echo "configure: failed program was" >&5
24212 rm -f conftest.o conftest.s
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24216 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24217 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24219 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24226 $as_echo_n "checking assembler for .register... " >&6; }
24227 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_sparc_register_op
=no
24231 if test x
$gcc_cv_as != x
; then
24232 $as_echo '.register %g2, #scratch' > conftest.s
24233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24235 (eval $ac_try) 2>&5
24237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238 test $ac_status = 0; }; }
24240 gcc_cv_as_sparc_register_op
=yes
24242 echo "configure: failed program was" >&5
24245 rm -f conftest.o conftest.s
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24249 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24250 if test $gcc_cv_as_sparc_register_op = yes; then
24252 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24257 $as_echo_n "checking assembler for #nobits... " >&6; }
24258 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24261 gcc_cv_as_sparc_nobits
=no
24262 if test x
$gcc_cv_as != x
; then
24263 $as_echo '.section "nobits",#alloc,#write,#nobits
24264 .section "progbits",#alloc,#write,#progbits' > conftest.s
24265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }
24272 gcc_cv_as_sparc_nobits
=yes
24274 echo "configure: failed program was" >&5
24277 rm -f conftest.o conftest.s
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24281 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24284 cat >>confdefs.h
<<_ACEOF
24285 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24290 $as_echo_n "checking assembler for -relax option... " >&6; }
24291 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24294 gcc_cv_as_sparc_relax
=no
24295 if test x
$gcc_cv_as != x
; then
24296 $as_echo '.text' > conftest.s
24297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24304 gcc_cv_as_sparc_relax
=yes
24306 echo "configure: failed program was" >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24313 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24314 if test $gcc_cv_as_sparc_relax = yes; then
24316 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24321 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24322 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24325 gcc_cv_as_sparc_gotdata_op
=no
24326 if test x
$gcc_cv_as != x
; then
24332 sethi %gdop_hix22(foo), %g1
24333 xor %g1, %gdop_lox10(foo), %g1
24334 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24342 if test x
$gcc_cv_ld != x \
24343 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24344 if test x
$gcc_cv_objdump != x
; then
24345 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24346 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24347 gcc_cv_as_sparc_gotdata_op
=no
24349 gcc_cv_as_sparc_gotdata_op
=yes
24355 echo "configure: failed program was" >&5
24358 rm -f conftest.o conftest.s
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24362 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24363 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24365 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24370 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24371 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24374 gcc_cv_as_sparc_ua_pcrel
=no
24375 if test x
$gcc_cv_as != x
; then
24382 .uaword %r_disp32(foo)' > conftest.s
24383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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_ld != x \
24391 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24392 gcc_cv_as_sparc_ua_pcrel
=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_ua_pcrel" >&5
24403 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24404 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24406 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24410 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24411 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24414 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24415 if test x
$gcc_cv_as != x
; then
24419 .uaword %r_disp32(foo)
24420 .byte 0x32, 0x33, 0x34
24424 .skip 4' > conftest.s
24425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24433 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24434 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24435 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24436 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24437 |
grep 'DISP32' > /dev
/null
2>&1; then
24440 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24445 echo "configure: failed program was" >&5
24448 rm -f conftest.o conftest.s
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24452 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24453 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24455 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24459 fi # unaligned pcrel relocs
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24462 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24463 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24464 $as_echo_n "(cached) " >&6
24466 gcc_cv_as_sparc_offsetable_lo10
=no
24467 if test x
$gcc_cv_as != x
; then
24469 or %g1, %lo(ab) + 12, %g1
24470 or %g1, %lo(ab + 12), %g1' > conftest.s
24471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24478 if test x
$gcc_cv_objdump != x \
24479 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24480 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24481 gcc_cv_as_sparc_offsetable_lo10
=yes
24484 echo "configure: failed program was" >&5
24487 rm -f conftest.o conftest.s
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24491 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24492 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24494 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24499 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24500 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24501 $as_echo_n "(cached) " >&6
24503 gcc_cv_as_sparc_fmaf
=no
24504 if test x
$gcc_cv_as != x
; then
24506 .register %g2, #scratch
24507 .register %g3, #scratch
24509 fmaddd %f0, %f2, %f4, %f6
24510 addxccc %g1, %g2, %g3
24511 fsrl32 %f2, %f4, %f8
24512 fnaddd %f10, %f12, %f14' > conftest.s
24513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }
24520 gcc_cv_as_sparc_fmaf
=yes
24522 echo "configure: failed program was" >&5
24525 rm -f conftest.o conftest.s
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24529 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24530 if test $gcc_cv_as_sparc_fmaf = yes; then
24532 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24537 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24538 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24541 gcc_cv_as_sparc_sparc4
=no
24542 if test x
$gcc_cv_as != x
; then
24544 .register %g2, #scratch
24545 .register %g3, #scratch
24548 1: cwbneg %g2, %g3, 1f
24551 aes_kexpand0 %f4, %f6, %f8
24552 des_round %f38, %f40, %f42, %f44
24553 camellia_f %f54, %f56, %f58, %f60
24554 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24562 gcc_cv_as_sparc_sparc4
=yes
24564 echo "configure: failed program was" >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24571 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24572 if test $gcc_cv_as_sparc_sparc4 = yes; then
24574 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24579 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24580 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24583 gcc_cv_as_sparc_leon
=no
24584 if test x
$gcc_cv_as != x
; then
24586 .register %g2, #scratch
24587 .register %g3, #scratch
24591 casa [%g2] 0xb, %g3, %g1' > conftest.s
24592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24594 (eval $ac_try) 2>&5
24596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24597 test $ac_status = 0; }; }
24599 gcc_cv_as_sparc_leon
=yes
24601 echo "configure: failed program was" >&5
24604 rm -f conftest.o conftest.s
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24608 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24609 if test $gcc_cv_as_sparc_leon = yes; then
24611 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24616 i
[34567]86-*-* | x86_64-
*-*)
24619 # Full C++ conformance when using a shared libstdc++-v3 requires some
24620 # support from the Cygwin DLL, which in more recent versions exports
24621 # wrappers to aid in interposing and redirecting operators new, delete,
24622 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24623 # are configuring for a version of Cygwin that exports the wrappers.
24624 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24625 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24626 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24627 gcc_ac_cygwin_dll_wrappers
=yes
24629 gcc_ac_cygwin_dll_wrappers
=no
24633 # Can't check presence of libc functions during cross-compile, so
24634 # we just have to assume we're building for an up-to-date target.
24635 gcc_ac_cygwin_dll_wrappers
=yes
24638 cat >>confdefs.h
<<_ACEOF
24639 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24644 cygwin
* | pe | mingw32
* | interix
*)
24645 # Recent binutils allows the three-operand form of ".comm" on PE. This
24646 # definition is used unconditionally to initialise the default state of
24647 # the target option variable that governs usage of the feature.
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24649 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24650 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24651 $as_echo_n "(cached) " >&6
24653 gcc_cv_as_comm_has_align
=no
24654 if test $in_tree_gas = yes; then
24655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24656 then gcc_cv_as_comm_has_align
=yes
24658 elif test x
$gcc_cv_as != x
; then
24659 $as_echo '.comm foo,1,32' > conftest.s
24660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24662 (eval $ac_try) 2>&5
24664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24665 test $ac_status = 0; }; }
24667 gcc_cv_as_comm_has_align
=yes
24669 echo "configure: failed program was" >&5
24672 rm -f conftest.o conftest.s
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24676 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24679 cat >>confdefs.h
<<_ACEOF
24680 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24683 # Used for DWARF 2 in PE
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24685 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24686 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24689 gcc_cv_as_ix86_pe_secrel32
=no
24690 if test $in_tree_gas = yes; then
24691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24692 then gcc_cv_as_ix86_pe_secrel32
=yes
24694 elif test x
$gcc_cv_as != x
; then
24698 .secrel32 foo' > conftest.s
24699 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24701 (eval $ac_try) 2>&5
24703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24704 test $ac_status = 0; }; }
24706 if test x
$gcc_cv_ld != x \
24707 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24708 gcc_cv_as_ix86_pe_secrel32
=yes
24712 echo "configure: failed program was" >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24719 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24720 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24722 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24725 # Test if the assembler supports the extended form of the .section
24726 # directive that specifies section alignment. LTO support uses this,
24727 # but normally only after installation, so we warn but don't fail the
24728 # configure if LTO is enabled but the assembler does not support it.
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24730 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24731 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24734 gcc_cv_as_section_has_align
=no
24735 if test $in_tree_gas = yes; then
24736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24737 then gcc_cv_as_section_has_align
=yes
24739 elif test x
$gcc_cv_as != x
; then
24740 $as_echo '.section lto_test,"dr0"' > conftest.s
24741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24748 gcc_cv_as_section_has_align
=yes
24750 echo "configure: failed program was" >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24757 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24759 if test x
$gcc_cv_as_section_has_align != xyes
; then
24760 case ",$enable_languages," in
24762 { $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
24763 $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;}
24770 # Test if the assembler supports the section flag 'e' for specifying
24771 # an excluded section.
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24773 $as_echo_n "checking assembler for .section with e... " >&6; }
24774 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24777 gcc_cv_as_section_has_e
=no
24778 if test $in_tree_gas = yes; then
24779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24780 then gcc_cv_as_section_has_e
=yes
24782 elif test x
$gcc_cv_as != x
; then
24783 $as_echo '.section foo1,"e"
24784 .byte 0,0,0,0' > conftest.s
24785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24792 gcc_cv_as_section_has_e
=yes
24794 echo "configure: failed program was" >&5
24797 rm -f conftest.o conftest.s
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24801 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24804 cat >>confdefs.h
<<_ACEOF
24805 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24810 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24811 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24812 $as_echo_n "(cached) " >&6
24814 gcc_cv_as_ix86_filds
=no
24815 if test x
$gcc_cv_as != x
; then
24816 $as_echo 'filds mem; fists mem' > conftest.s
24817 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24819 (eval $ac_try) 2>&5
24821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24822 test $ac_status = 0; }; }
24824 gcc_cv_as_ix86_filds
=yes
24826 echo "configure: failed program was" >&5
24829 rm -f conftest.o conftest.s
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24833 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24834 if test $gcc_cv_as_ix86_filds = yes; then
24836 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24841 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24842 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24843 $as_echo_n "(cached) " >&6
24845 gcc_cv_as_ix86_fildq
=no
24846 if test x
$gcc_cv_as != x
; then
24847 $as_echo 'fildq mem; fistpq mem' > conftest.s
24848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24850 (eval $ac_try) 2>&5
24852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24853 test $ac_status = 0; }; }
24855 gcc_cv_as_ix86_fildq
=yes
24857 echo "configure: failed program was" >&5
24860 rm -f conftest.o conftest.s
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24864 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24865 if test $gcc_cv_as_ix86_fildq = yes; then
24867 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24872 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24873 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24874 $as_echo_n "(cached) " >&6
24876 gcc_cv_as_ix86_cmov_sun_syntax
=no
24877 if test x
$gcc_cv_as != x
; then
24878 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24881 (eval $ac_try) 2>&5
24883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24884 test $ac_status = 0; }; }
24886 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24888 echo "configure: failed program was" >&5
24891 rm -f conftest.o conftest.s
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24895 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24896 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24898 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24903 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24904 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24907 gcc_cv_as_ix86_ffreep
=no
24908 if test x
$gcc_cv_as != x
; then
24909 $as_echo 'ffreep %st(1)' > conftest.s
24910 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24912 (eval $ac_try) 2>&5
24914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; }
24917 gcc_cv_as_ix86_ffreep
=yes
24919 echo "configure: failed program was" >&5
24922 rm -f conftest.o conftest.s
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24926 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24927 if test $gcc_cv_as_ix86_ffreep = yes; then
24929 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24934 $as_echo_n "checking assembler for .quad directive... " >&6; }
24935 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24938 gcc_cv_as_ix86_quad
=no
24939 if test x
$gcc_cv_as != x
; then
24940 $as_echo '.quad 0' > conftest.s
24941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24943 (eval $ac_try) 2>&5
24945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24946 test $ac_status = 0; }; }
24948 gcc_cv_as_ix86_quad
=yes
24950 echo "configure: failed program was" >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24957 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24958 if test $gcc_cv_as_ix86_quad = yes; then
24960 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24965 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24966 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24967 $as_echo_n "(cached) " >&6
24969 gcc_cv_as_ix86_sahf
=no
24970 if test x
$gcc_cv_as != x
; then
24973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24975 (eval $ac_try) 2>&5
24977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24978 test $ac_status = 0; }; }
24980 gcc_cv_as_ix86_sahf
=yes
24982 echo "configure: failed program was" >&5
24985 rm -f conftest.o conftest.s
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24989 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24990 if test $gcc_cv_as_ix86_sahf = yes; then
24992 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24997 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24998 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25001 gcc_cv_as_ix86_interunit_movq
=no
25002 if test x
$gcc_cv_as != x
; then
25005 movq %rax, %xmm0' > conftest.s
25006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25013 gcc_cv_as_ix86_interunit_movq
=yes
25015 echo "configure: failed program was" >&5
25018 rm -f conftest.o conftest.s
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25022 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25025 cat >>confdefs.h
<<_ACEOF
25026 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25031 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25032 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25033 $as_echo_n "(cached) " >&6
25035 gcc_cv_as_ix86_hle
=no
25036 if test x
$gcc_cv_as != x
; then
25037 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25040 (eval $ac_try) 2>&5
25042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25043 test $ac_status = 0; }; }
25045 gcc_cv_as_ix86_hle
=yes
25047 echo "configure: failed program was" >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25054 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25055 if test $gcc_cv_as_ix86_hle = yes; then
25057 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25062 $as_echo_n "checking assembler for swap suffix... " >&6; }
25063 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25066 gcc_cv_as_ix86_swap
=no
25067 if test x
$gcc_cv_as != x
; then
25068 $as_echo 'movl.s %esp, %ebp' > conftest.s
25069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25076 gcc_cv_as_ix86_swap
=yes
25078 echo "configure: failed program was" >&5
25081 rm -f conftest.o conftest.s
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25085 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25086 if test $gcc_cv_as_ix86_swap = yes; then
25088 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25093 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25094 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25095 $as_echo_n "(cached) " >&6
25097 gcc_cv_as_ix86_diff_sect_delta
=no
25098 if test x
$gcc_cv_as != x
; then
25099 $as_echo '.section .rodata
25105 .L2: nop' > conftest.s
25106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25108 (eval $ac_try) 2>&5
25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25111 test $ac_status = 0; }; }
25113 gcc_cv_as_ix86_diff_sect_delta
=yes
25115 echo "configure: failed program was" >&5
25118 rm -f conftest.o conftest.s
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25122 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25123 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25125 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25129 # These two are used unconditionally by i386.[ch]; it is to be defined
25130 # to 1 if the feature is present, 0 otherwise.
25131 as_ix86_gotoff_in_data_opt
=
25132 if test x
$gas = xyes
; then
25133 as_ix86_gotoff_in_data_opt
="--32"
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25136 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25137 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25138 $as_echo_n "(cached) " >&6
25140 gcc_cv_as_ix86_gotoff_in_data
=no
25141 if test $in_tree_gas = yes; then
25142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25143 then gcc_cv_as_ix86_gotoff_in_data
=yes
25145 elif test x
$gcc_cv_as != x
; then
25150 .long .L0@GOTOFF' > conftest.s
25151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25153 (eval $ac_try) 2>&5
25155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25156 test $ac_status = 0; }; }
25158 gcc_cv_as_ix86_gotoff_in_data
=yes
25160 echo "configure: failed program was" >&5
25163 rm -f conftest.o conftest.s
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25167 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25170 cat >>confdefs.h
<<_ACEOF
25171 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25176 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25177 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25178 $as_echo_n "(cached) " >&6
25180 gcc_cv_as_ix86_rep_lock_prefix
=no
25181 if test x
$gcc_cv_as != x
; then
25182 $as_echo 'rep movsl
25187 lock addl %edi, (%eax,%esi)
25188 lock orl $0, (%esp)' > conftest.s
25189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25191 (eval $ac_try) 2>&5
25193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194 test $ac_status = 0; }; }
25196 gcc_cv_as_ix86_rep_lock_prefix
=yes
25198 echo "configure: failed program was" >&5
25201 rm -f conftest.o conftest.s
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25205 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25206 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25208 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25213 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25214 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25217 gcc_cv_as_ix86_ud2
=no
25218 if test x
$gcc_cv_as != x
; then
25219 $as_echo 'ud2' > conftest.s
25220 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25227 gcc_cv_as_ix86_ud2
=yes
25229 echo "configure: failed program was" >&5
25232 rm -f conftest.o conftest.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25236 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25237 if test $gcc_cv_as_ix86_ud2 = yes; then
25239 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25244 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25245 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25248 gcc_cv_as_ix86_tlsgdplt
=no
25249 if test x
$gcc_cv_as != x
; then
25250 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; }
25258 if test x
$gcc_cv_ld != x \
25259 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25260 gcc_cv_as_ix86_tlsgdplt
=yes
25264 echo "configure: failed program was" >&5
25267 rm -f conftest.o conftest.s
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25271 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25272 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25274 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25279 .section .tdata,"aw'$tls_section_flag'",@progbits
25281 .section .text,"ax",@progbits
25282 call tls_ld@tlsldmplt'
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25284 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25285 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25288 gcc_cv_as_ix86_tlsldmplt
=no
25289 if test x
$gcc_cv_as != x
; then
25290 $as_echo "$conftest_s" > conftest.s
25291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25298 if test x
$gcc_cv_ld != x \
25299 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25300 gcc_cv_as_ix86_tlsldmplt
=yes
25304 echo "configure: failed program was" >&5
25307 rm -f conftest.o conftest.s
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25311 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25314 cat >>confdefs.h
<<_ACEOF
25315 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25319 # Enforce 32-bit output with gas and gld.
25320 if test x
$gas = xyes
; then
25321 as_ix86_tls_ldm_opt
="--32"
25323 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25324 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25325 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25327 ld_ix86_tls_ldm_opt
="-melf_i386"
25331 .section .text,"ax",@progbits
25333 .type _start, @function
25335 leal value@tlsldm(%ebx), %eax
25336 call ___tls_get_addr@plt
25338 .section .tdata,"aw'$tls_section_flag'",@progbits
25339 .type value, @object
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25342 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25343 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25346 gcc_cv_as_ix86_tlsldm
=no
25347 if test x
$gcc_cv_as != x
; then
25348 $as_echo "$conftest_s" > conftest.s
25349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25356 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25357 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25358 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25359 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25360 gcc_cv_as_ix86_tlsldm
=yes
25365 echo "configure: failed program was" >&5
25368 rm -f conftest.o conftest.s
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25372 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25375 cat >>confdefs.h
<<_ACEOF
25376 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25384 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25385 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25386 $as_echo_n "(cached) " >&6
25388 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25389 if test $in_tree_gas = yes; then
25390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25391 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25393 elif test x
$gcc_cv_as != x
; then
25395 addl r15 = @ltoffx(x#), gp
25397 ld8.mov r16 = [r15], x#' > conftest.s
25398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25400 (eval $ac_try) 2>&5
25402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25403 test $ac_status = 0; }; }
25405 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25407 echo "configure: failed program was" >&5
25410 rm -f conftest.o conftest.s
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25414 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25415 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25417 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25425 *-*-aix*) conftest_s
=' .machine "pwr5"
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25430 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25431 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25432 $as_echo_n "(cached) " >&6
25434 gcc_cv_as_machine_directive
=no
25435 if test x
$gcc_cv_as != x
; then
25436 $as_echo ' .machine ppc7400' > conftest.s
25437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25439 (eval $ac_try) 2>&5
25441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25442 test $ac_status = 0; }; }
25444 gcc_cv_as_machine_directive
=yes
25446 echo "configure: failed program was" >&5
25449 rm -f conftest.o conftest.s
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25453 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25455 if test x
$gcc_cv_as_machine_directive != xyes
; then
25456 echo "*** This target requires an assembler supporting \".machine\"" >&2
25457 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25458 test x
$build = x
$target && exit 1
25462 *) conftest_s
=' .machine power4
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25468 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25469 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25472 gcc_cv_as_powerpc_mfcrf
=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25475 then gcc_cv_as_powerpc_mfcrf
=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_mfcrf
=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_mfcrf" >&5
25495 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25496 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25498 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25503 *-*-aix*) conftest_s
=' .machine "pwr5"
25506 *) conftest_s
=' .machine power5
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25512 $as_echo_n "checking assembler for popcntb support... " >&6; }
25513 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25516 gcc_cv_as_powerpc_popcntb
=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25519 then gcc_cv_as_powerpc_popcntb
=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_popcntb
=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_popcntb" >&5
25539 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25540 if test $gcc_cv_as_powerpc_popcntb = yes; then
25542 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25547 *-*-aix*) conftest_s
=' .machine "pwr5x"
25550 *) conftest_s
=' .machine power5
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25556 $as_echo_n "checking assembler for fp round support... " >&6; }
25557 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 gcc_cv_as_powerpc_fprnd
=no
25561 if test $in_tree_gas = yes; then
25562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25563 then gcc_cv_as_powerpc_fprnd
=yes
25565 elif test x
$gcc_cv_as != x
; then
25566 $as_echo "$conftest_s" > conftest.s
25567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25569 (eval $ac_try) 2>&5
25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }; }
25574 gcc_cv_as_powerpc_fprnd
=yes
25576 echo "configure: failed program was" >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25583 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25584 if test $gcc_cv_as_powerpc_fprnd = yes; then
25586 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25591 *-*-aix*) conftest_s
=' .machine "pwr6"
25594 *) conftest_s
=' .machine power6
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25600 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25601 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25604 gcc_cv_as_powerpc_mfpgpr
=no
25605 if test $in_tree_gas = yes; then
25606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25607 then gcc_cv_as_powerpc_mfpgpr
=yes
25609 elif test x
$gcc_cv_as != x
; then
25610 $as_echo "$conftest_s" > conftest.s
25611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25618 gcc_cv_as_powerpc_mfpgpr
=yes
25620 echo "configure: failed program was" >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25627 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25628 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25630 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25635 *-*-aix*) conftest_s
=' .csect .text[PR]
25637 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25641 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25642 *) conftest_s
=' .text
25644 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25648 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25649 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25652 gcc_cv_as_powerpc_rel16
=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25655 then gcc_cv_as_powerpc_rel16
=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_rel16
=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_rel16" >&5
25675 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25676 if test $gcc_cv_as_powerpc_rel16 = yes; then
25678 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25683 *-*-aix*) conftest_s
=' .machine "pwr6"
25686 *) conftest_s
=' .machine power6
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25692 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25693 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25696 gcc_cv_as_powerpc_cmpb
=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_cmpb
=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_cmpb
=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_cmpb" >&5
25719 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25720 if test $gcc_cv_as_powerpc_cmpb = yes; then
25722 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25727 *-*-aix*) conftest_s
=' .machine "pwr6"
25730 *) conftest_s
=' .machine power6
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25736 $as_echo_n "checking assembler for decimal float support... " >&6; }
25737 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25740 gcc_cv_as_powerpc_dfp
=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_dfp
=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_dfp
=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_dfp" >&5
25763 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25764 if test $gcc_cv_as_powerpc_dfp = yes; then
25766 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25771 *-*-aix*) conftest_s
=' .machine "pwr7"
25774 *) conftest_s
=' .machine power7
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25780 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25781 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25784 gcc_cv_as_powerpc_vsx
=no
25785 if test $in_tree_gas = yes; then
25786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25787 then gcc_cv_as_powerpc_vsx
=yes
25789 elif test x
$gcc_cv_as != x
; then
25790 $as_echo "$conftest_s" > conftest.s
25791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25793 (eval $ac_try) 2>&5
25795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25796 test $ac_status = 0; }; }
25798 gcc_cv_as_powerpc_vsx
=yes
25800 echo "configure: failed program was" >&5
25803 rm -f conftest.o conftest.s
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25807 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25808 if test $gcc_cv_as_powerpc_vsx = yes; then
25810 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25815 *-*-aix*) conftest_s
=' .machine "pwr7"
25818 *) conftest_s
=' .machine power7
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25824 $as_echo_n "checking assembler for popcntd support... " >&6; }
25825 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_powerpc_popcntd
=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25831 then gcc_cv_as_powerpc_popcntd
=yes
25833 elif test x
$gcc_cv_as != x
; then
25834 $as_echo "$conftest_s" > conftest.s
25835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25842 gcc_cv_as_powerpc_popcntd
=yes
25844 echo "configure: failed program was" >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25851 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25852 if test $gcc_cv_as_powerpc_popcntd = yes; then
25854 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25859 *-*-aix*) conftest_s
=' .machine "pwr8"
25860 .csect .text[PR]';;
25861 *) conftest_s
=' .machine power8
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25866 $as_echo_n "checking assembler for power8 support... " >&6; }
25867 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25868 $as_echo_n "(cached) " >&6
25870 gcc_cv_as_powerpc_power8
=no
25871 if test $in_tree_gas = yes; then
25872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25873 then gcc_cv_as_powerpc_power8
=yes
25875 elif test x
$gcc_cv_as != x
; then
25876 $as_echo "$conftest_s" > conftest.s
25877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25879 (eval $ac_try) 2>&5
25881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25882 test $ac_status = 0; }; }
25884 gcc_cv_as_powerpc_power8
=yes
25886 echo "configure: failed program was" >&5
25889 rm -f conftest.o conftest.s
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25893 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25894 if test $gcc_cv_as_powerpc_power8 = yes; then
25896 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25901 *-*-aix*) conftest_s
=' .csect .text[PR]
25903 *) conftest_s
=' .text
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25908 $as_echo_n "checking assembler for lwsync support... " >&6; }
25909 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25910 $as_echo_n "(cached) " >&6
25912 gcc_cv_as_powerpc_lwsync
=no
25913 if test $in_tree_gas = yes; then
25914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25915 then gcc_cv_as_powerpc_lwsync
=yes
25917 elif test x
$gcc_cv_as != x
; then
25918 $as_echo "$conftest_s" > conftest.s
25919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }
25926 gcc_cv_as_powerpc_lwsync
=yes
25928 echo "configure: failed program was" >&5
25931 rm -f conftest.o conftest.s
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25935 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25936 if test $gcc_cv_as_powerpc_lwsync = yes; then
25938 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25943 *-*-aix*) conftest_s
=' .machine "476"
25946 *) conftest_s
=' .machine "476"
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25952 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25953 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25954 $as_echo_n "(cached) " >&6
25956 gcc_cv_as_powerpc_dci
=no
25957 if test $in_tree_gas = yes; then
25958 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25959 then gcc_cv_as_powerpc_dci
=yes
25961 elif test x
$gcc_cv_as != x
; then
25962 $as_echo "$conftest_s" > conftest.s
25963 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25965 (eval $ac_try) 2>&5
25967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25968 test $ac_status = 0; }; }
25970 gcc_cv_as_powerpc_dci
=yes
25972 echo "configure: failed program was" >&5
25975 rm -f conftest.o conftest.s
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25979 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25980 if test $gcc_cv_as_powerpc_dci = yes; then
25982 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25987 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25988 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25989 $as_echo_n "(cached) " >&6
25991 gcc_cv_as_powerpc_gnu_attribute
=no
25992 if test $in_tree_gas = yes; then
25993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25994 then gcc_cv_as_powerpc_gnu_attribute
=yes
25996 elif test x
$gcc_cv_as != x
; then
25997 $as_echo '.gnu_attribute 4,1' > conftest.s
25998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 gcc_cv_as_powerpc_gnu_attribute
=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26014 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26015 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26017 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26022 $as_echo_n "checking assembler for tls marker support... " >&6; }
26023 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26024 $as_echo_n "(cached) " >&6
26026 gcc_cv_as_powerpc_tls_markers
=no
26027 if test $in_tree_gas = yes; then
26028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26029 then gcc_cv_as_powerpc_tls_markers
=yes
26031 elif test x
$gcc_cv_as != x
; then
26032 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26035 (eval $ac_try) 2>&5
26037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; }
26040 gcc_cv_as_powerpc_tls_markers
=yes
26042 echo "configure: failed program was" >&5
26045 rm -f conftest.o conftest.s
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26049 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26050 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26052 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26059 $as_echo_n "checking assembler for .ref support... " >&6; }
26060 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26061 $as_echo_n "(cached) " >&6
26063 gcc_cv_as_aix_ref
=no
26064 if test $in_tree_gas = yes; then
26065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26066 then gcc_cv_as_aix_ref
=yes
26068 elif test x
$gcc_cv_as != x
; then
26069 $as_echo ' .csect stuff[rw]
26075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26077 (eval $ac_try) 2>&5
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; }
26082 gcc_cv_as_aix_ref
=yes
26084 echo "configure: failed program was" >&5
26087 rm -f conftest.o conftest.s
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26091 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26092 if test $gcc_cv_as_aix_ref = yes; then
26094 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26103 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26104 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26107 gcc_cv_as_mips_explicit_relocs
=no
26108 if test $in_tree_gas = yes; then
26109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26110 then gcc_cv_as_mips_explicit_relocs
=yes
26112 elif test x
$gcc_cv_as != x
; then
26113 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26116 (eval $ac_try) 2>&5
26118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26119 test $ac_status = 0; }; }
26121 gcc_cv_as_mips_explicit_relocs
=yes
26123 echo "configure: failed program was" >&5
26126 rm -f conftest.o conftest.s
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26130 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26131 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26132 if test x
$target_cpu_default = x
26133 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26134 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26138 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26139 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_as_mips_no_shared
=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26145 then gcc_cv_as_mips_no_shared
=yes
26147 elif test x
$gcc_cv_as != x
; then
26148 $as_echo 'nop' > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_mips_no_shared
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26165 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26166 if test $gcc_cv_as_mips_no_shared = yes; then
26168 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26173 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26174 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26175 $as_echo_n "(cached) " >&6
26177 gcc_cv_as_mips_gnu_attribute
=no
26178 if test $in_tree_gas = yes; then
26179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26180 then gcc_cv_as_mips_gnu_attribute
=yes
26182 elif test x
$gcc_cv_as != x
; then
26183 $as_echo '.gnu_attribute 4,1' > conftest.s
26184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26186 (eval $ac_try) 2>&5
26188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26189 test $ac_status = 0; }; }
26191 gcc_cv_as_mips_gnu_attribute
=yes
26193 echo "configure: failed program was" >&5
26196 rm -f conftest.o conftest.s
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26200 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26201 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26203 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26208 $as_echo_n "checking assembler for .module support... " >&6; }
26209 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26212 gcc_cv_as_mips_dot_module
=no
26213 if test x
$gcc_cv_as != x
; then
26214 $as_echo '.module mips2
26215 .module fp=xx' > conftest.s
26216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26223 gcc_cv_as_mips_dot_module
=yes
26225 echo "configure: failed program was" >&5
26228 rm -f conftest.o conftest.s
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26232 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26233 if test $gcc_cv_as_mips_dot_module = yes; then
26235 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26238 if test x
$gcc_cv_as_mips_dot_module = xno \
26239 && test x
$with_fp_32 != x
; then
26240 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26244 $as_echo_n "checking assembler for .micromips support... " >&6; }
26245 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26248 gcc_cv_as_micromips_support
=no
26249 if test x
$gcc_cv_as != x
; then
26250 $as_echo '.set micromips' > conftest.s
26251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26253 (eval $ac_try) 2>&5
26255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26256 test $ac_status = 0; }; }
26258 gcc_cv_as_micromips_support
=yes
26260 echo "configure: failed program was" >&5
26263 rm -f conftest.o conftest.s
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26267 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26268 if test $gcc_cv_as_micromips_support = yes; then
26270 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26275 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26276 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26277 $as_echo_n "(cached) " >&6
26279 gcc_cv_as_mips_dtprelword
=no
26280 if test $in_tree_gas = yes; then
26281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26282 then gcc_cv_as_mips_dtprelword
=yes
26284 elif test x
$gcc_cv_as != x
; then
26285 $as_echo '.section .tdata,"awT",@progbits
26289 .dtprelword x+0x8000' > conftest.s
26290 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26292 (eval $ac_try) 2>&5
26294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26295 test $ac_status = 0; }; }
26297 gcc_cv_as_mips_dtprelword
=yes
26299 echo "configure: failed program was" >&5
26302 rm -f conftest.o conftest.s
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26306 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26307 if test $gcc_cv_as_mips_dtprelword = yes; then
26309 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26314 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26315 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26316 $as_echo_n "(cached) " >&6
26318 gcc_cv_as_mips_dspr1_mult
=no
26319 if test x
$gcc_cv_as != x
; then
26320 $as_echo ' .set mips32r2
26328 multu $ac3,$4,$5' > conftest.s
26329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26331 (eval $ac_try) 2>&5
26333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26334 test $ac_status = 0; }; }
26336 gcc_cv_as_mips_dspr1_mult
=yes
26338 echo "configure: failed program was" >&5
26341 rm -f conftest.o conftest.s
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26345 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26346 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26348 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26353 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26354 gcc_cv_as_ld_jalr_reloc
=no
26355 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26356 if test $in_tree_ld = yes ; then
26357 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 \
26358 && test $in_tree_ld_is_elf = yes; then
26359 gcc_cv_as_ld_jalr_reloc
=yes
26361 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26362 echo ' .ent x' > conftest.s
26363 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26364 echo ' lw $25,%call16(y)($28)' >> conftest.s
26365 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26366 echo '1: jalr $25' >> conftest.s
26367 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26368 echo '1: jalr $25' >> conftest.s
26369 echo ' .end x' >> conftest.s
26370 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26371 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26372 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26373 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26374 gcc_cv_as_ld_jalr_reloc
=yes
26380 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26381 if test x
$target_cpu_default = x
; then
26382 target_cpu_default
=MASK_RELAX_PIC_CALLS
26384 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26388 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26391 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26392 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26393 $as_echo_n "(cached) " >&6
26395 gcc_cv_ld_mips_personality_relaxation
=no
26396 if test $in_tree_ld = yes ; then
26397 if test "$gcc_cv_gld_major_version" -eq 2 \
26398 -a "$gcc_cv_gld_minor_version" -ge 21 \
26399 -o "$gcc_cv_gld_major_version" -gt 2; then
26400 gcc_cv_ld_mips_personality_relaxation
=yes
26402 elif test x
$gcc_cv_as != x \
26403 -a x
$gcc_cv_ld != x \
26404 -a x
$gcc_cv_readelf != x
; then
26405 cat > conftest.s
<<EOF
26407 .cfi_personality 0x80,indirect_ptr
26414 .section .data,"aw",@progbits
26418 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26419 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26420 if $gcc_cv_readelf -d conftest
2>&1 \
26421 |
grep TEXTREL
> /dev
/null
2>&1; then
26423 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26424 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26427 gcc_cv_ld_mips_personality_relaxation
=yes
26431 rm -f conftest.s conftest.o conftest
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26434 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26435 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26437 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26442 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26443 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26446 gcc_cv_as_mips_nan
=no
26447 if test x
$gcc_cv_as != x
; then
26448 $as_echo '' > conftest.s
26449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26451 (eval $ac_try) 2>&5
26453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26454 test $ac_status = 0; }; }
26456 gcc_cv_as_mips_nan
=yes
26458 echo "configure: failed program was" >&5
26461 rm -f conftest.o conftest.s
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26465 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26466 if test $gcc_cv_as_mips_nan = yes; then
26468 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26471 if test x
$gcc_cv_as_mips_nan = xno \
26472 && test x
$with_nan != x
; then
26473 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26478 # Mips and HP-UX need the GNU assembler.
26479 # Linux on IA64 might be able to use the Intel assembler.
26482 mips
*-*-* |
*-*-hpux* )
26483 if test x
$gas_flag = xyes \
26484 ||
test x
"$host" != x
"$build" \
26485 ||
test ! -x "$gcc_cv_as" \
26486 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26489 echo "*** This configuration requires the GNU assembler" >&2
26495 # ??? Not all targets support dwarf2 debug_line, even within a version
26496 # of gas. Moreover, we need to emit a valid instruction to trigger any
26497 # info to the output file. So, as supported targets are added to gas 2.11,
26498 # add some instruction here to (also) show we expect this might work.
26499 # ??? Once 2.11 is released, probably need to add first known working
26500 # version to the per-target configury.
26501 case "$cpu_type" in
26502 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26503 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26504 | xstormy16 | xtensa
)
26514 if test x
"$insn" != x
; then
26516 .file 1 \"conftest.s\"
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26520 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26521 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26524 gcc_cv_as_dwarf2_debug_line
=no
26525 if test $in_tree_gas = yes; then
26526 if test $in_tree_gas_is_elf = yes \
26527 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26528 then gcc_cv_as_dwarf2_debug_line
=yes
26530 elif test x
$gcc_cv_as != x
; then
26531 $as_echo "$conftest_s" > conftest.s
26532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26539 if test x
$gcc_cv_objdump != x \
26540 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26541 |
grep debug_line
> /dev
/null
2>&1; then
26542 gcc_cv_as_dwarf2_debug_line
=yes
26545 echo "configure: failed program was" >&5
26548 rm -f conftest.o conftest.s
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26552 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26555 # The .debug_line file table must be in the exact order that
26556 # we specified the files, since these indices are also used
26557 # by DW_AT_decl_file. Approximate this test by testing if
26558 # the assembler bitches if the same index is assigned twice.
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26560 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26561 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26562 $as_echo_n "(cached) " >&6
26564 gcc_cv_as_dwarf2_file_buggy
=no
26565 if test x
$gcc_cv_as != x
; then
26566 $as_echo ' .file 1 "foo.s"
26567 .file 1 "bar.s"' > conftest.s
26568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26570 (eval $ac_try) 2>&5
26572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26573 test $ac_status = 0; }; }
26575 gcc_cv_as_dwarf2_file_buggy
=yes
26577 echo "configure: failed program was" >&5
26580 rm -f conftest.o conftest.s
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26584 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26587 if test $gcc_cv_as_dwarf2_debug_line = yes \
26588 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26590 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26595 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26596 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26597 $as_echo_n "(cached) " >&6
26599 gcc_cv_as_gdwarf2_flag
=no
26600 if test $in_tree_gas = yes; then
26601 if test $in_tree_gas_is_elf = yes \
26602 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26603 then gcc_cv_as_gdwarf2_flag
=yes
26605 elif test x
$gcc_cv_as != x
; then
26606 $as_echo "$insn" > conftest.s
26607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26614 gcc_cv_as_gdwarf2_flag
=yes
26616 echo "configure: failed program was" >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26623 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26624 if test $gcc_cv_as_gdwarf2_flag = yes; then
26626 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26631 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26632 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26635 gcc_cv_as_gstabs_flag
=no
26636 if test $in_tree_gas = yes; then
26637 if test $in_tree_gas_is_elf = yes \
26638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26639 then gcc_cv_as_gstabs_flag
=yes
26641 elif test x
$gcc_cv_as != x
; then
26642 $as_echo "$insn" > conftest.s
26643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645 (eval $ac_try) 2>&5
26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648 test $ac_status = 0; }; }
26650 gcc_cv_as_gstabs_flag
=yes
26652 echo "configure: failed program was" >&5
26655 rm -f conftest.o conftest.s
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26659 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26660 if test $gcc_cv_as_gstabs_flag = yes; then
26662 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26667 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26668 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26669 $as_echo_n "(cached) " >&6
26671 gcc_cv_as_debug_prefix_map_flag
=no
26672 if test $in_tree_gas = yes; then
26673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26674 then gcc_cv_as_debug_prefix_map_flag
=yes
26676 elif test x
$gcc_cv_as != x
; then
26677 $as_echo "$insn" > conftest.s
26678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26685 gcc_cv_as_debug_prefix_map_flag
=yes
26687 echo "configure: failed program was" >&5
26690 rm -f conftest.o conftest.s
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26694 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26695 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26697 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26703 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26704 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26707 gcc_cv_as_compress_debug
=no
26708 if test x
$gcc_cv_as != x
; then
26709 $as_echo '' > conftest.s
26710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26717 # gas compiled without zlib cannot compress debug sections and warns
26718 # about it, but still exits successfully. So check for this, too.
26719 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26721 gcc_cv_as_compress_debug
=0
26722 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26724 gcc_cv_as_compress_debug
=1
26725 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26726 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26728 gcc_cv_as_compress_debug
=0
26729 # FIXME: Future gas versions will support ELF gABI style via
26730 # --compress-debug-sections[=type].
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_compress_debug" >&5
26740 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26743 cat >>confdefs.h
<<_ACEOF
26744 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26748 cat >>confdefs.h
<<_ACEOF
26749 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26753 cat >>confdefs.h
<<_ACEOF
26754 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26759 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26760 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26761 $as_echo_n "(cached) " >&6
26763 gcc_cv_as_lcomm_with_alignment
=no
26764 if test x
$gcc_cv_as != x
; then
26765 $as_echo '.lcomm bar,4,16' > conftest.s
26766 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26768 (eval $ac_try) 2>&5
26770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26771 test $ac_status = 0; }; }
26773 gcc_cv_as_lcomm_with_alignment
=yes
26775 echo "configure: failed program was" >&5
26778 rm -f conftest.o conftest.s
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26782 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26783 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26785 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26789 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26790 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26791 && test "$prefix" != "NONE"; then
26793 cat >>confdefs.h
<<_ACEOF
26794 #define PREFIX_INCLUDE_DIR "$prefix/include"
26799 # Determine the version of glibc, if any, used on the target.
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26801 $as_echo_n "checking for target glibc version... " >&6; }
26803 # Check whether --with-glibc-version was given.
26804 if test "${with_glibc_version+set}" = set; then :
26805 withval
=$with_glibc_version;
26806 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26807 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26808 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26810 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26814 glibc_version_major
=0
26815 glibc_version_minor
=0
26816 if test -f $target_header_dir/features.h \
26817 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26818 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26819 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26820 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26825 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26827 cat >>confdefs.h
<<_ACEOF
26828 #define TARGET_GLIBC_MAJOR $glibc_version_major
26832 cat >>confdefs.h
<<_ACEOF
26833 #define TARGET_GLIBC_MINOR $glibc_version_minor
26837 # Check whether --enable-gnu-unique-object was given.
26838 if test "${enable_gnu_unique_object+set}" = set; then :
26839 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26841 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26842 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26846 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26847 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26848 $as_echo_n "(cached) " >&6
26850 gcc_cv_as_gnu_unique_object
=no
26851 if test $in_tree_gas = yes; then
26852 if test $in_tree_gas_is_elf = yes \
26853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26854 then gcc_cv_as_gnu_unique_object
=yes
26856 elif test x
$gcc_cv_as != x
; then
26857 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26860 (eval $ac_try) 2>&5
26862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26863 test $ac_status = 0; }; }
26865 gcc_cv_as_gnu_unique_object
=yes
26867 echo "configure: failed program was" >&5
26870 rm -f conftest.o conftest.s
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26874 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26875 if test $gcc_cv_as_gnu_unique_object = yes; then
26876 # We need to unquote above to to use the definition from config.gcc.
26877 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26879 if test $glibc_version_major -gt 2 \
26880 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26881 enable_gnu_unique_object
=yes
26887 if test x
$enable_gnu_unique_object = xyes
; then
26889 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26894 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26895 if test "${gcc_cv_as_line_zero+set}" = set; then :
26896 $as_echo_n "(cached) " >&6
26898 gcc_cv_as_line_zero
=no
26899 if test $in_tree_gas = yes; then
26900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26901 then gcc_cv_as_line_zero
=yes
26903 elif test "x$gcc_cv_as" != x
; then
26904 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26905 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26907 (eval $ac_try) 2>&5
26909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26910 test $ac_status = 0; }; } &&
26911 test "x`cat conftest.out`" = x
26913 gcc_cv_as_line_zero
=yes
26915 echo "configure: failed program was" >&5
26917 echo "configure: error output was" >&5
26918 cat conftest.out
>&5
26920 rm -f conftest.o conftest.s conftest.out
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26924 $as_echo "$gcc_cv_as_line_zero" >&6; }
26925 if test "x$gcc_cv_as_line_zero" = xyes
; then
26927 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26932 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26933 gcc_cv_ld_eh_frame_hdr
=no
26934 if test $in_tree_ld = yes ; then
26935 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 \
26936 && test $in_tree_ld_is_elf = yes; then
26937 gcc_cv_ld_eh_frame_hdr
=yes
26939 elif test x
$gcc_cv_ld != x
; then
26940 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26941 # Check if linker supports --eh-frame-hdr option
26942 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26943 gcc_cv_ld_eh_frame_hdr
=yes
26948 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26949 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26950 gcc_cv_ld_eh_frame_hdr
=yes
26957 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26959 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26963 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26966 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26967 gcc_cv_ld_eh_frame_ciev3
=no
26968 if test $in_tree_ld = yes ; then
26969 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 \
26970 && test $in_tree_ld_is_elf = yes; then
26971 gcc_cv_ld_eh_frame_ciev3
=yes
26973 elif test x
$gcc_cv_ld != x
; then
26974 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26975 gcc_cv_ld_eh_frame_ciev3
=yes
26976 if test 0"$ld_date" -lt 20040513; then
26977 if test -n "$ld_date"; then
26978 # If there was date string, but was earlier than 2004-05-13, fail
26979 gcc_cv_ld_eh_frame_ciev3
=no
26980 elif test "$ld_vers_major" -lt 2; then
26981 gcc_cv_ld_eh_frame_ciev3
=no
26982 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26983 gcc_cv_ld_eh_frame_ciev3
=no
26989 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26990 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26991 gcc_cv_ld_eh_frame_ciev3
=yes
26998 cat >>confdefs.h
<<_ACEOF
26999 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27003 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27006 $as_echo_n "checking linker position independent executable support... " >&6; }
27008 if test $in_tree_ld = yes ; then
27009 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 \
27010 && test $in_tree_ld_is_elf = yes; then
27013 elif test x
$gcc_cv_ld != x
; then
27014 # Check if linker supports -pie option
27015 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27019 if test x
"$gcc_cv_ld_pie" = xyes
; then
27021 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27025 $as_echo "$gcc_cv_ld_pie" >&6; }
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27028 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27029 gcc_cv_ld_eh_gc_sections
=no
27030 if test $in_tree_ld = yes ; then
27031 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 \
27032 && test $in_tree_ld_is_elf = yes; then
27033 gcc_cv_ld_eh_gc_sections
=yes
27035 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27036 cat > conftest.s
<<EOF
27039 .type _start, @function
27042 .size _start, .-_start
27043 .section .text.foo,"ax",@progbits
27044 .type foo, @function
27048 .section .gcc_except_table.foo,"a",@progbits
27051 .section .eh_frame,"a",@progbits
27054 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27055 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27056 |
grep "gc-sections option ignored" > /dev
/null
; then
27057 gcc_cv_ld_eh_gc_sections
=no
27058 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27059 |
grep gcc_except_table
> /dev
/null
; then
27060 gcc_cv_ld_eh_gc_sections
=yes
27061 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27062 if test x
$gcc_cv_as_comdat_group != xyes
; then
27063 gcc_cv_ld_eh_gc_sections
=no
27064 cat > conftest.s
<<EOF
27067 .type _start, @function
27070 .size _start, .-_start
27071 .section .gnu.linkonce.t.foo,"ax",@progbits
27072 .type foo, @function
27076 .section .gcc_except_table.foo,"a",@progbits
27079 .section .eh_frame,"a",@progbits
27082 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27083 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27084 |
grep "gc-sections option ignored" > /dev
/null
; then
27085 gcc_cv_ld_eh_gc_sections
=no
27086 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27087 |
grep gcc_except_table
> /dev
/null
; then
27088 gcc_cv_ld_eh_gc_sections
=yes
27094 rm -f conftest.s conftest.o conftest
27098 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27099 gcc_cv_ld_eh_gc_sections
=no
27102 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27104 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27108 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27111 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27112 gcc_cv_ld_eh_gc_sections_bug
=no
27113 if test $in_tree_ld = yes ; then
27114 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 \
27115 && test $in_tree_ld_is_elf = yes; then
27116 gcc_cv_ld_eh_gc_sections_bug
=yes
27118 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
27119 gcc_cv_ld_eh_gc_sections_bug
=yes
27120 cat > conftest.s
<<EOF
27123 .type _start, @function
27126 .size _start, .-_start
27127 .section .text.startup.foo,"ax",@progbits
27128 .type foo, @function
27132 .section .gcc_except_table.foo,"a",@progbits
27135 .section .eh_frame,"a",@progbits
27138 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27139 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27140 |
grep "gc-sections option ignored" > /dev
/null
; then
27142 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27143 |
grep gcc_except_table
> /dev
/null
; then
27144 gcc_cv_ld_eh_gc_sections_bug
=no
27147 rm -f conftest.s conftest.o conftest
27149 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27151 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27155 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27158 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27159 # gold/gld support compressed debug sections since binutils 2.19/2.21
27160 if test $in_tree_ld = yes ; then
27161 gcc_cv_ld_compress_debug
=0
27162 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 \
27163 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27164 gcc_cv_ld_compress_debug
=2
27165 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27166 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 \
27167 && test $in_tree_ld_is_elf = yes; then
27168 gcc_cv_ld_compress_debug
=1
27170 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27171 gcc_cv_ld_compress_debug
=1
27172 if test 0"$ld_date" -lt 20050308; then
27173 if test -n "$ld_date"; then
27174 # If there was date string, but was earlier than 2005-03-08, fail
27175 gcc_cv_ld_compress_debug
=0
27176 elif test "$ld_vers_major" -lt 2; then
27177 gcc_cv_ld_compress_debug
=0
27178 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27179 gcc_cv_ld_compress_debug
=0
27182 if test $ld_is_gold = yes; then
27183 gcc_cv_ld_compress_debug
=2
27184 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27187 case "${target}" in
27189 # Introduced in Solaris 11.2.
27190 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27191 gcc_cv_ld_compress_debug
=3
27192 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27194 gcc_cv_ld_compress_debug
=0
27198 # Assume linkers other than GNU ld don't support compessed debug
27200 gcc_cv_ld_compress_debug
=0
27205 cat >>confdefs.h
<<_ACEOF
27206 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27210 cat >>confdefs.h
<<_ACEOF
27211 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27215 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27222 $as_echo_n "checking linker --as-needed support... " >&6; }
27223 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27224 $as_echo_n "(cached) " >&6
27226 gcc_cv_ld_as_needed
=no
27227 gcc_cv_ld_as_needed_option
='--as-needed'
27228 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27229 if test $in_tree_ld = yes ; then
27230 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 \
27231 && test $in_tree_ld_is_elf = yes; then
27232 gcc_cv_ld_as_needed
=yes
27234 elif test x
$gcc_cv_ld != x
; then
27235 # Check if linker supports --as-needed and --no-as-needed options
27236 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27237 gcc_cv_ld_as_needed
=yes
27240 # Solaris 2 ld always supports -z ignore/-z record.
27242 gcc_cv_ld_as_needed
=yes
27243 gcc_cv_ld_as_needed_option
="-z ignore"
27244 gcc_cv_ld_no_as_needed_option
="-z record"
27249 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27250 # dl_iterate_phdr, i.e. since Solaris 11.
27252 *-*-solaris2.1
[1-9]*)
27254 i?
86-*-* | x86_64-
*-*)
27255 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27256 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27257 gcc_cv_ld_as_needed
=no
27263 gcc_cv_ld_as_needed
=no
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27269 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27270 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27272 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27275 cat >>confdefs.h
<<_ACEOF
27276 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27280 cat >>confdefs.h
<<_ACEOF
27281 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27287 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27288 saved_LDFLAGS
="$LDFLAGS"
27289 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27290 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27292 /* end confdefs.h. */
27293 int main(void) {return 0;}
27295 if ac_fn_c_try_link
"$LINENO"; then :
27296 gcc_cv_ld_clearcap
=yes; break
27298 gcc_cv_ld_clearcap
=no
27300 rm -f core conftest.err conftest.
$ac_objext \
27301 conftest
$ac_exeext conftest.
$ac_ext
27303 LDFLAGS
="$saved_LDFLAGS"
27304 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27306 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27308 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27312 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27314 case "$target:$tm_file" in
27315 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27318 emul_name
="-melf64lppc"
27321 emul_name
="-melf64ppc"
27324 emul_name
="-melf64ppc_fbsd"
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27328 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27329 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27330 $as_echo_n "(cached) " >&6
27332 gcc_cv_ld_no_dot_syms
=no
27333 if test x
"$ld_is_gold" = xyes
; then
27334 gcc_cv_ld_no_dot_syms
=yes
27335 elif test $in_tree_ld = yes ; then
27336 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
27337 gcc_cv_ld_no_dot_syms
=yes
27339 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27340 cat > conftest1.s
<<EOF
27344 cat > conftest2.s
<<EOF
27345 .section ".opd","aw"
27348 .type foo,@function
27350 .quad .LEfoo,.TOC.@tocbase,0
27356 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27357 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27358 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27359 gcc_cv_ld_no_dot_syms
=yes
27361 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27366 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27367 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27369 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27374 $as_echo_n "checking linker large toc support... " >&6; }
27375 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27376 $as_echo_n "(cached) " >&6
27378 gcc_cv_ld_large_toc
=no
27379 if test x
"$ld_is_gold" = xyes
; then
27380 gcc_cv_ld_large_toc
=yes
27381 elif test $in_tree_ld = yes ; then
27382 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
27383 gcc_cv_ld_large_toc
=yes
27385 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27386 cat > conftest.s
<<EOF
27387 .section ".tbss","awT",@nobits
27393 addis 9,13,ie0@got@tprel@ha
27394 ld 9,ie0@got@tprel@l(9)
27396 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27397 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27398 gcc_cv_ld_large_toc
=yes
27400 rm -f conftest conftest.o conftest.s
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27405 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27406 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27408 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27417 $as_echo_n "checking linker large toc support... " >&6; }
27418 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27419 $as_echo_n "(cached) " >&6
27421 gcc_cv_ld_large_toc
=no
27422 if test x
$gcc_cv_as != x
; then
27423 cat > conftest.s
<<EOF
27433 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27434 gcc_cv_ld_large_toc
=yes
27436 rm -f conftest conftest.o conftest.s
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27441 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27442 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27444 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27451 $as_echo_n "checking linker --build-id support... " >&6; }
27452 if test "${gcc_cv_ld_buildid+set}" = set; then :
27453 $as_echo_n "(cached) " >&6
27455 gcc_cv_ld_buildid
=no
27456 if test $in_tree_ld = yes ; then
27457 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27458 "$gcc_cv_gld_minor_version" -ge 18 -o \
27459 "$gcc_cv_gld_major_version" -gt 2 \
27460 && test $in_tree_ld_is_elf = yes; then
27461 gcc_cv_ld_buildid
=yes
27463 elif test x
$gcc_cv_ld != x
; then
27464 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27465 gcc_cv_ld_buildid
=yes
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27470 $as_echo "$gcc_cv_ld_buildid" >&6; }
27471 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27473 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27477 # Check whether --enable-linker-build-id was given.
27478 if test "${enable_linker_build_id+set}" = set; then :
27479 enableval
=$enable_linker_build_id;
27481 enable_linker_build_id
=no
27485 if test x
"$enable_linker_build_id" = xyes
; then
27486 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27488 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27492 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27496 # In binutils 2.21, GNU ld gained support for new emulations fully
27497 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27499 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27500 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27501 $as_echo_n "(cached) " >&6
27503 gcc_cv_ld_sol2_emulation
=no
27504 if test $in_tree_ld = yes ; then
27505 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27506 "$gcc_cv_gld_minor_version" -ge 21 -o \
27507 "$gcc_cv_gld_major_version" -gt 2 \
27508 && test $in_tree_ld_is_elf = yes; then
27509 gcc_cv_ld_sol2_emulation
=yes
27511 elif test x
$gcc_cv_ld != x
; then
27512 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27513 grep _sol2
> /dev
/null
; then
27514 gcc_cv_ld_sol2_emulation
=yes
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27519 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27520 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27522 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27527 $as_echo_n "checking linker --sysroot support... " >&6; }
27528 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27529 $as_echo_n "(cached) " >&6
27531 gcc_cv_ld_sysroot
=no
27532 if test $in_tree_ld = yes ; then
27533 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
27534 gcc_cv_ld_sysroot
=yes
27536 elif test x
$gcc_cv_ld != x
; then
27537 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27538 gcc_cv_ld_sysroot
=yes
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27543 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27544 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27546 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27550 # Test for stack protector support in target C library.
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27552 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27553 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27554 $as_echo_n "(cached) " >&6
27556 gcc_cv_libc_provides_ssp
=no
27558 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27559 # glibc 2.4 and later provides __stack_chk_fail and
27560 # either __stack_chk_guard, or TLS access to stack guard canary.
27562 if test $glibc_version_major -gt 2 \
27563 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27564 gcc_cv_libc_provides_ssp
=yes
27567 if test -f $target_header_dir/features.h \
27568 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27569 $target_header_dir/features.h
> /dev
/null
; then
27570 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27571 $target_header_dir/features.h
> /dev
/null
&& \
27572 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27573 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27574 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27575 gcc_cv_libc_provides_ssp
=yes
27577 # all versions of Bionic support stack protector
27578 elif test -f $target_header_dir/sys
/cdefs.h \
27579 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27580 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27581 gcc_cv_libc_provides_ssp
=yes
27586 # Avoid complicated tests (see
27587 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27588 # simply assert that glibc does provide this, which is true for all
27589 # realistically usable GNU/Hurd configurations.
27590 gcc_cv_libc_provides_ssp
=yes;;
27591 *-*-darwin* |
*-*-freebsd*)
27592 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27593 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27594 gcc_cv_libc_provides_ssp
=yes
27596 echo "no __stack_chk_fail on this target"
27600 *) gcc_cv_libc_provides_ssp
=no
;;
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27604 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27606 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27608 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27612 # Test for <sys/sdt.h> on the target.
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27615 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27617 if test -f $target_header_dir/sys
/sdt.h
; then
27620 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27624 $as_echo "$have_sys_sdt_h" >&6; }
27626 # Check if TFmode long double should be used by default or not.
27627 # Some glibc targets used DFmode long double, but with glibc 2.4
27628 # and later they can use TFmode.
27630 powerpc
*-*-linux* | \
27631 sparc
*-*-linux* | \
27635 # Check whether --with-long-double-128 was given.
27636 if test "${with_long_double_128+set}" = set; then :
27637 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27640 if test $glibc_version_major -gt 2 \
27641 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27642 gcc_cv_target_ldbl128
=yes
27645 gcc_cv_target_ldbl128
=no
27646 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27647 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27648 && gcc_cv_target_ldbl128
=yes
27655 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27657 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27662 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27663 gcc_cv_target_dl_iterate_phdr
=unknown
27665 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27666 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27667 # libdl there, both complicating its use and breaking compatibility
27668 # between Solaris 10 updates.
27669 *-*-solaris2.1
[1-9]*)
27670 # <link.h> needs both a dl_iterate_phdr declaration and support for
27671 # compilation with largefile support.
27672 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27673 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27674 gcc_cv_target_dl_iterate_phdr
=yes
27676 gcc_cv_target_dl_iterate_phdr
=no
27679 *-*-dragonfly* |
*-*-freebsd*)
27680 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27681 gcc_cv_target_dl_iterate_phdr
=yes
27683 gcc_cv_target_dl_iterate_phdr
=no
27688 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27690 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27694 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27696 # We no longer support different GC mechanisms. Emit an error if
27697 # the user configures with --with-gc.
27699 # Check whether --with-gc was given.
27700 if test "${with_gc+set}" = set; then :
27701 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27705 # Libraries to use on the host. This will normally be set by the top
27706 # level Makefile. Here we simply capture the value for our Makefile.
27707 if test -z "${HOST_LIBS+set}"; then
27712 # Use the system's zlib library.
27714 zlibinc
="-I\$(srcdir)/../zlib"
27716 # Check whether --with-system-zlib was given.
27717 if test "${with_system_zlib+set}" = set; then :
27718 withval
=$with_system_zlib; zlibdir
=
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27728 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27729 # Check whether --enable-maintainer-mode was given.
27730 if test "${enable_maintainer_mode+set}" = set; then :
27731 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27738 $as_echo "$maintainer_mode" >&6; }
27740 if test "$maintainer_mode" = "yes"; then
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27748 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27749 # Check whether --enable-link-mutex was given.
27750 if test "${enable_link_mutex+set}" = set; then :
27751 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27757 $as_echo "$do_link_mutex" >&6; }
27759 if test "$do_link_mutex" = "yes"; then
27762 DO_LINK_MUTEX
=false
27770 # Make empty files to contain the specs and options for each language.
27771 # Then add #include lines to for a compiler that has specs and/or options.
27777 # These (without "all_") are set in each config-lang.in.
27778 # `language' must be a single word so is spelled singularly.
27781 all_outputs
='Makefile'
27782 # List of language makefile fragments.
27783 all_lang_makefrags
=
27784 # Additional files for gengtype
27785 all_gtfiles
="$target_gtfiles"
27787 # These are the languages that are set in --enable-languages,
27788 # and are available in the GCC tree.
27789 all_selected_languages
=
27791 # Add the language fragments.
27792 # Languages are added via two mechanisms. Some information must be
27793 # recorded in makefile variables, these are defined in config-lang.in.
27794 # We accumulate them and plug them into the main Makefile.
27795 # The other mechanism is a set of hooks for each of the main targets
27796 # like `clean', `install', etc.
27798 language_hooks
="Make-hooks"
27800 for lang
in ${srcdir}/*/config-lang.
in
27802 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27804 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27805 if test "x$lang_alias" = x
27807 echo "$lang doesn't set \$language." 1>&2
27810 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27811 subdirs
="$subdirs $subdir"
27813 # $gcc_subdir is where the gcc integration files are to be found
27814 # for a language, both for internal compiler purposes (compiler
27815 # sources implementing front-end to GCC tree converters), and for
27816 # build infrastructure purposes (Make-lang.in, etc.)
27818 # This will be <subdir> (relative to $srcdir) if a line like
27819 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27820 # is found in <langdir>/config-lang.in, and will remain <langdir>
27823 # Except for the language alias (fetched above), the regular
27824 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27825 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27826 # only this and the language alias.
27828 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27829 if [ "$gcc_subdir" = "" ]; then
27830 gcc_subdir
="$subdir"
27833 case ",$enable_languages," in
27835 all_selected_languages
="$all_selected_languages $lang_alias"
27836 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27837 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27848 .
${srcdir}/$gcc_subdir/config-lang.
in
27849 if test "x$language" = x
27851 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27856 case ",$enable_languages," in
27857 *,$lang_alias,*) ;;
27859 for i
in $subdir_requires; do
27860 test -f "${srcdir}/$i/config-lang.in" && continue
27868 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27869 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27870 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27871 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27873 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27874 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27876 all_languages
="$all_languages $language"
27877 all_compilers
="$all_compilers $compilers"
27878 all_outputs
="$all_outputs $outputs"
27879 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27880 case ",$enable_languages," in
27883 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27893 for language
in $all_selected_languages
27895 check_languages
="$check_languages check-$language"
27898 # We link each language in with a set of hooks, reached indirectly via
27899 # lang.${target}. Only do so for selected languages.
27903 target_list
="all.cross start.encap rest.encap tags \
27904 install-common install-man install-info install-pdf install-html dvi \
27905 pdf html uninstall info man srcextra srcman srcinfo \
27906 mostlyclean clean distclean maintainer-clean install-plugin"
27908 for t
in $target_list
27911 for lang
in $all_selected_languages
27915 echo "lang.$t: $x" >> Make-hooks
27919 # Option include files
27922 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27923 option_includes
="option-includes.mk"
27932 echo "dir ." > .gdbinit
27933 echo "dir ${srcdir}" >> .gdbinit
27934 if test x
$gdb_needs_out_file_path = xyes
27936 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27938 if test "x$subdirs" != x
; then
27941 echo "dir ${srcdir}/$s" >> .gdbinit
27944 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27945 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27947 # Put a breakpoint on __asan_report_error to help with debugging buffer
27950 *-fsanitize=address
*)
27951 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27955 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27959 # Find a directory in which to install a shared libgcc.
27961 # Check whether --enable-version-specific-runtime-libs was given.
27962 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27963 enableval
=$enable_version_specific_runtime_libs;
27967 # Substitute configuration variables
28031 if test x
${build} = x
${host} ; then
28032 if test x
${host} = x
${target} ; then
28033 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28035 echo "Links are now set up to build a cross-compiler" 1>&2
28036 echo " from ${host} to ${target}." 1>&2
28039 if test x
${host} = x
${target} ; then
28040 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28041 echo " for ${target}." 1>&2
28043 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28044 echo " from ${host} to ${target}." 1>&2
28053 if test "x${ISLLIBS}" != "x" ; then
28055 $as_echo "#define HAVE_isl 1" >>confdefs.h
28059 # Check for plugin support
28060 # Check whether --enable-plugin was given.
28061 if test "${enable_plugin+set}" = set; then :
28062 enableval
=$enable_plugin; enable_plugin
=$enableval
28064 enable_plugin
=yes; default_plugin
=yes
28072 if test x
$build = x
$host; then
28073 export_sym_check
="nm${exeext} -g"
28074 elif test x
$host = x
$target; then
28075 export_sym_check
="$gcc_cv_nm -g"
28081 if test x
$build = x
$host; then
28082 export_sym_check
="objdump${exeext} -T"
28083 elif test x
$host = x
$target; then
28084 export_sym_check
="$gcc_cv_objdump -T"
28091 if test x
"$enable_plugin" = x
"yes"; then
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28094 $as_echo_n "checking for exported symbols... " >&6; }
28095 if test "x$export_sym_check" != x
; then
28096 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28097 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28098 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28099 : # No need to use a flag
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28101 $as_echo "yes" >&6; }
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28106 $as_echo_n "checking for -rdynamic... " >&6; }
28107 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28108 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28109 plugin_rdynamic
=yes
28110 pluginlibs
="-rdynamic"
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28116 $as_echo "$plugin_rdynamic" >&6; }
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28120 $as_echo "unable to check" >&6; }
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28126 $as_echo_n "checking for library containing dlopen... " >&6; }
28127 if test "${ac_cv_search_dlopen+set}" = set; then :
28128 $as_echo_n "(cached) " >&6
28130 ac_func_search_save_LIBS
=$LIBS
28131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h. */
28134 /* Override any GCC internal prototype to avoid an error.
28135 Use char because int might match the return type of a GCC
28136 builtin and then its argument prototype would still apply. */
28149 for ac_lib
in '' dl
; do
28150 if test -z "$ac_lib"; then
28151 ac_res
="none required"
28154 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28156 if ac_fn_c_try_link
"$LINENO"; then :
28157 ac_cv_search_dlopen
=$ac_res
28159 rm -f core conftest.err conftest.
$ac_objext \
28161 if test "${ac_cv_search_dlopen+set}" = set; then :
28165 if test "${ac_cv_search_dlopen+set}" = set; then :
28168 ac_cv_search_dlopen
=no
28170 rm conftest.
$ac_ext
28171 LIBS
=$ac_func_search_save_LIBS
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28174 $as_echo "$ac_cv_search_dlopen" >&6; }
28175 ac_res
=$ac_cv_search_dlopen
28176 if test "$ac_res" != no
; then :
28177 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28181 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28182 pluginlibs
="$pluginlibs -ldl"
28186 # Check that we can build shared objects with -fPIC -shared
28187 saved_LDFLAGS
="$LDFLAGS"
28188 saved_CFLAGS
="$CFLAGS"
28191 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28192 CFLAGS
="$CFLAGS -fPIC"
28193 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28196 CFLAGS
="$CFLAGS -fPIC"
28197 LDFLAGS
="$LDFLAGS -fPIC -shared"
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28201 $as_echo_n "checking for -fPIC -shared... " >&6; }
28202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28203 /* end confdefs.h. */
28213 if ac_fn_c_try_link
"$LINENO"; then :
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215 $as_echo "yes" >&6; }; have_pic_shared
=yes
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28218 $as_echo "no" >&6; }; have_pic_shared
=no
28220 rm -f core conftest.err conftest.
$ac_objext \
28221 conftest
$ac_exeext conftest.
$ac_ext
28222 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28226 LDFLAGS
="$saved_LDFLAGS"
28227 CFLAGS
="$saved_CFLAGS"
28229 # If plugin support had been requested but not available, fail.
28230 if test x
"$enable_plugin" = x
"no" ; then
28231 if test x
"$default_plugin" != x
"yes"; then
28233 Building GCC with plugin support requires a host that supports
28234 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28241 if test x
"$enable_plugin" = x
"yes"; then
28243 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28248 # Enable --enable-host-shared
28249 # Check whether --enable-host-shared was given.
28250 if test "${enable_host_shared+set}" = set; then :
28251 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28260 # Check whether --enable-libquadmath-support was given.
28261 if test "${enable_libquadmath_support+set}" = set; then :
28262 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28264 ENABLE_LIBQUADMATH_SUPPORT
=yes
28267 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28269 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28274 # Specify what hash style to use by default.
28276 # Check whether --with-linker-hash-style was given.
28277 if test "${with_linker_hash_style+set}" = set; then :
28278 withval
=$with_linker_hash_style; case x
"$withval" in
28280 LINKER_HASH_STYLE
=sysv
28283 LINKER_HASH_STYLE
=gnu
28286 LINKER_HASH_STYLE
=both
28289 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28293 LINKER_HASH_STYLE
=''
28296 if test x
"${LINKER_HASH_STYLE}" != x
; then
28298 cat >>confdefs.h
<<_ACEOF
28299 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28304 # Specify what should be the default of -fdiagnostics-color option.
28306 # Check whether --with-diagnostics-color was given.
28307 if test "${with_diagnostics_color+set}" = set; then :
28308 withval
=$with_diagnostics_color; case x
"$withval" in
28310 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28313 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28316 DIAGNOSTICS_COLOR_DEFAULT
=-1
28319 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28322 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28326 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28330 cat >>confdefs.h
<<_ACEOF
28331 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28335 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28336 # of jit/jit-playback.c.
28337 cat > gcc-driver-name.h
<<EOF
28338 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28341 # Configure the subdirectories
28342 # AC_CONFIG_SUBDIRS($subdirs)
28344 # Create the Makefile
28345 # and configure language subdirectories
28346 ac_config_files
="$ac_config_files $all_outputs"
28349 ac_config_commands
="$ac_config_commands default"
28351 cat >confcache
<<\_ACEOF
28352 # This file is a shell script that caches the results of configure
28353 # tests run on this system so they can be shared between configure
28354 # scripts and configure runs, see configure's option --config-cache.
28355 # It is not useful on other systems. If it contains results you don't
28356 # want to keep, you may remove or edit it.
28358 # config.status only pays attention to the cache file if you give it
28359 # the --recheck option to rerun configure.
28361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28363 # following values.
28367 # The following way of writing the cache mishandles newlines in values,
28368 # but we know of no workaround that is simple, portable, and efficient.
28369 # So, we kill variables containing newlines.
28370 # Ultrix sh set writes to stderr and can't be redirected directly,
28371 # and sets the high bit in the cache file unless we assign to the vars.
28373 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28374 eval ac_val
=\$
$ac_var
28378 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28382 _ | IFS | as_nl
) ;; #(
28383 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28384 *) { eval $ac_var=; unset $ac_var;} ;;
28390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28391 *${as_nl}ac_space
=\
*)
28392 # `set' does not quote correctly, so add quotes: double-quote
28393 # substitution turns \\\\ into \\, and sed turns \\ into \.
28396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28399 # `set' quotes correctly as required by POSIX, so do not add quotes.
28400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28413 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28414 if test -w "$cache_file"; then
28415 test "x$cache_file" != "x/dev/null" &&
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28417 $as_echo "$as_me: updating cache $cache_file" >&6;}
28418 cat confcache
>$cache_file
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28426 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28427 # Let make expand exec_prefix.
28428 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28430 DEFS
=-DHAVE_CONFIG_H
28434 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28435 # 1. Remove the extension, and $U if already installed.
28436 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28437 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28439 # will be set to the directory where LIBOBJS objects are built.
28440 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28441 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28443 LIBOBJS
=$ac_libobjs
28445 LTLIBOBJS
=$ac_ltlibobjs
28450 : ${CONFIG_STATUS=./config.status}
28452 ac_clean_files_save
=$ac_clean_files
28453 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28459 # Generated by $as_me.
28460 # Run this file to recreate the current configuration.
28461 # Compiler output produced by configure, useful for debugging
28462 # configure, is in config.log if it exists.
28465 ac_cs_recheck=false
28468 SHELL=\${CONFIG_SHELL-$SHELL}
28471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28472 ## -------------------- ##
28473 ## M4sh Initialization. ##
28474 ## -------------------- ##
28476 # Be more Bourne compatible
28477 DUALCASE
=1; export DUALCASE
# for MKS sh
28478 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28482 # is contrary to our usage. Disable this feature.
28483 alias -g '${1+"$@"}'='"$@"'
28484 setopt NO_GLOB_SUBST
28486 case `(set -o) 2>/dev/null` in #(
28498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28499 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28502 # Prefer a ksh shell builtin over an external printf program on Solaris,
28503 # but without wasting forks for bash or zsh.
28504 if test -z "$BASH_VERSION$ZSH_VERSION" \
28505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28506 as_echo='print
-r --'
28507 as_echo_n='print
-rn --'
28508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28509 as_echo='printf %s
\n'
28510 as_echo_n='printf %s
'
28512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28513 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28514 as_echo_n='/usr
/ucb
/echo -n'
28516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28517 as_echo_n_body='eval
28521 expr "X$arg" : "X\\(.*\\)$as_nl";
28522 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28524 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28526 export as_echo_n_body
28527 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28529 export as_echo_body
28530 as_echo='sh
-c $as_echo_body as_echo
'
28533 # The user is always right.
28534 if test "${PATH_SEPARATOR+set}" != set; then
28536 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28537 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28544 # We need space, tab and new line, in precisely that order. Quoting is
28545 # there to prevent editors from complaining about space-tab.
28546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28547 # splitting by setting IFS to empty value.)
28550 # Find who we are. Look in the path if we contain no directory separator.
28552 *[\\/]* ) as_myself=$0 ;;
28553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28554 for as_dir in $PATH
28557 test -z "$as_dir" && as_dir=.
28558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28564 # We did not find ourselves, most probably we were run as `sh COMMAND'
28565 # in which case we are not to be found in the path.
28566 if test "x$as_myself" = x
; then
28569 if test ! -f "$as_myself"; then
28570 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28574 # Unset variables that we do not need and which cause bugs (e.g. in
28575 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28576 # suppresses any "Segmentation fault" message there. '((' could
28577 # trigger a bug in pdksh 5.2.14.
28578 for as_var
in BASH_ENV ENV MAIL MAILPATH
28579 do eval test x\
${$as_var+set} = xset \
28580 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28593 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28596 # as_fn_error ERROR [LINENO LOG_FD]
28597 # ---------------------------------
28598 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28599 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28600 # script with status $?, using 1 if that was 0.
28603 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28605 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28606 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28608 $as_echo "$as_me: error: $1" >&2
28609 as_fn_exit
$as_status
28613 # as_fn_set_status STATUS
28614 # -----------------------
28615 # Set $? to STATUS, without forking.
28616 as_fn_set_status
()
28619 } # as_fn_set_status
28621 # as_fn_exit STATUS
28622 # -----------------
28623 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28627 as_fn_set_status
$1
28633 # Portably unset VAR.
28636 { eval $1=; unset $1;}
28638 as_unset
=as_fn_unset
28639 # as_fn_append VAR VALUE
28640 # ----------------------
28641 # Append the text in VALUE to the end of the definition contained in VAR. Take
28642 # advantage of any shell optimizations that allow amortized linear growth over
28643 # repeated appends, instead of the typical quadratic growth present in naive
28645 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28646 eval 'as_fn_append ()
28657 # as_fn_arith ARG...
28658 # ------------------
28659 # Perform arithmetic evaluation on the ARGs, and store the result in the
28660 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28661 # must be portable across $(()) and expr.
28662 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28663 eval 'as_fn_arith ()
28670 as_val
=`expr "$@" || test $? -eq 1`
28675 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28676 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28682 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28683 as_basename
=basename
28688 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28694 as_me
=`$as_basename -- "$0" ||
28695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28696 X"$0" : 'X\(//\)$' \| \
28697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28699 sed '/^.*\/\([^/][^/]*\)\/*$/{
28713 # Avoid depending upon Character Ranges.
28714 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28715 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28716 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28717 as_cr_digits
='0123456789'
28718 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28720 ECHO_C
= ECHO_N
= ECHO_T
=
28721 case `echo -n x` in #(((((
28723 case `echo 'xy\c'` in
28724 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28726 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28733 rm -f conf$$ conf$$.exe conf$$.
file
28734 if test -d conf$$.dir
; then
28735 rm -f conf$$.dir
/conf$$.
file
28738 mkdir conf$$.dir
2>/dev
/null
28740 if (echo >conf$$.
file) 2>/dev
/null
; then
28741 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28743 # ... but there are two gotchas:
28744 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28745 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28746 # In both cases, we have to default to `cp -p'.
28747 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28749 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28757 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28758 rmdir conf$$.dir
2>/dev
/null
28763 # Create "$as_dir" as a directory, including parents if necessary.
28768 -*) as_dir
=.
/$as_dir;;
28770 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28774 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28775 *) as_qdir
=$as_dir;;
28777 as_dirs
="'$as_qdir' $as_dirs"
28778 as_dir
=`$as_dirname -- "$as_dir" ||
28779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28780 X"$as_dir" : 'X\(//\)[^/]' \| \
28781 X"$as_dir" : 'X\(//\)$' \| \
28782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28783 $as_echo X"$as_dir" |
28784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28788 /^X\(\/\/\)[^/].*/{
28801 test -d "$as_dir" && break
28803 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28804 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28808 if mkdir
-p .
2>/dev
/null
; then
28809 as_mkdir_p
='mkdir -p "$as_dir"'
28811 test -d .
/-p && rmdir .
/-p
28815 if test -x / >/dev
/null
2>&1; then
28816 as_test_x
='test -x'
28818 if ls -dL / >/dev
/null
2>&1; then
28825 if test -d "$1"; then
28831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28832 ???[sx]*):;;*)false;;esac;fi
28836 as_executable_p
=$as_test_x
28838 # Sed expression to map a string onto a valid CPP name.
28839 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28841 # Sed expression to map a string onto a valid variable name.
28842 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28846 ## ----------------------------------- ##
28847 ## Main body of $CONFIG_STATUS script. ##
28848 ## ----------------------------------- ##
28850 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28853 # Save the log message, to keep $0 and so on meaningful, and to
28854 # report actual input values of CONFIG_FILES etc. instead of their
28855 # values after options handling.
28857 This file was extended by $as_me, which was
28858 generated by GNU Autoconf 2.64. Invocation command line was
28860 CONFIG_FILES = $CONFIG_FILES
28861 CONFIG_HEADERS = $CONFIG_HEADERS
28862 CONFIG_LINKS = $CONFIG_LINKS
28863 CONFIG_COMMANDS = $CONFIG_COMMANDS
28866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28871 case $ac_config_files in *"
28872 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28875 case $ac_config_headers in *"
28876 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28881 # Files that config.status was made for.
28882 config_files="$ac_config_files"
28883 config_headers="$ac_config_headers"
28884 config_links="$ac_config_links"
28885 config_commands="$ac_config_commands"
28889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28891 \`$as_me' instantiates files and other configuration actions
28892 from templates according to the current configuration. Unless the files
28893 and actions are specified as TAGs, all are instantiated by default.
28895 Usage: $0 [OPTION]... [TAG]...
28897 -h, --help print this help, then exit
28898 -V, --version print version number and configuration settings, then exit
28899 -q, --quiet, --silent
28900 do not print progress messages
28901 -d, --debug don't remove temporary files
28902 --recheck update $as_me by reconfiguring in the same conditions
28903 --file=FILE[:TEMPLATE]
28904 instantiate the configuration file FILE
28905 --header=FILE[:TEMPLATE]
28906 instantiate the configuration header FILE
28908 Configuration files:
28911 Configuration headers:
28914 Configuration links:
28917 Configuration commands:
28920 Report bugs to the package provider."
28923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28926 configured by $0, generated by GNU Autoconf 2.64,
28927 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28929 Copyright (C) 2009 Free Software Foundation, Inc.
28930 This config.status script is free software; the Free Software Foundation
28931 gives unlimited permission to copy, distribute and modify it."
28936 test -n "\$AWK" || AWK=awk
28939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28940 # The default lists apply if the user does not specify any file.
28946 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28947 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28958 # Handling of the options.
28959 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28961 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28962 $as_echo "$ac_cs_version"; exit ;;
28963 --debug |
--debu |
--deb |
--de |
--d |
-d )
28965 --file |
--fil |
--fi |
--f )
28968 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28970 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28971 ac_need_defaults
=false
;;
28972 --header |
--heade |
--head |
--hea )
28975 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28977 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28978 ac_need_defaults
=false
;;
28980 # Conflict between --help and --header
28981 as_fn_error
"ambiguous option: \`$1'
28982 Try \`$0 --help' for more information.";;
28983 --help |
--hel |
-h )
28984 $as_echo "$ac_cs_usage"; exit ;;
28985 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28986 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28989 # This is an error.
28990 -*) as_fn_error
"unrecognized option: \`$1'
28991 Try \`$0 --help' for more information." ;;
28993 *) as_fn_append ac_config_targets
" $1"
28994 ac_need_defaults
=false
;;
29000 ac_configure_extra_args
=
29002 if $ac_cs_silent; then
29004 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29009 if \$ac_cs_recheck; then
29010 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29012 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29013 CONFIG_SHELL='$SHELL'
29014 export CONFIG_SHELL
29019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29024 ## Running $as_me. ##
29030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29034 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29035 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29042 # Handling of arguments.
29043 for ac_config_target
in $ac_config_targets
29045 case $ac_config_target in
29046 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29047 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29048 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29049 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29050 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29051 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29052 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29053 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29054 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29056 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29061 # If the user did not use the arguments to specify the items to instantiate,
29062 # then the envvar interface is used. Set only those that are not.
29063 # We use the long form for the default assignment because of an extremely
29064 # bizarre bug on SunOS 4.1.3.
29065 if $ac_need_defaults; then
29066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29068 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29069 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29072 # Have a temporary directory for convenience. Make it in the build tree
29073 # simply because there is no reason against having it here, and in addition,
29074 # creating and moving files from /tmp can sometimes cause problems.
29075 # Hook for its removal unless debugging.
29076 # Note that there is a small window in which the directory will not be cleaned:
29077 # after its creation but before its name has been assigned to `$tmp'.
29081 trap 'exit_status=$?
29082 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29084 trap 'as_fn_exit 1' 1 2 13 15
29086 # Create a (secure) tmp directory for tmp files.
29089 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29090 test -n "$tmp" && test -d "$tmp"
29093 tmp
=.
/conf$$
-$RANDOM
29094 (umask 077 && mkdir
"$tmp")
29095 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29097 # Set up the scripts for CONFIG_FILES section.
29098 # No need to generate them if there are no CONFIG_FILES.
29099 # This happens for instance with `./config.status config.h'.
29100 if test -n "$CONFIG_FILES"; then
29102 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29103 ac_cs_awk_getline
=:
29104 ac_cs_awk_pipe_init
=
29105 ac_cs_awk_read_file
='
29106 while ((getline aline < (F[key])) > 0)
29109 ac_cs_awk_pipe_fini
=
29111 ac_cs_awk_getline
=false
29112 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29113 ac_cs_awk_read_file
='
29115 print "cat " F[key] " &&"
29116 '$ac_cs_awk_pipe_init
29117 # The final `:' finishes the AND list.
29118 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29120 ac_cr
=`echo X | tr X '\015'`
29121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29122 # But we know of no other shell where ac_cr would be empty at this
29123 # point, so we can use a bashism as a fallback.
29124 if test "x$ac_cr" = x
; then
29125 eval ac_cr
=\$
\'\\r
\'
29127 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29131 ac_cs_awk_cr
=$ac_cr
29134 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29137 # Create commands to substitute file output variables.
29139 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29140 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29141 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29144 } >conf$
$files.sh
&&
29145 . .
/conf$
$files.sh ||
29146 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29147 rm -f conf$
$files.sh
29150 echo "cat >conf$$subs.awk <<_ACEOF" &&
29151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29153 } >conf$$subs.sh ||
29154 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29157 for ac_last_try in false false false false false :; do
29158 . ./conf$$subs.sh ||
29159 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29161 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29162 if test $ac_delim_n = $ac_delim_num; then
29164 elif $ac_last_try; then
29165 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29167 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29170 rm -f conf$$subs.sh
29172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29173 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29177 s/^/S["/; s
/!.
*/"]=/
29187 s/\(.\{148\}\).*/\1/
29189 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29194 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29201 s/\(.\{148\}\).*/\1/
29203 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29207 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29212 ' <conf$$subs.awk | sed '
29217 ' >>$CONFIG_STATUS || ac_write_fail=1
29218 rm -f conf$$subs.awk
29219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29221 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29222 for (key in S) S_is_set[key] = 1
29224 \$ac_cs_awk_pipe_init
29228 nfields = split(line, field, "@
")
29230 len = length(field[1])
29231 for (i = 2; i < nfields; i++) {
29233 keylen = length(key)
29234 if (S_is_set[key]) {
29236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29237 len += length(value) + length(field[++i])
29242 if (nfields == 3 && !substed) {
29244 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29245 \$ac_cs_awk_read_file
29251 \$ac_cs_awk_pipe_fini
29254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29255 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29256 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29259 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29260 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29265 # trailing colons and then remove the whole line if VPATH becomes empty
29266 # (actually we leave an empty line to preserve line numbers).
29267 if test "x
$srcdir" = x.; then
29268 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29269 s/:*\$(srcdir):*/:/
29270 s/:*\${srcdir}:*/:/
29272 s/^\([^=]*=[ ]*\):*/\1/
29278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29279 fi # test -n "$CONFIG_FILES"
29281 # Set up the scripts for CONFIG_HEADERS section.
29282 # No need to generate them if there are no CONFIG_HEADERS.
29283 # This happens for instance with `./config.status Makefile'.
29284 if test -n "$CONFIG_HEADERS"; then
29285 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29289 # Transform confdefs.h into an awk script `defines.awk', embedded as
29290 # here-document in config.status, that substitutes the proper values into
29291 # config.h.in to produce config.h.
29293 # Create a delimiter string that does not exist in confdefs.h, to ease
29294 # handling of long lines.
29296 for ac_last_try in false false :; do
29297 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29298 if test -z "$ac_t"; then
29300 elif $ac_last_try; then
29301 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29303 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29307 # For the awk script, D is an array of macro values keyed by name,
29308 # likewise P contains macro parameters if any. Preserve backslash
29309 # newline sequences.
29311 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29313 s/.\{148\}/&'"$ac_delim"'/g
29316 s/^[ ]*#[ ]*define[ ][ ]*/ /
29323 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29325 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29329 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29330 D["\
1"]=" \
3\\\\\\n
"\\/p
29332 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29337 s/.\{148\}/&'"$ac_delim"'/g
29342 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29345 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29347 ' <confdefs.h | sed '
29348 s/'"$ac_delim"'/"\\\
29349 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29352 for (key in D) D_is_set[key] = 1
29355 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29357 split(line, arg, " ")
29358 if (arg[1] == "#") {
29362 defundef
= substr
(arg
[1], 2)
29365 split(mac1
, mac2
, "(") #)
29367 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29368 if (D_is_set
[macro
]) {
29369 # Preserve the white space surrounding the "#".
29370 print prefix
"define", macro P
[macro
] D
[macro
]
29373 # Replace #undef with comments. This is necessary, for example,
29374 # in the case of _POSIX_SOURCE, which is predefined and required
29375 # on some systems where configure will not decide to define it.
29376 if (defundef
== "undef") {
29377 print
"/*", prefix defundef
, macro
, "*/"
29385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29386 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29387 fi # test -n "$CONFIG_HEADERS"
29390 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29395 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29397 case $ac_mode$ac_tag in
29399 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29400 :[FH
]-) ac_tag
=-:-;;
29401 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29418 -) ac_f
="$tmp/stdin";;
29419 *) # Look for the file first in the build tree, then in the source tree
29420 # (if the path is not absolute). The absolute path cannot be DOS-style,
29421 # because $ac_f cannot contain `:'.
29425 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29427 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29429 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29430 as_fn_append ac_file_inputs
" '$ac_f'"
29433 # Let's still pretend it is `configure' which instantiates (i.e., don't
29434 # use $as_me), people would be surprised to read:
29435 # /* config.h. Generated by config.status. */
29436 configure_input
='Generated from '`
29437 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29439 if test x
"$ac_file" != x-
; then
29440 configure_input
="$ac_file. $configure_input"
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29442 $as_echo "$as_me: creating $ac_file" >&6;}
29444 # Neutralize special characters interpreted by sed in replacement strings.
29445 case $configure_input in #(
29446 *\
&* |
*\|
* |
*\\* )
29447 ac_sed_conf_input
=`$as_echo "$configure_input" |
29448 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29449 *) ac_sed_conf_input
=$configure_input;;
29453 *:-:* |
*:-) cat >"$tmp/stdin" \
29454 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29459 ac_dir
=`$as_dirname -- "$ac_file" ||
29460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29461 X"$ac_file" : 'X\(//\)[^/]' \| \
29462 X"$ac_file" : 'X\(//\)$' \| \
29463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29464 $as_echo X"$ac_file" |
29465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29469 /^X\(\/\/\)[^/].*/{
29482 as_dir
="$ac_dir"; as_fn_mkdir_p
29486 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29488 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29489 # A ".." for each directory in $ac_dir_suffix.
29490 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29491 case $ac_top_builddir_sub in
29492 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29493 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29496 ac_abs_top_builddir
=$ac_pwd
29497 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29498 # for backward compatibility:
29499 ac_top_builddir
=$ac_top_build_prefix
29502 .
) # We are building in place.
29504 ac_top_srcdir
=$ac_top_builddir_sub
29505 ac_abs_top_srcdir
=$ac_pwd ;;
29506 [\\/]* | ?
:[\\/]* ) # Absolute name.
29507 ac_srcdir
=$srcdir$ac_dir_suffix;
29508 ac_top_srcdir
=$srcdir
29509 ac_abs_top_srcdir
=$srcdir ;;
29510 *) # Relative name.
29511 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29512 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29513 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29515 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29527 # If the template does not know about datarootdir, expand it.
29528 # FIXME: This hack should be removed a few years after 2.60.
29529 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29541 *datarootdir
*) ac_datarootdir_seen
=yes;;
29542 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29547 ac_datarootdir_hack='
29548 s&@datadir@&$datadir&g
29549 s&@docdir@&$docdir&g
29550 s&@infodir@&$infodir&g
29551 s&@localedir@&$localedir&g
29552 s&@mandir@&$mandir&g
29553 s&\\\${datarootdir}&$datarootdir&g' ;;
29557 # Neutralize VPATH when `$srcdir' = `.'.
29558 # Shell code in configure.ac might set extrasub.
29559 # FIXME: do we really want to maintain this feature?
29560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29561 ac_sed_extra="$ac_vpsub
29564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29566 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29567 s|@configure_input@|
$ac_sed_conf_input|
;t t
29568 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29569 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29570 s
&@srcdir@
&$ac_srcdir&;t t
29571 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29572 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29573 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29574 s
&@builddir@
&$ac_builddir&;t t
29575 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29576 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29577 $ac_datarootdir_hack
29579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29580 if $ac_cs_awk_getline; then
29581 $AWK -f "$tmp/subs.
awk"
29583 $AWK -f "$tmp/subs.
awk" | $SHELL
29585 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29591 which seems to be undefined. Please make sure it is defined." >&5
29592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29593 which seems to be undefined. Please make sure it is defined." >&2;}
29597 -) cat "$tmp/out" && rm -f "$tmp/out";;
29598 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29600 || as_fn_error "could not create $ac_file" "$LINENO" 5
29606 if test x"$ac_file" != x-; then
29608 $as_echo "/* $configure_input */" \
29609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29610 } >"$tmp/config.h" \
29611 || as_fn_error "could not create $ac_file" "$LINENO" 5
29612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29617 mv "$tmp/config.h" "$ac_file" \
29618 || as_fn_error "could not create $ac_file" "$LINENO" 5
29621 $as_echo "/* $configure_input */" \
29622 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29623 || as_fn_error "could not create -" "$LINENO" 5
29631 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29634 # Prefer the file from the source tree if names are identical.
29635 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29636 ac_source=$srcdir/$ac_source
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29640 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29642 if test ! -r "$ac_source"; then
29643 as_fn_error "$ac_source: file not found" "$LINENO" 5
29647 # Try a relative symlink, then a hard link, then a copy.
29649 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29650 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29652 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29653 ln "$ac_source" "$ac_file" 2>/dev/null ||
29654 cp -p "$ac_source" "$ac_file" ||
29655 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29659 $as_echo "$as_me: executing $ac_file commands" >&6;}
29664 case $ac_file$ac_mode in
29665 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29667 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29668 for lang in $subdirs c-family common
29670 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29672 "as":F) chmod +x as ;;
29673 "collect-ld":F) chmod +x collect-ld ;;
29674 "nm":F) chmod +x nm ;;
29676 case ${CONFIG_HEADERS} in
29677 *auto-host.h:config.in*)
29680 # Make sure all the subdirs exist.
29681 for d in $subdirs doc build common c-family
29683 test -d $d || mkdir $d
29693 ac_clean_files=$ac_clean_files_save
29695 test $ac_write_fail = 0 ||
29696 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29699 # configure is writing to config.log, and then calls config.status.
29700 # config.status does its own redirection, appending to config.log.
29701 # Unfortunately, on DOS this fails, as config.log is still kept open
29702 # by configure, so config.status won't be able to
write to it
; its
29703 # output is simply discarded. So we exec the FD to /dev/null,
29704 # effectively closing config.log, so it can be properly (re)opened and
29705 # appended to by config.status. When coming back to configure, we
29706 # need to make the FD available again.
29707 if test "$no_create" != yes; then
29709 ac_config_status_args
=
29710 test "$silent" = yes &&
29711 ac_config_status_args
="$ac_config_status_args --quiet"
29713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29716 # would make configure fail if this is the last instruction.
29717 $ac_cs_success || as_fn_exit $?
29719 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29721 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}