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 strtol strtoul strtoll strtoull \
10627 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10628 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
10630 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10632 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10633 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10634 $as_echo_n "(cached) " >&6
10636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 #define $ac_tr_decl 1
10641 #include "ansidecl.h"
10642 #include "system.h"
10648 char *(*pfn) = (char *(*)) $ac_func ;
10654 if ac_fn_c_try_compile
"$LINENO"; then :
10655 eval "gcc_cv_have_decl_$ac_func=yes"
10657 eval "gcc_cv_have_decl_$ac_func=no"
10659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10665 #define $ac_tr_decl 1
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10671 #define $ac_tr_decl 0
10679 for ac_func
in getrlimit setrlimit getrusage
10681 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10683 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10684 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10685 $as_echo_n "(cached) " >&6
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 #define $ac_tr_decl 1
10692 #include "ansidecl.h"
10693 #include "system.h"
10694 #ifdef HAVE_SYS_RESOURCE_H
10695 #include <sys/resource.h>
10703 char *(*pfn) = (char *(*)) $ac_func ;
10709 if ac_fn_c_try_compile
"$LINENO"; then :
10710 eval "gcc_cv_have_decl_$ac_func=yes"
10712 eval "gcc_cv_have_decl_$ac_func=no"
10714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10717 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10719 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10720 #define $ac_tr_decl 1
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10726 #define $ac_tr_decl 0
10734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10737 #include "ansidecl.h"
10738 #include "system.h"
10739 #ifdef HAVE_SYS_RESOURCE_H
10740 #include <sys/resource.h>
10751 if ac_fn_c_try_compile
"$LINENO"; then :
10755 $as_echo "#define rlim_t long" >>confdefs.h
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10760 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10761 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10762 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10763 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10764 for ac_func
in ldgetname
10766 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10768 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10769 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10770 $as_echo_n "(cached) " >&6
10772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10775 #define $ac_tr_decl 1
10777 #include "ansidecl.h"
10778 #include "system.h"
10779 #ifdef HAVE_LDFCN_H
10790 char *(*pfn) = (char *(*)) $ac_func ;
10796 if ac_fn_c_try_compile
"$LINENO"; then :
10797 eval "gcc_cv_have_decl_$ac_func=yes"
10799 eval "gcc_cv_have_decl_$ac_func=no"
10801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10804 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10807 #define $ac_tr_decl 1
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10813 #define $ac_tr_decl 0
10821 for ac_func
in times
10823 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10825 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10826 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10827 $as_echo_n "(cached) " >&6
10829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 #define $ac_tr_decl 1
10834 #include "ansidecl.h"
10835 #include "system.h"
10836 #ifdef HAVE_SYS_TIMES_H
10837 #include <sys/times.h>
10845 char *(*pfn) = (char *(*)) $ac_func ;
10851 if ac_fn_c_try_compile
"$LINENO"; then :
10852 eval "gcc_cv_have_decl_$ac_func=yes"
10854 eval "gcc_cv_have_decl_$ac_func=no"
10856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10859 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10862 #define $ac_tr_decl 1
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10868 #define $ac_tr_decl 0
10876 for ac_func
in sigaltstack
10878 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10880 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10881 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10882 $as_echo_n "(cached) " >&6
10884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10887 #define $ac_tr_decl 1
10889 #include "ansidecl.h"
10890 #include "system.h"
10891 #include <signal.h>
10898 char *(*pfn) = (char *(*)) $ac_func ;
10904 if ac_fn_c_try_compile
"$LINENO"; then :
10905 eval "gcc_cv_have_decl_$ac_func=yes"
10907 eval "gcc_cv_have_decl_$ac_func=no"
10909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10912 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10914 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10915 #define $ac_tr_decl 1
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10921 #define $ac_tr_decl 0
10929 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10932 ac_cpp
='$CXXCPP $CPPFLAGS'
10933 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10937 for ac_func
in madvise
10939 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10941 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10942 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10943 $as_echo_n "(cached) " >&6
10945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 #define $ac_tr_decl 1
10950 #include "ansidecl.h"
10951 #include "system.h"
10958 char *(*pfn) = (char *(*)) $ac_func ;
10964 if ac_fn_cxx_try_compile
"$LINENO"; then :
10965 eval "gcc_cv_have_decl_$ac_func=yes"
10967 eval "gcc_cv_have_decl_$ac_func=no"
10969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10972 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10975 #define $ac_tr_decl 1
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10981 #define $ac_tr_decl 0
10989 ac_cpp
='$CPP $CPPFLAGS'
10990 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10991 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10992 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10995 # More time-related stuff.
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10997 $as_echo_n "checking for struct tms... " >&6; }
10998 if test "${ac_cv_struct_tms+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 #include "ansidecl.h"
11006 #include "system.h"
11007 #ifdef HAVE_SYS_TIMES_H
11008 #include <sys/times.h>
11019 if ac_fn_c_try_compile
"$LINENO"; then :
11020 ac_cv_struct_tms
=yes
11022 ac_cv_struct_tms
=no
11024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11027 $as_echo "$ac_cv_struct_tms" >&6; }
11028 if test $ac_cv_struct_tms = yes; then
11030 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11034 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11035 # revisit after autoconf 2.50.
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11037 $as_echo_n "checking for clock_t... " >&6; }
11038 if test "${gcc_cv_type_clock_t+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 #include "ansidecl.h"
11046 #include "system.h"
11056 if ac_fn_c_try_compile
"$LINENO"; then :
11057 gcc_cv_type_clock_t
=yes
11059 gcc_cv_type_clock_t
=no
11061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11064 $as_echo "$gcc_cv_type_clock_t" >&6; }
11065 if test $gcc_cv_type_clock_t = yes; then
11067 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11071 # Check if F_SETLKW is supported by fcntl.
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11073 $as_echo_n "checking for F_SETLKW... " >&6; }
11074 if test "${ac_cv_f_setlkw+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11091 return fcntl (1, F_SETLKW, &fl);
11096 if ac_fn_c_try_compile
"$LINENO"; then :
11101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11104 $as_echo "$ac_cv_f_setlkw" >&6; }
11105 if test $ac_cv_f_setlkw = yes; then
11107 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11111 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11112 CFLAGS
="$saved_CFLAGS"
11113 CXXFLAGS
="$saved_CXXFLAGS"
11115 # mkdir takes a single argument on some systems.
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11117 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11118 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 #include <sys/types.h>
11125 #ifdef HAVE_SYS_STAT_H
11126 # include <sys/stat.h>
11128 #ifdef HAVE_UNISTD_H
11129 # include <unistd.h>
11131 #ifdef HAVE_DIRECT_H
11132 # include <direct.h>
11142 if ac_fn_c_try_compile
"$LINENO"; then :
11143 gcc_cv_mkdir_takes_one_arg
=no
11145 gcc_cv_mkdir_takes_one_arg
=yes
11147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11150 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11151 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11153 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11164 # With Setjmp/Longjmp based exception handling.
11165 # Check whether --enable-sjlj-exceptions was given.
11166 if test "${enable_sjlj_exceptions+set}" = set; then :
11167 enableval
=$enable_sjlj_exceptions; case $target in
11169 if test $enableval != yes; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11171 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11176 force_sjlj_exceptions
=yes
11180 force_sjlj_exceptions
=yes
11184 force_sjlj_exceptions
=yes
11188 force_sjlj_exceptions
=no
11193 if test $force_sjlj_exceptions = yes; then
11194 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11196 cat >>confdefs.h
<<_ACEOF
11197 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11202 # --------------------------------------------------------
11203 # Build, host, and target specific configuration fragments
11204 # --------------------------------------------------------
11206 # Collect build-machine-specific information.
11207 .
${srcdir}/config.build
11209 # Collect host-machine-specific information.
11210 .
${srcdir}/config.
host
11214 # Collect target-machine-specific information.
11215 .
${srcdir}/config.gcc
11217 extra_objs
="${host_extra_objs} ${extra_objs}"
11218 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11220 # Default the target-machine variables that were not explicitly set.
11221 if test x
"$tm_file" = x
11222 then tm_file
=$cpu_type/$cpu_type.h
; fi
11224 if test x
"$extra_headers" = x
11225 then extra_headers
=; fi
11227 if test x
$md_file = x
11228 then md_file
=$cpu_type/$cpu_type.md
; fi
11230 if test x
$out_file = x
11231 then out_file
=$cpu_type/$cpu_type.c
; fi
11233 if test x
"$tmake_file" = x
11234 then tmake_file
=$cpu_type/t-
$cpu_type
11237 # Support --enable-initfini-array.
11238 if test x
$enable_initfini_array != xno
; then
11239 tm_file
="${tm_file} initfini-array.h"
11242 if test x
"$dwarf2" = xyes
11243 then tm_file
="$tm_file tm-dwarf2.h"
11246 # Say what files are being used for the output code and MD file.
11247 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11248 echo "Using \`$srcdir/config/$md_file' as machine description file."
11250 # If any of the xm_file variables contain nonexistent files, warn
11251 # about them and drop them.
11254 for x
in $build_xm_file; do
11255 if test -f $srcdir/config
/$x
11257 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11258 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11261 build_xm_file
="$bx"
11264 for x
in $host_xm_file; do
11265 if test -f $srcdir/config
/$x
11267 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11268 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11274 for x
in $xm_file; do
11275 if test -f $srcdir/config
/$x
11277 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11278 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11284 for f
in $tm_file; do
11287 if test $count = ax
; then
11288 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11290 echo "Using the following target machine macro files:"
11291 for f
in $tm_file; do
11292 echo " $srcdir/config/$f"
11296 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11298 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11302 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11304 cat >>confdefs.h
<<_ACEOF
11305 #define HAVE_GNU_LD $gnu_ld_bool
11309 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11311 cat >>confdefs.h
<<_ACEOF
11312 #define HAVE_GNU_AS $gnu_as_bool
11317 for f
in $host_xm_file; do
11320 if test $count = a
; then
11322 elif test $count = ax
; then
11323 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11325 echo "Using the following host machine macro files:"
11326 for f
in $host_xm_file; do
11327 echo " $srcdir/config/$f"
11330 echo "Using ${out_host_hook_obj} for host machine hooks."
11332 if test "$host_xm_file" != "$build_xm_file"; then
11334 for f
in $build_xm_file; do
11337 if test $count = a
; then
11339 elif test $count = ax
; then
11340 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11342 echo "Using the following build machine macro files:"
11343 for f
in $build_xm_file; do
11344 echo " $srcdir/config/$f"
11349 if test -n "$configured_native_system_header_dir"; then
11350 native_system_header_dir
=$configured_native_system_header_dir
11352 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11356 powerpc
*-*-darwin*)
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11358 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11359 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11365 #include <sys/cdefs.h>
11366 #include <sys/signal.h>
11367 #include <ucontext.h>
11368 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11371 if ac_fn_c_try_compile
"$LINENO"; then :
11372 gcc_cv_mcontext_underscores
=no
11374 gcc_cv_mcontext_underscores
=yes
11376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11379 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11380 if test $gcc_cv_mcontext_underscores = yes; then
11382 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11392 # Check if a valid thread package
11393 case ${enable_threads} in
11396 target_thread_file
='single'
11400 target_thread_file
='single'
11402 aix | dce | lynx | mipssde | posix | rtems | \
11403 single | tpf | vxworks | win32
)
11404 target_thread_file
=${enable_threads}
11407 echo "${enable_threads} is an unknown thread package" 1>&2
11412 if test x
${thread_file} = x
; then
11413 # No thread file set by target-specific clauses in config.gcc,
11414 # so use file chosen by default logic above
11415 thread_file
=${target_thread_file}
11423 if test x
$enable___cxa_atexit = xyes || \
11424 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11425 if test x
$host = x
$target; then
11427 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11428 # keyed to flag_use_cxa_atexit
11436 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11437 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11440 echo "__cxa_atexit can't be enabled on this target"
11446 # We can't check for __cxa_atexit when building a cross, so assume
11450 if test x
$use_cxa_atexit = xyes
; then
11452 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11457 # Look for a file containing extra machine modes.
11458 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11459 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11462 cat >>confdefs.h
<<_ACEOF
11463 #define EXTRA_MODES_FILE "config/$extra_modes"
11468 # Convert extra_options into a form suitable for Makefile use.
11471 for f
in $extra_options; do
11472 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11473 all_opt_files
="$all_opt_files $srcdir/config/$f"
11477 # auto-host.h is the file containing items generated by autoconf and is
11478 # the first file included by config.h.
11479 # If host=build, it is correct to have bconfig include auto-host.h
11480 # as well. If host!=build, we are in error and need to do more
11481 # work to find out the build config parameters.
11482 if test x
$host = x
$build
11484 build_auto
=auto-host.h
11486 # We create a subdir, then run autoconf in the subdir.
11487 # To prevent recursion we set host and build for the new
11488 # invocation of configure to the build for this invocation
11495 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11496 *) realsrcdir
=..
/${srcdir};;
11498 # Clearing GMPINC is necessary to prevent host headers being
11499 # used by the build compiler. Defining GENERATOR_FILE stops
11500 # system.h from including gmp.h.
11501 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11502 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11503 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11504 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11505 ${realsrcdir}/configure \
11506 --enable-languages=${enable_languages-all} \
11507 --target=$target_alias --host=$build_alias --build=$build_alias
11509 # We just finished tests for the build machine, so rename
11510 # the file auto-build.h in the gcc directory.
11511 mv auto-host.h ..
/auto-build.h
11514 build_auto
=auto-build.h
11518 tm_file
="${tm_file} defaults.h"
11519 tm_p_file
="${tm_p_file} tm-preds.h"
11520 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11521 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11522 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11523 # put this back in temporarily.
11524 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11530 # Compile in configure arguments.
11531 if test -f configargs.h
; then
11532 # Being re-configured.
11533 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11534 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11536 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11539 # Double all backslashes and backslash all quotes to turn
11540 # gcc_config_arguments into a C string.
11541 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11542 $gcc_config_arguments
11544 gcc_config_arguments_str
=`cat conftest.out`
11547 cat > configargs.h
<<EOF
11548 /* Generated automatically. */
11549 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11550 static const char thread_model[] = "$thread_file";
11552 static const struct {
11553 const char *name, *value;
11554 } configure_default_options[] = $configure_default_options;
11557 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11558 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11559 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11560 if test -f $srcdir/REVISION
; then
11561 gcc_REVISION
=`cat $srcdir/REVISION`
11565 cat > plugin-version.h
<<EOF
11566 #include "configargs.h"
11568 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11569 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11570 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11571 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11573 static char basever[] = "$gcc_BASEVER";
11574 static char datestamp[] = "$gcc_DATESTAMP";
11575 static char devphase[] = "$gcc_DEVPHASE";
11576 static char revision[] = "$gcc_REVISION";
11578 /* FIXME plugins: We should make the version information more precise.
11579 One way to do is to add a checksum. */
11581 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11582 devphase, revision,
11583 configuration_arguments};
11586 # Internationalization
11587 # If we haven't got the data from the intl directory,
11588 # assume NLS is disabled.
11597 if test -f ..
/intl
/config.intl
; then
11598 . ..
/intl
/config.intl
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11601 $as_echo_n "checking whether NLS is requested... " >&6; }
11602 if test x
"$USE_NLS" != xyes
; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11609 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11613 $as_echo_n "checking for catalogs to be installed... " >&6; }
11614 # Look for .po and .gmo files in the source directory.
11617 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11618 # If there aren't any .gmo files the shell will give us the
11619 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11621 case "$cat" in *\
**)
11624 # The quadruple backslash is collapsed to a double backslash
11625 # by the backticks, then collapsed again by the double quotes,
11626 # leaving us with one backslash in the sed expression (right
11627 # before the dot that mustn't act as a wildcard).
11628 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11629 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11630 # The user is allowed to set LINGUAS to a list of languages to
11631 # install catalogs for. If it's empty that means "all of them."
11632 if test "x$LINGUAS" = x
; then
11633 CATALOGS
="$CATALOGS $cat"
11634 XLINGUAS
="$XLINGUAS $lang"
11636 case "$LINGUAS" in *$lang*)
11637 CATALOGS
="$CATALOGS $cat"
11638 XLINGUAS
="$XLINGUAS $lang"
11643 LINGUAS
="$XLINGUAS"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11645 $as_echo "$LINGUAS" >&6; }
11658 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11659 # -liconv on the link line twice.
11660 case "$LIBINTL" in *$LIBICONV*)
11664 # Check whether --enable-secureplt was given.
11665 if test "${enable_secureplt+set}" = set; then :
11666 enableval
=$enable_secureplt;
11670 # Check whether --enable-leading-mingw64-underscores was given.
11671 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11672 enableval
=$enable_leading_mingw64_underscores;
11675 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11677 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11681 # Check whether --enable-cld was given.
11682 if test "${enable_cld+set}" = set; then :
11683 enableval
=$enable_cld;
11689 # Check whether --enable-frame-pointer was given.
11690 if test "${enable_frame_pointer+set}" = set; then :
11691 enableval
=$enable_frame_pointer;
11695 linux
* | darwin
[8912]*)
11696 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11698 enable_frame_pointer
=no
11701 enable_frame_pointer
=yes
11708 # Windows32 Registry support for specifying GCC installation paths.
11709 # Check whether --enable-win32-registry was given.
11710 if test "${enable_win32_registry+set}" = set; then :
11711 enableval
=$enable_win32_registry;
11716 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11717 if test "x$enable_win32_registry" != xno
; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11719 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11720 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11723 ac_func_search_save_LIBS
=$LIBS
11724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11733 char RegOpenKeyExA ();
11737 return RegOpenKeyExA ();
11742 for ac_lib
in '' advapi32
; do
11743 if test -z "$ac_lib"; then
11744 ac_res
="none required"
11747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11749 if ac_fn_c_try_link
"$LINENO"; then :
11750 ac_cv_search_RegOpenKeyExA
=$ac_res
11752 rm -f core conftest.err conftest.
$ac_objext \
11754 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11758 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11761 ac_cv_search_RegOpenKeyExA
=no
11763 rm conftest.
$ac_ext
11764 LIBS
=$ac_func_search_save_LIBS
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11767 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11768 ac_res
=$ac_cv_search_RegOpenKeyExA
11769 if test "$ac_res" != no
; then :
11770 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11773 enable_win32_registry
=no
11778 if test "x$enable_win32_registry" != xno
; then
11780 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11783 if test "x$enable_win32_registry" != xyes \
11784 && test "x$enable_win32_registry" != x
; then
11786 cat >>confdefs.h
<<_ACEOF
11787 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11795 # Get an absolute path to the GCC top-level source directory
11796 holddir
=`${PWDCMD-pwd}`
11798 topdir
=`${PWDCMD-pwd}`
11801 # Conditionalize the makefile for this host machine.
11803 for f
in ${host_xmake_file}
11805 if test -f ${srcdir}/config
/$f
11807 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11811 # Conditionalize the makefile for this target machine.
11813 for f
in ${tmake_file}
11815 if test -f ${srcdir}/config
/$f
11817 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11820 tmake_file
="${tmake_file_}"
11822 out_object_file
=`basename $out_file .c`.o
11823 common_out_object_file
=`basename $common_out_file .c`.o
11825 tm_file_list
="options.h"
11826 tm_include_list
="options.h insn-constants.h"
11827 for f
in $tm_file; do
11830 f
=`echo $f | sed 's/^..//'`
11831 tm_file_list
="${tm_file_list} $f"
11832 tm_include_list
="${tm_include_list} $f"
11835 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11836 tm_include_list
="${tm_include_list} $f"
11839 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11840 tm_include_list
="${tm_include_list} config/$f"
11847 for f
in $tm_p_file; do
11850 tm_p_file_list
="${tm_p_file_list} $f"
11851 tm_p_include_list
="${tm_p_include_list} $f"
11854 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11855 tm_p_include_list
="${tm_p_include_list} config/$f"
11861 for f
in $xm_file; do
11864 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11865 xm_include_list
="${xm_include_list} $f"
11868 xm_file_list
="${xm_file_list} $f"
11869 xm_include_list
="${xm_include_list} $f"
11872 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11873 xm_include_list
="${xm_include_list} config/$f"
11879 host_xm_include_list
=
11880 for f
in $host_xm_file; do
11883 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11884 host_xm_include_list
="${host_xm_include_list} $f"
11887 host_xm_file_list
="${host_xm_file_list} $f"
11888 host_xm_include_list
="${host_xm_include_list} $f"
11891 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11892 host_xm_include_list
="${host_xm_include_list} config/$f"
11897 build_xm_file_list
=
11898 for f
in $build_xm_file; do
11901 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11902 build_xm_include_list
="${build_xm_include_list} $f"
11904 auto-build.h | auto-host.h
)
11905 build_xm_file_list
="${build_xm_file_list} $f"
11906 build_xm_include_list
="${build_xm_include_list} $f"
11909 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11910 build_xm_include_list
="${build_xm_include_list} config/$f"
11915 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11916 # cross-compiler which does not use the native headers and libraries.
11917 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11920 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11922 if test "x$with_build_sysroot" != x
; then
11923 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11925 # This value is used, even on a native system, because
11926 # CROSS_SYSTEM_HEADER_DIR is just
11927 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11928 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11931 if test x
$host != x
$target
11933 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11935 SYSTEM_HEADER_DIR
=$build_system_header_dir
11936 case "$host","$target" in
11937 # Darwin crosses can use the host system's libraries and headers,
11938 # because of the fat library support. Of course, it must be the
11939 # same version of Darwin on both sides. Allow the user to
11940 # just say --target=foo-darwin without a version number to mean
11941 # "the version on this system".
11942 *-*-darwin*,*-*-darwin*)
11943 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11944 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11945 if test $hostos = $targetos -o $targetos = darwin
; then
11947 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11952 i?
86-*-*,x86_64-
*-* \
11953 | powerpc
*-*-*,powerpc64
*-*-*)
11954 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11959 if test "x$with_headers" = x
; then
11966 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11967 SYSTEM_HEADER_DIR
=$build_system_header_dir
11970 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
11971 if test "x$with_headers" != x
; then
11972 target_header_dir
=$with_headers
11973 elif test "x$with_sysroot" = x
; then
11974 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
11975 elif test "x$with_build_sysroot" != "x"; then
11976 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
11977 elif test "x$with_sysroot" = xyes
; then
11978 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11980 target_header_dir
="${with_sysroot}${native_system_header_dir}"
11983 target_header_dir
=${native_system_header_dir}
11986 # If this is a cross-compiler that does not
11987 # have its own set of headers then define
11990 # If this is using newlib, without having the headers available now,
11991 # then define inhibit_libc in LIBGCC2_CFLAGS.
11992 # This prevents libgcc2 from containing any code which requires libc
11994 : ${inhibit_libc=false}
11995 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11996 test x
$with_newlib = xyes
; } &&
11997 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12002 # When building gcc with a cross-compiler, we need to adjust things so
12003 # that the generator programs are still built with the native compiler.
12004 # Also, we cannot run fixincludes.
12006 # These are the normal (build=host) settings:
12007 CC_FOR_BUILD
='$(CC)'
12008 CXX_FOR_BUILD
='$(CXX)'
12009 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12010 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12011 BUILD_LDFLAGS
='$(LDFLAGS)'
12012 STMP_FIXINC
=stmp-fixinc
12014 # And these apply if build != host, or we are generating coverage data
12015 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12017 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12018 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12019 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12022 # Expand extra_headers to include complete path.
12023 # This substitutes for lots of t-* files.
12024 extra_headers_list
=
12025 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12026 for file in ${extra_headers} ; do
12027 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12030 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12031 if test x
"$use_gcc_tgmath" = xyes
12032 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12035 # Define collect2 in Makefile.
12036 case $host_can_use_collect2 in
12038 *) collect2
='collect2$(exeext)' ;;
12042 # Add a definition of USE_COLLECT2 if system wants one.
12043 case $use_collect2 in
12044 no
) use_collect2
= ;;
12047 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12048 xm_defines
="${xm_defines} USE_COLLECT2"
12049 case $host_can_use_collect2 in
12051 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12058 cat >>confdefs.h
<<_ACEOF
12059 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12063 # ---------------------------
12064 # Assembler & linker features
12065 # ---------------------------
12067 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12068 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12069 # However when ld-new is first executed from the build tree, libtool will
12070 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12071 # to the build tree. While doing this we need to use the previous-stage
12072 # linker, or we have an infinite loop. The presence of a shell script as
12073 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12074 # the gcc/collect-ld script. So we need to know how libtool works, or
12075 # exec-tool will fail.
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12081 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12086 macro_version
='2.2.7a'
12087 macro_revision
='1.3134'
12101 ltmain
="$ac_aux_dir/ltmain.sh"
12103 # Backslashify metacharacters that are still active within
12104 # double-quoted strings.
12105 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12107 # Same as above, but do not quote variable references.
12108 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12110 # Sed substitution to delay expansion of an escaped shell variable in a
12111 # double_quote_subst'ed string.
12112 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12114 # Sed substitution to delay expansion of an escaped single quote.
12115 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12117 # Sed substitution to avoid accidental globbing in evaled expressions
12118 no_glob_subst
='s/\*/\\\*/g'
12120 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12125 $as_echo_n "checking how to print strings... " >&6; }
12126 # Test print first, because it will be a builtin if present.
12127 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12128 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12130 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12133 # Use this function as a fallback that always works.
12134 func_fallback_echo ()
12136 eval 'cat <<_LTECHO_EOF
12140 ECHO='func_fallback_echo
'
12143 # func_echo_all arg...
12144 # Invoke $ECHO with all args, space-separated.
12151 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12152 $as_echo "printf" >&6; } ;;
12153 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12154 $as_echo "print -r" >&6; } ;;
12155 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12156 $as_echo "cat" >&6; } ;;
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12173 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12174 if test "${ac_cv_path_SED+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
12177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12178 for ac_i in 1 2 3 4 5 6 7; do
12179 ac_script="$ac_script$as_nl$ac_script"
12181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12182 { ac_script=; unset ac_script;}
12183 if test -z "$SED"; then
12184 ac_path_SED_found=false
12185 # Loop through the user's path and
test for each of PROGNAME-LIST
12186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12187 for as_dir
in $PATH
12190 test -z "$as_dir" && as_dir
=.
12191 for ac_prog
in sed gsed
; do
12192 for ac_exec_ext
in '' $ac_executable_extensions; do
12193 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12194 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12195 # Check for GNU ac_path_SED and select it if it is found.
12196 # Check for GNU $ac_path_SED
12197 case `"$ac_path_SED" --version 2>&1` in
12199 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12202 $as_echo_n 0123456789 >"conftest.in"
12205 cat "conftest.in" "conftest.in" >"conftest.tmp"
12206 mv "conftest.tmp" "conftest.in"
12207 cp "conftest.in" "conftest.nl"
12208 $as_echo '' >> "conftest.nl"
12209 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12210 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12211 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12212 if test $ac_count -gt ${ac_path_SED_max-0}; then
12213 # Best one so far, save it but keep looking for a better one
12214 ac_cv_path_SED
="$ac_path_SED"
12215 ac_path_SED_max
=$ac_count
12217 # 10*(2^10) chars as input seems more than enough
12218 test $ac_count -gt 10 && break
12220 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12223 $ac_path_SED_found && break 3
12228 if test -z "$ac_cv_path_SED"; then
12229 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12232 ac_cv_path_SED
=$SED
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12237 $as_echo "$ac_cv_path_SED" >&6; }
12238 SED
="$ac_cv_path_SED"
12241 test -z "$SED" && SED
=sed
12242 Xsed
="$SED -e 1s/^X//"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12255 $as_echo_n "checking for fgrep... " >&6; }
12256 if test "${ac_cv_path_FGREP+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12259 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12260 then ac_cv_path_FGREP
="$GREP -F"
12262 if test -z "$FGREP"; then
12263 ac_path_FGREP_found
=false
12264 # Loop through the user's path and test for each of PROGNAME-LIST
12265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12266 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12269 test -z "$as_dir" && as_dir
=.
12270 for ac_prog
in fgrep
; do
12271 for ac_exec_ext
in '' $ac_executable_extensions; do
12272 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12273 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12274 # Check for GNU ac_path_FGREP and select it if it is found.
12275 # Check for GNU $ac_path_FGREP
12276 case `"$ac_path_FGREP" --version 2>&1` in
12278 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12281 $as_echo_n 0123456789 >"conftest.in"
12284 cat "conftest.in" "conftest.in" >"conftest.tmp"
12285 mv "conftest.tmp" "conftest.in"
12286 cp "conftest.in" "conftest.nl"
12287 $as_echo 'FGREP' >> "conftest.nl"
12288 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12289 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12290 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12291 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12292 # Best one so far, save it but keep looking for a better one
12293 ac_cv_path_FGREP
="$ac_path_FGREP"
12294 ac_path_FGREP_max
=$ac_count
12296 # 10*(2^10) chars as input seems more than enough
12297 test $ac_count -gt 10 && break
12299 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12302 $ac_path_FGREP_found && break 3
12307 if test -z "$ac_cv_path_FGREP"; then
12308 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12311 ac_cv_path_FGREP
=$FGREP
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12317 $as_echo "$ac_cv_path_FGREP" >&6; }
12318 FGREP
="$ac_cv_path_FGREP"
12321 test -z "$GREP" && GREP
=grep
12341 # Check whether --with-gnu-ld was given.
12342 if test "${with_gnu_ld+set}" = set; then :
12343 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12349 if test "$GCC" = yes; then
12350 # Check if gcc -print-prog-name=ld gives a path.
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12352 $as_echo_n "checking for ld used by $CC... " >&6; }
12355 # gcc leaves a trailing carriage return which upsets mingw
12356 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12358 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12361 # Accept absolute paths.
12363 re_direlt
='/[^/][^/]*/\.\./'
12364 # Canonicalize the pathname of ld
12365 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12366 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12367 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12369 test -z "$LD" && LD
="$ac_prog"
12372 # If it fails, then pretend we aren't using GCC.
12376 # If it is relative, then search for the first ld in PATH.
12377 with_gnu_ld
=unknown
12380 elif test "$with_gnu_ld" = yes; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12382 $as_echo_n "checking for GNU ld... " >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12385 $as_echo_n "checking for non-GNU ld... " >&6; }
12387 if test "${lt_cv_path_LD+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12390 if test -z "$LD"; then
12391 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12392 for ac_dir
in $PATH; do
12394 test -z "$ac_dir" && ac_dir
=.
12395 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12396 lt_cv_path_LD
="$ac_dir/$ac_prog"
12397 # Check to see if the program is GNU ld. I'd rather use --version,
12398 # but apparently some variants of GNU ld only accept -v.
12399 # Break only if it was the GNU/non-GNU ld that we prefer.
12400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12401 *GNU
* |
*'with BFD'*)
12402 test "$with_gnu_ld" != no
&& break
12405 test "$with_gnu_ld" != yes && break
12412 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12416 LD
="$lt_cv_path_LD"
12417 if test -n "$LD"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12419 $as_echo "$LD" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12424 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12426 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12427 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12431 case `$LD -v 2>&1 </dev/null` in
12432 *GNU
* |
*'with BFD'*)
12433 lt_cv_prog_gnu_ld
=yes
12436 lt_cv_prog_gnu_ld
=no
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12441 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12442 with_gnu_ld
=$lt_cv_prog_gnu_ld
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12453 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12454 if test "${lt_cv_path_NM+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12457 if test -n "$NM"; then
12458 # Let the user override the test.
12459 lt_cv_path_NM
="$NM"
12461 lt_nm_to_check
="${ac_tool_prefix}nm"
12462 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12463 lt_nm_to_check
="$lt_nm_to_check nm"
12465 for lt_tmp_nm
in $lt_nm_to_check; do
12466 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12467 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12469 test -z "$ac_dir" && ac_dir
=.
12470 tmp_nm
="$ac_dir/$lt_tmp_nm"
12471 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12472 # Check to see if the nm accepts a BSD-compat flag.
12473 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12474 # nm: unknown option "B" ignored
12475 # Tru64's nm complains that /dev/null is an invalid object file
12476 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12477 */dev
/null
* |
*'Invalid file or object type'*)
12478 lt_cv_path_NM
="$tmp_nm -B"
12482 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12484 lt_cv_path_NM
="$tmp_nm -p"
12488 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12489 continue # so that we can try to find one that supports BSD flags
12498 : ${lt_cv_path_NM=no}
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12502 $as_echo "$lt_cv_path_NM" >&6; }
12503 if test "$lt_cv_path_NM" != "no"; then
12504 NM
="$lt_cv_path_NM"
12506 # Didn't find any BSD compatible name lister, look for dumpbin.
12507 if test -n "$DUMPBIN"; then :
12508 # Let the user override the test.
12510 if test -n "$ac_tool_prefix"; then
12511 for ac_prog
in dumpbin
"link -dump"
12513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12514 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12520 if test -n "$DUMPBIN"; then
12521 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12524 for as_dir
in $PATH
12527 test -z "$as_dir" && as_dir
=.
12528 for ac_exec_ext
in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12530 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 DUMPBIN
=$ac_cv_prog_DUMPBIN
12541 if test -n "$DUMPBIN"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12543 $as_echo "$DUMPBIN" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12550 test -n "$DUMPBIN" && break
12553 if test -z "$DUMPBIN"; then
12554 ac_ct_DUMPBIN
=$DUMPBIN
12555 for ac_prog
in dumpbin
"link -dump"
12557 # Extract the first word of "$ac_prog", so it can be a program name with args.
12558 set dummy
$ac_prog; ac_word
=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12564 if test -n "$ac_ct_DUMPBIN"; then
12565 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12568 for as_dir
in $PATH
12571 test -z "$as_dir" && as_dir
=.
12572 for ac_exec_ext
in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12585 if test -n "$ac_ct_DUMPBIN"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12587 $as_echo "$ac_ct_DUMPBIN" >&6; }
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12594 test -n "$ac_ct_DUMPBIN" && break
12597 if test "x$ac_ct_DUMPBIN" = x
; then
12600 case $cross_compiling:$ac_tool_warned in
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12604 ac_tool_warned
=yes ;;
12606 DUMPBIN
=$ac_ct_DUMPBIN
12610 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12612 DUMPBIN
="$DUMPBIN -symbols"
12620 if test "$DUMPBIN" != ":"; then
12624 test -z "$NM" && NM
=nm
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12632 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12633 if test "${lt_cv_nm_interface+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12636 lt_cv_nm_interface
="BSD nm"
12637 echo "int some_variable = 0;" > conftest.
$ac_ext
12638 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12639 (eval "$ac_compile" 2>conftest.err
)
12640 cat conftest.err
>&5
12641 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12642 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12643 cat conftest.err
>&5
12644 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12645 cat conftest.out
>&5
12646 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12647 lt_cv_nm_interface
="MS dumpbin"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12652 $as_echo "$lt_cv_nm_interface" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12655 $as_echo_n "checking whether ln -s works... " >&6; }
12657 if test "$LN_S" = "ln -s"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659 $as_echo "yes" >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12662 $as_echo "no, using $LN_S" >&6; }
12665 # find the maximum length of command line arguments
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12667 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12668 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12676 # On DJGPP, this test can blow up pretty badly due to problems in libc
12677 # (any single argument exceeding 2000 bytes causes a buffer overrun
12678 # during glob expansion). Even if it were fixed, the result of this
12679 # check would be larger than it should be.
12680 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12684 # Under GNU Hurd, this test is not required because there is
12685 # no limit to the length of command line arguments.
12686 # Libtool will interpret -1 as no limit whatsoever
12687 lt_cv_sys_max_cmd_len
=-1;
12690 cygwin
* | mingw
* | cegcc
*)
12691 # On Win9x/ME, this test blows up -- it succeeds, but takes
12692 # about 5 minutes as the teststring grows exponentially.
12693 # Worse, since 9x/ME are not pre-emptively multitasking,
12694 # you end up with a "frozen" computer, even though with patience
12695 # the test eventually succeeds (with a max line length of 256k).
12696 # Instead, let's just punt: use the minimum linelength reported by
12697 # all of the supported platforms: 8192 (on NT/2K/XP).
12698 lt_cv_sys_max_cmd_len
=8192;
12702 # On MiNT this can take a long time and run out of memory.
12703 lt_cv_sys_max_cmd_len
=8192;
12707 # On AmigaOS with pdksh, this test takes hours, literally.
12708 # So we just punt and use a minimum line length of 8192.
12709 lt_cv_sys_max_cmd_len
=8192;
12712 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12713 # This has been around since 386BSD, at least. Likely further.
12714 if test -x /sbin
/sysctl
; then
12715 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12716 elif test -x /usr
/sbin
/sysctl
; then
12717 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12719 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12721 # And add a safety zone
12722 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12723 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12727 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12728 lt_cv_sys_max_cmd_len
=196608
12732 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12733 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12734 # nice to cause kernel panics so lets avoid the loop below.
12735 # First set a reasonable default.
12736 lt_cv_sys_max_cmd_len
=16384
12738 if test -x /sbin
/sysconfig
; then
12739 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12740 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12745 lt_cv_sys_max_cmd_len
=102400
12747 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12748 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12749 if test -n "$kargmax"; then
12750 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12752 lt_cv_sys_max_cmd_len
=32768
12756 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12757 if test -n "$lt_cv_sys_max_cmd_len"; then
12758 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12759 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12761 # Make teststring a little bigger before we do anything with it.
12762 # a 1K string should be a reasonable start.
12763 for i
in 1 2 3 4 5 6 7 8 ; do
12764 teststring
=$teststring$teststring
12766 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12767 # If test is not a shell built-in, we'll probably end up computing a
12768 # maximum length that is only half of the actual maximum length, but
12770 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12771 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12772 test $i != 17 # 1/2 MB should be enough
12775 teststring
=$teststring$teststring
12777 # Only check the string length outside the loop.
12778 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12780 # Add a significant safety factor because C++ compilers can tack on
12781 # massive amounts of additional arguments before passing them to the
12782 # linker. It appears as though 1/2 is a usable value.
12783 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12790 if test -n $lt_cv_sys_max_cmd_len ; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12792 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12795 $as_echo "none" >&6; }
12797 max_cmd_len
=$lt_cv_sys_max_cmd_len
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12809 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12810 # Try some XSI features
12812 ( _lt_dummy
="a/b/c"
12813 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12815 && eval 'test $(( 1 + 1 )) -eq 2 \
12816 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12819 $as_echo "$xsi_shell" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12823 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12825 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12827 && lt_shell_append=yes
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12829 $as_echo "$lt_shell_append" >&6; }
12832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12842 # test EBCDIC or ASCII
12843 case `echo X|tr X '\101'` in
12844 A) # ASCII based system
12845 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12846 lt_SP2NL='tr \040 \012'
12847 lt_NL2SP='tr \015\012 \040\040'
12849 *) # EBCDIC based system
12850 lt_SP2NL='tr \100 \n'
12851 lt_NL2SP='tr \r\n \100\100'
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12864 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12865 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12866 $as_echo_n "(cached
) " >&6
12868 lt_cv_ld_reload_flag='-r'
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12871 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12872 reload_flag=$lt_cv_ld_reload_flag
12873 case $reload_flag in
12875 *) reload_flag=" $reload_flag" ;;
12877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12880 if test "$GCC" = yes; then
12881 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12883 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12896 if test -n "$ac_tool_prefix"; then
12897 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12898 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12900 $as_echo_n "checking
for $ac_word...
" >&6; }
12901 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12902 $as_echo_n "(cached
) " >&6
12904 if test -n "$OBJDUMP"; then
12905 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12914 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12924 OBJDUMP=$ac_cv_prog_OBJDUMP
12925 if test -n "$OBJDUMP"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12927 $as_echo "$OBJDUMP" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12930 $as_echo "no
" >&6; }
12935 if test -z "$ac_cv_prog_OBJDUMP"; then
12936 ac_ct_OBJDUMP=$OBJDUMP
12937 # Extract the first word of "objdump
", so it can be a program name with args.
12938 set dummy objdump; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12940 $as_echo_n "checking
for $ac_word...
" >&6; }
12941 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12942 $as_echo_n "(cached
) " >&6
12944 if test -n "$ac_ct_OBJDUMP"; then
12945 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12954 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12964 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12965 if test -n "$ac_ct_OBJDUMP"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12967 $as_echo "$ac_ct_OBJDUMP" >&6; }
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12970 $as_echo "no
" >&6; }
12973 if test "x
$ac_ct_OBJDUMP" = x; then
12976 case $cross_compiling:$ac_tool_warned in
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12979 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12980 ac_tool_warned=yes ;;
12982 OBJDUMP=$ac_ct_OBJDUMP
12985 OBJDUMP="$ac_cv_prog_OBJDUMP"
12988 test -z "$OBJDUMP" && OBJDUMP=objdump
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12999 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13000 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13001 $as_echo_n "(cached
) " >&6
13003 lt_cv_file_magic_cmd='$MAGIC_CMD'
13004 lt_cv_file_magic_test_file=
13005 lt_cv_deplibs_check_method='unknown'
13006 # Need to set the preceding variable on all platforms that support
13007 # interlibrary dependencies.
13008 # 'none' -- dependencies not supported.
13009 # `unknown' -- same as none, but documents that we really don't know.
13010 # 'pass_all' -- all dependencies passed with no checks.
13011 # 'test_compile' -- check by making test program.
13012 # 'file_magic [[regex]]' -- check by looking for files in library path
13013 # which responds to the $file_magic_cmd with a given extended regex.
13014 # If you have `file' or equivalent on your system and you're not sure
13015 # whether `pass_all' will *always* work, you probably want this one.
13019 lt_cv_deplibs_check_method=pass_all
13023 lt_cv_deplibs_check_method=pass_all
13027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13028 lt_cv_file_magic_cmd='/usr/bin/file -L'
13029 lt_cv_file_magic_test_file=/shlib/libc.so
13033 # func_win32_libid is a shell function defined in ltmain.sh
13034 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13035 lt_cv_file_magic_cmd='func_win32_libid'
13039 # Base MSYS/MinGW do not provide the 'file' command needed by
13040 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13041 # unless we find 'file', for example because we are cross-compiling.
13042 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13043 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13045 lt_cv_file_magic_cmd='func_win32_libid'
13047 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13048 lt_cv_file_magic_cmd='$OBJDUMP -f'
13053 # use the weaker test based on 'objdump'. See mingw*.
13054 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13055 lt_cv_file_magic_cmd='$OBJDUMP -f'
13058 darwin* | rhapsody*)
13059 lt_cv_deplibs_check_method=pass_all
13062 freebsd* | dragonfly*)
13063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13066 # Not sure whether the presence of OpenBSD here was a mistake.
13067 # Let's accept both of them until this is cleared up.
13068 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13069 lt_cv_file_magic_cmd=/usr/bin/file
13070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13074 lt_cv_deplibs_check_method=pass_all
13079 lt_cv_deplibs_check_method=pass_all
13083 lt_cv_deplibs_check_method=pass_all
13086 hpux10.20* | hpux11*)
13087 lt_cv_file_magic_cmd=/usr/bin/file
13090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13091 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13094 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]'
13095 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13099 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13105 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13109 irix5* | irix6* | nonstopux*)
13111 *-32|*"-32 ") libmagic=32-bit;;
13112 *-n32|*"-n32 ") libmagic=N32;;
13113 *-64|*"-64 ") libmagic=64-bit;;
13114 *) libmagic=never-match;;
13116 lt_cv_deplibs_check_method=pass_all
13119 # This must be Linux ELF.
13120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13121 lt_cv_deplibs_check_method=pass_all
13125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13134 lt_cv_file_magic_cmd=/usr/bin/file
13135 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13139 lt_cv_deplibs_check_method=pass_all
13143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13150 osf3* | osf4* | osf5*)
13151 lt_cv_deplibs_check_method=pass_all
13155 lt_cv_deplibs_check_method=pass_all
13159 lt_cv_deplibs_check_method=pass_all
13162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13163 lt_cv_deplibs_check_method=pass_all
13167 case $host_vendor in
13169 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]'
13170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13173 lt_cv_deplibs_check_method=pass_all
13176 lt_cv_file_magic_cmd='/bin/file'
13177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13180 lt_cv_file_magic_cmd='/bin/file'
13181 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13182 lt_cv_file_magic_test_file=/lib/libc.so
13185 lt_cv_deplibs_check_method=pass_all
13188 lt_cv_deplibs_check_method=pass_all
13194 lt_cv_deplibs_check_method=pass_all
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13200 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13201 file_magic_cmd=$lt_cv_file_magic_cmd
13202 deplibs_check_method=$lt_cv_deplibs_check_method
13203 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13216 if test -n "$ac_tool_prefix"; then
13217 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13218 set dummy ${ac_tool_prefix}ar; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13220 $as_echo_n "checking
for $ac_word...
" >&6; }
13221 if test "${ac_cv_prog_AR+set}" = set; then :
13222 $as_echo_n "(cached
) " >&6
13224 if test -n "$AR"; then
13225 ac_cv_prog_AR="$AR" # Let the user override the test.
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13234 ac_cv_prog_AR="${ac_tool_prefix}ar"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13245 if test -n "$AR"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13247 $as_echo "$AR" >&6; }
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13250 $as_echo "no
" >&6; }
13255 if test -z "$ac_cv_prog_AR"; then
13257 # Extract the first word of "ar", so it can be a program name with args.
13258 set dummy ar; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13260 $as_echo_n "checking
for $ac_word...
" >&6; }
13261 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13262 $as_echo_n "(cached
) " >&6
13264 if test -n "$ac_ct_AR"; then
13265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_ac_ct_AR="ar"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13285 if test -n "$ac_ct_AR"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13287 $as_echo "$ac_ct_AR" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13290 $as_echo "no
" >&6; }
13293 if test "x
$ac_ct_AR" = x; then
13296 case $cross_compiling:$ac_tool_warned in
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13299 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13300 ac_tool_warned=yes ;;
13305 AR="$ac_cv_prog_AR"
13308 test -z "$AR" && AR=ar
13309 test -z "$AR_FLAGS" && AR_FLAGS=cru
13321 if test -n "$ac_tool_prefix"; then
13322 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13323 set dummy ${ac_tool_prefix}strip; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13325 $as_echo_n "checking
for $ac_word...
" >&6; }
13326 if test "${ac_cv_prog_STRIP+set}" = set; then :
13327 $as_echo_n "(cached
) " >&6
13329 if test -n "$STRIP"; then
13330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13339 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13349 STRIP=$ac_cv_prog_STRIP
13350 if test -n "$STRIP"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13352 $as_echo "$STRIP" >&6; }
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13355 $as_echo "no
" >&6; }
13360 if test -z "$ac_cv_prog_STRIP"; then
13362 # Extract the first word of "strip
", so it can be a program name with args.
13363 set dummy strip; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13365 $as_echo_n "checking
for $ac_word...
" >&6; }
13366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13367 $as_echo_n "(cached
) " >&6
13369 if test -n "$ac_ct_STRIP"; then
13370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379 ac_cv_prog_ac_ct_STRIP="strip
"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13390 if test -n "$ac_ct_STRIP"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13392 $as_echo "$ac_ct_STRIP" >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13395 $as_echo "no
" >&6; }
13398 if test "x
$ac_ct_STRIP" = x; then
13401 case $cross_compiling:$ac_tool_warned in
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13404 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13405 ac_tool_warned=yes ;;
13410 STRIP="$ac_cv_prog_STRIP"
13413 test -z "$STRIP" && STRIP=:
13420 if test -n "$ac_tool_prefix"; then
13421 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13424 $as_echo_n "checking
for $ac_word...
" >&6; }
13425 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13426 $as_echo_n "(cached
) " >&6
13428 if test -n "$RANLIB"; then
13429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13448 RANLIB=$ac_cv_prog_RANLIB
13449 if test -n "$RANLIB"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13451 $as_echo "$RANLIB" >&6; }
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13454 $as_echo "no
" >&6; }
13459 if test -z "$ac_cv_prog_RANLIB"; then
13460 ac_ct_RANLIB=$RANLIB
13461 # Extract the first word of "ranlib
", so it can be a program name with args.
13462 set dummy ranlib; ac_word=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13464 $as_echo_n "checking
for $ac_word...
" >&6; }
13465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13466 $as_echo_n "(cached
) " >&6
13468 if test -n "$ac_ct_RANLIB"; then
13469 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13489 if test -n "$ac_ct_RANLIB"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13491 $as_echo "$ac_ct_RANLIB" >&6; }
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13494 $as_echo "no
" >&6; }
13497 if test "x
$ac_ct_RANLIB" = x; then
13500 case $cross_compiling:$ac_tool_warned in
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13503 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13504 ac_tool_warned=yes ;;
13506 RANLIB=$ac_ct_RANLIB
13509 RANLIB="$ac_cv_prog_RANLIB"
13512 test -z "$RANLIB" && RANLIB=:
13519 # Determine commands to create old-style static archives.
13520 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13521 old_postinstall_cmds='chmod 644 $oldlib'
13522 old_postuninstall_cmds=
13524 if test -n "$RANLIB"; then
13527 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13530 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13533 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13538 lock_old_archive_extraction=yes ;;
13540 lock_old_archive_extraction=no ;;
13581 # If no C compiler was specified, use CC.
13584 # If no C compiler flags were specified, use CFLAGS.
13585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13587 # Allow CC to be a program name with arguments.
13591 # Check for command to grab the raw symbol name followed by C symbol from nm.
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13593 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13595 $as_echo_n "(cached
) " >&6
13598 # These are sane defaults that work on at least a few old systems.
13599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13601 # Character class describing NM global symbol codes.
13602 symcode='[BCDEGRST]'
13604 # Regexp to match symbols that can be accessed directly from C.
13605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13607 # Define system-specific variables.
13612 cygwin* | mingw* | pw32* | cegcc*)
13613 symcode='[ABCDGISTW]'
13616 if test "$host_cpu" = ia64; then
13617 symcode='[ABCDEGRST]'
13620 irix* | nonstopux*)
13621 symcode='[BCDEGRST]'
13624 symcode='[BCDEGQRST]'
13635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13643 # If we're using GNU nm, then use its standard symbol codes.
13644 case `$NM -V 2>&1` in
13645 *GNU* | *'with BFD'*)
13646 symcode='[ABCDGIRSTW]' ;;
13649 # Transform an extracted symbol line into a proper C declaration.
13650 # Some systems (esp. on ia64) link data and code symbols differently,
13651 # so use this general approach.
13652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13654 # Transform an extracted symbol line into symbol name and symbol address
13655 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13656 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'"
13658 # Handle CRLF in mingw tool chain
13662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13666 # Try without a prefix underscore, then with it.
13667 for ac_symprfx in "" "_
"; do
13669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13670 symxfrm="\\1 $ac_symprfx\\2 \\2"
13672 # Write the raw and C identifiers.
13673 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13674 # Fake it for dumpbin and say T for any non-static function
13675 # and D for any global variable.
13676 # Also find C++ and __fastcall symbols from MSVC++,
13677 # which start with @ or ?.
13678 lt_cv_sys_global_symbol_pipe="$AWK '"\
13679 " {last_section=section; section=\$ 3};"\
13680 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13681 " \$ 0!~/External *\|/{next};"\
13682 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13683 " {if(hide[section]) next};"\
13684 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13685 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13686 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13687 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13688 " ' prfx
=^
$ac_symprfx"
13690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13693 # Check to see that the pipe works correctly.
13697 cat > conftest.$ac_ext <<_LT_EOF
13702 void nm_test_func(void);
13703 void nm_test_func(void){}
13707 int main(){nm_test_var='a';nm_test_func();return(0);}
13710 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13711 (eval $ac_compile) 2>&5
13713 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13714 test $ac_status = 0; }; then
13715 # Now try to grab the symbols.
13717 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13718 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13720 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13721 test $ac_status = 0; } && test -s "$nlist"; then
13722 # Try sorting and uniquifying the output.
13723 if sort "$nlist" | uniq > "$nlist"T; then
13724 mv -f "$nlist"T "$nlist"
13729 # Make sure that we snagged all the symbols we need.
13730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13732 cat <<_LT_EOF > conftest.$ac_ext
13738 # Now generate the symbol file.
13739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13741 cat <<_LT_EOF >> conftest.$ac_ext
13743 /* The mapping between symbol names and symbols. */
13748 lt__PROGRAM__LTX_preloaded_symbols[] =
13750 { "@PROGRAM@
", (void *) 0 },
13752 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13753 cat <<\_LT_EOF >> conftest.$ac_ext
13757 /* This works around a problem in FreeBSD linker */
13758 #ifdef FREEBSD_WORKAROUND
13759 static const void *lt_preloaded_setup() {
13760 return lt__PROGRAM__LTX_preloaded_symbols;
13768 # Now try linking the two files.
13769 mv conftest.$ac_objext conftstm.$ac_objext
13770 lt_save_LIBS="$LIBS"
13771 lt_save_CFLAGS="$CFLAGS"
13772 LIBS="conftstm.
$ac_objext"
13773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13774 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13775 (eval $ac_link) 2>&5
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13778 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13781 LIBS="$lt_save_LIBS"
13782 CFLAGS="$lt_save_CFLAGS"
13784 echo "cannot
find nm_test_func
in $nlist" >&5
13787 echo "cannot
find nm_test_var
in $nlist" >&5
13790 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13793 echo "$progname: failed program was
:" >&5
13794 cat conftest.$ac_ext >&5
13796 rm -rf conftest* conftst*
13798 # Do not use the global_symbol_pipe unless it works.
13799 if test "$pipe_works" = yes; then
13802 lt_cv_sys_global_symbol_pipe=
13808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13809 lt_cv_sys_global_symbol_to_cdecl=
13811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13813 $as_echo "failed
" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13816 $as_echo "ok
" >&6; }
13840 # Check whether --enable-libtool-lock was given.
13841 if test "${enable_libtool_lock+set}" = set; then :
13842 enableval=$enable_libtool_lock;
13845 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13847 # Some flags need to be propagated to the compiler or linker for good
13851 # Find out which ABI we are using.
13852 echo 'int i;' > conftest.$ac_ext
13853 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13854 (eval $ac_compile) 2>&5
13856 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13857 test $ac_status = 0; }; then
13858 case `/usr/bin/file conftest.$ac_objext` in
13860 HPUX_IA64_MODE="32"
13863 HPUX_IA64_MODE="64"
13870 # Find out which ABI we are using.
13871 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13872 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13873 (eval $ac_compile) 2>&5
13875 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13876 test $ac_status = 0; }; then
13877 if test "$lt_cv_prog_gnu_ld" = yes; then
13878 case `/usr/bin/file conftest.$ac_objext` in
13880 LD="${LD-ld} -melf32bsmip"
13883 LD="${LD-ld} -melf32bmipn32"
13886 LD="${LD-ld} -melf64bmip"
13890 case `/usr/bin/file conftest.$ac_objext` in
13906 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13907 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13908 # Find out which ABI we are using.
13909 echo 'int i;' > conftest.$ac_ext
13910 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911 (eval $ac_compile) 2>&5
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13914 test $ac_status = 0; }; then
13915 case `/usr/bin/file conftest.o` in
13918 x86_64-*kfreebsd*-gnu)
13919 LD="${LD-ld} -m elf_i386_fbsd
"
13922 case `/usr/bin/file conftest.o` in
13924 LD="${LD-ld} -m elf32_x86_64
"
13927 LD="${LD-ld} -m elf_i386
"
13931 powerpc64le-*linux*)
13932 LD="${LD-ld} -m elf32lppclinux
"
13935 LD="${LD-ld} -m elf32ppclinux
"
13938 LD="${LD-ld} -m elf_s390
"
13941 LD="${LD-ld} -m elf32_sparc
"
13947 x86_64-*kfreebsd*-gnu)
13948 LD="${LD-ld} -m elf_x86_64_fbsd
"
13951 LD="${LD-ld} -m elf_x86_64
"
13954 LD="${LD-ld} -m elf64lppc
"
13957 LD="${LD-ld} -m elf64ppc
"
13959 s390*-*linux*|s390*-*tpf*)
13960 LD="${LD-ld} -m elf64_s390
"
13963 LD="${LD-ld} -m elf64_sparc
"
13973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13974 SAVE_CFLAGS="$CFLAGS"
13975 CFLAGS="$CFLAGS -belf"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13977 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13978 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13979 $as_echo_n "(cached
) " >&6
13982 ac_cpp='$CPP $CPPFLAGS'
13983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13998 if ac_fn_c_try_link "$LINENO"; then :
13999 lt_cv_cc_needs_belf=yes
14001 lt_cv_cc_needs_belf=no
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14013 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14014 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14015 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14016 CFLAGS="$SAVE_CFLAGS"
14020 # Find out which ABI we are using.
14021 echo 'int i;' > conftest.$ac_ext
14022 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14023 (eval $ac_compile) 2>&5
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14026 test $ac_status = 0; }; then
14027 case `/usr/bin/file conftest.o` in
14029 case $lt_cv_prog_gnu_ld in
14030 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14032 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14044 need_locks="$enable_libtool_lock"
14048 rhapsody* | darwin*)
14049 if test -n "$ac_tool_prefix"; then
14050 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14051 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14053 $as_echo_n "checking
for $ac_word...
" >&6; }
14054 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14055 $as_echo_n "(cached
) " >&6
14057 if test -n "$DSYMUTIL"; then
14058 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14067 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14077 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14078 if test -n "$DSYMUTIL"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14080 $as_echo "$DSYMUTIL" >&6; }
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14083 $as_echo "no
" >&6; }
14088 if test -z "$ac_cv_prog_DSYMUTIL"; then
14089 ac_ct_DSYMUTIL=$DSYMUTIL
14090 # Extract the first word of "dsymutil
", so it can be a program name with args.
14091 set dummy dsymutil; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14093 $as_echo_n "checking
for $ac_word...
" >&6; }
14094 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14095 $as_echo_n "(cached
) " >&6
14097 if test -n "$ac_ct_DSYMUTIL"; then
14098 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14117 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14118 if test -n "$ac_ct_DSYMUTIL"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14120 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14123 $as_echo "no
" >&6; }
14126 if test "x
$ac_ct_DSYMUTIL" = x; then
14129 case $cross_compiling:$ac_tool_warned in
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14132 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14133 ac_tool_warned=yes ;;
14135 DSYMUTIL=$ac_ct_DSYMUTIL
14138 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14141 if test -n "$ac_tool_prefix"; then
14142 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14143 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14145 $as_echo_n "checking
for $ac_word...
" >&6; }
14146 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14147 $as_echo_n "(cached
) " >&6
14149 if test -n "$NMEDIT"; then
14150 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14159 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14169 NMEDIT=$ac_cv_prog_NMEDIT
14170 if test -n "$NMEDIT"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14172 $as_echo "$NMEDIT" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14175 $as_echo "no
" >&6; }
14180 if test -z "$ac_cv_prog_NMEDIT"; then
14181 ac_ct_NMEDIT=$NMEDIT
14182 # Extract the first word of "nmedit
", so it can be a program name with args.
14183 set dummy nmedit; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14185 $as_echo_n "checking
for $ac_word...
" >&6; }
14186 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14187 $as_echo_n "(cached
) " >&6
14189 if test -n "$ac_ct_NMEDIT"; then
14190 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
14198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14199 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14209 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14210 if test -n "$ac_ct_NMEDIT"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14212 $as_echo "$ac_ct_NMEDIT" >&6; }
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14215 $as_echo "no
" >&6; }
14218 if test "x
$ac_ct_NMEDIT" = x; then
14221 case $cross_compiling:$ac_tool_warned in
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14224 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14225 ac_tool_warned=yes ;;
14227 NMEDIT=$ac_ct_NMEDIT
14230 NMEDIT="$ac_cv_prog_NMEDIT"
14233 if test -n "$ac_tool_prefix"; then
14234 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14235 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14237 $as_echo_n "checking
for $ac_word...
" >&6; }
14238 if test "${ac_cv_prog_LIPO+set}" = set; then :
14239 $as_echo_n "(cached
) " >&6
14241 if test -n "$LIPO"; then
14242 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
14250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14251 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14261 LIPO=$ac_cv_prog_LIPO
14262 if test -n "$LIPO"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14264 $as_echo "$LIPO" >&6; }
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14267 $as_echo "no
" >&6; }
14272 if test -z "$ac_cv_prog_LIPO"; then
14274 # Extract the first word of "lipo
", so it can be a program name with args.
14275 set dummy lipo; ac_word=$2
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14277 $as_echo_n "checking
for $ac_word...
" >&6; }
14278 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14279 $as_echo_n "(cached
) " >&6
14281 if test -n "$ac_ct_LIPO"; then
14282 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 for as_dir in $PATH
14288 test -z "$as_dir" && as_dir=.
14289 for ac_exec_ext in '' $ac_executable_extensions; do
14290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14291 ac_cv_prog_ac_ct_LIPO="lipo
"
14292 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14301 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14302 if test -n "$ac_ct_LIPO"; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14304 $as_echo "$ac_ct_LIPO" >&6; }
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14307 $as_echo "no
" >&6; }
14310 if test "x
$ac_ct_LIPO" = x; then
14313 case $cross_compiling:$ac_tool_warned in
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14316 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14317 ac_tool_warned=yes ;;
14322 LIPO="$ac_cv_prog_LIPO"
14325 if test -n "$ac_tool_prefix"; then
14326 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14327 set dummy ${ac_tool_prefix}otool; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14329 $as_echo_n "checking
for $ac_word...
" >&6; }
14330 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14331 $as_echo_n "(cached
) " >&6
14333 if test -n "$OTOOL"; then
14334 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14343 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14353 OTOOL=$ac_cv_prog_OTOOL
14354 if test -n "$OTOOL"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14356 $as_echo "$OTOOL" >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14359 $as_echo "no
" >&6; }
14364 if test -z "$ac_cv_prog_OTOOL"; then
14366 # Extract the first word of "otool
", so it can be a program name with args.
14367 set dummy otool; ac_word=$2
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14369 $as_echo_n "checking
for $ac_word...
" >&6; }
14370 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14371 $as_echo_n "(cached
) " >&6
14373 if test -n "$ac_ct_OTOOL"; then
14374 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14377 for as_dir in $PATH
14380 test -z "$as_dir" && as_dir=.
14381 for ac_exec_ext in '' $ac_executable_extensions; do
14382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14383 ac_cv_prog_ac_ct_OTOOL="otool
"
14384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14393 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14394 if test -n "$ac_ct_OTOOL"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14396 $as_echo "$ac_ct_OTOOL" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14399 $as_echo "no
" >&6; }
14402 if test "x
$ac_ct_OTOOL" = x; then
14405 case $cross_compiling:$ac_tool_warned in
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14408 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14409 ac_tool_warned=yes ;;
14414 OTOOL="$ac_cv_prog_OTOOL"
14417 if test -n "$ac_tool_prefix"; then
14418 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14419 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14421 $as_echo_n "checking
for $ac_word...
" >&6; }
14422 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14423 $as_echo_n "(cached
) " >&6
14425 if test -n "$OTOOL64"; then
14426 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14432 test -z "$as_dir" && as_dir=.
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14435 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14445 OTOOL64=$ac_cv_prog_OTOOL64
14446 if test -n "$OTOOL64"; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14448 $as_echo "$OTOOL64" >&6; }
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14451 $as_echo "no
" >&6; }
14456 if test -z "$ac_cv_prog_OTOOL64"; then
14457 ac_ct_OTOOL64=$OTOOL64
14458 # Extract the first word of "otool64
", so it can be a program name with args.
14459 set dummy otool64; ac_word=$2
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14461 $as_echo_n "checking
for $ac_word...
" >&6; }
14462 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14463 $as_echo_n "(cached
) " >&6
14465 if test -n "$ac_ct_OTOOL64"; then
14466 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14469 for as_dir in $PATH
14472 test -z "$as_dir" && as_dir=.
14473 for ac_exec_ext in '' $ac_executable_extensions; do
14474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14475 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14485 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14486 if test -n "$ac_ct_OTOOL64"; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14488 $as_echo "$ac_ct_OTOOL64" >&6; }
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14491 $as_echo "no
" >&6; }
14494 if test "x
$ac_ct_OTOOL64" = x; then
14497 case $cross_compiling:$ac_tool_warned in
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14500 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14501 ac_tool_warned=yes ;;
14503 OTOOL64=$ac_ct_OTOOL64
14506 OTOOL64="$ac_cv_prog_OTOOL64"
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14536 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14537 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14538 $as_echo_n "(cached
) " >&6
14540 lt_cv_apple_cc_single_mod=no
14541 if test -z "${LT_MULTI_MODULE}"; then
14542 # By default we will add the -single_module flag. You can override
14543 # by either setting the environment variable LT_MULTI_MODULE
14544 # non-empty at configure time, or by adding -multi_module to the
14546 rm -rf libconftest.dylib*
14547 echo "int foo
(void
){return 1;}" > conftest.c
14548 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14549 -dynamiclib -Wl,-single_module conftest.c
" >&5
14550 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14551 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14553 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14554 lt_cv_apple_cc_single_mod=yes
14556 cat conftest.err >&5
14558 rm -rf libconftest.dylib*
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14563 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14565 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14566 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14567 $as_echo_n "(cached
) " >&6
14569 lt_cv_ld_exported_symbols_list=no
14570 save_LDFLAGS=$LDFLAGS
14571 echo "_main
" > conftest.sym
14572 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14584 if ac_fn_c_try_link "$LINENO"; then :
14585 lt_cv_ld_exported_symbols_list=yes
14587 lt_cv_ld_exported_symbols_list=no
14589 rm -f core conftest.err conftest.$ac_objext \
14590 conftest$ac_exeext conftest.$ac_ext
14591 LDFLAGS="$save_LDFLAGS"
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14595 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14597 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14598 if test "${lt_cv_ld_force_load+set}" = set; then :
14599 $as_echo_n "(cached
) " >&6
14601 lt_cv_ld_force_load=no
14602 cat > conftest.c << _LT_EOF
14603 int forced_loaded() { return 2;}
14605 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14606 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14607 echo "$AR cru libconftest.a conftest.o
" >&5
14608 $AR cru libconftest.a conftest.o 2>&5
14609 cat > conftest.c << _LT_EOF
14610 int main() { return 0;}
14612 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14613 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14615 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14616 lt_cv_ld_force_load=yes
14618 cat conftest.err >&5
14620 rm -f conftest.err libconftest.a conftest conftest.c
14621 rm -rf conftest.dSYM
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14625 $as_echo "$lt_cv_ld_force_load" >&6; }
14627 rhapsody* | darwin1.[012])
14628 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14630 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14631 darwin*) # darwin 5.x on
14632 # if running on 10.5 or later, the deployment target defaults
14633 # to the OS version, if on x86, and 10.4, the deployment
14634 # target defaults to 10.4. Don't you love it?
14635 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14636 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14637 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14641 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14645 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14646 _lt_dar_single_mod='$single_module'
14648 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14649 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14651 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14653 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14654 _lt_dsymutil='~$DSYMUTIL $lib || :'
14661 for ac_header in dlfcn.h
14663 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14664 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_DLFCN_H 1
14683 enable_win32_dll=no
14686 # Check whether --enable-shared was given.
14687 if test "${enable_shared+set}" = set; then :
14688 enableval=$enable_shared; p=${PACKAGE-default}
14690 yes) enable_shared=yes ;;
14691 no) enable_shared=no ;;
14694 # Look at the argument we got. We use all the common list separators.
14695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14696 for pkg in $enableval; do
14698 if test "X
$pkg" = "X
$p"; then
14717 # Check whether --enable-static was given.
14718 if test "${enable_static+set}" = set; then :
14719 enableval=$enable_static; p=${PACKAGE-default}
14721 yes) enable_static=yes ;;
14722 no) enable_static=no ;;
14725 # Look at the argument we got. We use all the common list separators.
14726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14727 for pkg in $enableval; do
14729 if test "X
$pkg" = "X
$p"; then
14749 # Check whether --with-pic was given.
14750 if test "${with_pic+set}" = set; then :
14751 withval=$with_pic; pic_mode="$withval"
14757 test -z "$pic_mode" && pic_mode=default
14765 # Check whether --enable-fast-install was given.
14766 if test "${enable_fast_install+set}" = set; then :
14767 enableval=$enable_fast_install; p=${PACKAGE-default}
14769 yes) enable_fast_install=yes ;;
14770 no) enable_fast_install=no ;;
14772 enable_fast_install=no
14773 # Look at the argument we got. We use all the common list separators.
14774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14775 for pkg in $enableval; do
14777 if test "X
$pkg" = "X
$p"; then
14778 enable_fast_install=yes
14785 enable_fast_install=yes
14798 # This can be used to rebuild libtool when needed
14799 LIBTOOL_DEPS="$ltmain"
14801 # Always use our own libtool.
14802 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14829 test -z "$LN_S" && LN_S="ln -s"
14844 if test -n "${ZSH_VERSION+set}" ; then
14845 setopt NO_GLOB_SUBST
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14849 $as_echo_n "checking
for objdir...
" >&6; }
14850 if test "${lt_cv_objdir+set}" = set; then :
14851 $as_echo_n "(cached
) " >&6
14853 rm -f .libs 2>/dev/null
14854 mkdir .libs 2>/dev/null
14855 if test -d .libs; then
14858 # MS-DOS does not allow filenames that begin with a dot.
14861 rmdir .libs 2>/dev/null
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14864 $as_echo "$lt_cv_objdir" >&6; }
14865 objdir=$lt_cv_objdir
14871 cat >>confdefs.h <<_ACEOF
14872 #define LT_OBJDIR "$lt_cv_objdir/"
14880 # AIX sometimes has problems with the GCC collect2 program. For some
14881 # reason, if we set the COLLECT_NAMES environment variable, the problems
14882 # vanish in a puff of smoke.
14883 if test "X
${COLLECT_NAMES+set}" != Xset; then
14885 export COLLECT_NAMES
14890 # Global variables:
14892 can_build_shared=yes
14894 # All known linkers require a `.a' archive for static linking (except MSVC,
14895 # which needs '.lib').
14898 with_gnu_ld="$lt_cv_prog_gnu_ld"
14901 old_CFLAGS="$CFLAGS"
14903 # Set sane defaults for various variables
14904 test -z "$CC" && CC=cc
14905 test -z "$LTCC" && LTCC=$CC
14906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14907 test -z "$LD" && LD=ld
14908 test -z "$ac_objext" && ac_objext=o
14910 for cc_temp in $compiler""; do
14912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14918 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14921 # Only perform the check for file, if the check method requires it
14922 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14923 case $deplibs_check_method in
14925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14927 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14929 $as_echo_n "(cached
) " >&6
14933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14936 lt_save_MAGIC_CMD="$MAGIC_CMD"
14937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14938 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14939 for ac_dir in $ac_dummy; do
14941 test -z "$ac_dir" && ac_dir=.
14942 if test -f $ac_dir/${ac_tool_prefix}file; then
14943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14944 if test -n "$file_magic_test_file"; then
14945 case $deplibs_check_method in
14947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14950 $EGREP "$file_magic_regex" > /dev/null; then
14955 *** Warning: the command libtool uses to detect shared libraries,
14956 *** $file_magic_cmd, produces output that libtool cannot recognize.
14957 *** The result is that libtool may fail to recognize shared libraries
14958 *** as such. This will affect the creation of libtool libraries that
14959 *** depend on shared libraries, but programs linked with such libtool
14960 *** libraries will work regardless of this problem. Nevertheless, you
14961 *** may want to report the problem to your system manager and/or to
14962 *** bug-libtool@gnu.org
14972 MAGIC_CMD="$lt_save_MAGIC_CMD"
14977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14978 if test -n "$MAGIC_CMD"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14980 $as_echo "$MAGIC_CMD" >&6; }
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14983 $as_echo "no
" >&6; }
14990 if test -z "$lt_cv_path_MAGIC_CMD"; then
14991 if test -n "$ac_tool_prefix"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14993 $as_echo_n "checking
for file...
" >&6; }
14994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14995 $as_echo_n "(cached
) " >&6
14999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15002 lt_save_MAGIC_CMD="$MAGIC_CMD"
15003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15004 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15005 for ac_dir in $ac_dummy; do
15007 test -z "$ac_dir" && ac_dir=.
15008 if test -f $ac_dir/file; then
15009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15010 if test -n "$file_magic_test_file"; then
15011 case $deplibs_check_method in
15013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15016 $EGREP "$file_magic_regex" > /dev/null; then
15021 *** Warning: the command libtool uses to detect shared libraries,
15022 *** $file_magic_cmd, produces output that libtool cannot recognize.
15023 *** The result is that libtool may fail to recognize shared libraries
15024 *** as such. This will affect the creation of libtool libraries that
15025 *** depend on shared libraries, but programs linked with such libtool
15026 *** libraries will work regardless of this problem. Nevertheless, you
15027 *** may want to report the problem to your system manager and/or to
15028 *** bug-libtool@gnu.org
15038 MAGIC_CMD="$lt_save_MAGIC_CMD"
15043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15044 if test -n "$MAGIC_CMD"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15046 $as_echo "$MAGIC_CMD" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15049 $as_echo "no
" >&6; }
15062 # Use C for the default configuration in the libtool script
15066 ac_cpp='$CPP $CPPFLAGS'
15067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15072 # Source file extension for C test sources.
15075 # Object file extension for compiled C test sources.
15079 # Code to be used in simple compile tests
15080 lt_simple_compile_test_code="int some_variable
= 0;"
15082 # Code to be used in simple link tests
15083 lt_simple_link_test_code='int main(){return(0);}'
15091 # If no C compiler was specified, use CC.
15094 # If no C compiler flags were specified, use CFLAGS.
15095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15097 # Allow CC to be a program name with arguments.
15100 # Save the default compiler, since it gets overwritten when the other
15101 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15102 compiler_DEFAULT=$CC
15104 # save warnings/boilerplate of simple test code
15105 ac_outfile=conftest.$ac_objext
15106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15108 _lt_compiler_boilerplate=`cat conftest.err`
15111 ac_outfile=conftest.$ac_objext
15112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15114 _lt_linker_boilerplate=`cat conftest.err`
15119 ## There is no encapsulation within the following macros, do not change
15120 ## the running order or otherwise move them around unless you know exactly
15121 ## what you are doing...
15122 if test -n "$compiler"; then
15124 lt_prog_compiler_no_builtin_flag=
15126 if test "$GCC" = yes; then
15127 case $cc_basename in
15129 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15131 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15135 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15137 $as_echo_n "(cached
) " >&6
15139 lt_cv_prog_compiler_rtti_exceptions=no
15140 ac_outfile=conftest.$ac_objext
15141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15142 lt_compiler_flag="-fno-rtti -fno-exceptions"
15143 # Insert the option either (1) after the last *FLAGS variable, or
15144 # (2) before a word containing "conftest.
", or (3) at the end.
15145 # Note that $ac_compile itself does not contain backslashes and begins
15146 # with a dollar sign (not a hyphen), so the echo should work correctly.
15147 # The option is referenced via a variable to avoid confusing sed.
15148 lt_compile=`echo "$ac_compile" | $SED \
15149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15151 -e 's:$: $lt_compiler_flag:'`
15152 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15153 (eval "$lt_compile" 2>conftest.err)
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15157 if (exit $ac_status) && test -s "$ac_outfile"; then
15158 # The compiler can only warn and ignore the option if not recognized
15159 # So say no if there are warnings other than the usual output.
15160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15163 lt_cv_prog_compiler_rtti_exceptions=yes
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15170 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15185 lt_prog_compiler_wl=
15186 lt_prog_compiler_pic=
15187 lt_prog_compiler_static=
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15190 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15192 if test "$GCC" = yes; then
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_static='-static'
15198 # All AIX code is PIC.
15199 if test "$host_cpu" = ia64; then
15200 # AIX 5 now supports IA64 processor
15201 lt_prog_compiler_static='-Bstatic'
15203 lt_prog_compiler_pic='-fPIC'
15209 # see comment about AmigaOS4 .so support
15210 lt_prog_compiler_pic='-fPIC'
15213 # FIXME: we need at least 68020 code to build shared libraries, but
15214 # adding the `-m68020' flag to GCC prevents building anything better,
15216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15222 # PIC is the default for these OSes.
15225 mingw* | cygwin* | pw32* | os2* | cegcc*)
15226 # This hack is so that the source file can tell whether it is being
15227 # built for inclusion in a dll (and should export symbols for example).
15228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15229 # (--disable-auto-import) libraries
15230 lt_prog_compiler_pic='-DDLL_EXPORT'
15233 darwin* | rhapsody*)
15234 # PIC is the default on this platform
15235 # Common symbols not allowed in MH_DYLIB files
15236 lt_prog_compiler_pic='-fno-common'
15240 # PIC is the default for Haiku.
15241 # The "-static" flag exists, but is broken.
15242 lt_prog_compiler_static=
15246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15248 # sets the default TLS model and affects inlining.
15254 lt_prog_compiler_pic='-fPIC'
15260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15261 # Instead, we relocate shared libraries at runtime.
15265 # Just because we use GCC doesn't mean we suddenly get shared libraries
15266 # on systems that don't support them.
15267 lt_prog_compiler_can_build_shared=no
15272 # QNX uses GNU C++, but need to define -shared option too, otherwise
15273 # it will coredump.
15274 lt_prog_compiler_pic='-fPIC -shared'
15278 if test -d /usr/nec; then
15279 lt_prog_compiler_pic=-Kconform_pic
15284 lt_prog_compiler_pic='-fPIC'
15288 case $cc_basename in
15289 nvcc*) # Cuda Compiler Driver 2.2
15290 lt_prog_compiler_wl='-Xlinker '
15291 lt_prog_compiler_pic='-Xcompiler -fPIC'
15295 # PORTME Check for flag to pass linker flags through the system compiler.
15298 lt_prog_compiler_wl='-Wl,'
15299 if test "$host_cpu" = ia64; then
15300 # AIX 5 now supports IA64 processor
15301 lt_prog_compiler_static='-Bstatic'
15303 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15307 mingw* | cygwin* | pw32* | os2* | cegcc*)
15308 # This hack is so that the source file can tell whether it is being
15309 # built for inclusion in a dll (and should export symbols for example).
15310 lt_prog_compiler_pic='-DDLL_EXPORT'
15313 hpux9* | hpux10* | hpux11*)
15314 lt_prog_compiler_wl='-Wl,'
15315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15316 # not for PA HP-UX.
15322 lt_prog_compiler_pic='+Z'
15325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15326 lt_prog_compiler_static='${wl}-a ${wl}archive'
15329 irix5* | irix6* | nonstopux*)
15330 lt_prog_compiler_wl='-Wl,'
15331 # PIC (with -KPIC) is the default.
15332 lt_prog_compiler_static='-non_shared'
15335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15336 case $cc_basename in
15337 # old Intel for x86_64 which still supported -KPIC.
15339 lt_prog_compiler_wl='-Wl,'
15340 lt_prog_compiler_pic='-KPIC'
15341 lt_prog_compiler_static='-static'
15343 # icc used to be incompatible with GCC.
15344 # ICC 10 doesn't accept -KPIC any more.
15346 lt_prog_compiler_wl='-Wl,'
15347 lt_prog_compiler_pic='-fPIC'
15348 lt_prog_compiler_static='-static'
15350 # Lahey Fortran 8.1.
15352 lt_prog_compiler_wl='-Wl,'
15353 lt_prog_compiler_pic='--shared'
15354 lt_prog_compiler_static='--static'
15356 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15357 # Portland Group compilers (*not* the Pentium gcc compiler,
15358 # which looks to be a dead project)
15359 lt_prog_compiler_wl='-Wl,'
15360 lt_prog_compiler_pic='-fpic'
15361 lt_prog_compiler_static='-Bstatic'
15364 lt_prog_compiler_wl='-Wl,'
15365 # All Alpha code is PIC.
15366 lt_prog_compiler_static='-non_shared'
15368 xl* | bgxl* | bgf* | mpixl*)
15369 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15370 lt_prog_compiler_wl='-Wl,'
15371 lt_prog_compiler_pic='-qpic'
15372 lt_prog_compiler_static='-qstaticlink'
15375 case `$CC -V 2>&1 | sed 5q` in
15376 *Sun\ F* | *Sun*Fortran*)
15377 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15378 lt_prog_compiler_pic='-KPIC'
15379 lt_prog_compiler_static='-Bstatic'
15380 lt_prog_compiler_wl=''
15384 lt_prog_compiler_pic='-KPIC'
15385 lt_prog_compiler_static='-Bstatic'
15386 lt_prog_compiler_wl='-Wl,'
15394 lt_prog_compiler_pic='-KPIC'
15395 lt_prog_compiler_static='-Bstatic'
15399 # QNX uses GNU C++, but need to define -shared option too, otherwise
15400 # it will coredump.
15401 lt_prog_compiler_pic='-fPIC -shared'
15404 osf3* | osf4* | osf5*)
15405 lt_prog_compiler_wl='-Wl,'
15406 # All OSF/1 code is PIC.
15407 lt_prog_compiler_static='-non_shared'
15411 lt_prog_compiler_static='-non_shared'
15415 lt_prog_compiler_pic='-KPIC'
15416 lt_prog_compiler_static='-Bstatic'
15417 case $cc_basename in
15418 f77* | f90* | f95*)
15419 lt_prog_compiler_wl='-Qoption ld ';;
15421 lt_prog_compiler_wl='-Wl,';;
15426 lt_prog_compiler_wl='-Qoption ld '
15427 lt_prog_compiler_pic='-PIC'
15428 lt_prog_compiler_static='-Bstatic'
15431 sysv4 | sysv4.2uw2* | sysv4.3*)
15432 lt_prog_compiler_wl='-Wl,'
15433 lt_prog_compiler_pic='-KPIC'
15434 lt_prog_compiler_static='-Bstatic'
15438 if test -d /usr/nec ;then
15439 lt_prog_compiler_pic='-Kconform_pic'
15440 lt_prog_compiler_static='-Bstatic'
15444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15445 lt_prog_compiler_wl='-Wl,'
15446 lt_prog_compiler_pic='-KPIC'
15447 lt_prog_compiler_static='-Bstatic'
15451 lt_prog_compiler_wl='-Wl,'
15452 lt_prog_compiler_can_build_shared=no
15456 lt_prog_compiler_pic='-pic'
15457 lt_prog_compiler_static='-Bstatic'
15461 lt_prog_compiler_can_build_shared=no
15467 # For platforms which do not support PIC, -DPIC is meaningless:
15469 lt_prog_compiler_pic=
15472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15476 $as_echo "$lt_prog_compiler_pic" >&6; }
15484 # Check to make sure the PIC flag actually works.
15486 if test -n "$lt_prog_compiler_pic"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15488 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15489 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15490 $as_echo_n "(cached
) " >&6
15492 lt_cv_prog_compiler_pic_works=no
15493 ac_outfile=conftest.$ac_objext
15494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15496 # Insert the option either (1) after the last *FLAGS variable, or
15497 # (2) before a word containing "conftest.
", or (3) at the end.
15498 # Note that $ac_compile itself does not contain backslashes and begins
15499 # with a dollar sign (not a hyphen), so the echo should work correctly.
15500 # The option is referenced via a variable to avoid confusing sed.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>conftest.err)
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15510 if (exit $ac_status) && test -s "$ac_outfile"; then
15511 # The compiler can only warn and ignore the option if not recognized
15512 # So say no if there are warnings other than the usual output.
15513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15516 lt_cv_prog_compiler_pic_works=yes
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15523 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15525 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15526 case $lt_prog_compiler_pic in
15528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15531 lt_prog_compiler_pic=
15532 lt_prog_compiler_can_build_shared=no
15543 # Check to make sure the static flag actually works.
15545 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15547 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15548 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15549 $as_echo_n "(cached
) " >&6
15551 lt_cv_prog_compiler_static_works=no
15552 save_LDFLAGS="$LDFLAGS"
15553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15556 # The linker can only warn and ignore the option if not recognized
15557 # So say no if there are warnings
15558 if test -s conftest.err; then
15559 # Append any errors to the config.log.
15560 cat conftest.err 1>&5
15561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15563 if diff conftest.exp conftest.er2 >/dev/null; then
15564 lt_cv_prog_compiler_static_works=yes
15567 lt_cv_prog_compiler_static_works=yes
15571 LDFLAGS="$save_LDFLAGS"
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15575 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15577 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15580 lt_prog_compiler_static=
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15590 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15591 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15592 $as_echo_n "(cached
) " >&6
15594 lt_cv_prog_compiler_c_o=no
15595 $RM -r conftest 2>/dev/null
15599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15601 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15602 # Insert the option either (1) after the last *FLAGS variable, or
15603 # (2) before a word containing "conftest.
", or (3) at the end.
15604 # Note that $ac_compile itself does not contain backslashes and begins
15605 # with a dollar sign (not a hyphen), so the echo should work correctly.
15606 lt_compile=`echo "$ac_compile" | $SED \
15607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15609 -e 's:$: $lt_compiler_flag:'`
15610 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15611 (eval "$lt_compile" 2>out/conftest.err)
15613 cat out/conftest.err >&5
15614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15617 # The compiler can only warn and ignore the option if not recognized
15618 # So say no if there are warnings
15619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15622 lt_cv_prog_compiler_c_o=yes
15627 # SGI C++ compiler will create directory out/ii_files/ for
15628 # template instantiation
15629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15630 $RM out/* && rmdir out
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15645 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15646 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15647 $as_echo_n "(cached
) " >&6
15649 lt_cv_prog_compiler_c_o=no
15650 $RM -r conftest 2>/dev/null
15654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15657 # Insert the option either (1) after the last *FLAGS variable, or
15658 # (2) before a word containing "conftest.
", or (3) at the end.
15659 # Note that $ac_compile itself does not contain backslashes and begins
15660 # with a dollar sign (not a hyphen), so the echo should work correctly.
15661 lt_compile=`echo "$ac_compile" | $SED \
15662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15664 -e 's:$: $lt_compiler_flag:'`
15665 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15666 (eval "$lt_compile" 2>out/conftest.err)
15668 cat out/conftest.err >&5
15669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15672 # The compiler can only warn and ignore the option if not recognized
15673 # So say no if there are warnings
15674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15677 lt_cv_prog_compiler_c_o=yes
15682 # SGI C++ compiler will create directory out/ii_files/ for
15683 # template instantiation
15684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15685 $RM out/* && rmdir out
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15692 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15697 hard_links="nottested
"
15698 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15699 # do not overwrite the value of need_locks provided by the user
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15701 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15706 ln conftest.a conftest.b 2>&5 || hard_links=no
15707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15709 $as_echo "$hard_links" >&6; }
15710 if test "$hard_links" = no; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15712 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15725 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15728 allow_undefined_flag=
15729 always_export_symbols=no
15731 archive_expsym_cmds=
15732 compiler_needs_object=no
15733 enable_shared_with_static_runtimes=no
15734 export_dynamic_flag_spec=
15735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15736 hardcode_automatic=no
15738 hardcode_direct_absolute=no
15739 hardcode_libdir_flag_spec=
15740 hardcode_libdir_flag_spec_ld=
15741 hardcode_libdir_separator=
15742 hardcode_minus_L=no
15743 hardcode_shlibpath_var=unsupported
15745 link_all_deplibs=unknown
15747 module_expsym_cmds=
15748 old_archive_from_new_cmds=
15749 old_archive_from_expsyms_cmds=
15750 thread_safe_flag_spec=
15751 whole_archive_flag_spec=
15752 # include_expsyms should be a list of space-separated symbols to be *always*
15753 # included in the symbol list
15755 # exclude_expsyms can be an extended regexp of symbols to exclude
15756 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15757 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15758 # as well as any symbol that contains `d'.
15759 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15760 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15761 # platforms (ab)use it in PIC code, but their linkers get confused if
15762 # the symbol is explicitly referenced. Since portable code cannot
15763 # rely on this symbol name, it's probably fine to never include it in
15764 # preloaded symbol tables.
15765 # Exclude shared library initialization/finalization symbols.
15766 extract_expsyms_cmds=
15769 cygwin* | mingw* | pw32* | cegcc*)
15770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15771 # When not using gcc, we currently assume that we are using
15772 # Microsoft Visual C++.
15773 if test "$GCC" != yes; then
15778 # we just hope/assume this is gcc and not c89 (= MSVC++)
15788 # On some targets, GNU ld is compatible enough with the native linker
15789 # that we're better off using the native interface for both.
15790 lt_use_gnu_ld_interface=no
15791 if test "$with_gnu_ld" = yes; then
15794 # The AIX port of GNU ld has always aspired to compatibility
15795 # with the native linker. However, as the warning in the GNU ld
15796 # block says, versions before 2.19.5* couldn't really create working
15797 # shared libraries, regardless of the interface used.
15798 case `$LD -v 2>&1` in
15799 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15800 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15801 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15803 lt_use_gnu_ld_interface=yes
15808 lt_use_gnu_ld_interface=yes
15813 if test "$lt_use_gnu_ld_interface" = yes; then
15814 # If archive_cmds runs LD, not CC, wlarc should be empty
15817 # Set some defaults for GNU ld with shared library support. These
15818 # are reset later if shared libraries are not supported. Putting them
15819 # here allows them to be overridden if necessary.
15820 runpath_var=LD_RUN_PATH
15821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15822 export_dynamic_flag_spec='${wl}--export-dynamic'
15823 # ancient GNU ld didn't support --whole-archive et. al.
15824 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15827 whole_archive_flag_spec=
15829 supports_anon_versioning=no
15830 case `$LD -v 2>&1` in
15831 *GNU\ gold*) supports_anon_versioning=yes ;;
15832 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15833 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15834 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15835 *\ 2.11.*) ;; # other 2.11 versions
15836 *) supports_anon_versioning=yes ;;
15839 # See if GNU ld supports shared libraries.
15842 # On AIX/PPC, the GNU linker is very broken
15843 if test "$host_cpu" != ia64; then
15847 *** Warning: the GNU linker, at least up to release 2.19, is reported
15848 *** to be unable to reliably create shared libraries on AIX.
15849 *** Therefore, libtool is disabling shared libraries support. If you
15850 *** really care for shared libraries, you may want to install binutils
15851 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15852 *** You will then need to restart the configuration process.
15861 # see comment about AmigaOS4 .so support
15862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863 archive_expsym_cmds=''
15866 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)'
15867 hardcode_libdir_flag_spec
='-L$libdir'
15868 hardcode_minus_L
=yes
15874 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15875 allow_undefined_flag
=unsupported
15876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15877 # support --undefined. This deserves some investigation. FIXME
15878 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15884 cygwin
* | mingw
* | pw32
* | cegcc
*)
15885 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15886 # as there is no search path for DLLs.
15887 hardcode_libdir_flag_spec
='-L$libdir'
15888 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15889 allow_undefined_flag
=unsupported
15890 always_export_symbols
=no
15891 enable_shared_with_static_runtimes
=yes
15892 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15894 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15895 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15896 # If the export-symbols file already is a .def file (1st line
15897 # is EXPORTS), use it as is; otherwise, prepend...
15898 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15899 cp $export_symbols $output_objdir/$soname.def;
15901 echo EXPORTS > $output_objdir/$soname.def;
15902 cat $export_symbols >> $output_objdir/$soname.def;
15904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15911 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15912 link_all_deplibs
=yes
15917 hardcode_shlibpath_var
=no
15918 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15919 export_dynamic_flag_spec
='${wl}-E'
15920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15921 # Instead, shared libraries are loaded at an image base (0x10000000 by
15922 # default) and relocated if they conflict, which is a slow very memory
15923 # consuming and fragmenting process. To avoid this, we pick a random,
15924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15926 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15927 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'
15930 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15932 if test "$host_os" = linux-dietlibc
; then
15933 case $cc_basename in
15934 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15937 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15938 && test "$tmp_diet" = no
15940 tmp_addflag
=' $pic_flag'
15941 tmp_sharedflag
='-shared'
15942 case $cc_basename,$host_cpu in
15943 pgcc
*) # Portland Group C compiler
15944 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'
15945 tmp_addflag
=' $pic_flag'
15947 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15948 # Portland Group f77 and f90 compilers
15949 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'
15950 tmp_addflag
=' $pic_flag -Mnomain' ;;
15951 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15952 tmp_addflag
=' -i_dynamic' ;;
15953 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15954 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15955 ifc
* | ifort
*) # Intel Fortran compiler
15956 tmp_addflag
=' -nofor_main' ;;
15957 lf95
*) # Lahey Fortran 8.1
15958 whole_archive_flag_spec
=
15959 tmp_sharedflag
='--shared' ;;
15960 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15961 tmp_sharedflag
='-qmkshrobj'
15963 nvcc
*) # Cuda Compiler Driver 2.2
15964 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'
15965 compiler_needs_object
=yes
15968 case `$CC -V 2>&1 | sed 5q` in
15969 *Sun\ C
*) # Sun C 5.9
15970 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'
15971 compiler_needs_object
=yes
15972 tmp_sharedflag
='-G' ;;
15973 *Sun\ F
*) # Sun Fortran 8.3
15974 tmp_sharedflag
='-G' ;;
15976 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978 if test "x$supports_anon_versioning" = xyes
; then
15979 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15981 echo "local: *; };" >> $output_objdir/$libname.ver~
15982 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15985 case $cc_basename in
15986 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15987 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15988 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15989 hardcode_libdir_flag_spec
=
15990 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15991 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15992 if test "x$supports_anon_versioning" = xyes
; then
15993 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15995 echo "local: *; };" >> $output_objdir/$libname.ver~
15996 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16006 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16007 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16010 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16021 *** create shared libraries on Solaris systems. Therefore, libtool
16022 *** is disabling shared libraries support. We urge you to upgrade GNU
16023 *** binutils to release 2.9.1 or newer. Another option is to modify
16024 *** your PATH or compiler configuration so that the native linker is
16025 *** used, and then restart.
16028 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16029 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16036 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16037 case `$LD -v 2>&1` in
16038 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16042 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16043 *** reliably create shared libraries on SCO systems. Therefore, libtool
16044 *** is disabling shared libraries support. We urge you to upgrade GNU
16045 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16046 *** your PATH or compiler configuration so that the native linker is
16047 *** used, and then restart.
16052 # For security reasons, it is highly recommended that you always
16053 # use absolute paths for naming shared libraries, and exclude the
16054 # DT_RUNPATH tag from executables and libraries. But doing so
16055 # requires that you compile everything twice, which is a pain.
16056 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16057 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16058 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16059 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16070 hardcode_direct
=yes
16071 hardcode_shlibpath_var
=no
16075 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16076 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 if test "$ld_shlibs" = no
; then
16086 hardcode_libdir_flag_spec
=
16087 export_dynamic_flag_spec
=
16088 whole_archive_flag_spec
=
16091 # PORTME fill in a description of your system's linker (not GNU ld)
16094 allow_undefined_flag
=unsupported
16095 always_export_symbols
=yes
16096 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'
16097 # Note: this linker hardcodes the directories in LIBPATH if there
16098 # are no directories specified by -L.
16099 hardcode_minus_L
=yes
16100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16101 # Neither direct hardcoding nor static linking is supported with a
16103 hardcode_direct
=unsupported
16108 if test "$host_cpu" = ia64
; then
16109 # On IA64, the linker does run time linking by default, so we don't
16110 # have to do anything special.
16111 aix_use_runtimelinking
=no
16112 exp_sym_flag
='-Bexport'
16115 # If we're using GNU nm, then we don't want the "-C" option.
16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16117 # Also, AIX nm treats weak defined symbols like other global
16118 # defined symbols, whereas GNU nm marks them as "W".
16119 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16120 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'
16122 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'
16124 aix_use_runtimelinking
=no
16126 # Test if we are trying to use run time linking or normal
16127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16128 # need to do runtime linking.
16129 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16130 for ld_flag
in $LDFLAGS; do
16131 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16132 aix_use_runtimelinking
=yes
16139 exp_sym_flag
='-bexport'
16140 no_entry_flag
='-bnoentry'
16143 # When large executables or shared objects are built, AIX ld can
16144 # have problems creating the table of contents. If linking a library
16145 # or program results in "error TOC overflow" add -mminimal-toc to
16146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16150 hardcode_direct
=yes
16151 hardcode_direct_absolute
=yes
16152 hardcode_libdir_separator
=':'
16153 link_all_deplibs
=yes
16154 file_list_spec
='${wl}-f,'
16156 if test "$GCC" = yes; then
16157 case $host_os in aix4.
[012]|aix4.
[012].
*)
16158 # We only want to do this on AIX 4.2 and lower, the check
16159 # below for broken collect2 doesn't work under 4.3+
16160 collect2name
=`${CC} -print-prog-name=collect2`
16161 if test -f "$collect2name" &&
16162 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16164 # We have reworked collect2
16167 # We have old collect2
16168 hardcode_direct
=unsupported
16169 # It fails to find uninstalled libraries when the uninstalled
16170 # path is not listed in the libpath. Setting hardcode_minus_L
16171 # to unsupported forces relinking
16172 hardcode_minus_L
=yes
16173 hardcode_libdir_flag_spec
='-L$libdir'
16174 hardcode_libdir_separator
=
16178 shared_flag
='-shared'
16179 if test "$aix_use_runtimelinking" = yes; then
16180 shared_flag
="$shared_flag "'${wl}-G'
16184 if test "$host_cpu" = ia64
; then
16185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16186 # chokes on -Wl,-G. The following line is correct:
16189 if test "$aix_use_runtimelinking" = yes; then
16190 shared_flag
='${wl}-G'
16192 shared_flag
='${wl}-bM:SRE'
16197 export_dynamic_flag_spec
='${wl}-bexpall'
16198 # It seems that -bexpall does not export symbols beginning with
16199 # underscore (_), so it is better to generate a list of symbols to export.
16200 always_export_symbols
=yes
16201 if test "$aix_use_runtimelinking" = yes; then
16202 # Warning - without using the other runtime loading flags (-brtl),
16203 # -berok will link without error, but may produce a broken library.
16204 allow_undefined_flag
='-berok'
16205 # Determine the default libpath from the value encoded in an
16206 # empty executable.
16207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16218 if ac_fn_c_try_link
"$LINENO"; then :
16220 lt_aix_libpath_sed
='
16221 /Import File Strings/,/^$/ {
16227 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16228 # Check for a 64-bit object if we didn't find anything.
16229 if test -z "$aix_libpath"; then
16230 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16233 rm -f core conftest.err conftest.
$ac_objext \
16234 conftest
$ac_exeext conftest.
$ac_ext
16235 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16237 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16238 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"
16240 if test "$host_cpu" = ia64
; then
16241 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16242 allow_undefined_flag
="-z nodefs"
16243 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"
16245 # Determine the default libpath from the value encoded in an
16246 # empty executable.
16247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16258 if ac_fn_c_try_link
"$LINENO"; then :
16260 lt_aix_libpath_sed
='
16261 /Import File Strings/,/^$/ {
16267 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16268 # Check for a 64-bit object if we didn't find anything.
16269 if test -z "$aix_libpath"; then
16270 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16273 rm -f core conftest.err conftest.
$ac_objext \
16274 conftest
$ac_exeext conftest.
$ac_ext
16275 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16277 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16278 # Warning - without using the other run time loading flags,
16279 # -berok will link without error, but may produce a broken library.
16280 no_undefined_flag
=' ${wl}-bernotok'
16281 allow_undefined_flag
=' ${wl}-berok'
16282 if test "$with_gnu_ld" = yes; then
16283 # We only use this code for GNU lds that support --whole-archive.
16284 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16286 # Exported symbols can be pulled into shared objects from archives
16287 whole_archive_flag_spec
='$convenience'
16289 archive_cmds_need_lc
=yes
16290 # This is similar to how AIX traditionally builds its shared libraries.
16291 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'
16299 # see comment about AmigaOS4 .so support
16300 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301 archive_expsym_cmds
=''
16304 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)'
16305 hardcode_libdir_flag_spec
='-L$libdir'
16306 hardcode_minus_L
=yes
16312 export_dynamic_flag_spec
=-rdynamic
16315 cygwin
* | mingw
* | pw32
* | cegcc
*)
16316 # When not using gcc, we currently assume that we are using
16317 # Microsoft Visual C++.
16318 # hardcode_libdir_flag_spec is actually meaningless, as there is
16319 # no search path for DLLs.
16320 hardcode_libdir_flag_spec
=' '
16321 allow_undefined_flag
=unsupported
16322 # Tell ltmain to make .lib files, not .a files.
16324 # Tell ltmain to make .dll files, not .so files.
16326 # FIXME: Setting linknames here is a bad hack.
16327 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16328 # The linker will automatically build a .lib file if we build a DLL.
16329 old_archive_from_new_cmds
='true'
16330 # FIXME: Should let the user specify the lib program.
16331 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16332 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16333 enable_shared_with_static_runtimes
=yes
16336 darwin
* | rhapsody
*)
16339 archive_cmds_need_lc
=no
16341 hardcode_automatic
=yes
16342 hardcode_shlibpath_var
=unsupported
16343 if test "$lt_cv_ld_force_load" = "yes"; then
16344 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\"`'
16346 whole_archive_flag_spec
=''
16348 link_all_deplibs
=yes
16349 allow_undefined_flag
="$_lt_dar_allow_undefined"
16350 case $cc_basename in
16351 ifort
*) _lt_dar_can_shared
=yes ;;
16352 *) _lt_dar_can_shared
=$GCC ;;
16354 if test "$_lt_dar_can_shared" = "yes"; then
16355 output_verbose_link_cmd
=func_echo_all
16356 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16357 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16358 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}"
16359 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}"
16368 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16369 hardcode_libdir_flag_spec
='-L$libdir'
16370 hardcode_shlibpath_var
=no
16373 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16374 # support. Future versions do this automatically, but an explicit c++rt0.o
16375 # does not break anything, and helps significantly (at the cost of a little
16378 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16379 hardcode_libdir_flag_spec
='-R$libdir'
16380 hardcode_direct
=yes
16381 hardcode_shlibpath_var
=no
16384 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16386 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_direct
=yes
16388 hardcode_minus_L
=yes
16389 hardcode_shlibpath_var
=no
16392 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16393 freebsd
* | dragonfly
*)
16394 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16395 hardcode_libdir_flag_spec
='-R$libdir'
16396 hardcode_direct
=yes
16397 hardcode_shlibpath_var
=no
16401 if test "$GCC" = yes; then
16402 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'
16404 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'
16406 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16407 hardcode_libdir_separator
=:
16408 hardcode_direct
=yes
16410 # hardcode_minus_L: Not really in the search PATH,
16411 # but as the default location of the library.
16412 hardcode_minus_L
=yes
16413 export_dynamic_flag_spec
='${wl}-E'
16417 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16418 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16420 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16422 if test "$with_gnu_ld" = no
; then
16423 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16424 hardcode_libdir_flag_spec_ld
='+b $libdir'
16425 hardcode_libdir_separator
=:
16426 hardcode_direct
=yes
16427 hardcode_direct_absolute
=yes
16428 export_dynamic_flag_spec
='${wl}-E'
16429 # hardcode_minus_L: Not really in the search PATH,
16430 # but as the default location of the library.
16431 hardcode_minus_L
=yes
16436 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16439 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16458 # Older versions of the 11.00 compiler do not understand -b yet
16459 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16461 $as_echo_n "checking if $CC understands -b... " >&6; }
16462 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16463 $as_echo_n "(cached) " >&6
16465 lt_cv_prog_compiler__b
=no
16466 save_LDFLAGS
="$LDFLAGS"
16467 LDFLAGS
="$LDFLAGS -b"
16468 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16469 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16470 # The linker can only warn and ignore the option if not recognized
16471 # So say no if there are warnings
16472 if test -s conftest.err
; then
16473 # Append any errors to the config.log.
16474 cat conftest.err
1>&5
16475 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16476 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16477 if diff conftest.exp conftest.er2
>/dev
/null
; then
16478 lt_cv_prog_compiler__b
=yes
16481 lt_cv_prog_compiler__b
=yes
16485 LDFLAGS
="$save_LDFLAGS"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16489 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16491 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16492 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16500 if test "$with_gnu_ld" = no
; then
16501 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16502 hardcode_libdir_separator
=:
16507 hardcode_shlibpath_var
=no
16510 hardcode_direct
=yes
16511 hardcode_direct_absolute
=yes
16512 export_dynamic_flag_spec
='${wl}-E'
16514 # hardcode_minus_L: Not really in the search PATH,
16515 # but as the default location of the library.
16516 hardcode_minus_L
=yes
16522 irix5
* | irix6
* | nonstopux
*)
16523 if test "$GCC" = yes; then
16524 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'
16525 # Try to use the -exported_symbol ld option, if it does not
16526 # work, assume that -exports_file does not work either and
16527 # implicitly export all symbols.
16528 save_LDFLAGS
="$LDFLAGS"
16529 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16534 if ac_fn_c_try_link
"$LINENO"; then :
16535 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'
16538 rm -f core conftest.err conftest.
$ac_objext \
16539 conftest
$ac_exeext conftest.
$ac_ext
16540 LDFLAGS
="$save_LDFLAGS"
16542 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'
16543 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'
16545 archive_cmds_need_lc
='no'
16546 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16547 hardcode_libdir_separator
=:
16549 link_all_deplibs
=yes
16553 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16554 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16556 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16558 hardcode_libdir_flag_spec
='-R$libdir'
16559 hardcode_direct
=yes
16560 hardcode_shlibpath_var
=no
16564 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565 hardcode_direct
=yes
16566 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16567 hardcode_libdir_separator
=:
16568 hardcode_shlibpath_var
=no
16575 if test -f /usr
/libexec
/ld.so
; then
16576 hardcode_direct
=yes
16577 hardcode_shlibpath_var
=no
16578 hardcode_direct_absolute
=yes
16579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16580 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16581 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16582 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16583 export_dynamic_flag_spec
='${wl}-E'
16586 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16587 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16588 hardcode_libdir_flag_spec
='-R$libdir'
16591 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16592 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16602 hardcode_libdir_flag_spec
='-L$libdir'
16603 hardcode_minus_L
=yes
16604 allow_undefined_flag
=unsupported
16605 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'
16606 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16610 if test "$GCC" = yes; then
16611 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16612 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'
16614 allow_undefined_flag
=' -expect_unresolved \*'
16615 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'
16617 archive_cmds_need_lc
='no'
16618 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16619 hardcode_libdir_separator
=:
16622 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16623 if test "$GCC" = yes; then
16624 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16625 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'
16626 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16628 allow_undefined_flag
=' -expect_unresolved \*'
16629 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'
16630 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~
16631 $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'
16633 # Both c and cxx compiler support -rpath directly
16634 hardcode_libdir_flag_spec
='-rpath $libdir'
16636 archive_cmds_need_lc
='no'
16637 hardcode_libdir_separator
=:
16641 no_undefined_flag
=' -z defs'
16642 if test "$GCC" = yes; then
16644 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16645 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16646 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16648 case `$CC -V 2>&1` in
16651 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16657 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16658 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16659 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16663 hardcode_libdir_flag_spec
='-R$libdir'
16664 hardcode_shlibpath_var
=no
16666 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16668 # The compiler driver will combine and reorder linker options,
16669 # but understands `-z linker_flag'. GCC discards it without `$wl',
16670 # but is careful enough not to reorder.
16671 # Supported since Solaris 2.6 (maybe 2.5.1?)
16672 if test "$GCC" = yes; then
16673 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16675 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16679 link_all_deplibs
=yes
16683 if test "x$host_vendor" = xsequent
; then
16684 # Use $CC to link under sequent, because it throws in some extra .o
16685 # files that make .init and .fini sections work.
16686 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_libdir_flag_spec
='-L$libdir'
16691 hardcode_direct
=yes
16692 hardcode_minus_L
=yes
16693 hardcode_shlibpath_var
=no
16697 case $host_vendor in
16699 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct
=yes # is this really true???
16703 ## LD is ld it makes a PLAMLIB
16704 ## CC just makes a GrossModule.
16705 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16706 reload_cmds
='$CC -r -o $output$reload_objs'
16710 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16714 runpath_var
='LD_RUN_PATH'
16715 hardcode_shlibpath_var
=no
16719 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16720 hardcode_shlibpath_var
=no
16721 export_dynamic_flag_spec
='-Bexport'
16725 if test -d /usr
/nec
; then
16726 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_shlibpath_var
=no
16728 runpath_var
=LD_RUN_PATH
16729 hardcode_runpath_var
=yes
16734 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16735 no_undefined_flag
='${wl}-z,text'
16736 archive_cmds_need_lc
=no
16737 hardcode_shlibpath_var
=no
16738 runpath_var
='LD_RUN_PATH'
16740 if test "$GCC" = yes; then
16741 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 sysv5
* | sco3.2v5
* | sco5v6
*)
16750 # Note: We can NOT use -z defs as we might desire, because we do not
16751 # link with -lc, and that would cause any symbols used from libc to
16752 # always be unresolved, which means just about no library would
16753 # ever link correctly. If we're not using GNU ld we use -z text
16754 # though, which does catch some bad symbols but isn't as heavy-handed
16756 no_undefined_flag
='${wl}-z,text'
16757 allow_undefined_flag
='${wl}-z,nodefs'
16758 archive_cmds_need_lc
=no
16759 hardcode_shlibpath_var
=no
16760 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16761 hardcode_libdir_separator
=':'
16762 link_all_deplibs
=yes
16763 export_dynamic_flag_spec
='${wl}-Bexport'
16764 runpath_var
='LD_RUN_PATH'
16766 if test "$GCC" = yes; then
16767 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16776 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_libdir_flag_spec
='-L$libdir'
16778 hardcode_shlibpath_var
=no
16786 if test x
$host_vendor = xsni
; then
16788 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16789 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16796 $as_echo "$ld_shlibs" >&6; }
16797 test "$ld_shlibs" = no
&& can_build_shared
=no
16799 with_gnu_ld
=$with_gnu_ld
16816 # Do we need to explicitly link libc?
16818 case "x$archive_cmds_need_lc" in
16820 # Assume -lc should be added
16821 archive_cmds_need_lc
=yes
16823 if test "$enable_shared" = yes && test "$GCC" = yes; then
16824 case $archive_cmds in
16826 # FIXME: we may have to deal with multi-command sequences.
16829 # Test whether the compiler implicitly links with -lc since on some
16830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831 # to ld, don't add -lc before -lgcc.
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16833 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16834 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16838 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16841 (eval $ac_compile) 2>&5
16843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16844 test $ac_status = 0; } 2>conftest.err
; then
16847 libobjs
=conftest.
$ac_objext
16849 wl
=$lt_prog_compiler_wl
16850 pic_flag
=$lt_prog_compiler_pic
16856 lt_save_allow_undefined_flag
=$allow_undefined_flag
16857 allow_undefined_flag
=
16858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16859 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16862 test $ac_status = 0; }
16864 lt_cv_archive_cmds_need_lc
=no
16866 lt_cv_archive_cmds_need_lc
=yes
16868 allow_undefined_flag
=$lt_save_allow_undefined_flag
16870 cat conftest.err
1>&5
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16876 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16877 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17041 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17043 if test "$GCC" = yes; then
17045 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17046 *) lt_awk_arg
="/^libraries:/" ;;
17049 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17050 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17052 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17053 case $lt_search_path_spec in
17055 # if the path contains ";" then we assume it to be the separator
17056 # otherwise default to the standard path separator (i.e. ":") - it is
17057 # assumed that no part of a normal pathname contains ";" but that should
17058 # okay in the real world where ";" in dirpaths is itself problematic.
17059 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17062 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17065 # Ok, now we have the path, separated by spaces, we can step through it
17066 # and add multilib dir if necessary.
17067 lt_tmp_lt_search_path_spec
=
17068 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17069 for lt_sys_path
in $lt_search_path_spec; do
17070 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17071 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17073 test -d "$lt_sys_path" && \
17074 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17077 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17078 BEGIN {RS=" "; FS="/|\n";} {
17081 for (lt_i = NF; lt_i > 0; lt_i--) {
17082 if ($lt_i != "" && $lt_i != ".") {
17083 if ($lt_i == "..") {
17086 if (lt_count == 0) {
17087 lt_foo="/" $lt_i lt_foo;
17094 if (lt_foo != "") { lt_freq[lt_foo]++; }
17095 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17097 # AWK program above erroneously prepends '/' to C:/dos/paths
17100 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17101 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17103 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17105 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17107 library_names_spec
=
17108 libname_spec
='lib$name'
17112 postuninstall_cmds
=
17116 shlibpath_overrides_runpath
=unknown
17118 dynamic_linker
="$host_os ld.so"
17119 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17120 need_lib_prefix
=unknown
17121 hardcode_into_libs
=no
17123 # when you set need_version to no, make sure it does not cause -set_version
17124 # flags to be left without arguments
17125 need_version
=unknown
17130 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17131 shlibpath_var
=LIBPATH
17133 # AIX 3 has no versioning support, so we append a major version to the name.
17134 soname_spec
='${libname}${release}${shared_ext}$major'
17141 hardcode_into_libs
=yes
17142 if test "$host_cpu" = ia64
; then
17143 # AIX 5 supports IA64
17144 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17145 shlibpath_var
=LD_LIBRARY_PATH
17147 # With GCC up to 2.95.x, collect2 would create an import file
17148 # for dependence libraries. The import file would start with
17149 # the line `#! .'. This would cause the generated library to
17150 # depend on `.', always an invalid library. This was fixed in
17151 # development snapshots of GCC prior to 3.0.
17153 aix4 | aix4.
[01] | aix4.
[01].
*)
17154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17156 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17159 can_build_shared
=no
17163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17164 # soname into executable. Probably we can add versioning support to
17165 # collect2, so additional links can be useful in future.
17166 if test "$aix_use_runtimelinking" = yes; then
17167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17168 # instead of lib<name>.a to let people know that these are not
17169 # typical AIX shared libraries.
17170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 # We preserve .a as extension for shared libraries through AIX4.2
17173 # and later when we are not doing run time linking.
17174 library_names_spec
='${libname}${release}.a $libname.a'
17175 soname_spec
='${libname}${release}${shared_ext}$major'
17177 shlibpath_var
=LIBPATH
17184 # Since July 2007 AmigaOS4 officially supports .so libraries.
17185 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189 library_names_spec
='$libname.ixlibrary $libname.a'
17190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17191 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'
17197 library_names_spec
='${libname}${shared_ext}'
17198 dynamic_linker
="$host_os ld.so"
17199 shlibpath_var
=LIBRARY_PATH
17205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec
='${libname}${release}${shared_ext}$major'
17207 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17208 shlibpath_var
=LD_LIBRARY_PATH
17209 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17210 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17211 # the default ld.so.conf also contains /usr/contrib/lib and
17212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17213 # libtool to hard-code these into programs
17216 cygwin
* | mingw
* | pw32
* | cegcc
*)
17217 version_type
=windows
17222 case $GCC,$host_os in
17223 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17224 library_names_spec
='$libname.dll.a'
17225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17226 postinstall_cmds
='base_file=`basename \${file}`~
17227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17228 dldir=$destdir/`dirname \$dlpath`~
17229 test -d \$dldir || mkdir -p \$dldir~
17230 $install_prog $dir/$dlname \$dldir/$dlname~
17231 chmod a+x \$dldir/$dlname~
17232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17235 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17236 dlpath=$dir/\$dldll~
17238 shlibpath_overrides_runpath
=yes
17242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17243 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17245 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17248 # MinGW DLLs use traditional 'lib' prefix
17249 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17252 # pw32 DLLs use 'pw' prefix rather than 'lib'
17253 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17259 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17262 dynamic_linker
='Win32 ld.exe'
17263 # FIXME: first we should search . and the directory the executable is in
17267 darwin
* | rhapsody
*)
17268 dynamic_linker
="$host_os dyld"
17269 version_type
=darwin
17272 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17273 soname_spec
='${libname}${release}${major}$shared_ext'
17274 shlibpath_overrides_runpath
=yes
17275 shlibpath_var
=DYLD_LIBRARY_PATH
17276 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17278 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17279 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17287 soname_spec
='${libname}${release}${shared_ext}$major'
17288 shlibpath_var
=LD_LIBRARY_PATH
17291 freebsd
* | dragonfly
*)
17292 # DragonFly does not have aout. When/if they implement a new
17293 # versioning mechanism, adjust this.
17294 if test -x /usr
/bin
/objformat
; then
17295 objformat
=`/usr/bin/objformat`
17298 freebsd
[23].
*) objformat
=aout
;;
17299 *) objformat
=elf
;;
17302 version_type
=freebsd-
$objformat
17303 case $version_type in
17305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17310 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17314 shlibpath_var
=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath
=yes
17319 freebsd3.
[01]* | freebsdelf3.
[01]*)
17320 shlibpath_overrides_runpath
=yes
17321 hardcode_into_libs
=yes
17323 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17324 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17325 shlibpath_overrides_runpath
=no
17326 hardcode_into_libs
=yes
17328 *) # from 4.6 on, and DragonFly
17329 shlibpath_overrides_runpath
=yes
17330 hardcode_into_libs
=yes
17339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17340 soname_spec
='${libname}${release}${shared_ext}$major'
17341 shlibpath_var
=LD_LIBRARY_PATH
17342 hardcode_into_libs
=yes
17349 dynamic_linker
="$host_os runtime_loader"
17350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17351 soname_spec
='${libname}${release}${shared_ext}$major'
17352 shlibpath_var
=LIBRARY_PATH
17353 shlibpath_overrides_runpath
=yes
17354 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17355 hardcode_into_libs
=yes
17358 hpux9
* | hpux10
* | hpux11
*)
17359 # Give a soname corresponding to the major version so that dld.sl refuses to
17360 # link against other versions.
17367 hardcode_into_libs
=yes
17368 dynamic_linker
="$host_os dld.so"
17369 shlibpath_var
=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec
='${libname}${release}${shared_ext}$major'
17373 if test "X$HPUX_IA64_MODE" = X32
; then
17374 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17376 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17378 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17382 hardcode_into_libs
=yes
17383 dynamic_linker
="$host_os dld.sl"
17384 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17385 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec
='${libname}${release}${shared_ext}$major'
17388 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17389 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17393 dynamic_linker
="$host_os dld.sl"
17394 shlibpath_var
=SHLIB_PATH
17395 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec
='${libname}${release}${shared_ext}$major'
17400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17401 postinstall_cmds
='chmod 555 $lib'
17402 # or fails outright, so override atomically:
17403 install_override_mode
=555
17410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17411 soname_spec
='${libname}${release}${shared_ext}$major'
17412 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17413 shlibpath_var
=LD_LIBRARY_PATH
17414 shlibpath_overrides_runpath
=no
17415 hardcode_into_libs
=yes
17418 irix5
* | irix6
* | nonstopux
*)
17420 nonstopux
*) version_type
=nonstopux
;;
17422 if test "$lt_cv_prog_gnu_ld" = yes; then
17430 soname_spec
='${libname}${release}${shared_ext}$major'
17431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17433 irix5
* | nonstopux
*)
17434 libsuff
= shlibsuff
=
17437 case $LD in # libtool.m4 will add one of these switches to LD
17438 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17439 libsuff
= shlibsuff
= libmagic
=32-bit;;
17440 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17441 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17442 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17443 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17444 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17448 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17449 shlibpath_overrides_runpath
=no
17450 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17451 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17452 hardcode_into_libs
=yes
17455 # No shared lib support for Linux oldld, aout, or coff.
17456 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17460 # This must be Linux ELF.
17461 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec
='${libname}${release}${shared_ext}$major'
17467 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17468 shlibpath_var
=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath
=no
17471 # Some binutils ld are patched to set DT_RUNPATH
17472 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17473 $as_echo_n "(cached) " >&6
17475 lt_cv_shlibpath_overrides_runpath
=no
17476 save_LDFLAGS
=$LDFLAGS
17477 save_libdir
=$libdir
17478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17491 if ac_fn_c_try_link
"$LINENO"; then :
17492 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17493 lt_cv_shlibpath_overrides_runpath
=yes
17496 rm -f core conftest.err conftest.
$ac_objext \
17497 conftest
$ac_exeext conftest.
$ac_ext
17498 LDFLAGS
=$save_LDFLAGS
17499 libdir
=$save_libdir
17503 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17505 # This implies no fast_install, which is unacceptable.
17506 # Some rework will be needed to allow for fast_install
17507 # before this can be enabled.
17508 hardcode_into_libs
=yes
17510 # Append ld.so.conf contents to the search path
17511 if test -f /etc
/ld.so.conf
; then
17512 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' ' '`
17513 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17516 # We used to test for /lib/ld.so.1 and disable shared libraries on
17517 # powerpc, because MkLinux only supported shared libraries with the
17518 # GNU dynamic linker. Since this was broken with cross compilers,
17519 # most powerpc-linux boxes support dynamic linking these days and
17520 # people can always --disable-shared, the test was removed, and we
17521 # assume the GNU/Linux dynamic linker is in use.
17522 dynamic_linker
='GNU/Linux ld.so'
17529 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17531 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17532 dynamic_linker
='NetBSD (a.out) ld.so'
17534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17535 soname_spec
='${libname}${release}${shared_ext}$major'
17536 dynamic_linker
='NetBSD ld.elf_so'
17538 shlibpath_var
=LD_LIBRARY_PATH
17539 shlibpath_overrides_runpath
=yes
17540 hardcode_into_libs
=yes
17545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 shlibpath_var
=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath
=yes
17554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec
='${libname}${release}${shared_ext}$major'
17556 shlibpath_var
=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath
=no
17558 hardcode_into_libs
=yes
17559 dynamic_linker
='ldqnx.so'
17564 sys_lib_dlsearch_path_spec
="/usr/lib"
17566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17568 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17569 *) need_version
=no
;;
17571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17572 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17573 shlibpath_var
=LD_LIBRARY_PATH
17574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17576 openbsd2.
[89] | openbsd2.
[89].
*)
17577 shlibpath_overrides_runpath
=no
17580 shlibpath_overrides_runpath
=yes
17584 shlibpath_overrides_runpath
=yes
17589 libname_spec
='$name'
17592 library_names_spec
='$libname${shared_ext} $libname.a'
17593 dynamic_linker
='OS/2 ld.exe'
17594 shlibpath_var
=LIBPATH
17597 osf3
* | osf4
* | osf5
*)
17601 soname_spec
='${libname}${release}${shared_ext}$major'
17602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 shlibpath_var
=LD_LIBRARY_PATH
17604 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17605 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 soname_spec
='${libname}${release}${shared_ext}$major'
17618 shlibpath_var
=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath
=yes
17620 hardcode_into_libs
=yes
17621 # ldd complains unless libraries are executable
17622 postinstall_cmds
='chmod +x $lib'
17627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17628 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17629 shlibpath_var
=LD_LIBRARY_PATH
17630 shlibpath_overrides_runpath
=yes
17631 if test "$with_gnu_ld" = yes; then
17639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 soname_spec
='${libname}${release}${shared_ext}$major'
17641 shlibpath_var
=LD_LIBRARY_PATH
17642 case $host_vendor in
17644 shlibpath_overrides_runpath
=no
17646 runpath_var
=LD_RUN_PATH
17654 shlibpath_overrides_runpath
=no
17655 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17661 if test -d /usr
/nec
;then
17663 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17664 soname_spec
='$libname${shared_ext}.$major'
17665 shlibpath_var
=LD_LIBRARY_PATH
17669 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17670 version_type
=freebsd-elf
17673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17674 soname_spec
='${libname}${release}${shared_ext}$major'
17675 shlibpath_var
=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath
=yes
17677 hardcode_into_libs
=yes
17678 if test "$with_gnu_ld" = yes; then
17679 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17681 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17684 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17688 sys_lib_dlsearch_path_spec
='/usr/lib'
17692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697 shlibpath_var
=LD_LIBRARY_PATH
17698 shlibpath_overrides_runpath
=no
17699 hardcode_into_libs
=yes
17704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17705 soname_spec
='${libname}${release}${shared_ext}$major'
17706 shlibpath_var
=LD_LIBRARY_PATH
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17714 $as_echo "$dynamic_linker" >&6; }
17715 test "$dynamic_linker" = no
&& can_build_shared
=no
17717 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17718 if test "$GCC" = yes; then
17719 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17722 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17723 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17725 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17726 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17821 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17823 if test -n "$hardcode_libdir_flag_spec" ||
17824 test -n "$runpath_var" ||
17825 test "X$hardcode_automatic" = "Xyes" ; then
17827 # We can hardcode non-existent directories.
17828 if test "$hardcode_direct" != no
&&
17829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17830 # have to relink, otherwise we might link with an installed library
17831 # when we should be linking with a yet-to-be-installed one
17832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17833 test "$hardcode_minus_L" != no
; then
17834 # Linking always hardcodes the temporary library directory.
17835 hardcode_action
=relink
17837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17838 hardcode_action
=immediate
17841 # We cannot hardcode anything, or else we can only hardcode existing
17843 hardcode_action
=unsupported
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17846 $as_echo "$hardcode_action" >&6; }
17848 if test "$hardcode_action" = relink ||
17849 test "$inherit_rpath" = yes; then
17850 # Fast installation is not supported
17851 enable_fast_install
=no
17852 elif test "$shlibpath_overrides_runpath" = yes ||
17853 test "$enable_shared" = no
; then
17854 # Fast installation is not necessary
17855 enable_fast_install
=needless
17863 if test "x$enable_dlopen" != xyes
; then
17864 enable_dlopen
=unknown
17865 enable_dlopen_self
=unknown
17866 enable_dlopen_self_static
=unknown
17873 lt_cv_dlopen
="load_add_on"
17875 lt_cv_dlopen_self
=yes
17878 mingw
* | pw32
* | cegcc
*)
17879 lt_cv_dlopen
="LoadLibrary"
17884 lt_cv_dlopen
="dlopen"
17889 # if libdl is installed we need to link against it
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17893 $as_echo_n "(cached) " >&6
17895 ac_check_lib_save_LIBS
=$LIBS
17897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17915 if ac_fn_c_try_link
"$LINENO"; then :
17916 ac_cv_lib_dl_dlopen
=yes
17918 ac_cv_lib_dl_dlopen
=no
17920 rm -f core conftest.err conftest.
$ac_objext \
17921 conftest
$ac_exeext conftest.
$ac_ext
17922 LIBS
=$ac_check_lib_save_LIBS
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17925 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17926 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17927 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17930 lt_cv_dlopen
="dyld"
17932 lt_cv_dlopen_self
=yes
17939 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17940 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17941 lt_cv_dlopen
="shl_load"
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17944 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17946 $as_echo_n "(cached) " >&6
17948 ac_check_lib_save_LIBS
=$LIBS
17950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h. */
17953 /* Override any GCC internal prototype to avoid an error.
17954 Use char because int might match the return type of a GCC
17955 builtin and then its argument prototype would still apply. */
17963 return shl_load ();
17968 if ac_fn_c_try_link
"$LINENO"; then :
17969 ac_cv_lib_dld_shl_load
=yes
17971 ac_cv_lib_dld_shl_load
=no
17973 rm -f core conftest.err conftest.
$ac_objext \
17974 conftest
$ac_exeext conftest.
$ac_ext
17975 LIBS
=$ac_check_lib_save_LIBS
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17978 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17979 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17980 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17982 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17983 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17984 lt_cv_dlopen
="dlopen"
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17987 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17989 $as_echo_n "(cached) " >&6
17991 ac_check_lib_save_LIBS
=$LIBS
17993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17996 /* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
18011 if ac_fn_c_try_link
"$LINENO"; then :
18012 ac_cv_lib_dl_dlopen
=yes
18014 ac_cv_lib_dl_dlopen
=no
18016 rm -f core conftest.err conftest.
$ac_objext \
18017 conftest
$ac_exeext conftest.
$ac_ext
18018 LIBS
=$ac_check_lib_save_LIBS
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18021 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18022 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18023 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18026 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18028 $as_echo_n "(cached) " >&6
18030 ac_check_lib_save_LIBS
=$LIBS
18031 LIBS
="-lsvld $LIBS"
18032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18035 /* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18050 if ac_fn_c_try_link
"$LINENO"; then :
18051 ac_cv_lib_svld_dlopen
=yes
18053 ac_cv_lib_svld_dlopen
=no
18055 rm -f core conftest.err conftest.
$ac_objext \
18056 conftest
$ac_exeext conftest.
$ac_ext
18057 LIBS
=$ac_check_lib_save_LIBS
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18060 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18061 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18062 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18065 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18067 $as_echo_n "(cached) " >&6
18069 ac_check_lib_save_LIBS
=$LIBS
18071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18084 return dld_link ();
18089 if ac_fn_c_try_link
"$LINENO"; then :
18090 ac_cv_lib_dld_dld_link
=yes
18092 ac_cv_lib_dld_dld_link
=no
18094 rm -f core conftest.err conftest.
$ac_objext \
18095 conftest
$ac_exeext conftest.
$ac_ext
18096 LIBS
=$ac_check_lib_save_LIBS
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18099 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18100 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18101 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18122 if test "x$lt_cv_dlopen" != xno
; then
18128 case $lt_cv_dlopen in
18130 save_CPPFLAGS
="$CPPFLAGS"
18131 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18133 save_LDFLAGS
="$LDFLAGS"
18134 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18137 LIBS
="$lt_cv_dlopen_libs $LIBS"
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18140 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18141 if test "${lt_cv_dlopen_self+set}" = set; then :
18142 $as_echo_n "(cached) " >&6
18144 if test "$cross_compiling" = yes; then :
18145 lt_cv_dlopen_self
=cross
18147 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18148 lt_status
=$lt_dlunknown
18149 cat > conftest.
$ac_ext <<_LT_EOF
18150 #line 18150 "configure"
18151 #include "confdefs.h"
18160 # define LT_DLGLOBAL RTLD_GLOBAL
18163 # define LT_DLGLOBAL DL_GLOBAL
18165 # define LT_DLGLOBAL 0
18169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18170 find out it does not work in some platform. */
18171 #ifndef LT_DLLAZY_OR_NOW
18173 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18176 # define LT_DLLAZY_OR_NOW DL_LAZY
18179 # define LT_DLLAZY_OR_NOW RTLD_NOW
18182 # define LT_DLLAZY_OR_NOW DL_NOW
18184 # define LT_DLLAZY_OR_NOW 0
18191 /* When -fvisbility=hidden is used, assume the code has been annotated
18192 correspondingly for the symbols needed. */
18193 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18194 void fnord () __attribute__((visibility("default")));
18197 void fnord () { int i=42; }
18200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18201 int status = $lt_dlunknown;
18205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18209 else puts (dlerror ());
18211 /* dlclose (self); */
18219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18220 (eval $ac_link) 2>&5
18222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18223 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18224 (.
/conftest
; exit; ) >&5 2>/dev
/null
18226 case x
$lt_status in
18227 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18228 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18229 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18232 # compilation failed
18233 lt_cv_dlopen_self
=no
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18241 $as_echo "$lt_cv_dlopen_self" >&6; }
18243 if test "x$lt_cv_dlopen_self" = xyes
; then
18244 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18246 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18247 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18248 $as_echo_n "(cached) " >&6
18250 if test "$cross_compiling" = yes; then :
18251 lt_cv_dlopen_self_static
=cross
18253 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18254 lt_status
=$lt_dlunknown
18255 cat > conftest.
$ac_ext <<_LT_EOF
18256 #line 18256 "configure"
18257 #include "confdefs.h"
18266 # define LT_DLGLOBAL RTLD_GLOBAL
18269 # define LT_DLGLOBAL DL_GLOBAL
18271 # define LT_DLGLOBAL 0
18275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18276 find out it does not work in some platform. */
18277 #ifndef LT_DLLAZY_OR_NOW
18279 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18282 # define LT_DLLAZY_OR_NOW DL_LAZY
18285 # define LT_DLLAZY_OR_NOW RTLD_NOW
18288 # define LT_DLLAZY_OR_NOW DL_NOW
18290 # define LT_DLLAZY_OR_NOW 0
18297 /* When -fvisbility=hidden is used, assume the code has been annotated
18298 correspondingly for the symbols needed. */
18299 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18300 void fnord () __attribute__((visibility("default")));
18303 void fnord () { int i=42; }
18306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18307 int status = $lt_dlunknown;
18311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18315 else puts (dlerror ());
18317 /* dlclose (self); */
18325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18326 (eval $ac_link) 2>&5
18328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18329 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18330 (.
/conftest
; exit; ) >&5 2>/dev
/null
18332 case x
$lt_status in
18333 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18334 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18335 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18338 # compilation failed
18339 lt_cv_dlopen_self_static
=no
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18347 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18350 CPPFLAGS
="$save_CPPFLAGS"
18351 LDFLAGS
="$save_LDFLAGS"
18356 case $lt_cv_dlopen_self in
18357 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18358 *) enable_dlopen_self
=unknown
;;
18361 case $lt_cv_dlopen_self_static in
18362 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18363 *) enable_dlopen_self_static
=unknown
;;
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18386 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18387 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18388 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18389 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18391 $as_echo "yes" >&6; }
18393 # FIXME - insert some real tests, host_os isn't really good enough
18396 if test -n "$STRIP" ; then
18397 striplib
="$STRIP -x"
18398 old_striplib
="$STRIP -S"
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18400 $as_echo "yes" >&6; }
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403 $as_echo "no" >&6; }
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408 $as_echo "no" >&6; }
18424 # Report which library types will actually be built
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18426 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18428 $as_echo "$can_build_shared" >&6; }
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18431 $as_echo_n "checking whether to build shared libraries... " >&6; }
18432 test "$can_build_shared" = "no" && enable_shared
=no
18434 # On AIX, shared libraries and static libraries use the same namespace, and
18435 # are all built from PIC.
18438 test "$enable_shared" = yes && enable_static
=no
18439 if test -n "$RANLIB"; then
18440 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18441 postinstall_cmds
='$RANLIB $lib'
18446 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18447 test "$enable_shared" = yes && enable_static
=no
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18452 $as_echo "$enable_shared" >&6; }
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18455 $as_echo_n "checking whether to build static libraries... " >&6; }
18456 # Make sure either enable_shared or enable_static is yes.
18457 test "$enable_shared" = yes || enable_static
=yes
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18459 $as_echo "$enable_static" >&6; }
18466 ac_cpp
='$CPP $CPPFLAGS'
18467 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18475 (test "X$CXX" != "Xg++"))) ; then
18477 ac_cpp
='$CXXCPP $CPPFLAGS'
18478 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18479 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18480 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18482 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18483 if test -z "$CXXCPP"; then
18484 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18485 $as_echo_n "(cached) " >&6
18487 # Double quotes because CXXCPP needs to be expanded
18488 for CXXCPP
in "$CXX -E" "/lib/cpp"
18490 ac_preproc_ok
=false
18491 for ac_cxx_preproc_warn_flag
in '' yes
18493 # Use a header file that comes with gcc, so configuring glibc
18494 # with a fresh cross-compiler works.
18495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18496 # <limits.h> exists even on freestanding compilers.
18497 # On the NeXT, cc -E runs the code through the compiler's parser,
18498 # not just through cpp. "Syntax error" is here to catch this case.
18499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18502 # include <limits.h>
18504 # include <assert.h>
18508 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18511 # Broken: fails on valid input.
18514 rm -f conftest.err conftest.
$ac_ext
18516 # OK, works on sane cases. Now check whether nonexistent headers
18517 # can be detected and how.
18518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18520 #include <ac_nonexistent.h>
18522 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18523 # Broken: success on invalid input.
18526 # Passes both tests.
18530 rm -f conftest.err conftest.
$ac_ext
18533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18534 rm -f conftest.err conftest.
$ac_ext
18535 if $ac_preproc_ok; then :
18540 ac_cv_prog_CXXCPP
=$CXXCPP
18543 CXXCPP
=$ac_cv_prog_CXXCPP
18545 ac_cv_prog_CXXCPP
=$CXXCPP
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18548 $as_echo "$CXXCPP" >&6; }
18549 ac_preproc_ok
=false
18550 for ac_cxx_preproc_warn_flag
in '' yes
18552 # Use a header file that comes with gcc, so configuring glibc
18553 # with a fresh cross-compiler works.
18554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18555 # <limits.h> exists even on freestanding compilers.
18556 # On the NeXT, cc -E runs the code through the compiler's parser,
18557 # not just through cpp. "Syntax error" is here to catch this case.
18558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18561 # include <limits.h>
18563 # include <assert.h>
18567 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18570 # Broken: fails on valid input.
18573 rm -f conftest.err conftest.
$ac_ext
18575 # OK, works on sane cases. Now check whether nonexistent headers
18576 # can be detected and how.
18577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <ac_nonexistent.h>
18581 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18582 # Broken: success on invalid input.
18585 # Passes both tests.
18589 rm -f conftest.err conftest.
$ac_ext
18592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18593 rm -f conftest.err conftest.
$ac_ext
18594 if $ac_preproc_ok; then :
18597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18599 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18600 See \`config.log' for more details." "$LINENO" 5; }
18604 ac_cpp
='$CPP $CPPFLAGS'
18605 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18606 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18610 _lt_caught_CXX_error
=yes
18614 ac_cpp
='$CXXCPP $CPPFLAGS'
18615 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18619 archive_cmds_need_lc_CXX
=no
18620 allow_undefined_flag_CXX
=
18621 always_export_symbols_CXX
=no
18622 archive_expsym_cmds_CXX
=
18623 compiler_needs_object_CXX
=no
18624 export_dynamic_flag_spec_CXX
=
18625 hardcode_direct_CXX
=no
18626 hardcode_direct_absolute_CXX
=no
18627 hardcode_libdir_flag_spec_CXX
=
18628 hardcode_libdir_flag_spec_ld_CXX
=
18629 hardcode_libdir_separator_CXX
=
18630 hardcode_minus_L_CXX
=no
18631 hardcode_shlibpath_var_CXX
=unsupported
18632 hardcode_automatic_CXX
=no
18633 inherit_rpath_CXX
=no
18635 module_expsym_cmds_CXX
=
18636 link_all_deplibs_CXX
=unknown
18637 old_archive_cmds_CXX
=$old_archive_cmds
18638 reload_flag_CXX
=$reload_flag
18639 reload_cmds_CXX
=$reload_cmds
18640 no_undefined_flag_CXX
=
18641 whole_archive_flag_spec_CXX
=
18642 enable_shared_with_static_runtimes_CXX
=no
18644 # Source file extension for C++ test sources.
18647 # Object file extension for compiled C++ test sources.
18651 # No sense in running all these tests if we already determined that
18652 # the CXX compiler isn't working. Some variables (like enable_shared)
18653 # are currently assumed to apply to all compilers on this platform,
18654 # and will be corrupted by setting them based on a non-working compiler.
18655 if test "$_lt_caught_CXX_error" != yes; then
18656 # Code to be used in simple compile tests
18657 lt_simple_compile_test_code
="int some_variable = 0;"
18659 # Code to be used in simple link tests
18660 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18669 # If no C compiler was specified, use CC.
18672 # If no C compiler flags were specified, use CFLAGS.
18673 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18675 # Allow CC to be a program name with arguments.
18679 # save warnings/boilerplate of simple test code
18680 ac_outfile
=conftest.
$ac_objext
18681 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18682 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18683 _lt_compiler_boilerplate
=`cat conftest.err`
18686 ac_outfile
=conftest.
$ac_objext
18687 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18688 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18689 _lt_linker_boilerplate
=`cat conftest.err`
18693 # Allow CC to be a program name with arguments.
18698 lt_save_with_gnu_ld
=$with_gnu_ld
18699 lt_save_path_LD
=$lt_cv_path_LD
18700 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18701 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18703 $as_unset lt_cv_prog_gnu_ld
18705 if test -n "${lt_cv_path_LDCXX+set}"; then
18706 lt_cv_path_LD
=$lt_cv_path_LDCXX
18708 $as_unset lt_cv_path_LD
18710 test -z "${LDCXX+set}" || LD
=$LDCXX
18714 for cc_temp
in $compiler""; do
18716 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18717 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18722 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18725 if test -n "$compiler"; then
18726 # We don't want -fno-exception when compiling C++ code, so set the
18727 # no_builtin_flag separately
18728 if test "$GXX" = yes; then
18729 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18731 lt_prog_compiler_no_builtin_flag_CXX
=
18734 if test "$GXX" = yes; then
18735 # Set up default GNU C++ configuration
18739 # Check whether --with-gnu-ld was given.
18740 if test "${with_gnu_ld+set}" = set; then :
18741 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18747 if test "$GCC" = yes; then
18748 # Check if gcc -print-prog-name=ld gives a path.
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18750 $as_echo_n "checking for ld used by $CC... " >&6; }
18753 # gcc leaves a trailing carriage return which upsets mingw
18754 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18756 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18759 # Accept absolute paths.
18761 re_direlt
='/[^/][^/]*/\.\./'
18762 # Canonicalize the pathname of ld
18763 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18764 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18765 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18767 test -z "$LD" && LD
="$ac_prog"
18770 # If it fails, then pretend we aren't using GCC.
18774 # If it is relative, then search for the first ld in PATH.
18775 with_gnu_ld
=unknown
18778 elif test "$with_gnu_ld" = yes; then
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18780 $as_echo_n "checking for GNU ld... " >&6; }
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18783 $as_echo_n "checking for non-GNU ld... " >&6; }
18785 if test "${lt_cv_path_LD+set}" = set; then :
18786 $as_echo_n "(cached) " >&6
18788 if test -z "$LD"; then
18789 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18790 for ac_dir
in $PATH; do
18792 test -z "$ac_dir" && ac_dir
=.
18793 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18794 lt_cv_path_LD
="$ac_dir/$ac_prog"
18795 # Check to see if the program is GNU ld. I'd rather use --version,
18796 # but apparently some variants of GNU ld only accept -v.
18797 # Break only if it was the GNU/non-GNU ld that we prefer.
18798 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18799 *GNU
* |
*'with BFD'*)
18800 test "$with_gnu_ld" != no
&& break
18803 test "$with_gnu_ld" != yes && break
18810 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18814 LD
="$lt_cv_path_LD"
18815 if test -n "$LD"; then
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18817 $as_echo "$LD" >&6; }
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 $as_echo "no" >&6; }
18822 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18824 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18825 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18826 $as_echo_n "(cached) " >&6
18828 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18829 case `$LD -v 2>&1 </dev/null` in
18830 *GNU
* |
*'with BFD'*)
18831 lt_cv_prog_gnu_ld
=yes
18834 lt_cv_prog_gnu_ld
=no
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18839 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18840 with_gnu_ld
=$lt_cv_prog_gnu_ld
18848 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18849 # archiving commands below assume that GNU ld is being used.
18850 if test "$with_gnu_ld" = yes; then
18851 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18852 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'
18854 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18855 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18857 # If archive_cmds runs LD, not CC, wlarc should be empty
18858 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18859 # investigate it a little bit more. (MM)
18862 # ancient GNU ld didn't support --whole-archive et. al.
18863 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18864 $GREP 'no-whole-archive' > /dev
/null
; then
18865 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18867 whole_archive_flag_spec_CXX
=
18873 # A generic and very simple default shared library creation
18874 # command for GNU C++ for the case where it uses the native
18875 # linker, instead of GNU ld. If possible, this setting should
18876 # overridden to take advantage of the native linker features on
18877 # the platform it is being used on.
18878 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18881 # Commands to make compiler produce verbose output that lists
18882 # what "hidden" libraries, object files and flags are used when
18883 # linking a shared library.
18884 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18892 # PORTME: fill in a description of your system's C++ link characteristics
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18894 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18898 # FIXME: insert proper C++ library support
18902 if test "$host_cpu" = ia64
; then
18903 # On IA64, the linker does run time linking by default, so we don't
18904 # have to do anything special.
18905 aix_use_runtimelinking
=no
18906 exp_sym_flag
='-Bexport'
18909 aix_use_runtimelinking
=no
18911 # Test if we are trying to use run time linking or normal
18912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18913 # need to do runtime linking.
18914 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18915 for ld_flag
in $LDFLAGS; do
18918 aix_use_runtimelinking
=yes
18926 exp_sym_flag
='-bexport'
18927 no_entry_flag
='-bnoentry'
18930 # When large executables or shared objects are built, AIX ld can
18931 # have problems creating the table of contents. If linking a library
18932 # or program results in "error TOC overflow" add -mminimal-toc to
18933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18936 archive_cmds_CXX
=''
18937 hardcode_direct_CXX
=yes
18938 hardcode_direct_absolute_CXX
=yes
18939 hardcode_libdir_separator_CXX
=':'
18940 link_all_deplibs_CXX
=yes
18941 file_list_spec_CXX
='${wl}-f,'
18943 if test "$GXX" = yes; then
18944 case $host_os in aix4.
[012]|aix4.
[012].
*)
18945 # We only want to do this on AIX 4.2 and lower, the check
18946 # below for broken collect2 doesn't work under 4.3+
18947 collect2name
=`${CC} -print-prog-name=collect2`
18948 if test -f "$collect2name" &&
18949 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18951 # We have reworked collect2
18954 # We have old collect2
18955 hardcode_direct_CXX
=unsupported
18956 # It fails to find uninstalled libraries when the uninstalled
18957 # path is not listed in the libpath. Setting hardcode_minus_L
18958 # to unsupported forces relinking
18959 hardcode_minus_L_CXX
=yes
18960 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18961 hardcode_libdir_separator_CXX
=
18964 shared_flag
='-shared'
18965 if test "$aix_use_runtimelinking" = yes; then
18966 shared_flag
="$shared_flag "'${wl}-G'
18970 if test "$host_cpu" = ia64
; then
18971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18972 # chokes on -Wl,-G. The following line is correct:
18975 if test "$aix_use_runtimelinking" = yes; then
18976 shared_flag
='${wl}-G'
18978 shared_flag
='${wl}-bM:SRE'
18983 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18984 # It seems that -bexpall does not export symbols beginning with
18985 # underscore (_), so it is better to generate a list of symbols to
18987 always_export_symbols_CXX
=yes
18988 if test "$aix_use_runtimelinking" = yes; then
18989 # Warning - without using the other runtime loading flags (-brtl),
18990 # -berok will link without error, but may produce a broken library.
18991 allow_undefined_flag_CXX
='-berok'
18992 # Determine the default libpath from the value encoded in an empty
18994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
19005 if ac_fn_cxx_try_link
"$LINENO"; then :
19007 lt_aix_libpath_sed
='
19008 /Import File Strings/,/^$/ {
19014 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19015 # Check for a 64-bit object if we didn't find anything.
19016 if test -z "$aix_libpath"; then
19017 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19020 rm -f core conftest.err conftest.
$ac_objext \
19021 conftest
$ac_exeext conftest.
$ac_ext
19022 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19024 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19026 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"
19028 if test "$host_cpu" = ia64
; then
19029 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19030 allow_undefined_flag_CXX
="-z nodefs"
19031 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"
19033 # Determine the default libpath from the value encoded in an
19034 # empty executable.
19035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19046 if ac_fn_cxx_try_link
"$LINENO"; then :
19048 lt_aix_libpath_sed
='
19049 /Import File Strings/,/^$/ {
19055 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19056 # Check for a 64-bit object if we didn't find anything.
19057 if test -z "$aix_libpath"; then
19058 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19061 rm -f core conftest.err conftest.
$ac_objext \
19062 conftest
$ac_exeext conftest.
$ac_ext
19063 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19065 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19066 # Warning - without using the other run time loading flags,
19067 # -berok will link without error, but may produce a broken library.
19068 no_undefined_flag_CXX
=' ${wl}-bernotok'
19069 allow_undefined_flag_CXX
=' ${wl}-berok'
19070 if test "$with_gnu_ld" = yes; then
19071 # We only use this code for GNU lds that support --whole-archive.
19072 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19074 # Exported symbols can be pulled into shared objects from archives
19075 whole_archive_flag_spec_CXX
='$convenience'
19077 archive_cmds_need_lc_CXX
=yes
19078 # This is similar to how AIX traditionally builds its shared
19080 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'
19086 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19087 allow_undefined_flag_CXX
=unsupported
19088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19089 # support --undefined. This deserves some investigation. FIXME
19090 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19097 case $cc_basename in
19099 # FIXME: insert proper C++ library support
19105 cygwin
* | mingw
* | pw32
* | cegcc
*)
19106 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19107 # as there is no search path for DLLs.
19108 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19109 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19110 allow_undefined_flag_CXX
=unsupported
19111 always_export_symbols_CXX
=no
19112 enable_shared_with_static_runtimes_CXX
=yes
19114 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19115 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'
19116 # If the export-symbols file already is a .def file (1st line
19117 # is EXPORTS), use it as is; otherwise, prepend...
19118 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19119 cp $export_symbols $output_objdir/$soname.def;
19121 echo EXPORTS > $output_objdir/$soname.def;
19122 cat $export_symbols >> $output_objdir/$soname.def;
19124 $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'
19129 darwin
* | rhapsody
*)
19132 archive_cmds_need_lc_CXX
=no
19133 hardcode_direct_CXX
=no
19134 hardcode_automatic_CXX
=yes
19135 hardcode_shlibpath_var_CXX
=unsupported
19136 if test "$lt_cv_ld_force_load" = "yes"; then
19137 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\"`'
19139 whole_archive_flag_spec_CXX
=''
19141 link_all_deplibs_CXX
=yes
19142 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19143 case $cc_basename in
19144 ifort
*) _lt_dar_can_shared
=yes ;;
19145 *) _lt_dar_can_shared
=$GCC ;;
19147 if test "$_lt_dar_can_shared" = "yes"; then
19148 output_verbose_link_cmd
=func_echo_all
19149 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}"
19150 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19151 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}"
19152 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}"
19153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19154 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}"
19155 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}"
19165 case $cc_basename in
19167 # FIXME: insert proper C++ library support
19171 # Green Hills C++ Compiler
19172 # FIXME: insert proper C++ library support
19176 # FIXME: insert proper C++ library support
19183 # C++ shared libraries reported to be fairly broken before
19189 archive_cmds_need_lc_CXX
=no
19192 freebsd
* | dragonfly
*)
19193 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19202 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19203 link_all_deplibs_CXX
=yes
19207 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19208 hardcode_libdir_separator_CXX
=:
19209 export_dynamic_flag_spec_CXX
='${wl}-E'
19210 hardcode_direct_CXX
=yes
19211 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19212 # but as the default
19213 # location of the library.
19215 case $cc_basename in
19217 # FIXME: insert proper C++ library support
19221 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'
19222 # Commands to make compiler produce verbose output that lists
19223 # what "hidden" libraries, object files and flags are used when
19224 # linking a shared library.
19226 # There doesn't appear to be a way to prevent this compiler from
19227 # explicitly linking system object files so we need to strip them
19228 # from the output so that they don't get included in the library
19230 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"'
19233 if test "$GXX" = yes; then
19234 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'
19236 # FIXME: insert proper C++ library support
19244 if test $with_gnu_ld = no
; then
19245 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19246 hardcode_libdir_separator_CXX
=:
19252 export_dynamic_flag_spec_CXX
='${wl}-E'
19258 hardcode_direct_CXX
=no
19259 hardcode_shlibpath_var_CXX
=no
19262 hardcode_direct_CXX
=yes
19263 hardcode_direct_absolute_CXX
=yes
19264 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19265 # but as the default
19266 # location of the library.
19270 case $cc_basename in
19272 # FIXME: insert proper C++ library support
19278 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19281 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19284 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19287 # Commands to make compiler produce verbose output that lists
19288 # what "hidden" libraries, object files and flags are used when
19289 # linking a shared library.
19291 # There doesn't appear to be a way to prevent this compiler from
19292 # explicitly linking system object files so we need to strip them
19293 # from the output so that they don't get included in the library
19295 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"'
19298 if test "$GXX" = yes; then
19299 if test $with_gnu_ld = no
; then
19302 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19305 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19308 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'
19313 # FIXME: insert proper C++ library support
19321 hardcode_direct_CXX
=no
19322 hardcode_shlibpath_var_CXX
=no
19323 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19324 export_dynamic_flag_spec_CXX
='${wl}-E'
19325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19326 # Instead, shared libraries are loaded at an image base (0x10000000 by
19327 # default) and relocated if they conflict, which is a slow very memory
19328 # consuming and fragmenting process. To avoid this, we pick a random,
19329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19331 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'
19332 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'
19335 case $cc_basename in
19338 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'
19340 # Archives containing C++ object files must be created using
19341 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19342 # necessary to make sure instantiated templates are included
19344 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19347 if test "$GXX" = yes; then
19348 if test "$with_gnu_ld" = no
; then
19349 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'
19351 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'
19354 link_all_deplibs_CXX
=yes
19357 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX
=:
19359 inherit_rpath_CXX
=yes
19362 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19363 case $cc_basename in
19365 # Kuck and Associates, Inc. (KAI) C++ Compiler
19367 # KCC will only create a shared library if the output file
19368 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19369 # to its proper name (with version) after linking.
19370 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'
19371 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'
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19376 # There doesn't appear to be a way to prevent this compiler from
19377 # explicitly linking system object files so we need to strip them
19378 # from the output so that they don't get included in the library
19380 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"'
19382 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19383 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19385 # Archives containing C++ object files must be created using
19386 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19387 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19392 # version 8.0 and above of icpc choke on multiply defined symbols
19393 # if we add $predep_objects and $postdep_objects, however 7.1 and
19394 # earlier do not add the objects themselves.
19395 case `$CC -V 2>&1` in
19397 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398 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'
19400 *) # Version 8.0 or newer
19403 ia64
*) tmp_idyn
=' -i_dynamic';;
19405 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19406 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'
19409 archive_cmds_need_lc_CXX
=no
19410 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19411 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19412 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19415 # Portland Group C++ compiler
19417 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19418 prelink_cmds_CXX
='tpldir=Template.dir~
19420 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19421 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19422 old_archive_cmds_CXX
='tpldir=Template.dir~
19424 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19425 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19427 archive_cmds_CXX
='tpldir=Template.dir~
19429 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19430 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19431 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19434 $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'
19436 *) # Version 6 and above use weak symbols
19437 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19438 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'
19442 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19443 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19444 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'
19448 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 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'
19451 runpath_var
=LD_RUN_PATH
19452 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19453 hardcode_libdir_separator_CXX
=:
19455 # Commands to make compiler produce verbose output that lists
19456 # what "hidden" libraries, object files and flags are used when
19457 # linking a shared library.
19459 # There doesn't appear to be a way to prevent this compiler from
19460 # explicitly linking system object files so we need to strip them
19461 # from the output so that they don't get included in the library
19463 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'
19465 xl
* | mpixl
* | bgxl
*)
19466 # IBM XL 8.0 on PPC, with GNU ld
19467 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19468 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19469 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470 if test "x$supports_anon_versioning" = xyes
; then
19471 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19473 echo "local: *; };" >> $output_objdir/$libname.ver~
19474 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19478 case `$CC -V 2>&1 | sed 5q` in
19481 no_undefined_flag_CXX
=' -zdefs'
19482 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19483 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'
19484 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19485 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'
19486 compiler_needs_object_CXX
=yes
19488 # Not sure whether something based on
19489 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19491 output_verbose_link_cmd
='func_echo_all'
19493 # Archives containing C++ object files must be created using
19494 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19495 # necessary to make sure instantiated templates are included
19497 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19505 # FIXME: insert proper C++ library support
19510 # FIXME: insert proper C++ library support
19515 case $cc_basename in
19517 # FIXME: insert proper C++ library support
19521 # FIXME: insert proper C++ library support
19528 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19529 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19531 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19532 hardcode_direct_CXX
=yes
19533 hardcode_shlibpath_var_CXX
=no
19535 # Workaround some broken pre-1.5 toolchains
19536 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19544 # C++ shared libraries are fairly broken
19549 if test -f /usr
/libexec
/ld.so
; then
19550 hardcode_direct_CXX
=yes
19551 hardcode_shlibpath_var_CXX
=no
19552 hardcode_direct_absolute_CXX
=yes
19553 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19554 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19556 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19557 export_dynamic_flag_spec_CXX
='${wl}-E'
19558 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19560 output_verbose_link_cmd
=func_echo_all
19566 osf3
* | osf4
* | osf5
*)
19567 case $cc_basename in
19569 # Kuck and Associates, Inc. (KAI) C++ Compiler
19571 # KCC will only create a shared library if the output file
19572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19573 # to its proper name (with version) after linking.
19574 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'
19576 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19577 hardcode_libdir_separator_CXX
=:
19579 # Archives containing C++ object files must be created using
19580 # the KAI C++ compiler.
19582 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19583 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19587 # Rational C++ 2.4.1
19588 # FIXME: insert proper C++ library support
19594 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19595 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'
19596 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19599 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19600 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'
19601 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19602 echo "-hidden">> $lib.exp~
19603 $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~
19605 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19609 hardcode_libdir_separator_CXX
=:
19611 # Commands to make compiler produce verbose output that lists
19612 # what "hidden" libraries, object files and flags are used when
19613 # linking a shared library.
19615 # There doesn't appear to be a way to prevent this compiler from
19616 # explicitly linking system object files so we need to strip them
19617 # from the output so that they don't get included in the library
19619 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"'
19622 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19623 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19626 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'
19629 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'
19633 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19634 hardcode_libdir_separator_CXX
=:
19636 # Commands to make compiler produce verbose output that lists
19637 # what "hidden" libraries, object files and flags are used when
19638 # linking a shared library.
19639 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19642 # FIXME: insert proper C++ library support
19650 # FIXME: insert proper C++ library support
19655 case $cc_basename in
19658 # FIXME: insert proper C++ library support
19663 # FIXME: insert proper C++ library support
19667 # FIXME: insert proper C++ library support
19674 case $cc_basename in
19676 # Sun C++ 4.2, 5.x and Centerline C++
19677 archive_cmds_need_lc_CXX
=yes
19678 no_undefined_flag_CXX
=' -zdefs'
19679 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19680 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19681 $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'
19683 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19684 hardcode_shlibpath_var_CXX
=no
19686 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19688 # The compiler driver will combine and reorder linker options,
19689 # but understands `-z linker_flag'.
19690 # Supported since Solaris 2.6 (maybe 2.5.1?)
19691 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19694 link_all_deplibs_CXX
=yes
19696 output_verbose_link_cmd
='func_echo_all'
19698 # Archives containing C++ object files must be created using
19699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19700 # necessary to make sure instantiated templates are included
19702 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19705 # Green Hills C++ Compiler
19706 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19708 # The C++ compiler must be used to create the archive.
19709 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19712 # GNU C++ compiler with Solaris linker
19713 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19714 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19715 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19716 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19717 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19718 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19720 # Commands to make compiler produce verbose output that lists
19721 # what "hidden" libraries, object files and flags are used when
19722 # linking a shared library.
19723 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19725 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19727 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19728 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19729 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19731 # Commands to make compiler produce verbose output that lists
19732 # what "hidden" libraries, object files and flags are used when
19733 # linking a shared library.
19734 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19737 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19739 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19741 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19749 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19750 no_undefined_flag_CXX
='${wl}-z,text'
19751 archive_cmds_need_lc_CXX
=no
19752 hardcode_shlibpath_var_CXX
=no
19753 runpath_var
='LD_RUN_PATH'
19755 case $cc_basename in
19757 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19758 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 sysv5
* | sco3.2v5
* | sco5v6
*)
19768 # Note: We can NOT use -z defs as we might desire, because we do not
19769 # link with -lc, and that would cause any symbols used from libc to
19770 # always be unresolved, which means just about no library would
19771 # ever link correctly. If we're not using GNU ld we use -z text
19772 # though, which does catch some bad symbols but isn't as heavy-handed
19774 no_undefined_flag_CXX
='${wl}-z,text'
19775 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19776 archive_cmds_need_lc_CXX
=no
19777 hardcode_shlibpath_var_CXX
=no
19778 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19779 hardcode_libdir_separator_CXX
=':'
19780 link_all_deplibs_CXX
=yes
19781 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19782 runpath_var
='LD_RUN_PATH'
19784 case $cc_basename in
19786 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19787 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19788 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19789 '"$old_archive_cmds_CXX"
19790 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19791 '"$reload_cmds_CXX"
19794 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19795 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19801 case $cc_basename in
19803 # NonStop-UX NCC 3.20
19804 # FIXME: insert proper C++ library support
19808 # FIXME: insert proper C++ library support
19815 # FIXME: insert proper C++ library support
19820 # FIXME: insert proper C++ library support
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19826 $as_echo "$ld_shlibs_CXX" >&6; }
19827 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19833 ## There is no encapsulation within the following macros, do not change
19834 ## the running order or otherwise move them around unless you know exactly
19835 ## what you are doing...
19836 # Dependencies to place before and after the object being linked:
19837 predep_objects_CXX
=
19838 postdep_objects_CXX
=
19841 compiler_lib_search_path_CXX
=
19843 cat > conftest.
$ac_ext <<_LT_EOF
19847 Foo (void) { a = 0; }
19853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19854 (eval $ac_compile) 2>&5
19856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19857 test $ac_status = 0; }; then
19858 # Parse the compiler output and extract the necessary
19859 # objects, libraries and library flags.
19861 # Sentinel used to keep track of whether or not we are before
19862 # the conftest object file.
19863 pre_test_object_deps_done
=no
19865 for p
in `eval "$output_verbose_link_cmd"`; do
19869 # Some compilers place space between "-{L,R}" and the path.
19870 # Remove the space.
19871 if test $p = "-L" ||
19872 test $p = "-R"; then
19879 if test "$pre_test_object_deps_done" = no
; then
19882 # Internal compiler library paths should come after those
19883 # provided the user. The postdeps already come after the
19884 # user supplied libs so there is no need to process them.
19885 if test -z "$compiler_lib_search_path_CXX"; then
19886 compiler_lib_search_path_CXX
="${prev}${p}"
19888 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19891 # The "-l" case would never come before the object being
19892 # linked, so don't bother handling this case.
19895 if test -z "$postdeps_CXX"; then
19896 postdeps_CXX
="${prev}${p}"
19898 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19904 # This assumes that the test object file only shows up
19905 # once in the compiler output.
19906 if test "$p" = "conftest.$objext"; then
19907 pre_test_object_deps_done
=yes
19911 if test "$pre_test_object_deps_done" = no
; then
19912 if test -z "$predep_objects_CXX"; then
19913 predep_objects_CXX
="$p"
19915 predep_objects_CXX
="$predep_objects_CXX $p"
19918 if test -z "$postdep_objects_CXX"; then
19919 postdep_objects_CXX
="$p"
19921 postdep_objects_CXX
="$postdep_objects_CXX $p"
19926 *) ;; # Ignore the rest.
19934 echo "libtool.m4: error: problem compiling CXX test program"
19937 $RM -f confest.
$objext
19939 # PORTME: override above test on systems where it is broken
19942 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19943 # hack all around it, let's just trust "g++" to DTRT.
19944 predep_objects_CXX
=
19945 postdep_objects_CXX
=
19950 case `$CC -V 2>&1 | sed 5q` in
19954 # The more standards-conforming stlport4 library is
19955 # incompatible with the Cstd library. Avoid specifying
19956 # it if it's in CXXFLAGS. Ignore libCrun as
19957 # -library=stlport4 depends on it.
19958 case " $CXX $CXXFLAGS " in
19959 *" -library=stlport4 "*)
19960 solaris_use_stlport4
=yes
19964 if test "$solaris_use_stlport4" != yes; then
19965 postdeps_CXX
='-library=Cstd -library=Crun'
19972 case $cc_basename in
19974 # The more standards-conforming stlport4 library is
19975 # incompatible with the Cstd library. Avoid specifying
19976 # it if it's in CXXFLAGS. Ignore libCrun as
19977 # -library=stlport4 depends on it.
19978 case " $CXX $CXXFLAGS " in
19979 *" -library=stlport4 "*)
19980 solaris_use_stlport4
=yes
19984 # Adding this requires a known-good setup of shared libraries for
19985 # Sun compiler versions before 5.6, else PIC objects from an old
19986 # archive will be linked into the output, leading to subtle bugs.
19987 if test "$solaris_use_stlport4" != yes; then
19988 postdeps_CXX
='-library=Cstd -library=Crun'
19996 case " $postdeps_CXX " in
19997 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19999 compiler_lib_search_dirs_CXX
=
20000 if test -n "${compiler_lib_search_path_CXX}"; then
20001 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20034 lt_prog_compiler_wl_CXX
=
20035 lt_prog_compiler_pic_CXX
=
20036 lt_prog_compiler_static_CXX
=
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20041 # C++ specific cases for pic, static, wl, etc.
20042 if test "$GXX" = yes; then
20043 lt_prog_compiler_wl_CXX
='-Wl,'
20044 lt_prog_compiler_static_CXX
='-static'
20048 # All AIX code is PIC.
20049 if test "$host_cpu" = ia64
; then
20050 # AIX 5 now supports IA64 processor
20051 lt_prog_compiler_static_CXX
='-Bstatic'
20053 lt_prog_compiler_pic_CXX
='-fPIC'
20059 # see comment about AmigaOS4 .so support
20060 lt_prog_compiler_pic_CXX
='-fPIC'
20063 # FIXME: we need at least 68020 code to build shared libraries, but
20064 # adding the `-m68020' flag to GCC prevents building anything better,
20066 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20071 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20072 # PIC is the default for these OSes.
20074 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20075 # This hack is so that the source file can tell whether it is being
20076 # built for inclusion in a dll (and should export symbols for example).
20077 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20078 # (--disable-auto-import) libraries
20079 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20081 darwin
* | rhapsody
*)
20082 # PIC is the default on this platform
20083 # Common symbols not allowed in MH_DYLIB files
20084 lt_prog_compiler_pic_CXX
='-fno-common'
20087 # DJGPP does not support shared libraries at all
20088 lt_prog_compiler_pic_CXX
=
20091 # PIC is the default for Haiku.
20092 # The "-static" flag exists, but is broken.
20093 lt_prog_compiler_static_CXX
=
20096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20097 # Instead, we relocate shared libraries at runtime.
20100 if test -d /usr
/nec
; then
20101 lt_prog_compiler_pic_CXX
=-Kconform_pic
20105 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20106 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20107 # sets the default TLS model and affects inlining.
20112 lt_prog_compiler_pic_CXX
='-fPIC'
20117 # QNX uses GNU C++, but need to define -shared option too, otherwise
20118 # it will coredump.
20119 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20122 lt_prog_compiler_pic_CXX
='-fPIC'
20128 # All AIX code is PIC.
20129 if test "$host_cpu" = ia64
; then
20130 # AIX 5 now supports IA64 processor
20131 lt_prog_compiler_static_CXX
='-Bstatic'
20133 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20137 case $cc_basename in
20139 # Green Hills C++ Compiler
20140 # _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"
20145 case $cc_basename in
20147 lt_prog_compiler_pic_CXX
='-KPIC'
20150 # Green Hills C++ Compiler
20151 lt_prog_compiler_pic_CXX
='-pic'
20157 freebsd
* | dragonfly
*)
20158 # FreeBSD uses GNU C++
20160 hpux9
* | hpux10
* | hpux11
*)
20161 case $cc_basename in
20163 lt_prog_compiler_wl_CXX
='-Wl,'
20164 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20165 if test "$host_cpu" != ia64
; then
20166 lt_prog_compiler_pic_CXX
='+Z'
20170 lt_prog_compiler_wl_CXX
='-Wl,'
20171 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20177 lt_prog_compiler_pic_CXX
='+Z'
20186 # This is c89, which is MS Visual C++ (no shared libs)
20187 # Anyone wants to do a port?
20189 irix5
* | irix6
* | nonstopux
*)
20190 case $cc_basename in
20192 lt_prog_compiler_wl_CXX
='-Wl,'
20193 lt_prog_compiler_static_CXX
='-non_shared'
20194 # CC pic flag -KPIC is the default.
20200 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20201 case $cc_basename in
20204 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20205 lt_prog_compiler_pic_CXX
='-fPIC'
20208 # old Intel C++ for x86_64 which still supported -KPIC.
20209 lt_prog_compiler_wl_CXX
='-Wl,'
20210 lt_prog_compiler_pic_CXX
='-KPIC'
20211 lt_prog_compiler_static_CXX
='-static'
20214 # Intel C++, used to be incompatible with GCC.
20215 # ICC 10 doesn't accept -KPIC any more.
20216 lt_prog_compiler_wl_CXX
='-Wl,'
20217 lt_prog_compiler_pic_CXX
='-fPIC'
20218 lt_prog_compiler_static_CXX
='-static'
20221 # Portland Group C++ compiler
20222 lt_prog_compiler_wl_CXX
='-Wl,'
20223 lt_prog_compiler_pic_CXX
='-fpic'
20224 lt_prog_compiler_static_CXX
='-Bstatic'
20228 # Make sure the PIC flag is empty. It appears that all Alpha
20229 # Linux and Compaq Tru64 Unix objects are PIC.
20230 lt_prog_compiler_pic_CXX
=
20231 lt_prog_compiler_static_CXX
='-non_shared'
20233 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20234 # IBM XL 8.0, 9.0 on PPC and BlueGene
20235 lt_prog_compiler_wl_CXX
='-Wl,'
20236 lt_prog_compiler_pic_CXX
='-qpic'
20237 lt_prog_compiler_static_CXX
='-qstaticlink'
20240 case `$CC -V 2>&1 | sed 5q` in
20243 lt_prog_compiler_pic_CXX
='-KPIC'
20244 lt_prog_compiler_static_CXX
='-Bstatic'
20245 lt_prog_compiler_wl_CXX
='-Qoption ld '
20256 case $cc_basename in
20258 lt_prog_compiler_pic_CXX
='-W c,exportall'
20267 # QNX uses GNU C++, but need to define -shared option too, otherwise
20268 # it will coredump.
20269 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20271 osf3
* | osf4
* | osf5
*)
20272 case $cc_basename in
20274 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20277 # Rational C++ 2.4.1
20278 lt_prog_compiler_pic_CXX
='-pic'
20281 # Digital/Compaq C++
20282 lt_prog_compiler_wl_CXX
='-Wl,'
20283 # Make sure the PIC flag is empty. It appears that all Alpha
20284 # Linux and Compaq Tru64 Unix objects are PIC.
20285 lt_prog_compiler_pic_CXX
=
20286 lt_prog_compiler_static_CXX
='-non_shared'
20295 case $cc_basename in
20297 # Sun C++ 4.2, 5.x and Centerline C++
20298 lt_prog_compiler_pic_CXX
='-KPIC'
20299 lt_prog_compiler_static_CXX
='-Bstatic'
20300 lt_prog_compiler_wl_CXX
='-Qoption ld '
20303 # Green Hills C++ Compiler
20304 lt_prog_compiler_pic_CXX
='-PIC'
20311 case $cc_basename in
20314 lt_prog_compiler_pic_CXX
='-pic'
20315 lt_prog_compiler_static_CXX
='-Bstatic'
20319 lt_prog_compiler_pic_CXX
='-pic'
20325 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20326 case $cc_basename in
20328 lt_prog_compiler_wl_CXX
='-Wl,'
20329 lt_prog_compiler_pic_CXX
='-KPIC'
20330 lt_prog_compiler_static_CXX
='-Bstatic'
20335 case $cc_basename in
20337 # NonStop-UX NCC 3.20
20338 lt_prog_compiler_pic_CXX
='-KPIC'
20347 lt_prog_compiler_can_build_shared_CXX
=no
20353 # For platforms which do not support PIC, -DPIC is meaningless:
20355 lt_prog_compiler_pic_CXX
=
20358 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20362 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20367 # Check to make sure the PIC flag actually works.
20369 if test -n "$lt_prog_compiler_pic_CXX"; then
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20371 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20372 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20373 $as_echo_n "(cached) " >&6
20375 lt_cv_prog_compiler_pic_works_CXX
=no
20376 ac_outfile
=conftest.
$ac_objext
20377 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20378 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20379 # Insert the option either (1) after the last *FLAGS variable, or
20380 # (2) before a word containing "conftest.", or (3) at the end.
20381 # Note that $ac_compile itself does not contain backslashes and begins
20382 # with a dollar sign (not a hyphen), so the echo should work correctly.
20383 # The option is referenced via a variable to avoid confusing sed.
20384 lt_compile
=`echo "$ac_compile" | $SED \
20385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20387 -e 's:$: $lt_compiler_flag:'`
20388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20389 (eval "$lt_compile" 2>conftest.err
)
20391 cat conftest.err
>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 if (exit $ac_status) && test -s "$ac_outfile"; then
20394 # The compiler can only warn and ignore the option if not recognized
20395 # So say no if there are warnings other than the usual output.
20396 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20397 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20398 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20399 lt_cv_prog_compiler_pic_works_CXX
=yes
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20406 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20408 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20409 case $lt_prog_compiler_pic_CXX in
20411 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20414 lt_prog_compiler_pic_CXX
=
20415 lt_prog_compiler_can_build_shared_CXX
=no
20423 # Check to make sure the static flag actually works.
20425 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20427 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20428 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20429 $as_echo_n "(cached) " >&6
20431 lt_cv_prog_compiler_static_works_CXX
=no
20432 save_LDFLAGS
="$LDFLAGS"
20433 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20434 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20435 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20436 # The linker can only warn and ignore the option if not recognized
20437 # So say no if there are warnings
20438 if test -s conftest.err
; then
20439 # Append any errors to the config.log.
20440 cat conftest.err
1>&5
20441 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20442 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20443 if diff conftest.exp conftest.er2
>/dev
/null
; then
20444 lt_cv_prog_compiler_static_works_CXX
=yes
20447 lt_cv_prog_compiler_static_works_CXX
=yes
20451 LDFLAGS
="$save_LDFLAGS"
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20455 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20457 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20460 lt_prog_compiler_static_CXX
=
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20468 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20469 $as_echo_n "(cached) " >&6
20471 lt_cv_prog_compiler_c_o_CXX
=no
20472 $RM -r conftest
2>/dev
/null
20476 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20478 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20479 # Insert the option either (1) after the last *FLAGS variable, or
20480 # (2) before a word containing "conftest.", or (3) at the end.
20481 # Note that $ac_compile itself does not contain backslashes and begins
20482 # with a dollar sign (not a hyphen), so the echo should work correctly.
20483 lt_compile
=`echo "$ac_compile" | $SED \
20484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20486 -e 's:$: $lt_compiler_flag:'`
20487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20488 (eval "$lt_compile" 2>out
/conftest.err
)
20490 cat out
/conftest.err
>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20494 # The compiler can only warn and ignore the option if not recognized
20495 # So say no if there are warnings
20496 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20497 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20498 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20499 lt_cv_prog_compiler_c_o_CXX
=yes
20504 # SGI C++ compiler will create directory out/ii_files/ for
20505 # template instantiation
20506 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20507 $RM out
/* && rmdir out
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20514 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20520 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20521 $as_echo_n "(cached) " >&6
20523 lt_cv_prog_compiler_c_o_CXX
=no
20524 $RM -r conftest
2>/dev
/null
20528 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20530 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20531 # Insert the option either (1) after the last *FLAGS variable, or
20532 # (2) before a word containing "conftest.", or (3) at the end.
20533 # Note that $ac_compile itself does not contain backslashes and begins
20534 # with a dollar sign (not a hyphen), so the echo should work correctly.
20535 lt_compile
=`echo "$ac_compile" | $SED \
20536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20538 -e 's:$: $lt_compiler_flag:'`
20539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20540 (eval "$lt_compile" 2>out
/conftest.err
)
20542 cat out
/conftest.err
>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20546 # The compiler can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
20548 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20549 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20550 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20551 lt_cv_prog_compiler_c_o_CXX
=yes
20556 # SGI C++ compiler will create directory out/ii_files/ for
20557 # template instantiation
20558 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20559 $RM out
/* && rmdir out
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20566 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20571 hard_links
="nottested"
20572 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20573 # do not overwrite the value of need_locks provided by the user
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20575 $as_echo_n "checking if we can lock with hard links... " >&6; }
20578 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20580 ln conftest.a conftest.b
2>&5 || hard_links
=no
20581 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20583 $as_echo "$hard_links" >&6; }
20584 if test "$hard_links" = no
; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20586 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20598 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20601 # If we're using GNU nm, then we don't want the "-C" option.
20602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20603 # Also, AIX nm treats weak defined symbols like other global defined
20604 # symbols, whereas GNU nm marks them as "W".
20605 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20606 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'
20608 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'
20612 export_symbols_cmds_CXX
="$ltdll_cmds"
20614 cygwin
* | mingw
* | cegcc
*)
20615 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'
20618 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20621 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20624 $as_echo "$ld_shlibs_CXX" >&6; }
20625 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20627 with_gnu_ld_CXX
=$with_gnu_ld
20635 # Do we need to explicitly link libc?
20637 case "x$archive_cmds_need_lc_CXX" in
20639 # Assume -lc should be added
20640 archive_cmds_need_lc_CXX
=yes
20642 if test "$enable_shared" = yes && test "$GCC" = yes; then
20643 case $archive_cmds_CXX in
20645 # FIXME: we may have to deal with multi-command sequences.
20648 # Test whether the compiler implicitly links with -lc since on some
20649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20650 # to ld, don't add -lc before -lgcc.
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20652 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20653 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20654 $as_echo_n "(cached) " >&6
20657 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20660 (eval $ac_compile) 2>&5
20662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20663 test $ac_status = 0; } 2>conftest.err
; then
20666 libobjs
=conftest.
$ac_objext
20668 wl
=$lt_prog_compiler_wl_CXX
20669 pic_flag
=$lt_prog_compiler_pic_CXX
20675 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20676 allow_undefined_flag_CXX
=
20677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20678 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20681 test $ac_status = 0; }
20683 lt_cv_archive_cmds_need_lc_CXX
=no
20685 lt_cv_archive_cmds_need_lc_CXX
=yes
20687 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20689 cat conftest.err
1>&5
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20695 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20696 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20767 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20769 library_names_spec
=
20770 libname_spec
='lib$name'
20774 postuninstall_cmds
=
20778 shlibpath_overrides_runpath
=unknown
20780 dynamic_linker
="$host_os ld.so"
20781 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20782 need_lib_prefix
=unknown
20783 hardcode_into_libs
=no
20785 # when you set need_version to no, make sure it does not cause -set_version
20786 # flags to be left without arguments
20787 need_version
=unknown
20792 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20793 shlibpath_var
=LIBPATH
20795 # AIX 3 has no versioning support, so we append a major version to the name.
20796 soname_spec
='${libname}${release}${shared_ext}$major'
20803 hardcode_into_libs
=yes
20804 if test "$host_cpu" = ia64
; then
20805 # AIX 5 supports IA64
20806 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20807 shlibpath_var
=LD_LIBRARY_PATH
20809 # With GCC up to 2.95.x, collect2 would create an import file
20810 # for dependence libraries. The import file would start with
20811 # the line `#! .'. This would cause the generated library to
20812 # depend on `.', always an invalid library. This was fixed in
20813 # development snapshots of GCC prior to 3.0.
20815 aix4 | aix4.
[01] | aix4.
[01].
*)
20816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20818 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20821 can_build_shared
=no
20825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20826 # soname into executable. Probably we can add versioning support to
20827 # collect2, so additional links can be useful in future.
20828 if test "$aix_use_runtimelinking" = yes; then
20829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20830 # instead of lib<name>.a to let people know that these are not
20831 # typical AIX shared libraries.
20832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20834 # We preserve .a as extension for shared libraries through AIX4.2
20835 # and later when we are not doing run time linking.
20836 library_names_spec
='${libname}${release}.a $libname.a'
20837 soname_spec
='${libname}${release}${shared_ext}$major'
20839 shlibpath_var
=LIBPATH
20846 # Since July 2007 AmigaOS4 officially supports .so libraries.
20847 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 library_names_spec
='$libname.ixlibrary $libname.a'
20852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20853 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'
20859 library_names_spec
='${libname}${shared_ext}'
20860 dynamic_linker
="$host_os ld.so"
20861 shlibpath_var
=LIBRARY_PATH
20867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 soname_spec
='${libname}${release}${shared_ext}$major'
20869 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20870 shlibpath_var
=LD_LIBRARY_PATH
20871 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20872 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20873 # the default ld.so.conf also contains /usr/contrib/lib and
20874 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20875 # libtool to hard-code these into programs
20878 cygwin
* | mingw
* | pw32
* | cegcc
*)
20879 version_type
=windows
20884 case $GCC,$host_os in
20885 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20886 library_names_spec
='$libname.dll.a'
20887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20888 postinstall_cmds
='base_file=`basename \${file}`~
20889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20890 dldir=$destdir/`dirname \$dlpath`~
20891 test -d \$dldir || mkdir -p \$dldir~
20892 $install_prog $dir/$dlname \$dldir/$dlname~
20893 chmod a+x \$dldir/$dlname~
20894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20897 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20898 dlpath=$dir/\$dldll~
20900 shlibpath_overrides_runpath
=yes
20904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20905 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20909 # MinGW DLLs use traditional 'lib' prefix
20910 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20913 # pw32 DLLs use 'pw' prefix rather than 'lib'
20914 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20920 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20923 dynamic_linker
='Win32 ld.exe'
20924 # FIXME: first we should search . and the directory the executable is in
20928 darwin
* | rhapsody
*)
20929 dynamic_linker
="$host_os dyld"
20930 version_type
=darwin
20933 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20934 soname_spec
='${libname}${release}${major}$shared_ext'
20935 shlibpath_overrides_runpath
=yes
20936 shlibpath_var
=DYLD_LIBRARY_PATH
20937 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20939 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20947 soname_spec
='${libname}${release}${shared_ext}$major'
20948 shlibpath_var
=LD_LIBRARY_PATH
20951 freebsd
* | dragonfly
*)
20952 # DragonFly does not have aout. When/if they implement a new
20953 # versioning mechanism, adjust this.
20954 if test -x /usr
/bin
/objformat
; then
20955 objformat
=`/usr/bin/objformat`
20958 freebsd
[23].
*) objformat
=aout
;;
20959 *) objformat
=elf
;;
20962 version_type
=freebsd-
$objformat
20963 case $version_type in
20965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20970 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20974 shlibpath_var
=LD_LIBRARY_PATH
20977 shlibpath_overrides_runpath
=yes
20979 freebsd3.
[01]* | freebsdelf3.
[01]*)
20980 shlibpath_overrides_runpath
=yes
20981 hardcode_into_libs
=yes
20983 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20984 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20985 shlibpath_overrides_runpath
=no
20986 hardcode_into_libs
=yes
20988 *) # from 4.6 on, and DragonFly
20989 shlibpath_overrides_runpath
=yes
20990 hardcode_into_libs
=yes
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21000 soname_spec
='${libname}${release}${shared_ext}$major'
21001 shlibpath_var
=LD_LIBRARY_PATH
21002 hardcode_into_libs
=yes
21009 dynamic_linker
="$host_os runtime_loader"
21010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21011 soname_spec
='${libname}${release}${shared_ext}$major'
21012 shlibpath_var
=LIBRARY_PATH
21013 shlibpath_overrides_runpath
=yes
21014 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21015 hardcode_into_libs
=yes
21018 hpux9
* | hpux10
* | hpux11
*)
21019 # Give a soname corresponding to the major version so that dld.sl refuses to
21020 # link against other versions.
21027 hardcode_into_libs
=yes
21028 dynamic_linker
="$host_os dld.so"
21029 shlibpath_var
=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 soname_spec
='${libname}${release}${shared_ext}$major'
21033 if test "X$HPUX_IA64_MODE" = X32
; then
21034 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21036 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21038 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21042 hardcode_into_libs
=yes
21043 dynamic_linker
="$host_os dld.sl"
21044 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21045 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 soname_spec
='${libname}${release}${shared_ext}$major'
21048 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21049 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21053 dynamic_linker
="$host_os dld.sl"
21054 shlibpath_var
=SHLIB_PATH
21055 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057 soname_spec
='${libname}${release}${shared_ext}$major'
21060 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21061 postinstall_cmds
='chmod 555 $lib'
21062 # or fails outright, so override atomically:
21063 install_override_mode
=555
21070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21071 soname_spec
='${libname}${release}${shared_ext}$major'
21072 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21073 shlibpath_var
=LD_LIBRARY_PATH
21074 shlibpath_overrides_runpath
=no
21075 hardcode_into_libs
=yes
21078 irix5
* | irix6
* | nonstopux
*)
21080 nonstopux
*) version_type
=nonstopux
;;
21082 if test "$lt_cv_prog_gnu_ld" = yes; then
21090 soname_spec
='${libname}${release}${shared_ext}$major'
21091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21093 irix5
* | nonstopux
*)
21094 libsuff
= shlibsuff
=
21097 case $LD in # libtool.m4 will add one of these switches to LD
21098 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21099 libsuff
= shlibsuff
= libmagic
=32-bit;;
21100 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21101 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21102 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21103 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21104 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21108 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21109 shlibpath_overrides_runpath
=no
21110 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21111 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21112 hardcode_into_libs
=yes
21115 # No shared lib support for Linux oldld, aout, or coff.
21116 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21120 # This must be Linux ELF.
21121 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec
='${libname}${release}${shared_ext}$major'
21127 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21128 shlibpath_var
=LD_LIBRARY_PATH
21129 shlibpath_overrides_runpath
=no
21131 # Some binutils ld are patched to set DT_RUNPATH
21132 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21133 $as_echo_n "(cached) " >&6
21135 lt_cv_shlibpath_overrides_runpath
=no
21136 save_LDFLAGS
=$LDFLAGS
21137 save_libdir
=$libdir
21138 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21139 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h. */
21151 if ac_fn_cxx_try_link
"$LINENO"; then :
21152 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21153 lt_cv_shlibpath_overrides_runpath
=yes
21156 rm -f core conftest.err conftest.
$ac_objext \
21157 conftest
$ac_exeext conftest.
$ac_ext
21158 LDFLAGS
=$save_LDFLAGS
21159 libdir
=$save_libdir
21163 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21165 # This implies no fast_install, which is unacceptable.
21166 # Some rework will be needed to allow for fast_install
21167 # before this can be enabled.
21168 hardcode_into_libs
=yes
21170 # Append ld.so.conf contents to the search path
21171 if test -f /etc
/ld.so.conf
; then
21172 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' ' '`
21173 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21176 # We used to test for /lib/ld.so.1 and disable shared libraries on
21177 # powerpc, because MkLinux only supported shared libraries with the
21178 # GNU dynamic linker. Since this was broken with cross compilers,
21179 # most powerpc-linux boxes support dynamic linking these days and
21180 # people can always --disable-shared, the test was removed, and we
21181 # assume the GNU/Linux dynamic linker is in use.
21182 dynamic_linker
='GNU/Linux ld.so'
21189 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21191 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21192 dynamic_linker
='NetBSD (a.out) ld.so'
21194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21195 soname_spec
='${libname}${release}${shared_ext}$major'
21196 dynamic_linker
='NetBSD ld.elf_so'
21198 shlibpath_var
=LD_LIBRARY_PATH
21199 shlibpath_overrides_runpath
=yes
21200 hardcode_into_libs
=yes
21205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 shlibpath_var
=LD_LIBRARY_PATH
21207 shlibpath_overrides_runpath
=yes
21214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21215 soname_spec
='${libname}${release}${shared_ext}$major'
21216 shlibpath_var
=LD_LIBRARY_PATH
21217 shlibpath_overrides_runpath
=no
21218 hardcode_into_libs
=yes
21219 dynamic_linker
='ldqnx.so'
21224 sys_lib_dlsearch_path_spec
="/usr/lib"
21226 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21228 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21229 *) need_version
=no
;;
21231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21232 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21233 shlibpath_var
=LD_LIBRARY_PATH
21234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21236 openbsd2.
[89] | openbsd2.
[89].
*)
21237 shlibpath_overrides_runpath
=no
21240 shlibpath_overrides_runpath
=yes
21244 shlibpath_overrides_runpath
=yes
21249 libname_spec
='$name'
21252 library_names_spec
='$libname${shared_ext} $libname.a'
21253 dynamic_linker
='OS/2 ld.exe'
21254 shlibpath_var
=LIBPATH
21257 osf3
* | osf4
* | osf5
*)
21261 soname_spec
='${libname}${release}${shared_ext}$major'
21262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21263 shlibpath_var
=LD_LIBRARY_PATH
21264 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21265 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 soname_spec
='${libname}${release}${shared_ext}$major'
21278 shlibpath_var
=LD_LIBRARY_PATH
21279 shlibpath_overrides_runpath
=yes
21280 hardcode_into_libs
=yes
21281 # ldd complains unless libraries are executable
21282 postinstall_cmds
='chmod +x $lib'
21287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21288 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21289 shlibpath_var
=LD_LIBRARY_PATH
21290 shlibpath_overrides_runpath
=yes
21291 if test "$with_gnu_ld" = yes; then
21299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 soname_spec
='${libname}${release}${shared_ext}$major'
21301 shlibpath_var
=LD_LIBRARY_PATH
21302 case $host_vendor in
21304 shlibpath_overrides_runpath
=no
21306 runpath_var
=LD_RUN_PATH
21314 shlibpath_overrides_runpath
=no
21315 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21321 if test -d /usr
/nec
;then
21323 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21324 soname_spec
='$libname${shared_ext}.$major'
21325 shlibpath_var
=LD_LIBRARY_PATH
21329 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21330 version_type
=freebsd-elf
21333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21334 soname_spec
='${libname}${release}${shared_ext}$major'
21335 shlibpath_var
=LD_LIBRARY_PATH
21336 shlibpath_overrides_runpath
=yes
21337 hardcode_into_libs
=yes
21338 if test "$with_gnu_ld" = yes; then
21339 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21341 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21344 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21348 sys_lib_dlsearch_path_spec
='/usr/lib'
21352 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21357 shlibpath_var
=LD_LIBRARY_PATH
21358 shlibpath_overrides_runpath
=no
21359 hardcode_into_libs
=yes
21364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21365 soname_spec
='${libname}${release}${shared_ext}$major'
21366 shlibpath_var
=LD_LIBRARY_PATH
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21374 $as_echo "$dynamic_linker" >&6; }
21375 test "$dynamic_linker" = no
&& can_build_shared
=no
21377 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21378 if test "$GCC" = yes; then
21379 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21382 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21383 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21385 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21386 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21427 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21428 hardcode_action_CXX
=
21429 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21430 test -n "$runpath_var_CXX" ||
21431 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21433 # We can hardcode non-existent directories.
21434 if test "$hardcode_direct_CXX" != no
&&
21435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21436 # have to relink, otherwise we might link with an installed library
21437 # when we should be linking with a yet-to-be-installed one
21438 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21439 test "$hardcode_minus_L_CXX" != no
; then
21440 # Linking always hardcodes the temporary library directory.
21441 hardcode_action_CXX
=relink
21443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21444 hardcode_action_CXX
=immediate
21447 # We cannot hardcode anything, or else we can only hardcode existing
21449 hardcode_action_CXX
=unsupported
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21452 $as_echo "$hardcode_action_CXX" >&6; }
21454 if test "$hardcode_action_CXX" = relink ||
21455 test "$inherit_rpath_CXX" = yes; then
21456 # Fast installation is not supported
21457 enable_fast_install
=no
21458 elif test "$shlibpath_overrides_runpath" = yes ||
21459 test "$enable_shared" = no
; then
21460 # Fast installation is not necessary
21461 enable_fast_install
=needless
21470 fi # test -n "$compiler"
21476 with_gnu_ld
=$lt_save_with_gnu_ld
21477 lt_cv_path_LDCXX
=$lt_cv_path_LD
21478 lt_cv_path_LD
=$lt_save_path_LD
21479 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21480 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21481 fi # test "$_lt_caught_CXX_error" != yes
21484 ac_cpp
='$CPP $CPPFLAGS'
21485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21504 # Only expand once:
21510 # Identify the assembler which will work hand-in-glove with the newly
21511 # built GCC, so that we can examine its features. This is the assembler
21512 # which will be driven by the driver program.
21514 # If build != host, and we aren't building gas in-tree, we identify a
21515 # build->target assembler and hope that it will have the same features
21516 # as the host->target assembler we'll be using.
21517 gcc_cv_gas_major_version
=
21518 gcc_cv_gas_minor_version
=
21519 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21521 if test "${gcc_cv_as+set}" = set; then :
21525 if test -x "$DEFAULT_ASSEMBLER"; then
21526 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21527 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21528 && test -f ..
/gas
/Makefile \
21529 && test x
$build = x
$host; then
21530 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21531 elif test -x as
$build_exeext; then
21532 # Build using assembler in the current directory.
21533 gcc_cv_as
=.
/as
$build_exeext
21534 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21535 gcc_cv_as
="$AS_FOR_TARGET"
21537 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21538 set dummy
$AS_FOR_TARGET; ac_word
=$2
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21540 $as_echo_n "checking for $ac_word... " >&6; }
21541 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21542 $as_echo_n "(cached) " >&6
21546 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21550 for as_dir
in $PATH
21553 test -z "$as_dir" && as_dir
=.
21554 for ac_exec_ext
in '' $ac_executable_extensions; do
21555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21556 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21567 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21568 if test -n "$gcc_cv_as"; then
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21570 $as_echo "$gcc_cv_as" >&6; }
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21573 $as_echo "no" >&6; }
21580 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21582 case "$ORIGINAL_AS_FOR_TARGET" in
21583 .
/as | .
/as
$build_exeext) ;;
21584 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21589 $as_echo_n "checking what assembler to use... " >&6; }
21590 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21591 # Single tree build which includes gas. We want to prefer it
21592 # over whatever linker top-level may have detected, since
21593 # we'll use what we're building after installation anyway.
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21595 $as_echo "newly built gas" >&6; }
21597 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21598 for f
in $gcc_cv_as_bfd_srcdir/configure \
21599 $gcc_cv_as_gas_srcdir/configure \
21600 $gcc_cv_as_gas_srcdir/configure.
in \
21601 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21602 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21603 if test x
$gcc_cv_gas_version != x
; then
21607 case $gcc_cv_gas_version in
21609 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21611 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21612 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21613 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21614 case $gcc_cv_gas_patch_version in
21615 "") gcc_cv_gas_patch_version
="0" ;;
21617 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21618 + $gcc_cv_gas_minor_version \) \* 1000 \
21619 + $gcc_cv_gas_patch_version`
21621 in_tree_gas_is_elf
=no
21622 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21623 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21624 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21626 in_tree_gas_is_elf
=yes
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21630 $as_echo "$gcc_cv_as" >&6; }
21635 # Check whether --enable-ld was given.
21636 if test "${enable_ld+set}" = set; then :
21637 enableval
=$enable_ld; case "${enableval}" in
21645 install_gold_as_default
=no
21646 # Check whether --enable-gold was given.
21647 if test "${enable_gold+set}" = set; then :
21648 enableval
=$enable_gold; case "${enableval}" in
21650 install_gold_as_default
=yes
21653 if test x
${default_ld} != x
; then
21654 install_gold_as_default
=yes
21660 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21666 # Identify the linker which will work hand-in-glove with the newly
21667 # built GCC, so that we can examine its features. This is the linker
21668 # which will be driven by the driver program.
21670 # If build != host, and we aren't building gas in-tree, we identify a
21671 # build->target linker and hope that it will have the same features
21672 # as the host->target linker we'll be using.
21673 gcc_cv_gld_major_version
=
21674 gcc_cv_gld_minor_version
=
21675 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21676 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21677 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21679 if test "${gcc_cv_ld+set}" = set; then :
21683 if test -x "$DEFAULT_LINKER"; then
21684 gcc_cv_ld
="$DEFAULT_LINKER"
21685 elif test $install_gold_as_default = yes \
21686 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21687 && test -f ..
/gold
/Makefile \
21688 && test x
$build = x
$host; then
21689 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21690 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21691 && test -f ..
/ld
/Makefile \
21692 && test x
$build = x
$host; then
21693 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21694 elif test -x collect-ld
$build_exeext; then
21695 # Build using linker in the current directory.
21696 gcc_cv_ld
=.
/collect-ld
$build_exeext
21697 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21698 gcc_cv_ld
="$LD_FOR_TARGET"
21700 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21701 set dummy
$LD_FOR_TARGET; ac_word
=$2
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21703 $as_echo_n "checking for $ac_word... " >&6; }
21704 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21709 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21713 for as_dir
in $PATH
21716 test -z "$as_dir" && as_dir
=.
21717 for ac_exec_ext
in '' $ac_executable_extensions; do
21718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21719 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21730 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21731 if test -n "$gcc_cv_ld"; then
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21733 $as_echo "$gcc_cv_ld" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21736 $as_echo "no" >&6; }
21743 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21744 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21745 # if the PLUGIN_LD is set ld-new, just have it as ld
21746 # as that is the installed named.
21747 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21748 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21749 PLUGIN_LD_SUFFIX
=ld
21752 # Check whether --with-plugin-ld was given.
21753 if test "${with_plugin_ld+set}" = set; then :
21754 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21755 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21756 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21762 cat >>confdefs.h
<<_ACEOF
21763 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21767 # Check to see if we are using gold instead of ld
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21769 $as_echo_n "checking whether we are using gold... " >&6; }
21771 if test x
$gcc_cv_ld != x
; then
21772 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21773 |
grep "GNU gold" > /dev
/null
; then
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21778 $as_echo "$ld_is_gold" >&6; }
21780 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21782 case "$ORIGINAL_LD_FOR_TARGET" in
21783 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21784 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21789 $as_echo_n "checking what linker to use... " >&6; }
21790 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21791 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21792 # Single tree build which includes ld. We want to prefer it
21793 # over whatever linker top-level may have detected, since
21794 # we'll use what we're building after installation anyway.
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21796 $as_echo "newly built ld" >&6; }
21798 in_tree_ld_is_elf
=no
21799 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21800 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21801 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21802 in_tree_ld_is_elf
=yes
21803 elif test "$ld_is_gold" = yes; then
21804 in_tree_ld_is_elf
=yes
21806 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
21808 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21809 if test x
$gcc_cv_gld_version != x
; then
21813 case $gcc_cv_gld_version in
21815 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21817 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21818 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21819 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21820 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21823 $as_echo "$gcc_cv_ld" >&6; }
21825 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21826 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21827 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21833 # Figure out what nm we will be using.
21834 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21835 if test "${gcc_cv_nm+set}" = set; then :
21839 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21840 && test -f ..
/binutils
/Makefile \
21841 && test x
$build = x
$host; then
21842 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21843 elif test -x nm
$build_exeext; then
21844 gcc_cv_nm
=.
/nm
$build_exeext
21845 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21846 gcc_cv_nm
="$NM_FOR_TARGET"
21848 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21849 set dummy
$NM_FOR_TARGET; ac_word
=$2
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21851 $as_echo_n "checking for $ac_word... " >&6; }
21852 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
21857 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21861 for as_dir
in $PATH
21864 test -z "$as_dir" && as_dir
=.
21865 for ac_exec_ext
in '' $ac_executable_extensions; do
21866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21867 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21878 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21879 if test -n "$gcc_cv_nm"; then
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21881 $as_echo "$gcc_cv_nm" >&6; }
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 $as_echo "no" >&6; }
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21892 $as_echo_n "checking what nm to use... " >&6; }
21893 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21894 # Single tree build which includes binutils.
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21896 $as_echo "newly built nm" >&6; }
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21900 $as_echo "$gcc_cv_nm" >&6; }
21904 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21906 case "$ORIGINAL_NM_FOR_TARGET" in
21907 .
/nm | .
/nm
$build_exeext) ;;
21908 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21913 # Figure out what objdump we will be using.
21914 if test "${gcc_cv_objdump+set}" = set; then :
21918 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21919 && test -f ..
/binutils
/Makefile \
21920 && test x
$build = x
$host; then
21921 # Single tree build which includes binutils.
21922 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21923 elif test -x objdump
$build_exeext; then
21924 gcc_cv_objdump
=.
/objdump
$build_exeext
21925 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21926 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21928 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21929 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21931 $as_echo_n "checking for $ac_word... " >&6; }
21932 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21935 case $gcc_cv_objdump in
21937 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21941 for as_dir
in $PATH
21944 test -z "$as_dir" && as_dir
=.
21945 for ac_exec_ext
in '' $ac_executable_extensions; do
21946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21947 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21958 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21959 if test -n "$gcc_cv_objdump"; then
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21961 $as_echo "$gcc_cv_objdump" >&6; }
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964 $as_echo "no" >&6; }
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21972 $as_echo_n "checking what objdump to use... " >&6; }
21973 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21974 # Single tree build which includes binutils.
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21976 $as_echo "newly built objdump" >&6; }
21977 elif test x
$gcc_cv_objdump = x
; then
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21979 $as_echo "not found" >&6; }
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21982 $as_echo "$gcc_cv_objdump" >&6; }
21985 # Figure out what readelf we will be using.
21986 if test "${gcc_cv_readelf+set}" = set; then :
21990 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21991 && test -f ..
/binutils
/Makefile \
21992 && test x
$build = x
$host; then
21993 # Single tree build which includes binutils.
21994 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21995 elif test -x readelf
$build_exeext; then
21996 gcc_cv_readelf
=.
/readelf
$build_exeext
21998 # Extract the first word of "readelf", so it can be a program name with args.
21999 set dummy readelf
; ac_word
=$2
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22001 $as_echo_n "checking for $ac_word... " >&6; }
22002 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22003 $as_echo_n "(cached) " >&6
22005 case $gcc_cv_readelf in
22007 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22011 for as_dir
in $PATH
22014 test -z "$as_dir" && as_dir
=.
22015 for ac_exec_ext
in '' $ac_executable_extensions; do
22016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22017 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22028 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22029 if test -n "$gcc_cv_readelf"; then
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22031 $as_echo "$gcc_cv_readelf" >&6; }
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22042 $as_echo_n "checking what readelf to use... " >&6; }
22043 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22044 # Single tree build which includes binutils.
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22046 $as_echo "newly built readelf" >&6; }
22047 elif test x
$gcc_cv_readelf = x
; then
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22049 $as_echo "not found" >&6; }
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22052 $as_echo "$gcc_cv_readelf" >&6; }
22055 # Figure out what assembler alignment features are present.
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22057 $as_echo_n "checking assembler flags... " >&6; }
22058 if test "${gcc_cv_as_flags+set}" = set; then :
22059 $as_echo_n "(cached) " >&6
22062 i
[34567]86-*-linux*)
22063 gcc_cv_as_flags
=--32
22065 x86_64-
*-linux-gnux32)
22066 gcc_cv_as_flags
=--x32
22069 gcc_cv_as_flags
=--64
22071 powerpc
*-*-darwin*)
22072 gcc_cv_as_flags
="-arch ppc"
22075 gcc_cv_as_flags
=" "
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22080 $as_echo "$gcc_cv_as_flags" >&6; }
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22083 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22084 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22087 gcc_cv_as_balign_and_p2align
=no
22088 if test $in_tree_gas = yes; then
22089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22090 then gcc_cv_as_balign_and_p2align
=yes
22092 elif test x
$gcc_cv_as != x
; then
22093 $as_echo '.balign 4
22094 .p2align 2' > conftest.s
22095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22102 gcc_cv_as_balign_and_p2align
=yes
22104 echo "configure: failed program was" >&5
22107 rm -f conftest.o conftest.s
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22111 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22112 if test $gcc_cv_as_balign_and_p2align = yes; then
22114 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22119 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22120 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22121 $as_echo_n "(cached) " >&6
22123 gcc_cv_as_max_skip_p2align
=no
22124 if test $in_tree_gas = yes; then
22125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22126 then gcc_cv_as_max_skip_p2align
=yes
22128 elif test x
$gcc_cv_as != x
; then
22129 $as_echo '.p2align 4,,7' > conftest.s
22130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22132 (eval $ac_try) 2>&5
22134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22135 test $ac_status = 0; }; }
22137 gcc_cv_as_max_skip_p2align
=yes
22139 echo "configure: failed program was" >&5
22142 rm -f conftest.o conftest.s
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22146 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22147 if test $gcc_cv_as_max_skip_p2align = yes; then
22149 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22154 $as_echo_n "checking assembler for .literal16... " >&6; }
22155 if test "${gcc_cv_as_literal16+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22158 gcc_cv_as_literal16
=no
22159 if test $in_tree_gas = yes; then
22160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22161 then gcc_cv_as_literal16
=yes
22163 elif test x
$gcc_cv_as != x
; then
22164 $as_echo '.literal16' > conftest.s
22165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22167 (eval $ac_try) 2>&5
22169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170 test $ac_status = 0; }; }
22172 gcc_cv_as_literal16
=yes
22174 echo "configure: failed program was" >&5
22177 rm -f conftest.o conftest.s
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22181 $as_echo "$gcc_cv_as_literal16" >&6; }
22182 if test $gcc_cv_as_literal16 = yes; then
22184 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22189 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22190 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22193 gcc_cv_as_subsection_m1
=no
22194 if test $in_tree_gas = yes; then
22195 if test $in_tree_gas_is_elf = yes \
22196 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22197 then gcc_cv_as_subsection_m1
=yes
22199 elif test x
$gcc_cv_as != x
; then
22200 $as_echo 'conftest_label1: .word 0
22202 conftest_label2: .word 0
22203 .previous' > conftest.s
22204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22206 (eval $ac_try) 2>&5
22208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22209 test $ac_status = 0; }; }
22211 if test x
$gcc_cv_nm != x
; then
22212 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22213 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22214 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22216 else gcc_cv_as_subsection_m1
=yes
22218 rm -f conftest.nm1 conftest.nm2
22221 echo "configure: failed program was" >&5
22224 rm -f conftest.o conftest.s
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22228 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22229 if test $gcc_cv_as_subsection_m1 = yes; then
22231 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22236 $as_echo_n "checking assembler for .weak... " >&6; }
22237 if test "${gcc_cv_as_weak+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22241 if test $in_tree_gas = yes; then
22242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22243 then gcc_cv_as_weak
=yes
22245 elif test x
$gcc_cv_as != x
; then
22246 $as_echo ' .weak foobar' > conftest.s
22247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22249 (eval $ac_try) 2>&5
22251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22252 test $ac_status = 0; }; }
22256 echo "configure: failed program was" >&5
22259 rm -f conftest.o conftest.s
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22263 $as_echo "$gcc_cv_as_weak" >&6; }
22264 if test $gcc_cv_as_weak = yes; then
22266 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22271 $as_echo_n "checking assembler for .weakref... " >&6; }
22272 if test "${gcc_cv_as_weakref+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22275 gcc_cv_as_weakref
=no
22276 if test $in_tree_gas = yes; then
22277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22278 then gcc_cv_as_weakref
=yes
22280 elif test x
$gcc_cv_as != x
; then
22281 $as_echo ' .weakref foobar, barfnot' > conftest.s
22282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22284 (eval $ac_try) 2>&5
22286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22287 test $ac_status = 0; }; }
22289 gcc_cv_as_weakref
=yes
22291 echo "configure: failed program was" >&5
22294 rm -f conftest.o conftest.s
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22298 $as_echo "$gcc_cv_as_weakref" >&6; }
22299 if test $gcc_cv_as_weakref = yes; then
22301 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22306 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22307 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22308 $as_echo_n "(cached) " >&6
22310 gcc_cv_as_nsubspa_comdat
=no
22311 if test $in_tree_gas = yes; then
22312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22313 then gcc_cv_as_nsubspa_comdat
=yes
22315 elif test x
$gcc_cv_as != x
; then
22316 $as_echo ' .SPACE $TEXT$
22317 .NSUBSPA $CODE$,COMDAT' > conftest.s
22318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22320 (eval $ac_try) 2>&5
22322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22323 test $ac_status = 0; }; }
22325 gcc_cv_as_nsubspa_comdat
=yes
22327 echo "configure: failed program was" >&5
22330 rm -f conftest.o conftest.s
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22334 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22335 if test $gcc_cv_as_nsubspa_comdat = yes; then
22337 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22341 # .hidden needs to be supported in both the assembler and the linker,
22342 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22343 # This is irritatingly difficult to feature test for; we have to check the
22344 # date string after the version number. If we've got an in-tree
22345 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22347 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22349 $as_echo_n "checking assembler for .hidden... " >&6; }
22350 if test "${gcc_cv_as_hidden+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22353 gcc_cv_as_hidden
=no
22354 if test $in_tree_gas = yes; then
22355 if test $in_tree_gas_is_elf = yes \
22356 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22357 then gcc_cv_as_hidden
=yes
22359 elif test x
$gcc_cv_as != x
; then
22360 $as_echo ' .hidden foobar
22361 foobar:' > conftest.s
22362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22364 (eval $ac_try) 2>&5
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; }; }
22369 gcc_cv_as_hidden
=yes
22371 echo "configure: failed program was" >&5
22374 rm -f conftest.o conftest.s
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22378 $as_echo "$gcc_cv_as_hidden" >&6; }
22380 case "${target}" in
22382 # Darwin as has some visibility support, though with a different syntax.
22383 gcc_cv_as_hidden
=yes
22387 # gnu_indirect_function type is an extension proposed at
22388 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22389 # selection of function implementation
22390 # Check whether --enable-gnu-indirect-function was given.
22391 if test "${enable_gnu_indirect_function+set}" = set; then :
22392 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22394 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22395 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22398 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22402 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22404 cat >>confdefs.h
<<_ACEOF
22405 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22410 if test $in_tree_ld != yes ; then
22411 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22412 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22413 if test x
"$ld_is_gold" = xyes
; then
22414 # GNU gold --version looks like this:
22416 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22418 # We extract the binutils version which is more familiar and specific
22419 # than the gold version.
22420 ld_vers
=`echo $ld_ver | sed -n \
22421 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22423 # GNU ld --version looks like this:
22425 # GNU ld (GNU Binutils) 2.21.51.20110225
22426 ld_vers
=`echo $ld_ver | sed -n \
22427 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22429 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'`
22430 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22431 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22432 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22434 case "${target}" in
22436 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22439 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22440 # /usr/ccs/bin/ld has been configured.
22441 ld_ver
=`$gcc_cv_ld -V 2>&1`
22442 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22443 ld_vers
=`echo $ld_ver | sed -n \
22444 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22445 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22446 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22454 $as_echo_n "checking linker for .hidden support... " >&6; }
22455 if test "${gcc_cv_ld_hidden+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22458 if test $in_tree_ld = yes ; then
22459 gcc_cv_ld_hidden
=no
22460 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 \
22461 && test $in_tree_ld_is_elf = yes; then
22462 gcc_cv_ld_hidden
=yes
22465 gcc_cv_ld_hidden
=yes
22466 if test x
"$ld_is_gold" = xyes
; then
22468 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22469 case "${target}" in
22470 mmix-knuth-mmixware
)
22471 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22472 gcc_cv_ld_hidden
=no
22475 if test 0"$ld_date" -lt 20020404; then
22476 if test -n "$ld_date"; then
22477 # If there was date string, but was earlier than 2002-04-04, fail
22478 gcc_cv_ld_hidden
=no
22479 elif test -z "$ld_vers"; then
22480 # If there was no date string nor ld version number, something is wrong
22481 gcc_cv_ld_hidden
=no
22483 test -z "$ld_vers_patch" && ld_vers_patch
=0
22484 if test "$ld_vers_major" -lt 2; then
22485 gcc_cv_ld_hidden
=no
22486 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22487 gcc_cv_ld_hidden
="no"
22488 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22489 gcc_cv_ld_hidden
=no
22494 case "${target}" in
22496 # Darwin ld has some visibility support.
22497 gcc_cv_ld_hidden
=yes
22499 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22500 gcc_cv_ld_hidden
=yes
22502 *-*-solaris2.1
[0-9]*)
22503 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22504 # .symbolic was only added in Solaris 9 12/02.
22505 gcc_cv_ld_hidden
=yes
22508 gcc_cv_ld_hidden
=no
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22515 $as_echo "$gcc_cv_ld_hidden" >&6; }
22516 libgcc_visibility
=no
22519 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22520 libgcc_visibility
=yes
22522 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22527 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22528 gcc_cv_ld_ro_rw_mix
=unknown
22529 if test $in_tree_ld = yes ; then
22530 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 \
22531 && test $in_tree_ld_is_elf = yes; then
22532 gcc_cv_ld_ro_rw_mix
=read-write
22534 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22535 echo '.section myfoosect, "a"' > conftest1.s
22536 echo '.section myfoosect, "aw"' > conftest2.s
22537 echo '.byte 1' >> conftest2.s
22538 echo '.section myfoosect, "a"' > conftest3.s
22539 echo '.byte 0' >> conftest3.s
22540 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22541 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22542 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22543 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22544 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22545 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22546 | sed -e '/myfoosect/!d' -e N`
22547 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22548 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22549 gcc_cv_ld_ro_rw_mix
=read-only
22551 gcc_cv_ld_ro_rw_mix
=read-write
22555 rm -f conftest.
* conftest
[123].
*
22557 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22559 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22563 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22565 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22566 case "${target}" in
22569 # Solaris 2 ld -V output looks like this for a regular version:
22571 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22573 # but test versions add stuff at the end:
22575 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22577 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22578 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22579 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22580 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22581 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22582 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22588 # Check whether --enable-initfini-array was given.
22589 if test "${enable_initfini_array+set}" = set; then :
22590 enableval
=$enable_initfini_array;
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22594 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22595 if test "${gcc_cv_initfini_array+set}" = set; then :
22596 $as_echo_n "(cached) " >&6
22598 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22599 case "${target}" in
22601 if test "$cross_compiling" = yes; then :
22602 gcc_cv_initfini_array
=no
22604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22605 /* end confdefs.h. */
22608 #error Not an ELF OS
22610 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22611 if it can be used. */
22613 int main (void) { return x; }
22614 int foo (void) { x = 0; }
22615 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22618 if ac_fn_c_try_run
"$LINENO"; then :
22619 gcc_cv_initfini_array
=yes
22621 gcc_cv_initfini_array
=no
22623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22628 gcc_cv_initfini_array
=no
22629 if test $in_tree_ld = yes ; then
22630 if test "$gcc_cv_gld_major_version" -eq 2 \
22631 -a "$gcc_cv_gld_minor_version" -ge 22 \
22632 -o "$gcc_cv_gld_major_version" -gt 2 \
22633 && test $in_tree_ld_is_elf = yes; then
22634 gcc_cv_initfini_array
=yes
22636 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22637 cat > conftest.s
<<\EOF
22638 .section .dtors
,"a",%progbits
22640 .byte
'A', 'A', 'A', 'A'
22641 .section .ctors
,"a",%progbits
22643 .byte
'B', 'B', 'B', 'B'
22644 .section .fini_array
.65530,"a",%progbits
22646 .byte
'C', 'C', 'C', 'C'
22647 .section .init_array
.65530,"a",%progbits
22649 .byte
'D', 'D', 'D', 'D'
22650 .section .dtors
.64528,"a",%progbits
22652 .byte
'E', 'E', 'E', 'E'
22653 .section .ctors
.64528,"a",%progbits
22655 .byte
'F', 'F', 'F', 'F'
22656 .section .fini_array
.01005,"a",%progbits
22658 .byte
'G', 'G', 'G', 'G'
22659 .section .init_array
.01005,"a",%progbits
22661 .byte
'H', 'H', 'H', 'H'
22666 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22667 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22668 && $gcc_cv_objdump -s -j .init_array conftest \
22669 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22670 && $gcc_cv_objdump -s -j .fini_array conftest \
22671 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22672 gcc_cv_initfini_array
=yes
22674 rm -f conftest conftest.
*
22676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22680 # error Not an ELF OS
22682 #include <stdlib.h>
22683 #if defined __GLIBC_PREREQ
22684 # if __GLIBC_PREREQ (2, 4)
22686 # error GLIBC 2.4 required
22689 # if defined __sun__ && defined __svr4__
22690 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22692 # error The C library not known to support .init_array/.fini_array
22697 if ac_fn_c_try_cpp
"$LINENO"; then :
22700 gcc_cv_initfini_array
=no
22702 rm -f conftest.err conftest.
$ac_ext;;
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22706 $as_echo_n "checking cross compile... guessing... " >&6; }
22707 gcc_cv_initfini_array
=no
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22711 $as_echo "$gcc_cv_initfini_array" >&6; }
22712 enable_initfini_array
=$gcc_cv_initfini_array
22716 if test $enable_initfini_array = yes; then
22718 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22722 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22724 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22725 if test "${gcc_cv_as_leb128+set}" = set; then :
22726 $as_echo_n "(cached) " >&6
22728 gcc_cv_as_leb128
=no
22729 if test $in_tree_gas = yes; then
22730 if test $in_tree_gas_is_elf = yes \
22731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22732 then gcc_cv_as_leb128
=yes
22734 elif test x
$gcc_cv_as != x
; then
22741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22748 # GAS versions before 2.11 do not support uleb128,
22749 # despite appearing to.
22750 # ??? There exists an elf-specific test that will crash
22751 # the assembler. Perhaps it's better to figure out whether
22752 # arbitrary sections are supported and try the test.
22753 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22754 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22755 as_vers
=`echo $as_ver | sed -n \
22756 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22757 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22758 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22759 if test $as_major -eq 2 && test $as_minor -lt 11
22761 else gcc_cv_as_leb128
=yes
22765 echo "configure: failed program was" >&5
22768 rm -f conftest.o conftest.s
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22772 $as_echo "$gcc_cv_as_leb128" >&6; }
22773 if test $gcc_cv_as_leb128 = yes; then
22775 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22779 # Check if we have assembler support for unwind directives.
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22781 $as_echo_n "checking assembler for cfi directives... " >&6; }
22782 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22783 $as_echo_n "(cached) " >&6
22785 gcc_cv_as_cfi_directive
=no
22786 if test x
$gcc_cv_as != x
; then
22792 .cfi_escape 1, 2, 3, 4, 5
22793 .cfi_endproc' > conftest.s
22794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }
22803 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22804 # read-only and read-write sections, we need to make sure that the
22805 # assembler used emits read-write .eh_frame sections.
22806 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22807 if test "x$gcc_cv_objdump" != x
; then
22808 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22809 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22810 gcc_cv_as_cfi_directive
=no
22813 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22814 # On Solaris/x86, make sure that GCC and assembler agree on using
22815 # read-only .eh_frame sections for 64-bit.
22816 if test x
$gas = xyes
; then
22817 as_ix86_64_opt
="--64"
22819 as_ix86_64_opt
="-xarch=amd64"
22821 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22822 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22823 sed -e /.eh_frame
/!d
-e N | \
22824 grep READONLY
> /dev
/null
; then
22825 gcc_cv_as_cfi_directive
=yes
22827 gcc_cv_as_cfi_directive
=no
22831 gcc_cv_as_cfi_directive
=yes
22836 # no objdump, err on the side of caution
22837 gcc_cv_as_cfi_directive
=no
22840 gcc_cv_as_cfi_directive
=yes
22844 gcc_cv_as_cfi_directive
=yes
22848 echo "configure: failed program was" >&5
22851 rm -f conftest.o conftest.s
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22855 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22857 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22859 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22860 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22863 gcc_cv_as_cfi_advance_working
=no
22864 if test x
$gcc_cv_as != x
; then
22867 .cfi_adjust_cfa_offset 64
22869 .cfi_adjust_cfa_offset 128
22870 .cfi_endproc' > conftest.s
22871 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22873 (eval $ac_try) 2>&5
22875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876 test $ac_status = 0; }; }
22879 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22880 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22881 gcc_cv_as_cfi_advance_working
=yes
22885 echo "configure: failed program was" >&5
22888 rm -f conftest.o conftest.s
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22892 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22895 # no objdump, err on the side of caution
22896 gcc_cv_as_cfi_advance_working
=no
22900 cat >>confdefs.h
<<_ACEOF
22901 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22902 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22908 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22909 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22910 $as_echo_n "(cached) " >&6
22912 gcc_cv_as_cfi_personality_directive
=no
22913 if test x
$gcc_cv_as != x
; then
22916 .cfi_personality 0, symbol
22917 .cfi_endproc' > conftest.s
22918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22925 gcc_cv_as_cfi_personality_directive
=yes
22927 echo "configure: failed program was" >&5
22930 rm -f conftest.o conftest.s
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22934 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22937 cat >>confdefs.h
<<_ACEOF
22938 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22939 then echo 1; else echo 0; fi`
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22944 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22945 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22946 $as_echo_n "(cached) " >&6
22948 gcc_cv_as_cfi_sections_directive
=no
22949 if test x
$gcc_cv_as != x
; then
22951 .cfi_sections .debug_frame, .eh_frame
22953 .cfi_endproc' > conftest.s
22954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22956 (eval $ac_try) 2>&5
22958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22959 test $ac_status = 0; }; }
22962 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22963 # Need to check that we generated the correct relocation for the
22964 # .debug_frame section. This was fixed for binutils 2.21.
22965 gcc_cv_as_cfi_sections_directive
=no
22966 if test "x$gcc_cv_objdump" != x
; then
22967 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22968 grep secrel
> /dev
/null
; then
22969 gcc_cv_as_cfi_sections_directive
=yes
22974 gcc_cv_as_cfi_sections_directive
=yes
22978 echo "configure: failed program was" >&5
22981 rm -f conftest.o conftest.s
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22985 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22989 cat >>confdefs.h
<<_ACEOF
22990 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22991 then echo 1; else echo 0; fi`
22995 # GAS versions up to and including 2.11.0 may mis-optimize
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22998 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22999 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23002 gcc_cv_as_eh_frame
=no
23003 if test $in_tree_gas = yes; then
23004 if test $in_tree_gas_is_elf = yes \
23005 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23006 then gcc_cv_as_eh_frame
=yes
23008 elif test x
$gcc_cv_as != x
; then
23015 .section .eh_frame,"aw",@progbits
23017 .4byte .LECIE1-.LSCIE1
23031 .4byte .LEFDE1-.LASFDE1
23033 .4byte .LASFDE1-__FRAME_BEGIN__
23040 .LEFDE1:' > conftest.s
23041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }
23048 cat > conftest.lit
<<EOF
23049 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23050 0010 01000000 12000000 18000000 00000000 ................
23051 0020 08000000 04080000 0044 .........D
23053 cat > conftest.big
<<EOF
23054 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23055 0010 00000001 00000012 00000018 00000000 ................
23056 0020 00000008 04000000 0844 .........D
23058 # If the assembler didn't choke, and we can objdump,
23059 # and we got the correct data, then succeed.
23060 # The text in the here-document typically retains its unix-style line
23061 # endings, while the output of objdump will use host line endings.
23062 # Therefore, use diff -b for the comparisons.
23063 if test x
$gcc_cv_objdump != x \
23064 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23065 |
tail -3 > conftest.got \
23066 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23067 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23069 gcc_cv_as_eh_frame
=yes
23070 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23072 (eval $ac_try) 2>&5
23074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23075 test $ac_status = 0; }; }; then
23076 gcc_cv_as_eh_frame
=buggy
23078 # Uh oh, what do we do now?
23079 gcc_cv_as_eh_frame
=no
23082 echo "configure: failed program was" >&5
23085 rm -f conftest.o conftest.s
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23089 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23092 if test $gcc_cv_as_eh_frame = buggy
; then
23094 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23099 $as_echo_n "checking assembler for section merging support... " >&6; }
23100 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23103 gcc_cv_as_shf_merge
=no
23104 if test $in_tree_gas = yes; then
23105 if test $in_tree_gas_is_elf = yes \
23106 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23107 then gcc_cv_as_shf_merge
=yes
23109 elif test x
$gcc_cv_as != x
; then
23110 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23118 gcc_cv_as_shf_merge
=yes
23120 echo "configure: failed program was" >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23127 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23129 if test $gcc_cv_as_shf_merge = no
; then
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23131 $as_echo_n "checking assembler for section merging support... " >&6; }
23132 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23135 gcc_cv_as_shf_merge
=no
23136 if test $in_tree_gas = yes; then
23137 if test $in_tree_gas_is_elf = yes \
23138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23139 then gcc_cv_as_shf_merge
=yes
23141 elif test x
$gcc_cv_as != x
; then
23142 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23145 (eval $ac_try) 2>&5
23147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23148 test $ac_status = 0; }; }
23150 gcc_cv_as_shf_merge
=yes
23152 echo "configure: failed program was" >&5
23155 rm -f conftest.o conftest.s
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23159 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23163 cat >>confdefs.h
<<_ACEOF
23164 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23169 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23170 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23171 $as_echo_n "(cached) " >&6
23173 gcc_cv_as_comdat_group
=no
23174 if test $in_tree_gas = yes; then
23175 if test $in_tree_gas_is_elf = yes \
23176 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23177 then gcc_cv_as_comdat_group
=yes
23179 elif test x
$gcc_cv_as != x
; then
23180 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }
23188 gcc_cv_as_comdat_group
=yes
23190 echo "configure: failed program was" >&5
23193 rm -f conftest.o conftest.s
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23197 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23199 if test $gcc_cv_as_comdat_group = yes; then
23200 gcc_cv_as_comdat_group_percent
=no
23201 gcc_cv_as_comdat_group_group
=no
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23204 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23205 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23206 $as_echo_n "(cached) " >&6
23208 gcc_cv_as_comdat_group_percent
=no
23209 if test $in_tree_gas = yes; then
23210 if test $in_tree_gas_is_elf = yes \
23211 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23212 then gcc_cv_as_comdat_group_percent
=yes
23214 elif test x
$gcc_cv_as != x
; then
23215 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }
23223 gcc_cv_as_comdat_group_percent
=yes
23225 echo "configure: failed program was" >&5
23228 rm -f conftest.o conftest.s
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23232 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23234 if test $gcc_cv_as_comdat_group_percent = yes; then
23235 gcc_cv_as_comdat_group_group
=no
23237 case "${target}" in
23238 # Sun as uses a completely different syntax.
23240 case "${target}" in
23241 sparc
*-*-solaris2*)
23243 .group foo,".text%foo",#comdat
23244 .section ".text%foo", #alloc,#execinstr,#progbits
23249 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23251 .group foo,.text%foo,#comdat
23252 .section .text%foo, "ax", @progbits
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23259 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23260 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23261 $as_echo_n "(cached) " >&6
23263 gcc_cv_as_comdat_group_group
=no
23264 if test x
$gcc_cv_as != x
; then
23265 $as_echo "$conftest_s" > conftest.s
23266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23273 gcc_cv_as_comdat_group_group
=yes
23275 echo "configure: failed program was" >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23282 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23286 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23287 gcc_cv_as_comdat_group_group
=no
23291 if test x
"$ld_is_gold" = xyes
; then
23293 elif test $in_tree_ld = yes ; then
23295 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 \
23296 && test $in_tree_ld_is_elf = yes; then
23299 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23301 if test 0"$ld_date" -lt 20050308; then
23302 if test -n "$ld_date"; then
23303 # If there was date string, but was earlier than 2005-03-08, fail
23305 elif test "$ld_vers_major" -lt 2; then
23307 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23312 case "${target}" in
23313 *-*-solaris2.1
[1-9]*)
23315 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23316 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23319 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23320 # least ld version 1.2267.
23321 if test "$ld_vers_major" -gt 1; then
23323 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23325 elif test "$ld_vers_minor" -ge 2267; then
23330 # Assume linkers other than GNU ld don't support COMDAT group.
23335 # Allow overriding the automatic COMDAT group tests above.
23336 # Check whether --enable-comdat was given.
23337 if test "${enable_comdat+set}" = set; then :
23338 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23341 if test $comdat_group = no
; then
23342 gcc_cv_as_comdat_group
=no
23343 gcc_cv_as_comdat_group_percent
=no
23344 gcc_cv_as_comdat_group_group
=no
23347 cat >>confdefs.h
<<_ACEOF
23348 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23349 || test $gcc_cv_as_comdat_group_percent = yes \
23350 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23355 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23356 if test "${gcc_cv_as_discriminator+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23359 gcc_cv_as_discriminator
=no
23360 if test $in_tree_gas = yes; then
23361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23362 then gcc_cv_as_discriminator
=yes
23364 elif test x
$gcc_cv_as != x
; then
23367 .loc 1 1 0 discriminator 1' > conftest.s
23368 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23370 (eval $ac_try) 2>&5
23372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373 test $ac_status = 0; }; }
23375 gcc_cv_as_discriminator
=yes
23377 echo "configure: failed program was" >&5
23380 rm -f conftest.o conftest.s
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23384 $as_echo "$gcc_cv_as_discriminator" >&6; }
23385 if test $gcc_cv_as_discriminator = yes; then
23387 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23391 # Thread-local storage - the check is heavily parameterized.
23399 .section ".tdata","awT",@progbits
23402 ldq $27,__tls_get_addr($29) !literal!1
23403 lda $16,foo($29) !tlsgd!1
23404 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23405 ldq $27,__tls_get_addr($29) !literal!2
23406 lda $16,foo($29) !tlsldm!2
23407 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23408 ldq $1,foo($29) !gotdtprel
23409 ldah $2,foo($29) !dtprelhi
23410 lda $3,foo($2) !dtprello
23411 lda $4,foo($29) !dtprel
23412 ldq $1,foo($29) !gottprel
23413 ldah $2,foo($29) !tprelhi
23414 lda $3,foo($2) !tprello
23415 lda $4,foo($29) !tprel'
23418 tls_as_opt
=--fatal-warnings
23420 cris-
*-*|crisv32-
*-*)
23422 .section ".tdata","awT",@progbits
23429 tls_as_opt
=--fatal-warnings
23433 .section ".tdata","awT",@progbits
23436 call #gettlsoff(x)'
23445 .section ".tdata","awT",@progbits
23449 addil LT%foo-$tls_gdidx$,gp
23450 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23453 addil LT%foo-$tls_ldidx$,gp
23455 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23456 addil LR%foo-$tls_dtpoff$,%ret0
23457 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23459 addil LT%foo-$tls_ieoff$,gp
23460 ldw RT%foo-$tls_ieoff$(%r1),%t2
23463 addil LR%foo-$tls_leoff$,%t1
23464 ldo RR%foo-$tls_leoff$(%r1),%t2'
23467 tls_as_opt
=--fatal-warnings
23471 .section ".tdata","awT",%progbits
23474 .word foo(gottpoff)
23482 i
[34567]86-*-* | x86_64-
*-*)
23484 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23491 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23493 .section .tdata,"awt",@progbits'
23498 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23502 .section ".tdata","awT",@progbits'
23506 tls_as_opt
="--fatal-warnings"
23510 conftest_s
="$conftest_s
23514 leal foo@tlsgd(,%ebx,1), %eax
23515 leal foo@tlsldm(%ebx), %eax
23516 leal foo@dtpoff(%eax), %edx
23517 movl foo@gottpoff(%ebx), %eax
23518 subl foo@gottpoff(%ebx), %eax
23519 addl foo@gotntpoff(%ebx), %eax
23520 movl foo@indntpoff, %eax
23521 movl \$foo@tpoff, %eax
23522 subl \$foo@tpoff, %eax
23523 leal foo@ntpoff(%ecx), %eax"
23526 if test x
$on_solaris = xyes
; then
23528 yes) tls_as_opt
="$tls_as_opt --64" ;;
23529 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23532 conftest_s
="$conftest_s
23536 leaq foo@tlsgd(%rip), %rdi
23537 leaq foo@tlsld(%rip), %rdi
23538 leaq foo@dtpoff(%rax), %rdx
23539 movq foo@gottpoff(%rip), %rax
23540 movq \$foo@tpoff, %rax"
23546 .section ".tdata","awT",@progbits
23549 addl r16 = @ltoff(@dtpmod(foo#)), gp
23550 addl r17 = @ltoff(@dtprel(foo#)), gp
23551 addl r18 = @ltoff(@tprel(foo#)), gp
23552 addl r19 = @dtprel(foo#), gp
23553 adds r21 = @dtprel(foo#), r13
23554 movl r23 = @dtprel(foo#)
23555 addl r20 = @tprel(foo#), gp
23556 adds r22 = @tprel(foo#), r13
23557 movl r24 = @tprel(foo#)'
23560 tls_as_opt
=--fatal-warnings
23564 .section .tdata,"awT",@progbits
23568 addik r5,r20,x@TLSGD
23569 addik r5,r20,x@TLSLDM'
23572 tls_as_opt
='--fatal-warnings'
23576 .section .tdata,"awT",@progbits
23580 addiu $4, $28, %tlsgd(x)
23581 addiu $4, $28, %tlsldm(x)
23582 lui $4, %dtprel_hi(x)
23583 addiu $4, $4, %dtprel_lo(x)
23584 lw $4, %gottprel(x)($28)
23585 lui $4, %tprel_hi(x)
23586 addiu $4, $4, %tprel_lo(x)'
23589 tls_as_opt
='-32 --fatal-warnings'
23593 .section .tdata,"awT",@progbits
23598 move.l x@TLSGD(%a5),%a0
23599 move.l x@TLSLDM(%a5),%a0
23600 move.l x@TLSLDO(%a5),%a0
23601 move.l x@TLSIE(%a5),%a0
23602 move.l x@TLSLE(%a5),%a0'
23605 tls_as_opt
='--fatal-warnings'
23609 .section ".tdata","awT",@progbits'
23612 tls_as_opt
="--fatal-warnings"
23616 .section ".tdata","awT",%progbits
23620 add x0, x0, #:tlsgd_lo12:x
23625 tls_as_opt
='--fatal-warnings'
23629 .extern __get_tpointer
23647 .section ".tdata","awT",@progbits
23655 addi 3,2,ld0@got@tlsgd
23661 addi 3,2,x1@got@tlsld
23667 addis 9,3,x2@dtprel@ha
23668 addi 9,9,x2@dtprel@l
23671 ld 9,x3@got@dtprel(2)
23677 tls_as_opt
="-a64 --fatal-warnings"
23681 .section ".tdata","awT",@progbits
23689 addi 3,31,ld0@got@tlsgd
23691 addi 3,31,x1@got@tlsld
23694 addis 9,3,x2@dtprel@ha
23695 addi 9,9,x2@dtprel@l
23696 lwz 9,x3@got@tprel(31)
23699 addis 9,2,x2@tprel@ha
23700 addi 9,9,x2@tprel@l'
23703 tls_as_opt
="-a32 --fatal-warnings"
23707 .section ".tdata","awT",@progbits
23714 .long foo@GOTNTPOFF
23715 .long foo@INDNTPOFF
23716 l %r1,foo@GOTNTPOFF(%r12)
23717 l %r1,0(%r1):tls_load:foo
23718 bas %r14,0(%r1,%r13):tls_gdcall:foo
23719 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23722 tls_as_opt
="-m31 --fatal-warnings"
23726 .section ".tdata","awT",@progbits
23733 .quad foo@GOTNTPOFF
23734 lg %r1,foo@GOTNTPOFF(%r12)
23735 larl %r1,foo@INDNTPOFF
23736 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23737 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23740 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23742 sh-
*-* | sh
[34]-*-*)
23744 .section ".tdata","awT",@progbits
23754 tls_as_opt
=--fatal-warnings
23758 sparc
*-sun-solaris2.
*)
23765 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23767 .section ".tdata",#alloc,#write,#tls'
23772 .section ".tdata","awT",@progbits'
23775 tls_as_opt
="-32 --fatal-warnings"
23777 conftest_s
="$conftest_s
23780 sethi %tgd_hi22(foo), %o0
23781 add %o0, %tgd_lo10(foo), %o1
23782 add %l7, %o1, %o0, %tgd_add(foo)
23783 call __tls_get_addr, %tgd_call(foo)
23784 sethi %tldm_hi22(foo), %l1
23785 add %l1, %tldm_lo10(foo), %l2
23786 add %l7, %l2, %o0, %tldm_add(foo)
23787 call __tls_get_addr, %tldm_call(foo)
23788 sethi %tldo_hix22(foo), %l3
23789 xor %l3, %tldo_lox10(foo), %l4
23790 add %o0, %l4, %l5, %tldo_add(foo)
23791 sethi %tie_hi22(foo), %o3
23792 add %o3, %tie_lo10(foo), %o3
23793 ld [%l7 + %o3], %o2, %tie_ld(foo)
23794 add %g7, %o2, %o4, %tie_add(foo)
23795 sethi %tle_hix22(foo), %l1
23796 xor %l1, %tle_lox10(foo), %o5
23797 ld [%g7 + %o5], %o1"
23801 .section ".tdata","awT",@progbits
23804 addli r0, zero, tls_gd(foo)
23805 auli r0, zero, tls_gd_ha16(foo)
23806 addli r0, r0, tls_gd_lo16(foo)
23808 addli r0, zero, tls_ie(foo)
23809 auli r0, r0, tls_ie_ha16(foo)
23810 addli r0, r0, tls_ie_lo16(foo)'
23813 tls_as_opt
="--fatal-warnings"
23817 .section ".tdata","awT",@progbits
23820 shl16insli r0, zero, hw0_last_tls_gd(foo)
23821 shl16insli r0, zero, hw1_last_tls_gd(foo)
23822 shl16insli r0, r0, hw0_tls_gd(foo)
23824 shl16insli r0, zero, hw1_last_tls_ie(foo)
23825 shl16insli r0, r0, hw0_tls_ie(foo)'
23828 tls_as_opt
="--fatal-warnings"
23832 .section ".tdata","awT",@progbits
23835 movi a8, foo@TLSFUNC
23836 movi a10, foo@TLSARG
23837 callx8.tls a8, foo@TLSCALL'
23843 if test "x$enable_tls" = xno
; then
23844 : # TLS explicitly disabled.
23845 elif test "x$enable_tls" = xyes
; then
23846 set_have_as_tls
=yes # TLS explicitly enabled.
23847 elif test -z "$tls_first_major"; then
23848 : # If we don't have a check, assume no support.
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23851 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23852 if test "${gcc_cv_as_tls+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23856 if test $in_tree_gas = yes; then
23857 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23858 then gcc_cv_as_tls
=yes
23860 elif test x
$gcc_cv_as != x
; then
23861 $as_echo "$conftest_s" > conftest.s
23862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23871 echo "configure: failed program was" >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23878 $as_echo "$gcc_cv_as_tls" >&6; }
23879 if test $gcc_cv_as_tls = yes; then
23880 set_have_as_tls
=yes
23883 if test $set_have_as_tls = yes ; then
23885 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23889 # Target-specific assembler checks.
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23892 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23893 gcc_cv_ld_static_dynamic
=no
23894 gcc_cv_ld_static_option
='-Bstatic'
23895 gcc_cv_ld_dynamic_option
='-Bdynamic'
23896 if test $in_tree_ld = yes ; then
23897 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
23898 gcc_cv_ld_static_dynamic
=yes
23900 elif test x
$gcc_cv_ld != x
; then
23901 # Check if linker supports -Bstatic/-Bdynamic option
23902 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23903 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23904 gcc_cv_ld_static_dynamic
=yes
23907 # AIX ld uses -b flags
23908 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23909 gcc_cv_ld_static_dynamic
=yes
23910 gcc_cv_ld_static_option
="-bstatic"
23911 gcc_cv_ld_dynamic_option
="-bdynamic"
23913 # HP-UX ld uses -a flags to select between shared and archive.
23915 if test x
"$gnu_ld" = xno
; then
23916 gcc_cv_ld_static_dynamic
=yes
23917 gcc_cv_ld_static_option
="-aarchive_shared"
23918 gcc_cv_ld_dynamic_option
="-adefault"
23921 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23923 gcc_cv_ld_static_dynamic
=yes
23928 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23930 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23933 cat >>confdefs.h
<<_ACEOF
23934 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23938 cat >>confdefs.h
<<_ACEOF
23939 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23944 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23946 if test x
"$demangler_in_ld" = xyes
; then
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23948 $as_echo_n "checking linker --demangle support... " >&6; }
23949 gcc_cv_ld_demangle
=no
23950 if test $in_tree_ld = yes; then
23951 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 \
23952 gcc_cv_ld_demangle
=yes
23954 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23955 # Check if the GNU linker supports --demangle option
23956 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23957 gcc_cv_ld_demangle
=yes
23960 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23962 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23966 $as_echo "$gcc_cv_ld_demangle" >&6; }
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23970 $as_echo_n "checking linker plugin support... " >&6; }
23971 gcc_cv_lto_plugin
=0
23972 if test -f liblto_plugin.la
; then
23973 save_ld_ver
="$ld_ver"
23974 save_ld_vers_major
="$ld_vers_major"
23975 save_ld_vers_minor
="$ld_vers_minor"
23976 save_ld_is_gold
="$ld_is_gold"
23980 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23982 # FIXME: ld_is_gold?
23983 ld_vers_major
="$gcc_cv_gld_major_version"
23984 ld_vers_minor
="$gcc_cv_gld_minor_version"
23986 # Determine plugin linker version.
23987 # FIXME: Partial duplicate from above, generalize.
23988 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23989 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23990 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23992 ld_vers
=`echo $ld_ver | sed -n \
23993 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23995 ld_vers
=`echo $ld_ver | sed -n \
23996 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23998 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23999 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24003 # Determine plugin support.
24004 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24005 # Require GNU ld or gold 2.21+ for plugin support by default.
24006 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24007 gcc_cv_lto_plugin
=2
24008 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24009 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24010 gcc_cv_lto_plugin
=1
24014 ld_ver
="$save_ld_ver"
24015 ld_vers_major
="$save_ld_vers_major"
24016 ld_vers_minor
="$save_ld_vers_minor"
24017 ld_is_gold
="$save_ld_is_gold"
24020 cat >>confdefs.h
<<_ACEOF
24021 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24025 $as_echo "$gcc_cv_lto_plugin" >&6; }
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24030 $as_echo_n "checking assembler for -mabi option... " >&6; }
24031 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24032 $as_echo_n "(cached) " >&6
24034 gcc_cv_as_aarch64_mabi
=no
24035 if test x
$gcc_cv_as != x
; then
24036 $as_echo '.text' > conftest.s
24037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24039 (eval $ac_try) 2>&5
24041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042 test $ac_status = 0; }; }
24044 gcc_cv_as_aarch64_mabi
=yes
24046 echo "configure: failed program was" >&5
24049 rm -f conftest.o conftest.s
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24053 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24055 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24057 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24060 if test x
$with_abi = xilp32
; then
24061 as_fn_error
"Assembler does not support -mabi=ilp32.\
24062 Upgrade the Assembler." "$LINENO" 5
24064 if test x
"$with_multilib_list" = xdefault
; then
24065 TM_MULTILIB_CONFIG
=lp64
24067 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24068 for aarch64_multilib
in ${aarch64_multilibs}; do
24069 case ${aarch64_multilib} in
24071 as_fn_error
"Assembler does not support -mabi=ilp32.\
24072 Upgrade the Assembler." "$LINENO" 5
24080 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24081 # Check whether --enable-fix-cortex-a53-835769 was given.
24082 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24083 enableval
=$enable_fix_cortex_a53_835769;
24086 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24091 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24092 Valid choices are 'yes' and 'no'." "$LINENO" 5
24101 # All TARGET_ABI_OSF targets.
24102 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24104 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24105 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24108 gcc_cv_as_alpha_explicit_relocs
=no
24109 if test $in_tree_gas = yes; then
24110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24111 then gcc_cv_as_alpha_explicit_relocs
=yes
24113 elif test x
$gcc_cv_as != x
; then
24114 $as_echo ' .set nomacro
24116 extbl $3, $2, $3 !lituse_bytoff!1
24117 ldq $2, a($29) !literal!1
24118 ldq $4, b($29) !literal!2
24119 ldq_u $3, 0($2) !lituse_base!1
24120 ldq $27, f($29) !literal!5
24121 jsr $26, ($27), f !lituse_jsr!5
24122 ldah $29, 0($26) !gpdisp!3
24123 lda $0, c($29) !gprel
24124 ldah $1, d($29) !gprelhigh
24125 lda $1, d($1) !gprellow
24126 lda $29, 0($29) !gpdisp!3' > conftest.s
24127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24134 gcc_cv_as_alpha_explicit_relocs
=yes
24136 echo "configure: failed program was" >&5
24139 rm -f conftest.o conftest.s
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24143 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24144 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24146 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24150 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24151 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24152 $as_echo_n "(cached) " >&6
24154 gcc_cv_as_alpha_jsrdirect_relocs
=no
24155 if test $in_tree_gas = yes; then
24156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24157 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24159 elif test x
$gcc_cv_as != x
; then
24160 $as_echo ' .set nomacro
24162 ldq $27, a($29) !literal!1
24163 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24166 (eval $ac_try) 2>&5
24168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24169 test $ac_status = 0; }; }
24171 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24173 echo "configure: failed program was" >&5
24176 rm -f conftest.o conftest.s
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24180 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24181 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24183 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24190 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24191 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24194 gcc_cv_as_cris_no_mul_bug
=no
24195 if test $in_tree_gas = yes; then
24196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24197 then gcc_cv_as_cris_no_mul_bug
=yes
24199 elif test x
$gcc_cv_as != x
; then
24200 $as_echo '.text' > conftest.s
24201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24208 gcc_cv_as_cris_no_mul_bug
=yes
24210 echo "configure: failed program was" >&5
24213 rm -f conftest.o conftest.s
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24217 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24218 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24220 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24227 $as_echo_n "checking assembler for .register... " >&6; }
24228 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24231 gcc_cv_as_sparc_register_op
=no
24232 if test x
$gcc_cv_as != x
; then
24233 $as_echo '.register %g2, #scratch' > conftest.s
24234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24241 gcc_cv_as_sparc_register_op
=yes
24243 echo "configure: failed program was" >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24250 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24251 if test $gcc_cv_as_sparc_register_op = yes; then
24253 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24258 $as_echo_n "checking assembler for #nobits... " >&6; }
24259 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24262 gcc_cv_as_sparc_nobits
=no
24263 if test x
$gcc_cv_as != x
; then
24264 $as_echo '.section "nobits",#alloc,#write,#nobits
24265 .section "progbits",#alloc,#write,#progbits' > conftest.s
24266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268 (eval $ac_try) 2>&5
24270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271 test $ac_status = 0; }; }
24273 gcc_cv_as_sparc_nobits
=yes
24275 echo "configure: failed program was" >&5
24278 rm -f conftest.o conftest.s
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24282 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24285 cat >>confdefs.h
<<_ACEOF
24286 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24291 $as_echo_n "checking assembler for -relax option... " >&6; }
24292 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24293 $as_echo_n "(cached) " >&6
24295 gcc_cv_as_sparc_relax
=no
24296 if test x
$gcc_cv_as != x
; then
24297 $as_echo '.text' > conftest.s
24298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24300 (eval $ac_try) 2>&5
24302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24303 test $ac_status = 0; }; }
24305 gcc_cv_as_sparc_relax
=yes
24307 echo "configure: failed program was" >&5
24310 rm -f conftest.o conftest.s
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24314 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24315 if test $gcc_cv_as_sparc_relax = yes; then
24317 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24322 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24323 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24324 $as_echo_n "(cached) " >&6
24326 gcc_cv_as_sparc_gotdata_op
=no
24327 if test x
$gcc_cv_as != x
; then
24333 sethi %gdop_hix22(foo), %g1
24334 xor %g1, %gdop_lox10(foo), %g1
24335 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24343 if test x
$gcc_cv_ld != x \
24344 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24345 if test x
$gcc_cv_objdump != x
; then
24346 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24347 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24348 gcc_cv_as_sparc_gotdata_op
=no
24350 gcc_cv_as_sparc_gotdata_op
=yes
24356 echo "configure: failed program was" >&5
24359 rm -f conftest.o conftest.s
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24363 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24364 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24366 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24371 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24372 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24375 gcc_cv_as_sparc_ua_pcrel
=no
24376 if test x
$gcc_cv_as != x
; then
24383 .uaword %r_disp32(foo)' > conftest.s
24384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24386 (eval $ac_try) 2>&5
24388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389 test $ac_status = 0; }; }
24391 if test x
$gcc_cv_ld != x \
24392 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24393 gcc_cv_as_sparc_ua_pcrel
=yes
24397 echo "configure: failed program was" >&5
24400 rm -f conftest.o conftest.s
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24404 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24405 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24407 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24411 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24412 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24415 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24416 if test x
$gcc_cv_as != x
; then
24420 .uaword %r_disp32(foo)
24421 .byte 0x32, 0x33, 0x34
24425 .skip 4' > conftest.s
24426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24433 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24434 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24435 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24436 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24437 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24438 |
grep 'DISP32' > /dev
/null
2>&1; then
24441 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24446 echo "configure: failed program was" >&5
24449 rm -f conftest.o conftest.s
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24453 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24454 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24456 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24460 fi # unaligned pcrel relocs
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24463 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24464 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24465 $as_echo_n "(cached) " >&6
24467 gcc_cv_as_sparc_offsetable_lo10
=no
24468 if test x
$gcc_cv_as != x
; then
24470 or %g1, %lo(ab) + 12, %g1
24471 or %g1, %lo(ab + 12), %g1' > conftest.s
24472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24479 if test x
$gcc_cv_objdump != x \
24480 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24481 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24482 gcc_cv_as_sparc_offsetable_lo10
=yes
24485 echo "configure: failed program was" >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24492 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24493 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24495 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24500 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24501 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24504 gcc_cv_as_sparc_fmaf
=no
24505 if test x
$gcc_cv_as != x
; then
24507 .register %g2, #scratch
24508 .register %g3, #scratch
24510 fmaddd %f0, %f2, %f4, %f6
24511 addxccc %g1, %g2, %g3
24512 fsrl32 %f2, %f4, %f8
24513 fnaddd %f10, %f12, %f14' > conftest.s
24514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24521 gcc_cv_as_sparc_fmaf
=yes
24523 echo "configure: failed program was" >&5
24526 rm -f conftest.o conftest.s
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24530 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24531 if test $gcc_cv_as_sparc_fmaf = yes; then
24533 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24538 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24539 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24542 gcc_cv_as_sparc_sparc4
=no
24543 if test x
$gcc_cv_as != x
; then
24545 .register %g2, #scratch
24546 .register %g3, #scratch
24549 1: cwbneg %g2, %g3, 1f
24552 aes_kexpand0 %f4, %f6, %f8
24553 des_round %f38, %f40, %f42, %f44
24554 camellia_f %f54, %f56, %f58, %f60
24555 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24563 gcc_cv_as_sparc_sparc4
=yes
24565 echo "configure: failed program was" >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24572 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24573 if test $gcc_cv_as_sparc_sparc4 = yes; then
24575 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24580 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24581 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24584 gcc_cv_as_sparc_leon
=no
24585 if test x
$gcc_cv_as != x
; then
24587 .register %g2, #scratch
24588 .register %g3, #scratch
24592 casa [%g2] 0xb, %g3, %g1' > conftest.s
24593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24595 (eval $ac_try) 2>&5
24597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24598 test $ac_status = 0; }; }
24600 gcc_cv_as_sparc_leon
=yes
24602 echo "configure: failed program was" >&5
24605 rm -f conftest.o conftest.s
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24609 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24610 if test $gcc_cv_as_sparc_leon = yes; then
24612 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24617 i
[34567]86-*-* | x86_64-
*-*)
24620 # Full C++ conformance when using a shared libstdc++-v3 requires some
24621 # support from the Cygwin DLL, which in more recent versions exports
24622 # wrappers to aid in interposing and redirecting operators new, delete,
24623 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24624 # are configuring for a version of Cygwin that exports the wrappers.
24625 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24626 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24627 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24628 gcc_ac_cygwin_dll_wrappers
=yes
24630 gcc_ac_cygwin_dll_wrappers
=no
24634 # Can't check presence of libc functions during cross-compile, so
24635 # we just have to assume we're building for an up-to-date target.
24636 gcc_ac_cygwin_dll_wrappers
=yes
24639 cat >>confdefs.h
<<_ACEOF
24640 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24645 cygwin
* | pe | mingw32
* | interix
*)
24646 # Recent binutils allows the three-operand form of ".comm" on PE. This
24647 # definition is used unconditionally to initialise the default state of
24648 # the target option variable that governs usage of the feature.
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24650 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24651 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24652 $as_echo_n "(cached) " >&6
24654 gcc_cv_as_comm_has_align
=no
24655 if test $in_tree_gas = yes; then
24656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24657 then gcc_cv_as_comm_has_align
=yes
24659 elif test x
$gcc_cv_as != x
; then
24660 $as_echo '.comm foo,1,32' > conftest.s
24661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24668 gcc_cv_as_comm_has_align
=yes
24670 echo "configure: failed program was" >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24677 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24680 cat >>confdefs.h
<<_ACEOF
24681 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24684 # Used for DWARF 2 in PE
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24686 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24687 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24690 gcc_cv_as_ix86_pe_secrel32
=no
24691 if test $in_tree_gas = yes; then
24692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24693 then gcc_cv_as_ix86_pe_secrel32
=yes
24695 elif test x
$gcc_cv_as != x
; then
24699 .secrel32 foo' > conftest.s
24700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24702 (eval $ac_try) 2>&5
24704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705 test $ac_status = 0; }; }
24707 if test x
$gcc_cv_ld != x \
24708 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24709 gcc_cv_as_ix86_pe_secrel32
=yes
24713 echo "configure: failed program was" >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24720 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24721 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24723 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24726 # Test if the assembler supports the extended form of the .section
24727 # directive that specifies section alignment. LTO support uses this,
24728 # but normally only after installation, so we warn but don't fail the
24729 # configure if LTO is enabled but the assembler does not support it.
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24731 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24732 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24735 gcc_cv_as_section_has_align
=no
24736 if test $in_tree_gas = yes; then
24737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24738 then gcc_cv_as_section_has_align
=yes
24740 elif test x
$gcc_cv_as != x
; then
24741 $as_echo '.section lto_test,"dr0"' > conftest.s
24742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744 (eval $ac_try) 2>&5
24746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747 test $ac_status = 0; }; }
24749 gcc_cv_as_section_has_align
=yes
24751 echo "configure: failed program was" >&5
24754 rm -f conftest.o conftest.s
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24758 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24760 if test x
$gcc_cv_as_section_has_align != xyes
; then
24761 case ",$enable_languages," in
24763 { $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
24764 $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;}
24771 # Test if the assembler supports the section flag 'e' for specifying
24772 # an excluded section.
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24774 $as_echo_n "checking assembler for .section with e... " >&6; }
24775 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24778 gcc_cv_as_section_has_e
=no
24779 if test $in_tree_gas = yes; then
24780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24781 then gcc_cv_as_section_has_e
=yes
24783 elif test x
$gcc_cv_as != x
; then
24784 $as_echo '.section foo1,"e"
24785 .byte 0,0,0,0' > conftest.s
24786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24793 gcc_cv_as_section_has_e
=yes
24795 echo "configure: failed program was" >&5
24798 rm -f conftest.o conftest.s
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24802 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24805 cat >>confdefs.h
<<_ACEOF
24806 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24811 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24812 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24815 gcc_cv_as_ix86_filds
=no
24816 if test x
$gcc_cv_as != x
; then
24817 $as_echo 'filds mem; fists mem' > conftest.s
24818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24820 (eval $ac_try) 2>&5
24822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24823 test $ac_status = 0; }; }
24825 gcc_cv_as_ix86_filds
=yes
24827 echo "configure: failed program was" >&5
24830 rm -f conftest.o conftest.s
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24834 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24835 if test $gcc_cv_as_ix86_filds = yes; then
24837 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24842 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24843 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24846 gcc_cv_as_ix86_fildq
=no
24847 if test x
$gcc_cv_as != x
; then
24848 $as_echo 'fildq mem; fistpq mem' > conftest.s
24849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24851 (eval $ac_try) 2>&5
24853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; }; }
24856 gcc_cv_as_ix86_fildq
=yes
24858 echo "configure: failed program was" >&5
24861 rm -f conftest.o conftest.s
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24865 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24866 if test $gcc_cv_as_ix86_fildq = yes; then
24868 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24873 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24874 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24875 $as_echo_n "(cached) " >&6
24877 gcc_cv_as_ix86_cmov_sun_syntax
=no
24878 if test x
$gcc_cv_as != x
; then
24879 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24882 (eval $ac_try) 2>&5
24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24885 test $ac_status = 0; }; }
24887 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24889 echo "configure: failed program was" >&5
24892 rm -f conftest.o conftest.s
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24896 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24897 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24899 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24904 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24905 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24906 $as_echo_n "(cached) " >&6
24908 gcc_cv_as_ix86_ffreep
=no
24909 if test x
$gcc_cv_as != x
; then
24910 $as_echo 'ffreep %st(1)' > conftest.s
24911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24918 gcc_cv_as_ix86_ffreep
=yes
24920 echo "configure: failed program was" >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24927 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24928 if test $gcc_cv_as_ix86_ffreep = yes; then
24930 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24935 $as_echo_n "checking assembler for .quad directive... " >&6; }
24936 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24939 gcc_cv_as_ix86_quad
=no
24940 if test x
$gcc_cv_as != x
; then
24941 $as_echo '.quad 0' > conftest.s
24942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24949 gcc_cv_as_ix86_quad
=yes
24951 echo "configure: failed program was" >&5
24954 rm -f conftest.o conftest.s
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24958 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24959 if test $gcc_cv_as_ix86_quad = yes; then
24961 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24966 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24967 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24970 gcc_cv_as_ix86_sahf
=no
24971 if test x
$gcc_cv_as != x
; then
24974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24981 gcc_cv_as_ix86_sahf
=yes
24983 echo "configure: failed program was" >&5
24986 rm -f conftest.o conftest.s
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24990 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24991 if test $gcc_cv_as_ix86_sahf = yes; then
24993 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24998 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24999 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25000 $as_echo_n "(cached) " >&6
25002 gcc_cv_as_ix86_interunit_movq
=no
25003 if test x
$gcc_cv_as != x
; then
25006 movq %rax, %xmm0' > conftest.s
25007 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25009 (eval $ac_try) 2>&5
25011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25012 test $ac_status = 0; }; }
25014 gcc_cv_as_ix86_interunit_movq
=yes
25016 echo "configure: failed program was" >&5
25019 rm -f conftest.o conftest.s
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25023 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25026 cat >>confdefs.h
<<_ACEOF
25027 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25032 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25033 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25034 $as_echo_n "(cached) " >&6
25036 gcc_cv_as_ix86_hle
=no
25037 if test x
$gcc_cv_as != x
; then
25038 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25041 (eval $ac_try) 2>&5
25043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044 test $ac_status = 0; }; }
25046 gcc_cv_as_ix86_hle
=yes
25048 echo "configure: failed program was" >&5
25051 rm -f conftest.o conftest.s
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25055 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25056 if test $gcc_cv_as_ix86_hle = yes; then
25058 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25063 $as_echo_n "checking assembler for swap suffix... " >&6; }
25064 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25067 gcc_cv_as_ix86_swap
=no
25068 if test x
$gcc_cv_as != x
; then
25069 $as_echo 'movl.s %esp, %ebp' > conftest.s
25070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25072 (eval $ac_try) 2>&5
25074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25075 test $ac_status = 0; }; }
25077 gcc_cv_as_ix86_swap
=yes
25079 echo "configure: failed program was" >&5
25082 rm -f conftest.o conftest.s
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25086 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25087 if test $gcc_cv_as_ix86_swap = yes; then
25089 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25094 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25095 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25096 $as_echo_n "(cached) " >&6
25098 gcc_cv_as_ix86_diff_sect_delta
=no
25099 if test x
$gcc_cv_as != x
; then
25100 $as_echo '.section .rodata
25106 .L2: nop' > conftest.s
25107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25109 (eval $ac_try) 2>&5
25111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25112 test $ac_status = 0; }; }
25114 gcc_cv_as_ix86_diff_sect_delta
=yes
25116 echo "configure: failed program was" >&5
25119 rm -f conftest.o conftest.s
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25123 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25124 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25126 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25130 # These two are used unconditionally by i386.[ch]; it is to be defined
25131 # to 1 if the feature is present, 0 otherwise.
25132 as_ix86_gotoff_in_data_opt
=
25133 if test x
$gas = xyes
; then
25134 as_ix86_gotoff_in_data_opt
="--32"
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25137 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25138 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25141 gcc_cv_as_ix86_gotoff_in_data
=no
25142 if test $in_tree_gas = yes; then
25143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25144 then gcc_cv_as_ix86_gotoff_in_data
=yes
25146 elif test x
$gcc_cv_as != x
; then
25151 .long .L0@GOTOFF' > conftest.s
25152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25159 gcc_cv_as_ix86_gotoff_in_data
=yes
25161 echo "configure: failed program was" >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25168 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25171 cat >>confdefs.h
<<_ACEOF
25172 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25177 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25178 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25179 $as_echo_n "(cached) " >&6
25181 gcc_cv_as_ix86_rep_lock_prefix
=no
25182 if test x
$gcc_cv_as != x
; then
25183 $as_echo 'rep movsl
25188 lock addl %edi, (%eax,%esi)
25189 lock orl $0, (%esp)' > conftest.s
25190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25192 (eval $ac_try) 2>&5
25194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25195 test $ac_status = 0; }; }
25197 gcc_cv_as_ix86_rep_lock_prefix
=yes
25199 echo "configure: failed program was" >&5
25202 rm -f conftest.o conftest.s
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25206 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25207 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25209 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25214 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25215 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25216 $as_echo_n "(cached) " >&6
25218 gcc_cv_as_ix86_ud2
=no
25219 if test x
$gcc_cv_as != x
; then
25220 $as_echo 'ud2' > conftest.s
25221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25228 gcc_cv_as_ix86_ud2
=yes
25230 echo "configure: failed program was" >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25237 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25238 if test $gcc_cv_as_ix86_ud2 = yes; then
25240 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25245 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25246 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25249 gcc_cv_as_ix86_tlsgdplt
=no
25250 if test x
$gcc_cv_as != x
; then
25251 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25259 if test x
$gcc_cv_ld != x \
25260 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25261 gcc_cv_as_ix86_tlsgdplt
=yes
25265 echo "configure: failed program was" >&5
25268 rm -f conftest.o conftest.s
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25272 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25273 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25275 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25280 .section .tdata,"aw'$tls_section_flag'",@progbits
25282 .section .text,"ax",@progbits
25283 call tls_ld@tlsldmplt'
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25285 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25286 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25287 $as_echo_n "(cached) " >&6
25289 gcc_cv_as_ix86_tlsldmplt
=no
25290 if test x
$gcc_cv_as != x
; then
25291 $as_echo "$conftest_s" > conftest.s
25292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25299 if test x
$gcc_cv_ld != x \
25300 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25301 gcc_cv_as_ix86_tlsldmplt
=yes
25305 echo "configure: failed program was" >&5
25308 rm -f conftest.o conftest.s
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25312 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25315 cat >>confdefs.h
<<_ACEOF
25316 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25320 # Enforce 32-bit output with gas and gld.
25321 if test x
$gas = xyes
; then
25322 as_ix86_tls_ldm_opt
="--32"
25324 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25325 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25326 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25328 ld_ix86_tls_ldm_opt
="-melf_i386"
25332 .section .text,"ax",@progbits
25334 .type _start, @function
25336 leal value@tlsldm(%ebx), %eax
25337 call ___tls_get_addr@plt
25339 .section .tdata,"aw'$tls_section_flag'",@progbits
25340 .type value, @object
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25343 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25344 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25345 $as_echo_n "(cached) " >&6
25347 gcc_cv_as_ix86_tlsldm
=no
25348 if test x
$gcc_cv_as != x
; then
25349 $as_echo "$conftest_s" > conftest.s
25350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25358 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25359 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25360 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25361 gcc_cv_as_ix86_tlsldm
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25373 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25376 cat >>confdefs.h
<<_ACEOF
25377 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25385 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25386 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25389 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25390 if test $in_tree_gas = yes; then
25391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25392 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25394 elif test x
$gcc_cv_as != x
; then
25396 addl r15 = @ltoffx(x#), gp
25398 ld8.mov r16 = [r15], x#' > conftest.s
25399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25406 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25408 echo "configure: failed program was" >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25415 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25416 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25418 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25426 *-*-aix*) conftest_s
=' .machine "pwr5"
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25431 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25432 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25435 gcc_cv_as_machine_directive
=no
25436 if test x
$gcc_cv_as != x
; then
25437 $as_echo ' .machine ppc7400' > conftest.s
25438 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440 (eval $ac_try) 2>&5
25442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443 test $ac_status = 0; }; }
25445 gcc_cv_as_machine_directive
=yes
25447 echo "configure: failed program was" >&5
25450 rm -f conftest.o conftest.s
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25454 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25456 if test x
$gcc_cv_as_machine_directive != xyes
; then
25457 echo "*** This target requires an assembler supporting \".machine\"" >&2
25458 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25459 test x
$build = x
$target && exit 1
25463 *) conftest_s
=' .machine power4
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25469 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25470 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25471 $as_echo_n "(cached) " >&6
25473 gcc_cv_as_powerpc_mfcrf
=no
25474 if test $in_tree_gas = yes; then
25475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25476 then gcc_cv_as_powerpc_mfcrf
=yes
25478 elif test x
$gcc_cv_as != x
; then
25479 $as_echo "$conftest_s" > conftest.s
25480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482 (eval $ac_try) 2>&5
25484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485 test $ac_status = 0; }; }
25487 gcc_cv_as_powerpc_mfcrf
=yes
25489 echo "configure: failed program was" >&5
25492 rm -f conftest.o conftest.s
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25496 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25497 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25499 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25504 *-*-aix*) conftest_s
=' .machine "pwr5"
25507 *) conftest_s
=' .machine power5
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25513 $as_echo_n "checking assembler for popcntb support... " >&6; }
25514 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25517 gcc_cv_as_powerpc_popcntb
=no
25518 if test $in_tree_gas = yes; then
25519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25520 then gcc_cv_as_powerpc_popcntb
=yes
25522 elif test x
$gcc_cv_as != x
; then
25523 $as_echo "$conftest_s" > conftest.s
25524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25526 (eval $ac_try) 2>&5
25528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25529 test $ac_status = 0; }; }
25531 gcc_cv_as_powerpc_popcntb
=yes
25533 echo "configure: failed program was" >&5
25536 rm -f conftest.o conftest.s
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25540 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25541 if test $gcc_cv_as_powerpc_popcntb = yes; then
25543 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25548 *-*-aix*) conftest_s
=' .machine "pwr5x"
25551 *) conftest_s
=' .machine power5
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25557 $as_echo_n "checking assembler for fp round support... " >&6; }
25558 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25559 $as_echo_n "(cached) " >&6
25561 gcc_cv_as_powerpc_fprnd
=no
25562 if test $in_tree_gas = yes; then
25563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25564 then gcc_cv_as_powerpc_fprnd
=yes
25566 elif test x
$gcc_cv_as != x
; then
25567 $as_echo "$conftest_s" > conftest.s
25568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25570 (eval $ac_try) 2>&5
25572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25573 test $ac_status = 0; }; }
25575 gcc_cv_as_powerpc_fprnd
=yes
25577 echo "configure: failed program was" >&5
25580 rm -f conftest.o conftest.s
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25584 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25585 if test $gcc_cv_as_powerpc_fprnd = yes; then
25587 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25592 *-*-aix*) conftest_s
=' .machine "pwr6"
25595 *) conftest_s
=' .machine power6
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25601 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25602 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25603 $as_echo_n "(cached) " >&6
25605 gcc_cv_as_powerpc_mfpgpr
=no
25606 if test $in_tree_gas = yes; then
25607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25608 then gcc_cv_as_powerpc_mfpgpr
=yes
25610 elif test x
$gcc_cv_as != x
; then
25611 $as_echo "$conftest_s" > conftest.s
25612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25619 gcc_cv_as_powerpc_mfpgpr
=yes
25621 echo "configure: failed program was" >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25628 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25629 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25631 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25636 *-*-aix*) conftest_s
=' .csect .text[PR]
25638 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25642 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25643 *) conftest_s
=' .text
25645 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25649 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25650 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25653 gcc_cv_as_powerpc_rel16
=no
25654 if test $in_tree_gas = yes; then
25655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25656 then gcc_cv_as_powerpc_rel16
=yes
25658 elif test x
$gcc_cv_as != x
; then
25659 $as_echo "$conftest_s" > conftest.s
25660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; }
25667 gcc_cv_as_powerpc_rel16
=yes
25669 echo "configure: failed program was" >&5
25672 rm -f conftest.o conftest.s
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25676 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25677 if test $gcc_cv_as_powerpc_rel16 = yes; then
25679 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25684 *-*-aix*) conftest_s
=' .machine "pwr6"
25687 *) conftest_s
=' .machine power6
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25693 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25694 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25697 gcc_cv_as_powerpc_cmpb
=no
25698 if test $in_tree_gas = yes; then
25699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25700 then gcc_cv_as_powerpc_cmpb
=yes
25702 elif test x
$gcc_cv_as != x
; then
25703 $as_echo "$conftest_s" > conftest.s
25704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25711 gcc_cv_as_powerpc_cmpb
=yes
25713 echo "configure: failed program was" >&5
25716 rm -f conftest.o conftest.s
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25720 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25721 if test $gcc_cv_as_powerpc_cmpb = yes; then
25723 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25728 *-*-aix*) conftest_s
=' .machine "pwr6"
25731 *) conftest_s
=' .machine power6
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25737 $as_echo_n "checking assembler for decimal float support... " >&6; }
25738 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25739 $as_echo_n "(cached) " >&6
25741 gcc_cv_as_powerpc_dfp
=no
25742 if test $in_tree_gas = yes; then
25743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25744 then gcc_cv_as_powerpc_dfp
=yes
25746 elif test x
$gcc_cv_as != x
; then
25747 $as_echo "$conftest_s" > conftest.s
25748 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }
25755 gcc_cv_as_powerpc_dfp
=yes
25757 echo "configure: failed program was" >&5
25760 rm -f conftest.o conftest.s
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25764 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25765 if test $gcc_cv_as_powerpc_dfp = yes; then
25767 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25772 *-*-aix*) conftest_s
=' .machine "pwr7"
25775 *) conftest_s
=' .machine power7
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25781 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25782 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25785 gcc_cv_as_powerpc_vsx
=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25788 then gcc_cv_as_powerpc_vsx
=yes
25790 elif test x
$gcc_cv_as != x
; then
25791 $as_echo "$conftest_s" > conftest.s
25792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25799 gcc_cv_as_powerpc_vsx
=yes
25801 echo "configure: failed program was" >&5
25804 rm -f conftest.o conftest.s
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25808 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25809 if test $gcc_cv_as_powerpc_vsx = yes; then
25811 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25816 *-*-aix*) conftest_s
=' .machine "pwr7"
25819 *) conftest_s
=' .machine power7
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25825 $as_echo_n "checking assembler for popcntd support... " >&6; }
25826 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25827 $as_echo_n "(cached) " >&6
25829 gcc_cv_as_powerpc_popcntd
=no
25830 if test $in_tree_gas = yes; then
25831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25832 then gcc_cv_as_powerpc_popcntd
=yes
25834 elif test x
$gcc_cv_as != x
; then
25835 $as_echo "$conftest_s" > conftest.s
25836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25843 gcc_cv_as_powerpc_popcntd
=yes
25845 echo "configure: failed program was" >&5
25848 rm -f conftest.o conftest.s
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25852 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25853 if test $gcc_cv_as_powerpc_popcntd = yes; then
25855 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25860 *-*-aix*) conftest_s
=' .machine "pwr8"
25861 .csect .text[PR]';;
25862 *) conftest_s
=' .machine power8
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25867 $as_echo_n "checking assembler for power8 support... " >&6; }
25868 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25871 gcc_cv_as_powerpc_power8
=no
25872 if test $in_tree_gas = yes; then
25873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25874 then gcc_cv_as_powerpc_power8
=yes
25876 elif test x
$gcc_cv_as != x
; then
25877 $as_echo "$conftest_s" > conftest.s
25878 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25880 (eval $ac_try) 2>&5
25882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883 test $ac_status = 0; }; }
25885 gcc_cv_as_powerpc_power8
=yes
25887 echo "configure: failed program was" >&5
25890 rm -f conftest.o conftest.s
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25894 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25895 if test $gcc_cv_as_powerpc_power8 = yes; then
25897 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25902 *-*-aix*) conftest_s
=' .csect .text[PR]
25904 *) conftest_s
=' .text
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25909 $as_echo_n "checking assembler for lwsync support... " >&6; }
25910 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25913 gcc_cv_as_powerpc_lwsync
=no
25914 if test $in_tree_gas = yes; then
25915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25916 then gcc_cv_as_powerpc_lwsync
=yes
25918 elif test x
$gcc_cv_as != x
; then
25919 $as_echo "$conftest_s" > conftest.s
25920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25927 gcc_cv_as_powerpc_lwsync
=yes
25929 echo "configure: failed program was" >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25936 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25937 if test $gcc_cv_as_powerpc_lwsync = yes; then
25939 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25944 *-*-aix*) conftest_s
=' .machine "476"
25947 *) conftest_s
=' .machine "476"
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25953 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25954 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25957 gcc_cv_as_powerpc_dci
=no
25958 if test $in_tree_gas = yes; then
25959 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25960 then gcc_cv_as_powerpc_dci
=yes
25962 elif test x
$gcc_cv_as != x
; then
25963 $as_echo "$conftest_s" > conftest.s
25964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25966 (eval $ac_try) 2>&5
25968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25969 test $ac_status = 0; }; }
25971 gcc_cv_as_powerpc_dci
=yes
25973 echo "configure: failed program was" >&5
25976 rm -f conftest.o conftest.s
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25980 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25981 if test $gcc_cv_as_powerpc_dci = yes; then
25983 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25988 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25989 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25990 $as_echo_n "(cached) " >&6
25992 gcc_cv_as_powerpc_gnu_attribute
=no
25993 if test $in_tree_gas = yes; then
25994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25995 then gcc_cv_as_powerpc_gnu_attribute
=yes
25997 elif test x
$gcc_cv_as != x
; then
25998 $as_echo '.gnu_attribute 4,1' > conftest.s
25999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; }
26006 gcc_cv_as_powerpc_gnu_attribute
=yes
26008 echo "configure: failed program was" >&5
26011 rm -f conftest.o conftest.s
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26015 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26016 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26018 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26023 $as_echo_n "checking assembler for tls marker support... " >&6; }
26024 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26027 gcc_cv_as_powerpc_tls_markers
=no
26028 if test $in_tree_gas = yes; then
26029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26030 then gcc_cv_as_powerpc_tls_markers
=yes
26032 elif test x
$gcc_cv_as != x
; then
26033 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26041 gcc_cv_as_powerpc_tls_markers
=yes
26043 echo "configure: failed program was" >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26050 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26051 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26053 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26060 $as_echo_n "checking assembler for .ref support... " >&6; }
26061 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26064 gcc_cv_as_aix_ref
=no
26065 if test $in_tree_gas = yes; then
26066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26067 then gcc_cv_as_aix_ref
=yes
26069 elif test x
$gcc_cv_as != x
; then
26070 $as_echo ' .csect stuff[rw]
26076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; }
26083 gcc_cv_as_aix_ref
=yes
26085 echo "configure: failed program was" >&5
26088 rm -f conftest.o conftest.s
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26092 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26093 if test $gcc_cv_as_aix_ref = yes; then
26095 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26104 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26105 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26108 gcc_cv_as_mips_explicit_relocs
=no
26109 if test $in_tree_gas = yes; then
26110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26111 then gcc_cv_as_mips_explicit_relocs
=yes
26113 elif test x
$gcc_cv_as != x
; then
26114 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26122 gcc_cv_as_mips_explicit_relocs
=yes
26124 echo "configure: failed program was" >&5
26127 rm -f conftest.o conftest.s
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26131 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26132 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26133 if test x
$target_cpu_default = x
26134 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26135 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26139 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26140 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26141 $as_echo_n "(cached) " >&6
26143 gcc_cv_as_mips_no_shared
=no
26144 if test $in_tree_gas = yes; then
26145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26146 then gcc_cv_as_mips_no_shared
=yes
26148 elif test x
$gcc_cv_as != x
; then
26149 $as_echo 'nop' > conftest.s
26150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26157 gcc_cv_as_mips_no_shared
=yes
26159 echo "configure: failed program was" >&5
26162 rm -f conftest.o conftest.s
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26166 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26167 if test $gcc_cv_as_mips_no_shared = yes; then
26169 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26174 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26175 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26178 gcc_cv_as_mips_gnu_attribute
=no
26179 if test $in_tree_gas = yes; then
26180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26181 then gcc_cv_as_mips_gnu_attribute
=yes
26183 elif test x
$gcc_cv_as != x
; then
26184 $as_echo '.gnu_attribute 4,1' > conftest.s
26185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26187 (eval $ac_try) 2>&5
26189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26190 test $ac_status = 0; }; }
26192 gcc_cv_as_mips_gnu_attribute
=yes
26194 echo "configure: failed program was" >&5
26197 rm -f conftest.o conftest.s
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26201 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26202 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26204 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26209 $as_echo_n "checking assembler for .module support... " >&6; }
26210 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26213 gcc_cv_as_mips_dot_module
=no
26214 if test x
$gcc_cv_as != x
; then
26215 $as_echo '.module mips2
26216 .module fp=xx' > conftest.s
26217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26219 (eval $ac_try) 2>&5
26221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26222 test $ac_status = 0; }; }
26224 gcc_cv_as_mips_dot_module
=yes
26226 echo "configure: failed program was" >&5
26229 rm -f conftest.o conftest.s
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26233 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26234 if test $gcc_cv_as_mips_dot_module = yes; then
26236 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26239 if test x
$gcc_cv_as_mips_dot_module = xno \
26240 && test x
$with_fp_32 != x
; then
26241 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26245 $as_echo_n "checking assembler for .micromips support... " >&6; }
26246 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26249 gcc_cv_as_micromips_support
=no
26250 if test x
$gcc_cv_as != x
; then
26251 $as_echo '.set micromips' > conftest.s
26252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26259 gcc_cv_as_micromips_support
=yes
26261 echo "configure: failed program was" >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26268 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26269 if test $gcc_cv_as_micromips_support = yes; then
26271 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26276 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26277 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26280 gcc_cv_as_mips_dtprelword
=no
26281 if test $in_tree_gas = yes; then
26282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26283 then gcc_cv_as_mips_dtprelword
=yes
26285 elif test x
$gcc_cv_as != x
; then
26286 $as_echo '.section .tdata,"awT",@progbits
26290 .dtprelword x+0x8000' > conftest.s
26291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26298 gcc_cv_as_mips_dtprelword
=yes
26300 echo "configure: failed program was" >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26307 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26308 if test $gcc_cv_as_mips_dtprelword = yes; then
26310 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26315 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26316 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26319 gcc_cv_as_mips_dspr1_mult
=no
26320 if test x
$gcc_cv_as != x
; then
26321 $as_echo ' .set mips32r2
26329 multu $ac3,$4,$5' > conftest.s
26330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26337 gcc_cv_as_mips_dspr1_mult
=yes
26339 echo "configure: failed program was" >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26346 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26347 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26349 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26354 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26355 gcc_cv_as_ld_jalr_reloc
=no
26356 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26357 if test $in_tree_ld = yes ; then
26358 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 \
26359 && test $in_tree_ld_is_elf = yes; then
26360 gcc_cv_as_ld_jalr_reloc
=yes
26362 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26363 echo ' .ent x' > conftest.s
26364 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26365 echo ' lw $25,%call16(y)($28)' >> conftest.s
26366 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26367 echo '1: jalr $25' >> conftest.s
26368 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26369 echo '1: jalr $25' >> conftest.s
26370 echo ' .end x' >> conftest.s
26371 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26372 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26373 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26374 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26375 gcc_cv_as_ld_jalr_reloc
=yes
26381 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26382 if test x
$target_cpu_default = x
; then
26383 target_cpu_default
=MASK_RELAX_PIC_CALLS
26385 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26389 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26392 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26393 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26396 gcc_cv_ld_mips_personality_relaxation
=no
26397 if test $in_tree_ld = yes ; then
26398 if test "$gcc_cv_gld_major_version" -eq 2 \
26399 -a "$gcc_cv_gld_minor_version" -ge 21 \
26400 -o "$gcc_cv_gld_major_version" -gt 2; then
26401 gcc_cv_ld_mips_personality_relaxation
=yes
26403 elif test x
$gcc_cv_as != x \
26404 -a x
$gcc_cv_ld != x \
26405 -a x
$gcc_cv_readelf != x
; then
26406 cat > conftest.s
<<EOF
26408 .cfi_personality 0x80,indirect_ptr
26415 .section .data,"aw",@progbits
26419 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26421 if $gcc_cv_readelf -d conftest
2>&1 \
26422 |
grep TEXTREL
> /dev
/null
2>&1; then
26424 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26425 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26428 gcc_cv_ld_mips_personality_relaxation
=yes
26432 rm -f conftest.s conftest.o conftest
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26435 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26436 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26438 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26443 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26444 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26447 gcc_cv_as_mips_nan
=no
26448 if test x
$gcc_cv_as != x
; then
26449 $as_echo '' > conftest.s
26450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26457 gcc_cv_as_mips_nan
=yes
26459 echo "configure: failed program was" >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26466 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26467 if test $gcc_cv_as_mips_nan = yes; then
26469 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26472 if test x
$gcc_cv_as_mips_nan = xno \
26473 && test x
$with_nan != x
; then
26474 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26479 # Mips and HP-UX need the GNU assembler.
26480 # Linux on IA64 might be able to use the Intel assembler.
26483 mips
*-*-* |
*-*-hpux* )
26484 if test x
$gas_flag = xyes \
26485 ||
test x
"$host" != x
"$build" \
26486 ||
test ! -x "$gcc_cv_as" \
26487 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26490 echo "*** This configuration requires the GNU assembler" >&2
26496 # ??? Not all targets support dwarf2 debug_line, even within a version
26497 # of gas. Moreover, we need to emit a valid instruction to trigger any
26498 # info to the output file. So, as supported targets are added to gas 2.11,
26499 # add some instruction here to (also) show we expect this might work.
26500 # ??? Once 2.11 is released, probably need to add first known working
26501 # version to the per-target configury.
26502 case "$cpu_type" in
26503 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26504 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26505 | visium | xstormy16 | xtensa
)
26515 if test x
"$insn" != x
; then
26517 .file 1 \"conftest.s\"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26521 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26522 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26525 gcc_cv_as_dwarf2_debug_line
=no
26526 if test $in_tree_gas = yes; then
26527 if test $in_tree_gas_is_elf = yes \
26528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26529 then gcc_cv_as_dwarf2_debug_line
=yes
26531 elif test x
$gcc_cv_as != x
; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26540 if test x
$gcc_cv_objdump != x \
26541 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26542 |
grep debug_line
> /dev
/null
2>&1; then
26543 gcc_cv_as_dwarf2_debug_line
=yes
26546 echo "configure: failed program was" >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26553 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26556 # The .debug_line file table must be in the exact order that
26557 # we specified the files, since these indices are also used
26558 # by DW_AT_decl_file. Approximate this test by testing if
26559 # the assembler bitches if the same index is assigned twice.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26561 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26562 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26565 gcc_cv_as_dwarf2_file_buggy
=no
26566 if test x
$gcc_cv_as != x
; then
26567 $as_echo ' .file 1 "foo.s"
26568 .file 1 "bar.s"' > conftest.s
26569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26576 gcc_cv_as_dwarf2_file_buggy
=yes
26578 echo "configure: failed program was" >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26585 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26588 if test $gcc_cv_as_dwarf2_debug_line = yes \
26589 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26591 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26596 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26597 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26600 gcc_cv_as_gdwarf2_flag
=no
26601 if test $in_tree_gas = yes; then
26602 if test $in_tree_gas_is_elf = yes \
26603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26604 then gcc_cv_as_gdwarf2_flag
=yes
26606 elif test x
$gcc_cv_as != x
; then
26607 $as_echo "$insn" > conftest.s
26608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26615 gcc_cv_as_gdwarf2_flag
=yes
26617 echo "configure: failed program was" >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26624 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26625 if test $gcc_cv_as_gdwarf2_flag = yes; then
26627 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26632 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26633 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26634 $as_echo_n "(cached) " >&6
26636 gcc_cv_as_gstabs_flag
=no
26637 if test $in_tree_gas = yes; then
26638 if test $in_tree_gas_is_elf = yes \
26639 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26640 then gcc_cv_as_gstabs_flag
=yes
26642 elif test x
$gcc_cv_as != x
; then
26643 $as_echo "$insn" > conftest.s
26644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26651 gcc_cv_as_gstabs_flag
=yes
26653 echo "configure: failed program was" >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26660 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26661 if test $gcc_cv_as_gstabs_flag = yes; then
26663 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26668 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26669 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26672 gcc_cv_as_debug_prefix_map_flag
=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26675 then gcc_cv_as_debug_prefix_map_flag
=yes
26677 elif test x
$gcc_cv_as != x
; then
26678 $as_echo "$insn" > conftest.s
26679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26686 gcc_cv_as_debug_prefix_map_flag
=yes
26688 echo "configure: failed program was" >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26695 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26696 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26698 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26704 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26705 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26706 $as_echo_n "(cached) " >&6
26708 gcc_cv_as_compress_debug
=no
26709 if test x
$gcc_cv_as != x
; then
26710 $as_echo '' > conftest.s
26711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26718 # gas compiled without zlib cannot compress debug sections and warns
26719 # about it, but still exits successfully. So check for this, too.
26720 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26722 gcc_cv_as_compress_debug
=0
26723 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26725 gcc_cv_as_compress_debug
=1
26726 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26727 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26729 gcc_cv_as_compress_debug
=0
26730 # FIXME: Future gas versions will support ELF gABI style via
26731 # --compress-debug-sections[=type].
26734 echo "configure: failed program was" >&5
26737 rm -f conftest.o conftest.s
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26741 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26744 cat >>confdefs.h
<<_ACEOF
26745 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26749 cat >>confdefs.h
<<_ACEOF
26750 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26754 cat >>confdefs.h
<<_ACEOF
26755 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26760 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26761 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26764 gcc_cv_as_lcomm_with_alignment
=no
26765 if test x
$gcc_cv_as != x
; then
26766 $as_echo '.lcomm bar,4,16' > conftest.s
26767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26774 gcc_cv_as_lcomm_with_alignment
=yes
26776 echo "configure: failed program was" >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26783 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26784 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26786 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26790 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26791 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26792 && test "$prefix" != "NONE"; then
26794 cat >>confdefs.h
<<_ACEOF
26795 #define PREFIX_INCLUDE_DIR "$prefix/include"
26800 # Determine the version of glibc, if any, used on the target.
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26802 $as_echo_n "checking for target glibc version... " >&6; }
26804 # Check whether --with-glibc-version was given.
26805 if test "${with_glibc_version+set}" = set; then :
26806 withval
=$with_glibc_version;
26807 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26808 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26809 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26811 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26815 glibc_version_major
=0
26816 glibc_version_minor
=0
26817 if test -f $target_header_dir/features.h \
26818 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26819 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26820 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26821 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26826 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26828 cat >>confdefs.h
<<_ACEOF
26829 #define TARGET_GLIBC_MAJOR $glibc_version_major
26833 cat >>confdefs.h
<<_ACEOF
26834 #define TARGET_GLIBC_MINOR $glibc_version_minor
26838 # Check whether --enable-gnu-unique-object was given.
26839 if test "${enable_gnu_unique_object+set}" = set; then :
26840 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26842 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26843 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26847 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26848 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26849 $as_echo_n "(cached) " >&6
26851 gcc_cv_as_gnu_unique_object
=no
26852 if test $in_tree_gas = yes; then
26853 if test $in_tree_gas_is_elf = yes \
26854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26855 then gcc_cv_as_gnu_unique_object
=yes
26857 elif test x
$gcc_cv_as != x
; then
26858 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26861 (eval $ac_try) 2>&5
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; }
26866 gcc_cv_as_gnu_unique_object
=yes
26868 echo "configure: failed program was" >&5
26871 rm -f conftest.o conftest.s
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26875 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26876 if test $gcc_cv_as_gnu_unique_object = yes; then
26877 # We need to unquote above to to use the definition from config.gcc.
26878 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26880 if test $glibc_version_major -gt 2 \
26881 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26882 enable_gnu_unique_object
=yes
26888 if test x
$enable_gnu_unique_object = xyes
; then
26890 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26895 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26896 if test "${gcc_cv_as_line_zero+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26899 gcc_cv_as_line_zero
=no
26900 if test $in_tree_gas = yes; then
26901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26902 then gcc_cv_as_line_zero
=yes
26904 elif test "x$gcc_cv_as" != x
; then
26905 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26906 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26908 (eval $ac_try) 2>&5
26910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26911 test $ac_status = 0; }; } &&
26912 test "x`cat conftest.out`" = x
26914 gcc_cv_as_line_zero
=yes
26916 echo "configure: failed program was" >&5
26918 echo "configure: error output was" >&5
26919 cat conftest.out
>&5
26921 rm -f conftest.o conftest.s conftest.out
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26925 $as_echo "$gcc_cv_as_line_zero" >&6; }
26926 if test "x$gcc_cv_as_line_zero" = xyes
; then
26928 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26933 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26934 gcc_cv_ld_eh_frame_hdr
=no
26935 if test $in_tree_ld = yes ; then
26936 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 \
26937 && test $in_tree_ld_is_elf = yes; then
26938 gcc_cv_ld_eh_frame_hdr
=yes
26940 elif test x
$gcc_cv_ld != x
; then
26941 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26942 # Check if linker supports --eh-frame-hdr option
26943 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26944 gcc_cv_ld_eh_frame_hdr
=yes
26949 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26950 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26951 gcc_cv_ld_eh_frame_hdr
=yes
26958 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26960 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26964 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26967 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26968 gcc_cv_ld_eh_frame_ciev3
=no
26969 if test $in_tree_ld = yes ; then
26970 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 \
26971 && test $in_tree_ld_is_elf = yes; then
26972 gcc_cv_ld_eh_frame_ciev3
=yes
26974 elif test x
$gcc_cv_ld != x
; then
26975 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26976 gcc_cv_ld_eh_frame_ciev3
=yes
26977 if test 0"$ld_date" -lt 20040513; then
26978 if test -n "$ld_date"; then
26979 # If there was date string, but was earlier than 2004-05-13, fail
26980 gcc_cv_ld_eh_frame_ciev3
=no
26981 elif test "$ld_vers_major" -lt 2; then
26982 gcc_cv_ld_eh_frame_ciev3
=no
26983 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26984 gcc_cv_ld_eh_frame_ciev3
=no
26990 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26991 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26992 gcc_cv_ld_eh_frame_ciev3
=yes
26999 cat >>confdefs.h
<<_ACEOF
27000 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27004 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27007 $as_echo_n "checking linker position independent executable support... " >&6; }
27009 if test $in_tree_ld = yes ; then
27010 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 \
27011 && test $in_tree_ld_is_elf = yes; then
27014 elif test x
$gcc_cv_ld != x
; then
27015 # Check if linker supports -pie option
27016 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27020 if test x
"$gcc_cv_ld_pie" = xyes
; then
27022 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27026 $as_echo "$gcc_cv_ld_pie" >&6; }
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27029 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27030 gcc_cv_ld_pie_copyreloc
=no
27031 if test $gcc_cv_ld_pie = yes ; then
27032 if test $in_tree_ld = yes ; then
27033 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27034 gcc_cv_ld_pie_copyreloc
=yes
27036 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27037 # Check if linker supports -pie option with copy reloc
27039 i?
86-*-linux* | x86_64-
*-linux*)
27040 cat > conftest1.s
<<EOF
27043 .type a_glob, @object
27048 cat > conftest2.s
<<EOF
27051 .type main, @function
27053 movl %eax, a_glob(%rip)
27056 .section .data.rel,"aw",@progbits
27061 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27062 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27063 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27064 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27065 gcc_cv_ld_pie_copyreloc
=yes
27067 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27073 cat >>confdefs.h
<<_ACEOF
27074 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27078 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27081 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27082 gcc_cv_ld_eh_gc_sections
=no
27083 if test $in_tree_ld = yes ; then
27084 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 \
27085 && test $in_tree_ld_is_elf = yes; then
27086 gcc_cv_ld_eh_gc_sections
=yes
27088 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27089 cat > conftest.s
<<EOF
27092 .type _start, @function
27095 .size _start, .-_start
27096 .section .text.foo,"ax",@progbits
27097 .type foo, @function
27101 .section .gcc_except_table.foo,"a",@progbits
27104 .section .eh_frame,"a",@progbits
27107 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27108 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27109 |
grep "gc-sections option ignored" > /dev
/null
; then
27110 gcc_cv_ld_eh_gc_sections
=no
27111 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27112 |
grep gcc_except_table
> /dev
/null
; then
27113 gcc_cv_ld_eh_gc_sections
=yes
27114 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27115 if test x
$gcc_cv_as_comdat_group != xyes
; then
27116 gcc_cv_ld_eh_gc_sections
=no
27117 cat > conftest.s
<<EOF
27120 .type _start, @function
27123 .size _start, .-_start
27124 .section .gnu.linkonce.t.foo,"ax",@progbits
27125 .type foo, @function
27129 .section .gcc_except_table.foo,"a",@progbits
27132 .section .eh_frame,"a",@progbits
27135 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27136 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27137 |
grep "gc-sections option ignored" > /dev
/null
; then
27138 gcc_cv_ld_eh_gc_sections
=no
27139 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27140 |
grep gcc_except_table
> /dev
/null
; then
27141 gcc_cv_ld_eh_gc_sections
=yes
27147 rm -f conftest.s conftest.o conftest
27151 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27152 gcc_cv_ld_eh_gc_sections
=no
27155 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27157 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27161 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27164 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27165 gcc_cv_ld_eh_gc_sections_bug
=no
27166 if test $in_tree_ld = yes ; then
27167 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 \
27168 && test $in_tree_ld_is_elf = yes; then
27169 gcc_cv_ld_eh_gc_sections_bug
=yes
27171 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
27172 gcc_cv_ld_eh_gc_sections_bug
=yes
27173 cat > conftest.s
<<EOF
27176 .type _start, @function
27179 .size _start, .-_start
27180 .section .text.startup.foo,"ax",@progbits
27181 .type foo, @function
27185 .section .gcc_except_table.foo,"a",@progbits
27188 .section .eh_frame,"a",@progbits
27191 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27192 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27193 |
grep "gc-sections option ignored" > /dev
/null
; then
27195 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27196 |
grep gcc_except_table
> /dev
/null
; then
27197 gcc_cv_ld_eh_gc_sections_bug
=no
27200 rm -f conftest.s conftest.o conftest
27202 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27204 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27208 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27211 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27212 # gold/gld support compressed debug sections since binutils 2.19/2.21
27213 if test $in_tree_ld = yes ; then
27214 gcc_cv_ld_compress_debug
=0
27215 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 \
27216 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27217 gcc_cv_ld_compress_debug
=2
27218 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27219 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 \
27220 && test $in_tree_ld_is_elf = yes; then
27221 gcc_cv_ld_compress_debug
=1
27223 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27224 gcc_cv_ld_compress_debug
=1
27225 if test 0"$ld_date" -lt 20050308; then
27226 if test -n "$ld_date"; then
27227 # If there was date string, but was earlier than 2005-03-08, fail
27228 gcc_cv_ld_compress_debug
=0
27229 elif test "$ld_vers_major" -lt 2; then
27230 gcc_cv_ld_compress_debug
=0
27231 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27232 gcc_cv_ld_compress_debug
=0
27235 if test $ld_is_gold = yes; then
27236 gcc_cv_ld_compress_debug
=2
27237 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27240 case "${target}" in
27242 # Introduced in Solaris 11.2.
27243 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27244 gcc_cv_ld_compress_debug
=3
27245 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27247 gcc_cv_ld_compress_debug
=0
27251 # Assume linkers other than GNU ld don't support compessed debug
27253 gcc_cv_ld_compress_debug
=0
27258 cat >>confdefs.h
<<_ACEOF
27259 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27263 cat >>confdefs.h
<<_ACEOF
27264 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27268 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27275 $as_echo_n "checking linker --as-needed support... " >&6; }
27276 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27277 $as_echo_n "(cached) " >&6
27279 gcc_cv_ld_as_needed
=no
27280 gcc_cv_ld_as_needed_option
='--as-needed'
27281 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27282 if test $in_tree_ld = yes ; then
27283 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27284 && test $in_tree_ld_is_elf = yes; then
27285 gcc_cv_ld_as_needed
=yes
27287 elif test x
$gcc_cv_ld != x
; then
27288 # Check if linker supports --as-needed and --no-as-needed options
27289 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27290 gcc_cv_ld_as_needed
=yes
27293 # Solaris 2 ld always supports -z ignore/-z record.
27295 gcc_cv_ld_as_needed
=yes
27296 gcc_cv_ld_as_needed_option
="-z ignore"
27297 gcc_cv_ld_no_as_needed_option
="-z record"
27302 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27303 # dl_iterate_phdr, i.e. since Solaris 11.
27305 *-*-solaris2.1
[1-9]*)
27307 i?
86-*-* | x86_64-
*-*)
27308 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27309 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27310 gcc_cv_ld_as_needed
=no
27316 gcc_cv_ld_as_needed
=no
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27322 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27323 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27325 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27328 cat >>confdefs.h
<<_ACEOF
27329 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27333 cat >>confdefs.h
<<_ACEOF
27334 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27340 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27341 saved_LDFLAGS
="$LDFLAGS"
27342 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27343 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27345 /* end confdefs.h. */
27346 int main(void) {return 0;}
27348 if ac_fn_c_try_link
"$LINENO"; then :
27349 gcc_cv_ld_clearcap
=yes; break
27351 gcc_cv_ld_clearcap
=no
27353 rm -f core conftest.err conftest.
$ac_objext \
27354 conftest
$ac_exeext conftest.
$ac_ext
27356 LDFLAGS
="$saved_LDFLAGS"
27357 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27359 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27361 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27365 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27367 case "$target:$tm_file" in
27368 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27371 emul_name
="-melf64lppc"
27374 emul_name
="-melf64ppc"
27377 emul_name
="-melf64ppc_fbsd"
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27381 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27382 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27383 $as_echo_n "(cached) " >&6
27385 gcc_cv_ld_no_dot_syms
=no
27386 if test x
"$ld_is_gold" = xyes
; then
27387 gcc_cv_ld_no_dot_syms
=yes
27388 elif test $in_tree_ld = yes ; then
27389 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
27390 gcc_cv_ld_no_dot_syms
=yes
27392 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27393 cat > conftest1.s
<<EOF
27397 cat > conftest2.s
<<EOF
27398 .section ".opd","aw"
27401 .type foo,@function
27403 .quad .LEfoo,.TOC.@tocbase,0
27409 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27410 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27411 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27412 gcc_cv_ld_no_dot_syms
=yes
27414 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27419 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27420 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27422 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27427 $as_echo_n "checking linker large toc support... " >&6; }
27428 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27429 $as_echo_n "(cached) " >&6
27431 gcc_cv_ld_large_toc
=no
27432 if test x
"$ld_is_gold" = xyes
; then
27433 gcc_cv_ld_large_toc
=yes
27434 elif test $in_tree_ld = yes ; then
27435 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
27436 gcc_cv_ld_large_toc
=yes
27438 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27439 cat > conftest.s
<<EOF
27440 .section ".tbss","awT",@nobits
27446 addis 9,13,ie0@got@tprel@ha
27447 ld 9,ie0@got@tprel@l(9)
27449 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27450 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27451 gcc_cv_ld_large_toc
=yes
27453 rm -f conftest conftest.o conftest.s
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27458 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27459 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27461 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27470 $as_echo_n "checking linker large toc support... " >&6; }
27471 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27472 $as_echo_n "(cached) " >&6
27474 gcc_cv_ld_large_toc
=no
27475 if test x
$gcc_cv_as != x
; then
27476 cat > conftest.s
<<EOF
27486 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27487 gcc_cv_ld_large_toc
=yes
27489 rm -f conftest conftest.o conftest.s
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27494 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27495 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27497 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27504 $as_echo_n "checking linker --build-id support... " >&6; }
27505 if test "${gcc_cv_ld_buildid+set}" = set; then :
27506 $as_echo_n "(cached) " >&6
27508 gcc_cv_ld_buildid
=no
27509 if test $in_tree_ld = yes ; then
27510 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27511 "$gcc_cv_gld_minor_version" -ge 18 -o \
27512 "$gcc_cv_gld_major_version" -gt 2 \
27513 && test $in_tree_ld_is_elf = yes; then
27514 gcc_cv_ld_buildid
=yes
27516 elif test x
$gcc_cv_ld != x
; then
27517 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27518 gcc_cv_ld_buildid
=yes
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27523 $as_echo "$gcc_cv_ld_buildid" >&6; }
27524 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27526 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27530 # Check whether --enable-linker-build-id was given.
27531 if test "${enable_linker_build_id+set}" = set; then :
27532 enableval
=$enable_linker_build_id;
27534 enable_linker_build_id
=no
27538 if test x
"$enable_linker_build_id" = xyes
; then
27539 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27541 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27545 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27549 # In binutils 2.21, GNU ld gained support for new emulations fully
27550 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27552 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27553 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27554 $as_echo_n "(cached) " >&6
27556 gcc_cv_ld_sol2_emulation
=no
27557 if test $in_tree_ld = yes ; then
27558 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27559 "$gcc_cv_gld_minor_version" -ge 21 -o \
27560 "$gcc_cv_gld_major_version" -gt 2 \
27561 && test $in_tree_ld_is_elf = yes; then
27562 gcc_cv_ld_sol2_emulation
=yes
27564 elif test x
$gcc_cv_ld != x
; then
27565 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27566 grep _sol2
> /dev
/null
; then
27567 gcc_cv_ld_sol2_emulation
=yes
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27572 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27573 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27575 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27580 $as_echo_n "checking linker --sysroot support... " >&6; }
27581 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27582 $as_echo_n "(cached) " >&6
27584 gcc_cv_ld_sysroot
=no
27585 if test $in_tree_ld = yes ; then
27586 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
27587 gcc_cv_ld_sysroot
=yes
27589 elif test x
$gcc_cv_ld != x
; then
27590 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27591 gcc_cv_ld_sysroot
=yes
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27596 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27597 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27599 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27603 # Test for stack protector support in target C library.
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27605 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27606 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27607 $as_echo_n "(cached) " >&6
27609 gcc_cv_libc_provides_ssp
=no
27611 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27612 # glibc 2.4 and later provides __stack_chk_fail and
27613 # either __stack_chk_guard, or TLS access to stack guard canary.
27615 if test $glibc_version_major -gt 2 \
27616 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27617 gcc_cv_libc_provides_ssp
=yes
27620 if test -f $target_header_dir/features.h \
27621 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27622 $target_header_dir/features.h
> /dev
/null
; then
27623 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27624 $target_header_dir/features.h
> /dev
/null
&& \
27625 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27626 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27627 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27628 gcc_cv_libc_provides_ssp
=yes
27630 # all versions of Bionic support stack protector
27631 elif test -f $target_header_dir/sys
/cdefs.h \
27632 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27633 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27634 gcc_cv_libc_provides_ssp
=yes
27639 # Avoid complicated tests (see
27640 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27641 # simply assert that glibc does provide this, which is true for all
27642 # realistically usable GNU/Hurd configurations.
27643 gcc_cv_libc_provides_ssp
=yes;;
27644 *-*-darwin* |
*-*-freebsd*)
27645 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27646 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27647 gcc_cv_libc_provides_ssp
=yes
27649 echo "no __stack_chk_fail on this target"
27653 *) gcc_cv_libc_provides_ssp
=no
;;
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27657 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27659 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27661 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27665 # Test for <sys/sdt.h> on the target.
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27668 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27670 if test -f $target_header_dir/sys
/sdt.h
; then
27673 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27677 $as_echo "$have_sys_sdt_h" >&6; }
27679 # Check if TFmode long double should be used by default or not.
27680 # Some glibc targets used DFmode long double, but with glibc 2.4
27681 # and later they can use TFmode.
27683 powerpc
*-*-linux* | \
27684 sparc
*-*-linux* | \
27688 # Check whether --with-long-double-128 was given.
27689 if test "${with_long_double_128+set}" = set; then :
27690 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27693 if test $glibc_version_major -gt 2 \
27694 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27695 gcc_cv_target_ldbl128
=yes
27698 gcc_cv_target_ldbl128
=no
27699 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27700 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27701 && gcc_cv_target_ldbl128
=yes
27708 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27710 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27715 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27716 gcc_cv_target_dl_iterate_phdr
=unknown
27718 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27719 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27720 # libdl there, both complicating its use and breaking compatibility
27721 # between Solaris 10 updates.
27722 *-*-solaris2.1
[1-9]*)
27723 # <link.h> needs both a dl_iterate_phdr declaration and support for
27724 # compilation with largefile support.
27725 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27726 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27727 gcc_cv_target_dl_iterate_phdr
=yes
27729 gcc_cv_target_dl_iterate_phdr
=no
27732 *-*-dragonfly* |
*-*-freebsd*)
27733 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27734 gcc_cv_target_dl_iterate_phdr
=yes
27736 gcc_cv_target_dl_iterate_phdr
=no
27741 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27743 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27747 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27749 # We no longer support different GC mechanisms. Emit an error if
27750 # the user configures with --with-gc.
27752 # Check whether --with-gc was given.
27753 if test "${with_gc+set}" = set; then :
27754 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27758 # Libraries to use on the host. This will normally be set by the top
27759 # level Makefile. Here we simply capture the value for our Makefile.
27760 if test -z "${HOST_LIBS+set}"; then
27765 # Use the system's zlib library.
27767 zlibinc
="-I\$(srcdir)/../zlib"
27769 # Check whether --with-system-zlib was given.
27770 if test "${with_system_zlib+set}" = set; then :
27771 withval
=$with_system_zlib; zlibdir
=
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27781 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27782 # Check whether --enable-maintainer-mode was given.
27783 if test "${enable_maintainer_mode+set}" = set; then :
27784 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27791 $as_echo "$maintainer_mode" >&6; }
27793 if test "$maintainer_mode" = "yes"; then
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27801 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27802 # Check whether --enable-link-mutex was given.
27803 if test "${enable_link_mutex+set}" = set; then :
27804 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27810 $as_echo "$do_link_mutex" >&6; }
27812 if test "$do_link_mutex" = "yes"; then
27815 DO_LINK_MUTEX
=false
27823 # Make empty files to contain the specs and options for each language.
27824 # Then add #include lines to for a compiler that has specs and/or options.
27830 # These (without "all_") are set in each config-lang.in.
27831 # `language' must be a single word so is spelled singularly.
27834 all_outputs
='Makefile'
27835 # List of language makefile fragments.
27836 all_lang_makefrags
=
27837 # Additional files for gengtype
27838 all_gtfiles
="$target_gtfiles"
27840 # These are the languages that are set in --enable-languages,
27841 # and are available in the GCC tree.
27842 all_selected_languages
=
27844 # Add the language fragments.
27845 # Languages are added via two mechanisms. Some information must be
27846 # recorded in makefile variables, these are defined in config-lang.in.
27847 # We accumulate them and plug them into the main Makefile.
27848 # The other mechanism is a set of hooks for each of the main targets
27849 # like `clean', `install', etc.
27851 language_hooks
="Make-hooks"
27853 for lang
in ${srcdir}/*/config-lang.
in
27855 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27857 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27858 if test "x$lang_alias" = x
27860 echo "$lang doesn't set \$language." 1>&2
27863 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27864 subdirs
="$subdirs $subdir"
27866 # $gcc_subdir is where the gcc integration files are to be found
27867 # for a language, both for internal compiler purposes (compiler
27868 # sources implementing front-end to GCC tree converters), and for
27869 # build infrastructure purposes (Make-lang.in, etc.)
27871 # This will be <subdir> (relative to $srcdir) if a line like
27872 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27873 # is found in <langdir>/config-lang.in, and will remain <langdir>
27876 # Except for the language alias (fetched above), the regular
27877 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27878 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27879 # only this and the language alias.
27881 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27882 if [ "$gcc_subdir" = "" ]; then
27883 gcc_subdir
="$subdir"
27886 case ",$enable_languages," in
27888 all_selected_languages
="$all_selected_languages $lang_alias"
27889 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27890 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27901 .
${srcdir}/$gcc_subdir/config-lang.
in
27902 if test "x$language" = x
27904 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27909 case ",$enable_languages," in
27910 *,$lang_alias,*) ;;
27912 for i
in $subdir_requires; do
27913 test -f "${srcdir}/$i/config-lang.in" && continue
27921 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27922 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27923 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27924 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27926 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27927 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27929 all_languages
="$all_languages $language"
27930 all_compilers
="$all_compilers $compilers"
27931 all_outputs
="$all_outputs $outputs"
27932 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27933 case ",$enable_languages," in
27936 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27946 for language
in $all_selected_languages
27948 check_languages
="$check_languages check-$language"
27951 # We link each language in with a set of hooks, reached indirectly via
27952 # lang.${target}. Only do so for selected languages.
27956 target_list
="all.cross start.encap rest.encap tags \
27957 install-common install-man install-info install-pdf install-html dvi \
27958 pdf html uninstall info man srcextra srcman srcinfo \
27959 mostlyclean clean distclean maintainer-clean install-plugin"
27961 for t
in $target_list
27964 for lang
in $all_selected_languages
27968 echo "lang.$t: $x" >> Make-hooks
27972 # Option include files
27975 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27976 option_includes
="option-includes.mk"
27985 echo "dir ." > .gdbinit
27986 echo "dir ${srcdir}" >> .gdbinit
27987 if test x
$gdb_needs_out_file_path = xyes
27989 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27991 if test "x$subdirs" != x
; then
27994 echo "dir ${srcdir}/$s" >> .gdbinit
27997 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27998 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28000 # Put a breakpoint on __asan_report_error to help with debugging buffer
28003 *-fsanitize=address
*)
28004 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28008 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28012 # Find a directory in which to install a shared libgcc.
28014 # Check whether --enable-version-specific-runtime-libs was given.
28015 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28016 enableval
=$enable_version_specific_runtime_libs;
28020 # Substitute configuration variables
28084 if test x
${build} = x
${host} ; then
28085 if test x
${host} = x
${target} ; then
28086 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28088 echo "Links are now set up to build a cross-compiler" 1>&2
28089 echo " from ${host} to ${target}." 1>&2
28092 if test x
${host} = x
${target} ; then
28093 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28094 echo " for ${target}." 1>&2
28096 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28097 echo " from ${host} to ${target}." 1>&2
28106 if test "x${ISLLIBS}" != "x" ; then
28108 $as_echo "#define HAVE_isl 1" >>confdefs.h
28112 # Check whether isl_schedule_constraints_compute_schedule is available;
28113 # it's new in ISL-0.13.
28114 if test "x${ISLLIBS}" != "x" ; then
28115 saved_CFLAGS
="$CFLAGS"
28116 CFLAGS
="$CFLAGS $ISLINC"
28118 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28121 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28123 /* end confdefs.h. */
28124 #include <isl/schedule.h>
28128 isl_schedule_constraints_compute_schedule (NULL);
28133 if ac_fn_c_try_link
"$LINENO"; then :
28134 ac_has_isl_schedule_constraints_compute_schedule
=yes
28136 ac_has_isl_schedule_constraints_compute_schedule
=no
28138 rm -f core conftest.err conftest.
$ac_objext \
28139 conftest
$ac_exeext conftest.
$ac_ext
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28141 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28144 CFLAGS
="$saved_CFLAGS"
28146 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28148 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28153 # Check for plugin support
28154 # Check whether --enable-plugin was given.
28155 if test "${enable_plugin+set}" = set; then :
28156 enableval
=$enable_plugin; enable_plugin
=$enableval
28158 enable_plugin
=yes; default_plugin
=yes
28166 if test x
$build = x
$host; then
28167 export_sym_check
="nm${exeext} -g"
28168 elif test x
$host = x
$target; then
28169 export_sym_check
="$gcc_cv_nm -g"
28175 if test x
$build = x
$host; then
28176 export_sym_check
="objdump${exeext} -T"
28177 elif test x
$host = x
$target; then
28178 export_sym_check
="$gcc_cv_objdump -T"
28185 if test x
"$enable_plugin" = x
"yes"; then
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28188 $as_echo_n "checking for exported symbols... " >&6; }
28189 if test "x$export_sym_check" != x
; then
28190 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28191 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28192 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28193 : # No need to use a flag
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28195 $as_echo "yes" >&6; }
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28198 $as_echo "yes" >&6; }
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28200 $as_echo_n "checking for -rdynamic... " >&6; }
28201 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28202 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28203 plugin_rdynamic
=yes
28204 pluginlibs
="-rdynamic"
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28210 $as_echo "$plugin_rdynamic" >&6; }
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28214 $as_echo "unable to check" >&6; }
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28220 $as_echo_n "checking for library containing dlopen... " >&6; }
28221 if test "${ac_cv_search_dlopen+set}" = set; then :
28222 $as_echo_n "(cached) " >&6
28224 ac_func_search_save_LIBS
=$LIBS
28225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28226 /* end confdefs.h. */
28228 /* Override any GCC internal prototype to avoid an error.
28229 Use char because int might match the return type of a GCC
28230 builtin and then its argument prototype would still apply. */
28243 for ac_lib
in '' dl
; do
28244 if test -z "$ac_lib"; then
28245 ac_res
="none required"
28248 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28250 if ac_fn_c_try_link
"$LINENO"; then :
28251 ac_cv_search_dlopen
=$ac_res
28253 rm -f core conftest.err conftest.
$ac_objext \
28255 if test "${ac_cv_search_dlopen+set}" = set; then :
28259 if test "${ac_cv_search_dlopen+set}" = set; then :
28262 ac_cv_search_dlopen
=no
28264 rm conftest.
$ac_ext
28265 LIBS
=$ac_func_search_save_LIBS
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28268 $as_echo "$ac_cv_search_dlopen" >&6; }
28269 ac_res
=$ac_cv_search_dlopen
28270 if test "$ac_res" != no
; then :
28271 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28275 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28276 pluginlibs
="$pluginlibs -ldl"
28280 # Check that we can build shared objects with -fPIC -shared
28281 saved_LDFLAGS
="$LDFLAGS"
28282 saved_CFLAGS
="$CFLAGS"
28285 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28286 CFLAGS
="$CFLAGS -fPIC"
28287 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28290 CFLAGS
="$CFLAGS -fPIC"
28291 LDFLAGS
="$LDFLAGS -fPIC -shared"
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28295 $as_echo_n "checking for -fPIC -shared... " >&6; }
28296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28297 /* end confdefs.h. */
28307 if ac_fn_c_try_link
"$LINENO"; then :
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28309 $as_echo "yes" >&6; }; have_pic_shared
=yes
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28312 $as_echo "no" >&6; }; have_pic_shared
=no
28314 rm -f core conftest.err conftest.
$ac_objext \
28315 conftest
$ac_exeext conftest.
$ac_ext
28316 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28320 LDFLAGS
="$saved_LDFLAGS"
28321 CFLAGS
="$saved_CFLAGS"
28323 # If plugin support had been requested but not available, fail.
28324 if test x
"$enable_plugin" = x
"no" ; then
28325 if test x
"$default_plugin" != x
"yes"; then
28327 Building GCC with plugin support requires a host that supports
28328 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28335 if test x
"$enable_plugin" = x
"yes"; then
28337 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28342 # Enable --enable-host-shared
28343 # Check whether --enable-host-shared was given.
28344 if test "${enable_host_shared+set}" = set; then :
28345 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28354 # Check whether --enable-libquadmath-support was given.
28355 if test "${enable_libquadmath_support+set}" = set; then :
28356 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28358 ENABLE_LIBQUADMATH_SUPPORT
=yes
28361 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28363 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28368 # Specify what hash style to use by default.
28370 # Check whether --with-linker-hash-style was given.
28371 if test "${with_linker_hash_style+set}" = set; then :
28372 withval
=$with_linker_hash_style; case x
"$withval" in
28374 LINKER_HASH_STYLE
=sysv
28377 LINKER_HASH_STYLE
=gnu
28380 LINKER_HASH_STYLE
=both
28383 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28387 LINKER_HASH_STYLE
=''
28390 if test x
"${LINKER_HASH_STYLE}" != x
; then
28392 cat >>confdefs.h
<<_ACEOF
28393 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28398 # Specify what should be the default of -fdiagnostics-color option.
28400 # Check whether --with-diagnostics-color was given.
28401 if test "${with_diagnostics_color+set}" = set; then :
28402 withval
=$with_diagnostics_color; case x
"$withval" in
28404 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28407 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28410 DIAGNOSTICS_COLOR_DEFAULT
=-1
28413 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28416 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28420 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28424 cat >>confdefs.h
<<_ACEOF
28425 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28429 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28430 # of jit/jit-playback.c.
28431 cat > gcc-driver-name.h
<<EOF
28432 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28435 # Configure the subdirectories
28436 # AC_CONFIG_SUBDIRS($subdirs)
28438 # Create the Makefile
28439 # and configure language subdirectories
28440 ac_config_files
="$ac_config_files $all_outputs"
28443 ac_config_commands
="$ac_config_commands default"
28445 cat >confcache
<<\_ACEOF
28446 # This file is a shell script that caches the results of configure
28447 # tests run on this system so they can be shared between configure
28448 # scripts and configure runs, see configure's option --config-cache.
28449 # It is not useful on other systems. If it contains results you don't
28450 # want to keep, you may remove or edit it.
28452 # config.status only pays attention to the cache file if you give it
28453 # the --recheck option to rerun configure.
28455 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28456 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28457 # following values.
28461 # The following way of writing the cache mishandles newlines in values,
28462 # but we know of no workaround that is simple, portable, and efficient.
28463 # So, we kill variables containing newlines.
28464 # Ultrix sh set writes to stderr and can't be redirected directly,
28465 # and sets the high bit in the cache file unless we assign to the vars.
28467 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28468 eval ac_val
=\$
$ac_var
28472 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28473 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28476 _ | IFS | as_nl
) ;; #(
28477 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28478 *) { eval $ac_var=; unset $ac_var;} ;;
28484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28485 *${as_nl}ac_space
=\
*)
28486 # `set' does not quote correctly, so add quotes: double-quote
28487 # substitution turns \\\\ into \\, and sed turns \\ into \.
28490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28493 # `set' quotes correctly as required by POSIX, so do not add quotes.
28494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28507 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28508 if test -w "$cache_file"; then
28509 test "x$cache_file" != "x/dev/null" &&
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28511 $as_echo "$as_me: updating cache $cache_file" >&6;}
28512 cat confcache
>$cache_file
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28520 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28521 # Let make expand exec_prefix.
28522 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28524 DEFS
=-DHAVE_CONFIG_H
28528 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28529 # 1. Remove the extension, and $U if already installed.
28530 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28531 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28533 # will be set to the directory where LIBOBJS objects are built.
28534 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28535 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28537 LIBOBJS
=$ac_libobjs
28539 LTLIBOBJS
=$ac_ltlibobjs
28544 : ${CONFIG_STATUS=./config.status}
28546 ac_clean_files_save
=$ac_clean_files
28547 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28553 # Generated by $as_me.
28554 # Run this file to recreate the current configuration.
28555 # Compiler output produced by configure, useful for debugging
28556 # configure, is in config.log if it exists.
28559 ac_cs_recheck=false
28562 SHELL=\${CONFIG_SHELL-$SHELL}
28565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28566 ## -------------------- ##
28567 ## M4sh Initialization. ##
28568 ## -------------------- ##
28570 # Be more Bourne compatible
28571 DUALCASE
=1; export DUALCASE
# for MKS sh
28572 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28576 # is contrary to our usage. Disable this feature.
28577 alias -g '${1+"$@"}'='"$@"'
28578 setopt NO_GLOB_SUBST
28580 case `(set -o) 2>/dev/null` in #(
28592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28593 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28596 # Prefer a ksh shell builtin over an external printf program on Solaris,
28597 # but without wasting forks for bash or zsh.
28598 if test -z "$BASH_VERSION$ZSH_VERSION" \
28599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28600 as_echo='print
-r --'
28601 as_echo_n='print
-rn --'
28602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28603 as_echo='printf %s
\n'
28604 as_echo_n='printf %s
'
28606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28607 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28608 as_echo_n='/usr
/ucb
/echo -n'
28610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28611 as_echo_n_body='eval
28615 expr "X$arg" : "X\\(.*\\)$as_nl";
28616 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28618 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28620 export as_echo_n_body
28621 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28623 export as_echo_body
28624 as_echo='sh
-c $as_echo_body as_echo
'
28627 # The user is always right.
28628 if test "${PATH_SEPARATOR+set}" != set; then
28630 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28631 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28638 # We need space, tab and new line, in precisely that order. Quoting is
28639 # there to prevent editors from complaining about space-tab.
28640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28641 # splitting by setting IFS to empty value.)
28644 # Find who we are. Look in the path if we contain no directory separator.
28646 *[\\/]* ) as_myself=$0 ;;
28647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28648 for as_dir in $PATH
28651 test -z "$as_dir" && as_dir=.
28652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28658 # We did not find ourselves, most probably we were run as `sh COMMAND'
28659 # in which case we are not to be found in the path.
28660 if test "x$as_myself" = x
; then
28663 if test ! -f "$as_myself"; then
28664 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28668 # Unset variables that we do not need and which cause bugs (e.g. in
28669 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28670 # suppresses any "Segmentation fault" message there. '((' could
28671 # trigger a bug in pdksh 5.2.14.
28672 for as_var
in BASH_ENV ENV MAIL MAILPATH
28673 do eval test x\
${$as_var+set} = xset \
28674 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28687 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28690 # as_fn_error ERROR [LINENO LOG_FD]
28691 # ---------------------------------
28692 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28693 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28694 # script with status $?, using 1 if that was 0.
28697 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28699 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28700 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28702 $as_echo "$as_me: error: $1" >&2
28703 as_fn_exit
$as_status
28707 # as_fn_set_status STATUS
28708 # -----------------------
28709 # Set $? to STATUS, without forking.
28710 as_fn_set_status
()
28713 } # as_fn_set_status
28715 # as_fn_exit STATUS
28716 # -----------------
28717 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28721 as_fn_set_status
$1
28727 # Portably unset VAR.
28730 { eval $1=; unset $1;}
28732 as_unset
=as_fn_unset
28733 # as_fn_append VAR VALUE
28734 # ----------------------
28735 # Append the text in VALUE to the end of the definition contained in VAR. Take
28736 # advantage of any shell optimizations that allow amortized linear growth over
28737 # repeated appends, instead of the typical quadratic growth present in naive
28739 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28740 eval 'as_fn_append ()
28751 # as_fn_arith ARG...
28752 # ------------------
28753 # Perform arithmetic evaluation on the ARGs, and store the result in the
28754 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28755 # must be portable across $(()) and expr.
28756 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28757 eval 'as_fn_arith ()
28764 as_val
=`expr "$@" || test $? -eq 1`
28769 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28770 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28776 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28777 as_basename
=basename
28782 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28788 as_me
=`$as_basename -- "$0" ||
28789 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28790 X"$0" : 'X\(//\)$' \| \
28791 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28793 sed '/^.*\/\([^/][^/]*\)\/*$/{
28807 # Avoid depending upon Character Ranges.
28808 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28809 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28810 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28811 as_cr_digits
='0123456789'
28812 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28814 ECHO_C
= ECHO_N
= ECHO_T
=
28815 case `echo -n x` in #(((((
28817 case `echo 'xy\c'` in
28818 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28820 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28827 rm -f conf$$ conf$$.exe conf$$.
file
28828 if test -d conf$$.dir
; then
28829 rm -f conf$$.dir
/conf$$.
file
28832 mkdir conf$$.dir
2>/dev
/null
28834 if (echo >conf$$.
file) 2>/dev
/null
; then
28835 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28837 # ... but there are two gotchas:
28838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28840 # In both cases, we have to default to `cp -p'.
28841 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28843 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28851 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28852 rmdir conf$$.dir
2>/dev
/null
28857 # Create "$as_dir" as a directory, including parents if necessary.
28862 -*) as_dir
=.
/$as_dir;;
28864 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28868 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28869 *) as_qdir
=$as_dir;;
28871 as_dirs
="'$as_qdir' $as_dirs"
28872 as_dir
=`$as_dirname -- "$as_dir" ||
28873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28874 X"$as_dir" : 'X\(//\)[^/]' \| \
28875 X"$as_dir" : 'X\(//\)$' \| \
28876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28877 $as_echo X"$as_dir" |
28878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28882 /^X\(\/\/\)[^/].*/{
28895 test -d "$as_dir" && break
28897 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28898 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28902 if mkdir
-p .
2>/dev
/null
; then
28903 as_mkdir_p
='mkdir -p "$as_dir"'
28905 test -d .
/-p && rmdir .
/-p
28909 if test -x / >/dev
/null
2>&1; then
28910 as_test_x
='test -x'
28912 if ls -dL / >/dev
/null
2>&1; then
28919 if test -d "$1"; then
28925 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28926 ???[sx]*):;;*)false;;esac;fi
28930 as_executable_p
=$as_test_x
28932 # Sed expression to map a string onto a valid CPP name.
28933 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28935 # Sed expression to map a string onto a valid variable name.
28936 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28940 ## ----------------------------------- ##
28941 ## Main body of $CONFIG_STATUS script. ##
28942 ## ----------------------------------- ##
28944 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28947 # Save the log message, to keep $0 and so on meaningful, and to
28948 # report actual input values of CONFIG_FILES etc. instead of their
28949 # values after options handling.
28951 This file was extended by $as_me, which was
28952 generated by GNU Autoconf 2.64. Invocation command line was
28954 CONFIG_FILES = $CONFIG_FILES
28955 CONFIG_HEADERS = $CONFIG_HEADERS
28956 CONFIG_LINKS = $CONFIG_LINKS
28957 CONFIG_COMMANDS = $CONFIG_COMMANDS
28960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28965 case $ac_config_files in *"
28966 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28969 case $ac_config_headers in *"
28970 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28975 # Files that config.status was made for.
28976 config_files="$ac_config_files"
28977 config_headers="$ac_config_headers"
28978 config_links="$ac_config_links"
28979 config_commands="$ac_config_commands"
28983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28985 \`$as_me' instantiates files and other configuration actions
28986 from templates according to the current configuration. Unless the files
28987 and actions are specified as TAGs, all are instantiated by default.
28989 Usage: $0 [OPTION]... [TAG]...
28991 -h, --help print this help, then exit
28992 -V, --version print version number and configuration settings, then exit
28993 -q, --quiet, --silent
28994 do not print progress messages
28995 -d, --debug don't remove temporary files
28996 --recheck update $as_me by reconfiguring in the same conditions
28997 --file=FILE[:TEMPLATE]
28998 instantiate the configuration file FILE
28999 --header=FILE[:TEMPLATE]
29000 instantiate the configuration header FILE
29002 Configuration files:
29005 Configuration headers:
29008 Configuration links:
29011 Configuration commands:
29014 Report bugs to the package provider."
29017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29020 configured by $0, generated by GNU Autoconf 2.64,
29021 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29023 Copyright (C) 2009 Free Software Foundation, Inc.
29024 This config.status script is free software; the Free Software Foundation
29025 gives unlimited permission to copy, distribute and modify it."
29030 test -n "\$AWK" || AWK=awk
29033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29034 # The default lists apply if the user does not specify any file.
29040 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29041 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29052 # Handling of the options.
29053 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29055 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29056 $as_echo "$ac_cs_version"; exit ;;
29057 --debug |
--debu |
--deb |
--de |
--d |
-d )
29059 --file |
--fil |
--fi |
--f )
29062 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29064 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29065 ac_need_defaults
=false
;;
29066 --header |
--heade |
--head |
--hea )
29069 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29071 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29072 ac_need_defaults
=false
;;
29074 # Conflict between --help and --header
29075 as_fn_error
"ambiguous option: \`$1'
29076 Try \`$0 --help' for more information.";;
29077 --help |
--hel |
-h )
29078 $as_echo "$ac_cs_usage"; exit ;;
29079 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29080 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29083 # This is an error.
29084 -*) as_fn_error
"unrecognized option: \`$1'
29085 Try \`$0 --help' for more information." ;;
29087 *) as_fn_append ac_config_targets
" $1"
29088 ac_need_defaults
=false
;;
29094 ac_configure_extra_args
=
29096 if $ac_cs_silent; then
29098 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29103 if \$ac_cs_recheck; then
29104 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29106 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29107 CONFIG_SHELL='$SHELL'
29108 export CONFIG_SHELL
29113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29118 ## Running $as_me. ##
29124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29128 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29129 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29136 # Handling of arguments.
29137 for ac_config_target
in $ac_config_targets
29139 case $ac_config_target in
29140 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29141 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29142 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29143 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29144 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29145 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29146 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29147 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29148 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29150 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29155 # If the user did not use the arguments to specify the items to instantiate,
29156 # then the envvar interface is used. Set only those that are not.
29157 # We use the long form for the default assignment because of an extremely
29158 # bizarre bug on SunOS 4.1.3.
29159 if $ac_need_defaults; then
29160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29162 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29166 # Have a temporary directory for convenience. Make it in the build tree
29167 # simply because there is no reason against having it here, and in addition,
29168 # creating and moving files from /tmp can sometimes cause problems.
29169 # Hook for its removal unless debugging.
29170 # Note that there is a small window in which the directory will not be cleaned:
29171 # after its creation but before its name has been assigned to `$tmp'.
29175 trap 'exit_status=$?
29176 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29178 trap 'as_fn_exit 1' 1 2 13 15
29180 # Create a (secure) tmp directory for tmp files.
29183 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29184 test -n "$tmp" && test -d "$tmp"
29187 tmp
=.
/conf$$
-$RANDOM
29188 (umask 077 && mkdir
"$tmp")
29189 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29191 # Set up the scripts for CONFIG_FILES section.
29192 # No need to generate them if there are no CONFIG_FILES.
29193 # This happens for instance with `./config.status config.h'.
29194 if test -n "$CONFIG_FILES"; then
29196 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29197 ac_cs_awk_getline
=:
29198 ac_cs_awk_pipe_init
=
29199 ac_cs_awk_read_file
='
29200 while ((getline aline < (F[key])) > 0)
29203 ac_cs_awk_pipe_fini
=
29205 ac_cs_awk_getline
=false
29206 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29207 ac_cs_awk_read_file
='
29209 print "cat " F[key] " &&"
29210 '$ac_cs_awk_pipe_init
29211 # The final `:' finishes the AND list.
29212 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29214 ac_cr
=`echo X | tr X '\015'`
29215 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29216 # But we know of no other shell where ac_cr would be empty at this
29217 # point, so we can use a bashism as a fallback.
29218 if test "x$ac_cr" = x
; then
29219 eval ac_cr
=\$
\'\\r
\'
29221 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29222 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29225 ac_cs_awk_cr
=$ac_cr
29228 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29231 # Create commands to substitute file output variables.
29233 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29234 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29235 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29238 } >conf$
$files.sh
&&
29239 . .
/conf$
$files.sh ||
29240 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29241 rm -f conf$
$files.sh
29244 echo "cat >conf$$subs.awk <<_ACEOF" &&
29245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29247 } >conf$$subs.sh ||
29248 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29251 for ac_last_try in false false false false false :; do
29252 . ./conf$$subs.sh ||
29253 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29255 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29256 if test $ac_delim_n = $ac_delim_num; then
29258 elif $ac_last_try; then
29259 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29261 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29264 rm -f conf$$subs.sh
29266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29267 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29271 s/^/S["/; s
/!.
*/"]=/
29281 s/\(.\{148\}\).*/\1/
29283 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29288 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29295 s/\(.\{148\}\).*/\1/
29297 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29301 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29306 ' <conf$$subs.awk | sed '
29311 ' >>$CONFIG_STATUS || ac_write_fail=1
29312 rm -f conf$$subs.awk
29313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29315 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29316 for (key in S) S_is_set[key] = 1
29318 \$ac_cs_awk_pipe_init
29322 nfields = split(line, field, "@
")
29324 len = length(field[1])
29325 for (i = 2; i < nfields; i++) {
29327 keylen = length(key)
29328 if (S_is_set[key]) {
29330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29331 len += length(value) + length(field[++i])
29336 if (nfields == 3 && !substed) {
29338 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29339 \$ac_cs_awk_read_file
29345 \$ac_cs_awk_pipe_fini
29348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29349 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29350 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29353 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29354 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29357 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29358 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29359 # trailing colons and then remove the whole line if VPATH becomes empty
29360 # (actually we leave an empty line to preserve line numbers).
29361 if test "x
$srcdir" = x.; then
29362 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29363 s/:*\$(srcdir):*/:/
29364 s/:*\${srcdir}:*/:/
29366 s/^\([^=]*=[ ]*\):*/\1/
29372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29373 fi # test -n "$CONFIG_FILES"
29375 # Set up the scripts for CONFIG_HEADERS section.
29376 # No need to generate them if there are no CONFIG_HEADERS.
29377 # This happens for instance with `./config.status Makefile'.
29378 if test -n "$CONFIG_HEADERS"; then
29379 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29383 # Transform confdefs.h into an awk script `defines.awk', embedded as
29384 # here-document in config.status, that substitutes the proper values into
29385 # config.h.in to produce config.h.
29387 # Create a delimiter string that does not exist in confdefs.h, to ease
29388 # handling of long lines.
29390 for ac_last_try in false false :; do
29391 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29392 if test -z "$ac_t"; then
29394 elif $ac_last_try; then
29395 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29397 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29401 # For the awk script, D is an array of macro values keyed by name,
29402 # likewise P contains macro parameters if any. Preserve backslash
29403 # newline sequences.
29405 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29407 s/.\{148\}/&'"$ac_delim"'/g
29410 s/^[ ]*#[ ]*define[ ][ ]*/ /
29417 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29419 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29424 D["\
1"]=" \
3\\\\\\n
"\\/p
29426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29431 s/.\{148\}/&'"$ac_delim"'/g
29436 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29439 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29441 ' <confdefs.h | sed '
29442 s/'"$ac_delim"'/"\\\
29443 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29446 for (key in D) D_is_set[key] = 1
29449 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29451 split(line, arg, " ")
29452 if (arg[1] == "#") {
29456 defundef
= substr
(arg
[1], 2)
29459 split(mac1
, mac2
, "(") #)
29461 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29462 if (D_is_set
[macro
]) {
29463 # Preserve the white space surrounding the "#".
29464 print prefix
"define", macro P
[macro
] D
[macro
]
29467 # Replace #undef with comments. This is necessary, for example,
29468 # in the case of _POSIX_SOURCE, which is predefined and required
29469 # on some systems where configure will not decide to define it.
29470 if (defundef
== "undef") {
29471 print
"/*", prefix defundef
, macro
, "*/"
29479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29480 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29481 fi # test -n "$CONFIG_HEADERS"
29484 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29489 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29491 case $ac_mode$ac_tag in
29493 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29494 :[FH
]-) ac_tag
=-:-;;
29495 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29512 -) ac_f
="$tmp/stdin";;
29513 *) # Look for the file first in the build tree, then in the source tree
29514 # (if the path is not absolute). The absolute path cannot be DOS-style,
29515 # because $ac_f cannot contain `:'.
29519 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29521 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29523 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29524 as_fn_append ac_file_inputs
" '$ac_f'"
29527 # Let's still pretend it is `configure' which instantiates (i.e., don't
29528 # use $as_me), people would be surprised to read:
29529 # /* config.h. Generated by config.status. */
29530 configure_input
='Generated from '`
29531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29533 if test x
"$ac_file" != x-
; then
29534 configure_input
="$ac_file. $configure_input"
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29536 $as_echo "$as_me: creating $ac_file" >&6;}
29538 # Neutralize special characters interpreted by sed in replacement strings.
29539 case $configure_input in #(
29540 *\
&* |
*\|
* |
*\\* )
29541 ac_sed_conf_input
=`$as_echo "$configure_input" |
29542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29543 *) ac_sed_conf_input
=$configure_input;;
29547 *:-:* |
*:-) cat >"$tmp/stdin" \
29548 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29553 ac_dir
=`$as_dirname -- "$ac_file" ||
29554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29555 X"$ac_file" : 'X\(//\)[^/]' \| \
29556 X"$ac_file" : 'X\(//\)$' \| \
29557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29558 $as_echo X"$ac_file" |
29559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29563 /^X\(\/\/\)[^/].*/{
29576 as_dir
="$ac_dir"; as_fn_mkdir_p
29580 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29582 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29583 # A ".." for each directory in $ac_dir_suffix.
29584 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29585 case $ac_top_builddir_sub in
29586 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29587 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29590 ac_abs_top_builddir
=$ac_pwd
29591 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29592 # for backward compatibility:
29593 ac_top_builddir
=$ac_top_build_prefix
29596 .
) # We are building in place.
29598 ac_top_srcdir
=$ac_top_builddir_sub
29599 ac_abs_top_srcdir
=$ac_pwd ;;
29600 [\\/]* | ?
:[\\/]* ) # Absolute name.
29601 ac_srcdir
=$srcdir$ac_dir_suffix;
29602 ac_top_srcdir
=$srcdir
29603 ac_abs_top_srcdir
=$srcdir ;;
29604 *) # Relative name.
29605 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29606 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29607 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29609 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29621 # If the template does not know about datarootdir, expand it.
29622 # FIXME: This hack should be removed a few years after 2.60.
29623 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29635 *datarootdir
*) ac_datarootdir_seen
=yes;;
29636 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29641 ac_datarootdir_hack='
29642 s&@datadir@&$datadir&g
29643 s&@docdir@&$docdir&g
29644 s&@infodir@&$infodir&g
29645 s&@localedir@&$localedir&g
29646 s&@mandir@&$mandir&g
29647 s&\\\${datarootdir}&$datarootdir&g' ;;
29651 # Neutralize VPATH when `$srcdir' = `.'.
29652 # Shell code in configure.ac might set extrasub.
29653 # FIXME: do we really want to maintain this feature?
29654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29655 ac_sed_extra="$ac_vpsub
29658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29660 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29661 s|@configure_input@|
$ac_sed_conf_input|
;t t
29662 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29663 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29664 s
&@srcdir@
&$ac_srcdir&;t t
29665 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29666 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29667 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29668 s
&@builddir@
&$ac_builddir&;t t
29669 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29670 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29671 $ac_datarootdir_hack
29673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29674 if $ac_cs_awk_getline; then
29675 $AWK -f "$tmp/subs.
awk"
29677 $AWK -f "$tmp/subs.
awk" | $SHELL
29679 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29682 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29685 which seems to be undefined. Please make sure it is defined." >&5
29686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29687 which seems to be undefined. Please make sure it is defined." >&2;}
29691 -) cat "$tmp/out" && rm -f "$tmp/out";;
29692 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29694 || as_fn_error "could not create $ac_file" "$LINENO" 5
29700 if test x"$ac_file" != x-; then
29702 $as_echo "/* $configure_input */" \
29703 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29704 } >"$tmp/config.h" \
29705 || as_fn_error "could not create $ac_file" "$LINENO" 5
29706 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29708 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29711 mv "$tmp/config.h" "$ac_file" \
29712 || as_fn_error "could not create $ac_file" "$LINENO" 5
29715 $as_echo "/* $configure_input */" \
29716 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29717 || as_fn_error "could not create -" "$LINENO" 5
29725 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29728 # Prefer the file from the source tree if names are identical.
29729 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29730 ac_source=$srcdir/$ac_source
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29734 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29736 if test ! -r "$ac_source"; then
29737 as_fn_error "$ac_source: file not found" "$LINENO" 5
29741 # Try a relative symlink, then a hard link, then a copy.
29743 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29744 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29746 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29747 ln "$ac_source" "$ac_file" 2>/dev/null ||
29748 cp -p "$ac_source" "$ac_file" ||
29749 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29753 $as_echo "$as_me: executing $ac_file commands" >&6;}
29758 case $ac_file$ac_mode in
29759 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29761 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29762 for lang in $subdirs c-family common
29764 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29766 "as":F) chmod +x as ;;
29767 "collect-ld":F) chmod +x collect-ld ;;
29768 "nm":F) chmod +x nm ;;
29770 case ${CONFIG_HEADERS} in
29771 *auto-host.h:config.in*)
29774 # Make sure all the subdirs exist.
29775 for d in $subdirs doc build common c-family
29777 test -d $d || mkdir $d
29787 ac_clean_files=$ac_clean_files_save
29789 test $ac_write_fail = 0 ||
29790 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29793 # configure is writing to config.log, and then calls config.status.
29794 # config.status does its own redirection, appending to config.log.
29795 # Unfortunately, on DOS this fails, as config.log is still kept open
29796 # by configure, so config.status won't be able to
write to it
; its
29797 # output is simply discarded. So we exec the FD to /dev/null,
29798 # effectively closing config.log, so it can be properly (re)opened and
29799 # appended to by config.status. When coming back to configure, we
29800 # need to make the FD available again.
29801 if test "$no_create" != yes; then
29803 ac_config_status_args
=
29804 test "$silent" = yes &&
29805 ac_config_status_args
="$ac_config_status_args --quiet"
29807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29810 # would make configure fail if this is the last instruction.
29811 $ac_cs_success || as_fn_exit $?
29813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29815 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}