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_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
767 SYSROOT_CFLAGS_FOR_TARGET
777 valgrind_path_defines
850 program_transform_name
861 ac_subst_files
='option_includes
864 enable_option_checking
869 enable_generated_files_in_srcdir
879 enable_gather_detailed_mem_stats
891 with_native_system_header_dir
901 enable_sjlj_exceptions
903 enable_leading_mingw64_underscores
906 enable_win32_registry
912 enable_gnu_indirect_function
913 enable_initfini_array
915 enable_gnu_unique_object
916 enable_linker_build_id
920 enable_maintainer_mode
922 enable_version_specific_runtime_libs
924 enable_libquadmath_support
925 with_linker_hash_style
927 ac_precious_vars
='build_alias
948 # Initialize some variables set by options.
950 ac_init_version
=false
951 ac_unrecognized_opts
=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name
=s
,x
,x
,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir
='${exec_prefix}/bin'
977 sbindir
='${exec_prefix}/sbin'
978 libexecdir
='${exec_prefix}/libexec'
979 datarootdir
='${prefix}/share'
980 datadir
='${datarootdir}'
981 sysconfdir
='${prefix}/etc'
982 sharedstatedir
='${prefix}/com'
983 localstatedir
='${prefix}/var'
984 includedir
='${prefix}/include'
985 oldincludedir
='/usr/include'
986 docdir
='${datarootdir}/doc/${PACKAGE}'
987 infodir
='${datarootdir}/info'
992 libdir
='${exec_prefix}/lib'
993 localedir
='${datarootdir}/locale'
994 mandir
='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\
$ac_option
1008 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1020 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1021 bindir
=$ac_optarg ;;
1023 -build |
--build |
--buil |
--bui |
--bu)
1024 ac_prev
=build_alias
;;
1025 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1026 build_alias
=$ac_optarg ;;
1028 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1029 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1030 ac_prev
=cache_file
;;
1031 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1032 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1033 cache_file
=$ac_optarg ;;
1035 --config-cache |
-C)
1036 cache_file
=config.cache
;;
1038 -datadir |
--datadir |
--datadi |
--datad)
1040 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1041 datadir
=$ac_optarg ;;
1043 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1044 |
--dataroo |
--dataro |
--datar)
1045 ac_prev
=datarootdir
;;
1046 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1047 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1048 datarootdir
=$ac_optarg ;;
1050 -disable-* |
--disable-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error
"invalid feature name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_
$ac_useropt"
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval enable_
$ac_useropt=no
;;
1066 -docdir |
--docdir |
--docdi |
--doc |
--do)
1068 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1069 docdir
=$ac_optarg ;;
1071 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1073 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1074 dvidir
=$ac_optarg ;;
1076 -enable-* |
--enable-*)
1077 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1080 as_fn_error
"invalid feature name: $ac_useropt"
1081 ac_useropt_orig
=$ac_useropt
1082 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_
$ac_useropt"
1087 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep
=', ';;
1090 eval enable_
$ac_useropt=\
$ac_optarg ;;
1092 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1093 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1094 |
--exec |
--exe |
--ex)
1095 ac_prev
=exec_prefix
;;
1096 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1097 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1098 |
--exec=* |
--exe=* |
--ex=*)
1099 exec_prefix
=$ac_optarg ;;
1101 -gas |
--gas |
--ga |
--g)
1102 # Obsolete; use --with-gas.
1105 -help |
--help |
--hel |
--he |
-h)
1106 ac_init_help
=long
;;
1107 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1108 ac_init_help
=recursive
;;
1109 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1110 ac_init_help
=short
;;
1112 -host |
--host |
--hos |
--ho)
1113 ac_prev
=host_alias
;;
1114 -host=* |
--host=* |
--hos=* |
--ho=*)
1115 host_alias
=$ac_optarg ;;
1117 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1119 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1121 htmldir
=$ac_optarg ;;
1123 -includedir |
--includedir |
--includedi |
--included |
--include \
1124 |
--includ |
--inclu |
--incl |
--inc)
1125 ac_prev
=includedir
;;
1126 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1127 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1128 includedir
=$ac_optarg ;;
1130 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1132 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1133 infodir
=$ac_optarg ;;
1135 -libdir |
--libdir |
--libdi |
--libd)
1137 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1138 libdir
=$ac_optarg ;;
1140 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1141 |
--libexe |
--libex |
--libe)
1142 ac_prev
=libexecdir
;;
1143 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1144 |
--libexe=* |
--libex=* |
--libe=*)
1145 libexecdir
=$ac_optarg ;;
1147 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1148 ac_prev
=localedir
;;
1149 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1150 localedir
=$ac_optarg ;;
1152 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1153 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1154 ac_prev
=localstatedir
;;
1155 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1156 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1157 localstatedir
=$ac_optarg ;;
1159 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1161 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1162 mandir
=$ac_optarg ;;
1164 -nfp |
--nfp |
--nf)
1165 # Obsolete; use --without-fp.
1168 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1169 |
--no-cr |
--no-c |
-n)
1172 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1173 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1176 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1177 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1178 |
--oldin |
--oldi |
--old |
--ol |
--o)
1179 ac_prev
=oldincludedir
;;
1180 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1181 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1182 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1183 oldincludedir
=$ac_optarg ;;
1185 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1187 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1188 prefix
=$ac_optarg ;;
1190 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1191 |
--program-pre |
--program-pr |
--program-p)
1192 ac_prev
=program_prefix
;;
1193 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1194 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1195 program_prefix
=$ac_optarg ;;
1197 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1198 |
--program-suf |
--program-su |
--program-s)
1199 ac_prev
=program_suffix
;;
1200 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1201 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1202 program_suffix
=$ac_optarg ;;
1204 -program-transform-name |
--program-transform-name \
1205 |
--program-transform-nam |
--program-transform-na \
1206 |
--program-transform-n |
--program-transform- \
1207 |
--program-transform |
--program-transfor \
1208 |
--program-transfo |
--program-transf \
1209 |
--program-trans |
--program-tran \
1210 |
--progr-tra |
--program-tr |
--program-t)
1211 ac_prev
=program_transform_name
;;
1212 -program-transform-name=* |
--program-transform-name=* \
1213 |
--program-transform-nam=* |
--program-transform-na=* \
1214 |
--program-transform-n=* |
--program-transform-=* \
1215 |
--program-transform=* |
--program-transfor=* \
1216 |
--program-transfo=* |
--program-transf=* \
1217 |
--program-trans=* |
--program-tran=* \
1218 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1219 program_transform_name
=$ac_optarg ;;
1221 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1223 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1224 pdfdir
=$ac_optarg ;;
1226 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1228 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1231 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1232 |
-silent |
--silent |
--silen |
--sile |
--sil)
1235 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1237 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1239 sbindir
=$ac_optarg ;;
1241 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1242 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1243 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1245 ac_prev
=sharedstatedir
;;
1246 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1247 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1248 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1250 sharedstatedir
=$ac_optarg ;;
1252 -site |
--site |
--sit)
1254 -site=* |
--site=* |
--sit=*)
1257 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1259 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1260 srcdir
=$ac_optarg ;;
1262 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1263 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1264 ac_prev
=sysconfdir
;;
1265 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1266 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1267 sysconfdir
=$ac_optarg ;;
1269 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1270 ac_prev
=target_alias
;;
1271 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1272 target_alias
=$ac_optarg ;;
1274 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1277 -version |
--version |
--versio |
--versi |
--vers |
-V)
1278 ac_init_version
=: ;;
1281 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1284 as_fn_error
"invalid package name: $ac_useropt"
1285 ac_useropt_orig
=$ac_useropt
1286 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep
=', ';;
1294 eval with_
$ac_useropt=\
$ac_optarg ;;
1296 -without-* |
--without-*)
1297 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1300 as_fn_error
"invalid package name: $ac_useropt"
1301 ac_useropt_orig
=$ac_useropt
1302 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep
=', ';;
1310 eval with_
$ac_useropt=no
;;
1313 # Obsolete; use --with-x.
1316 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1317 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1318 ac_prev
=x_includes
;;
1319 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1320 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1321 x_includes
=$ac_optarg ;;
1323 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1324 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1325 ac_prev
=x_libraries
;;
1326 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1327 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1328 x_libraries
=$ac_optarg ;;
1330 -*) as_fn_error
"unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information."
1335 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1339 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1341 eval $ac_envvar=\
$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 if test -n "$ac_prev"; then
1356 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error
"missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1363 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 # Check all directory arguments for consistency.
1369 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val
=\$
$ac_var
1375 # Remove trailing slashes.
1378 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\
$ac_val;;
1381 # Be sure to have absolute directory names.
1383 [\\/$
]* | ?
:[\\/]* ) continue;;
1384 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1386 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1394 target
=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x
; then
1398 if test "x$build_alias" = x
; then
1399 cross_compiling
=maybe
1400 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used." >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1408 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1410 test "$silent" = yes && exec 6>/dev
/null
1413 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di
=`ls -di .` &&
1415 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error
"working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error
"pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted
=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir
=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1453 ac_srcdir_defaulted
=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1457 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1471 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 for ac_var
in $ac_precious_vars; do
1474 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1476 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1487 \`configure' configures this package to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1550 --build=BUILD configure
for building on BUILD
[guessed
]
1551 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1552 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1556 if test -n "$ac_init_help"; then
1561 --disable-option-checking ignore unrecognized
--enable/--with options
1562 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1563 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1564 --enable-generated-files-in-srcdir
1565 put copies of generated files
in source dir intended
1566 for creating
source tarballs
for users without
1567 texinfo bison or flex
1568 --disable-largefile omit support
for large files
1569 --enable-werror-always enable -Werror despite compiler version
1570 --enable-checking[=LIST
]
1571 enable expensive run-time checks. With LIST
, enable
1572 only specific categories of checks. Categories are
:
1573 yes,no
,all
,none
,release. Flags are
:
1574 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1575 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1576 --enable-coverage[=LEVEL
]
1577 enable compiler
's code coverage collection. Use to
1578 measure compiler performance and locate unused parts
1579 of the compiler. With LEVEL, specify optimization.
1580 Values are opt, noopt, default is noopt
1581 --enable-gather-detailed-mem-stats
1582 enable detailed memory allocation stats gathering
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-multiarch enable support for multiarch paths
1585 --enable-__cxa_atexit enable __cxa_atexit for C++
1586 --enable-decimal-float={no,yes,bid,dpd}
1587 enable decimal float extension to C. Selecting 'bid
'
1588 or 'dpd
' choses which decimal floating point format
1590 --enable-fixed-point enable fixed-point arithmetic extension to C
1591 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1593 --enable-tls enable or disable generation of tls code overriding
1594 the assembler check for tls support
1595 --enable-objc-gc enable the use of Boehm's garbage collector with the
1596 GNU Objective-C runtime
1597 --disable-shared don
't provide a shared libgcc
1598 --enable-languages=LIST specify which front-ends to build
1599 --disable-rpath do not hardcode runtime library paths
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1623 --enable-initfini-array use .init_array/.fini_array sections
1624 --enable-comdat enable COMDAT group support
1625 --enable-gnu-unique-object
1626 enable the use of the @gnu_unique_object ELF
1627 extension on glibc systems
1628 --enable-linker-build-id
1629 compiler will always pass --build-id to linker
1630 --enable-maintainer-mode
1631 enable make rules and dependencies not useful (and
1632 sometimes confusing) to the casual installer
1633 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1634 thrashing on the build machine
1635 --enable-version-specific-runtime-libs
1636 specify that runtime libraries should be installed
1637 in a compiler-specific directory
1638 --enable-plugin enable plugin support
1639 --disable-libquadmath-support
1640 disable libquadmath support for Fortran
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-build-libsubdir=DIR Directory where to find libraries for build system
1646 --with-local-prefix=DIR specifies directory to put local include
1647 --with-gxx-include-dir=DIR
1648 specifies directory to put g++ header files
1649 --with-cpp-install-dir=DIR
1650 install the user visible C preprocessor in DIR
1651 (relative to PREFIX) as well as PREFIX/bin
1652 --with-gnu-ld arrange to work with GNU ld
1653 --with-ld arrange to use the specified ld (full pathname)
1654 --with-demangler-in-ld try to use demangler in GNU ld
1655 --with-gnu-as arrange to work with GNU as
1656 --with-as arrange to use the specified as (full pathname)
1657 --with-stabs arrange to use stabs instead of host debug format
1658 --with-dwarf2 force the default debug format to be DWARF 2
1659 --with-native-system-header-dir=dir
1660 use dir as the directory to look for standard
1661 system header files in. Defaults to /usr/include.
1662 --with-build-sysroot=sysroot
1663 use sysroot as the system root during the build
1664 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1665 --with-specs=SPECS add SPECS to driver command-line processing
1666 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1667 --with-bugurl=URL Direct users to URL to report a bug
1668 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1669 --with-gnu-ld assume the C compiler uses GNU ld default=no
1670 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1671 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1672 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1674 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1675 --with-plugin-ld=[ARG
] specify the plugin linker
1676 --with-long-double-128 use
128-bit long double by default
1677 --with-gc={page
,zone
} this option is not supported anymore. It used to
1678 choose the garbage collection mechanism to use with
1680 --with-system-zlib use installed libz
1681 --with-linker-hash-style={sysv
,gnu
,both
}
1682 specify the linker
hash style
1684 Some influential environment variables
:
1685 CC C compiler
command
1686 CFLAGS C compiler flags
1687 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1688 nonstandard directory
<lib dir
>
1689 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1690 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1691 you have headers
in a nonstandard directory
<include dir
>
1692 CXX C
++ compiler
command
1693 CXXFLAGS C
++ compiler flags
1695 CXXCPP C
++ preprocessor
1696 GMPLIBS How to link GMP
1697 GMPINC How to
find GMP include files
1698 ISLLIBS How to link ISL
1699 ISLINC How to
find ISL include files
1700 CLOOGLIBS How to link CLOOG
1701 CLOOGINC How to
find CLOOG include files
1703 Use these variables to override the choices made by
`configure' or to help
1704 it to find libraries and programs with nonstandard names/locations.
1706 Report bugs to the package provider.
1711 if test "$ac_init_help" = "recursive"; then
1712 # If there are subdirs, report their specific --help.
1713 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714 test -d "$ac_dir" ||
1715 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1723 # A ".." for each directory in $ac_dir_suffix.
1724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1725 case $ac_top_builddir_sub in
1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1736 .) # We are building in place.
1738 ac_top_srcdir=$ac_top_builddir_sub
1739 ac_abs_top_srcdir=$ac_pwd ;;
1740 [\\/]* | ?:[\\/]* ) # Absolute name.
1741 ac_srcdir=$srcdir$ac_dir_suffix;
1742 ac_top_srcdir=$srcdir
1743 ac_abs_top_srcdir=$srcdir ;;
1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746 ac_top_srcdir=$ac_top_build_prefix$srcdir
1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751 cd "$ac_dir" || { ac_status=$?; continue; }
1752 # Check for guested configure.
1753 if test -f "$ac_srcdir/configure.gnu"; then
1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756 elif test -f "$ac_srcdir/configure"; then
1758 $SHELL "$ac_srcdir/configure" --help=recursive
1760 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762 cd "$ac_pwd" || { ac_status=$?; break; }
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1770 generated by GNU Autoconf 2.64
1772 Copyright (C) 2009 Free Software Foundation, Inc.
1773 This configure script is free software; the Free Software Foundation
1774 gives unlimited permission to copy, distribute and modify it.
1779 ## ------------------------ ##
1780 ## Autoconf initialization. ##
1781 ## ------------------------ ##
1783 # ac_fn_c_try_compile LINENO
1784 # --------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext
1790 if { { ac_try="$ac_compile"
1792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1793 *) ac_try_echo
=$ac_try;;
1795 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_compile") 2>conftest.err
1799 if test -s conftest.err
; then
1800 grep -v '^ *+' conftest.err
>conftest.er1
1801 cat conftest.er1
>&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest.
$ac_objext; then :
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.
$ac_ext >&5
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1819 } # ac_fn_c_try_compile
1821 # ac_fn_cxx_try_compile LINENO
1822 # ----------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_compile
()
1826 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1827 rm -f conftest.
$ac_objext
1828 if { { ac_try
="$ac_compile"
1830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 } # ac_fn_cxx_try_compile
1859 # ac_fn_c_try_cpp LINENO
1860 # ----------------------
1861 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1868 *) ac_try_echo
=$ac_try;;
1870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874 if test -s conftest.err
; then
1875 grep -v '^ *+' conftest.err
>conftest.er1
1876 cat conftest.er1
>&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } >/dev
/null
&& {
1881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.
$ac_ext >&5
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1896 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899 # the include files in INCLUDES and setting the cache variable VAR
1901 ac_fn_c_check_header_mongrel
()
1903 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1904 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1914 # Is the header compilable?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916 $as_echo_n "checking $2 usability... " >&6; }
1917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1922 if ac_fn_c_try_compile
"$LINENO"; then :
1923 ac_header_compiler
=yes
1925 ac_header_compiler
=no
1927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929 $as_echo "$ac_header_compiler" >&6; }
1931 # Is the header present?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933 $as_echo_n "checking $2 presence... " >&6; }
1934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 if ac_fn_c_try_cpp
"$LINENO"; then :
1939 ac_header_preproc
=yes
1941 ac_header_preproc
=no
1943 rm -f conftest.err conftest.
$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945 $as_echo "$ac_header_preproc" >&6; }
1947 # So? What about this header?
1948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1973 eval "$3=\$ac_header_compiler"
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1981 } # ac_fn_c_check_header_mongrel
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1989 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1990 if { { ac_try
="$ac_link"
1992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2003 *) ac_try_echo
=$ac_try;;
2005 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.
$ac_ext >&5
2017 ac_retval
=$ac_status
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2025 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists and can be compiled using the include files in
2028 # INCLUDES, setting the cache variable VAR accordingly.
2029 ac_fn_c_check_header_compile
()
2031 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2042 if ac_fn_c_try_compile
"$LINENO"; then :
2047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2054 } # ac_fn_c_check_header_compile
2056 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2057 # --------------------------------------------
2058 # Tries to find the compile-time value of EXPR in a program that includes
2059 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2061 ac_fn_c_compute_int
()
2063 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2064 if test "$cross_compiling" = yes; then
2065 # Depending upon the size, compute the lo and hi bounds.
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) >= 0)];
2079 if ac_fn_c_try_compile
"$LINENO"; then :
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2096 ac_hi
=$ac_mid; break
2098 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2099 if test $ac_lo -le $ac_mid; then
2103 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) < 0)];
2121 if ac_fn_c_try_compile
"$LINENO"; then :
2124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137 if ac_fn_c_try_compile
"$LINENO"; then :
2138 ac_lo
=$ac_mid; break
2140 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2141 if test $ac_mid -le $ac_hi; then
2145 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171 if ac_fn_c_try_compile
"$LINENO"; then :
2174 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2194 FILE *f = fopen ("conftest.val", "w");
2199 long int i = longval ();
2202 fprintf (f, "%ld", i);
2206 unsigned long int i = ulongval ();
2209 fprintf (f, "%lu", i);
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2219 if ac_fn_c_try_run
"$LINENO"; then :
2220 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2229 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2232 } # ac_fn_c_compute_int
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type
()
2240 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2244 $as_echo_n "(cached) " >&6
2247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2259 if ac_fn_c_try_compile
"$LINENO"; then :
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2272 if ac_fn_c_try_compile
"$LINENO"; then :
2277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2286 } # ac_fn_c_check_type
2288 # ac_fn_c_find_intX_t LINENO BITS VAR
2289 # -----------------------------------
2290 # Finds a signed integer type with width BITS, setting cache variable VAR
2292 ac_fn_c_find_intX_t
()
2294 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2296 $as_echo_n "checking for int$2_t... " >&6; }
2297 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298 $as_echo_n "(cached) " >&6
2301 for ac_type
in int
$2_t 'int' 'long int' \
2302 'long long int' 'short int' 'signed char'; do
2303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $ac_includes_default
2309 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2316 if ac_fn_c_try_compile
"$LINENO"; then :
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $ac_includes_default
2323 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2324 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2331 if ac_fn_c_try_compile
"$LINENO"; then :
2338 eval "$3=\$ac_type" ;;
2341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2345 if test "x$as_val" = x
""no
; then :
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2357 } # ac_fn_c_find_intX_t
2359 # ac_fn_c_try_link LINENO
2360 # -----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded.
2364 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2365 rm -f conftest.
$ac_objext conftest
$ac_exeext
2366 if { { ac_try
="$ac_link"
2368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_link") 2>conftest.err
2375 if test -s conftest.err; then
2376 grep -v '^ *+' conftest.err >conftest.er1
2377 cat conftest.er1 >&5
2378 mv -f conftest.er1 conftest.err
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; } && {
2382 test -z "$ac_c_werror_flag" ||
2383 test ! -s conftest.err
2384 } && test -s conftest$ac_exeext && {
2385 test "$cross_compiling" = yes ||
2386 $as_test_x conftest$ac_exeext
2390 $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2395 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2396 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2397 # interfere with the next link command; also delete a directory that is
2398 # left behind by Apple's compiler. We do this before executing the actions.
2399 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_c_try_link
2405 # ac_fn_c_find_uintX_t LINENO BITS VAR
2406 # ------------------------------------
2407 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2409 ac_fn_c_find_uintX_t ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2413 $as_echo_n "checking for uint$2_t... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 $as_echo_n "(cached) " >&6
2418 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2419 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $ac_includes_default
2426 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2433 if ac_fn_c_try_compile "$LINENO"; then :
2438 eval "$3=\$ac_type" ;;
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 if test "x$as_val" = x""no; then :
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455 } # ac_fn_c_find_uintX_t
2457 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2458 # ----------------------------------------------
2459 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2460 ac_fn_c_check_header_preproc ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2464 $as_echo_n "checking for $2... " >&6; }
2465 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2466 $as_echo_n "(cached) " >&6
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2472 if ac_fn_c_try_cpp "$LINENO"; then :
2477 rm -f conftest.err conftest.$ac_ext
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_header_preproc
2486 # ac_fn_cxx_try_cpp LINENO
2487 # ------------------------
2488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2489 ac_fn_cxx_try_cpp ()
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 if { { ac_try="$ac_cpp conftest.$ac_ext"
2494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2495 *) ac_try_echo
=$ac_try;;
2497 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2501 if test -s conftest.err
; then
2502 grep -v '^ *+' conftest.err
>conftest.er1
2503 cat conftest.er1
>&5
2504 mv -f conftest.er1 conftest.err
2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507 test $ac_status = 0; } >/dev
/null
&& {
2508 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2509 test ! -s conftest.err
2513 $as_echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.
$ac_ext >&5
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2521 } # ac_fn_cxx_try_cpp
2523 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2524 # ------------------------------------------------
2525 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2526 ac_fn_cxx_check_header_preproc
()
2528 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2538 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2543 rm -f conftest.err conftest.
$ac_ext
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2550 } # ac_fn_cxx_check_header_preproc
2552 # ac_fn_c_check_func LINENO FUNC VAR
2553 # ----------------------------------
2554 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2555 ac_fn_c_check_func
()
2557 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2567 #define $2 innocuous_$2
2569 /* System header to define __stub macros and hopefully few prototypes,
2570 which can conflict with char $2 (); below.
2571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2572 <limits.h> exists even on freestanding compilers. */
2575 # include <limits.h>
2577 # include <assert.h>
2582 /* Override any GCC internal prototype to avoid an error.
2583 Use char because int might match the return type of a GCC
2584 builtin and then its argument prototype would still apply. */
2589 /* The GNU C library defines this for functions which it implements
2590 to always fail with ENOSYS. Some functions are actually named
2591 something starting with __ and the normal name is an alias. */
2592 #if defined __stub_$2 || defined __stub___$2
2604 if ac_fn_c_try_link
"$LINENO"; then :
2609 rm -f core conftest.err conftest.
$ac_objext \
2610 conftest
$ac_exeext conftest.
$ac_ext
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2615 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2617 } # ac_fn_c_check_func
2619 # ac_fn_cxx_try_link LINENO
2620 # -------------------------
2621 # Try to link conftest.$ac_ext, and return whether this succeeded.
2622 ac_fn_cxx_try_link
()
2624 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2625 rm -f conftest.
$ac_objext conftest
$ac_exeext
2626 if { { ac_try
="$ac_link"
2628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_link") 2>conftest.err
2635 if test -s conftest.err; then
2636 grep -v '^ *+' conftest.err >conftest.er1
2637 cat conftest.er1 >&5
2638 mv -f conftest.er1 conftest.err
2640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641 test $ac_status = 0; } && {
2642 test -z "$ac_cxx_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest$ac_exeext && {
2645 test "$cross_compiling" = yes ||
2646 $as_test_x conftest$ac_exeext
2650 $as_echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2657 # interfere with the next link command; also delete a directory that is
2658 # left behind by Apple's compiler. We do this before executing the actions.
2659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2663 } # ac_fn_cxx_try_link
2664 cat >config.log <<_ACEOF
2665 This file contains any messages produced by compilers while
2666 running configure, to aid debugging if configure makes a mistake.
2668 It was created by $as_me, which was
2669 generated by GNU Autoconf 2.64. Invocation command line was
2681 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2682 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2683 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2684 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2685 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2687 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2688 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2690 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2691 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2692 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2693 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2694 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2695 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2696 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 $as_echo "PATH: $as_dir"
2721 # Keep a trace of the command line.
2722 # Strip out --no-create and --no-recursion so they do not pile up.
2723 # Strip out --silent because we don't want to record it for future runs.
2724 # Also quote any args containing shell meta-characters.
2725 # Make two passes to allow for proper duplicate-argument suppression.
2729 ac_must_keep_next=false
2735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2737 | -silent | --silent | --silen | --sile | --sil)
2740 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2743 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2745 as_fn_append ac_configure_args1 " '$ac_arg'"
2746 if test $ac_must_keep_next = true; then
2747 ac_must_keep_next=false # Got value, back to normal.
2750 *=* | --config-cache | -C | -disable-* | --disable-* \
2751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2753 | -with-* | --with-* | -without-* | --without-* | --x)
2754 case "$ac_configure_args0 " in
2755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2758 -* ) ac_must_keep_next=true ;;
2761 as_fn_append ac_configure_args " '$ac_arg'"
2766 { ac_configure_args0=; unset ac_configure_args0;}
2767 { ac_configure_args1=; unset ac_configure_args1;}
2769 # When interrupted or exit'd, cleanup temporary files, and complete
2770 # config.log. We remove comments because anyway the quotes in there
2771 # would cause problems or look ugly.
2772 # WARNING: Use '\'' to represent an apostrophe within the trap.
2773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2774 trap 'exit_status=$?
2775 # Save into config.log some information that might help in debugging.
2780 ## ---------------- ##
2781 ## Cache variables. ##
2782 ## ---------------- ##
2785 # The following way of writing the cache mishandles newlines in values,
2787 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2788 eval ac_val=\$$ac_var
2792 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2793 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2796 _ | IFS | as_nl) ;; #(
2797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2798 *) { eval $ac_var=; unset $ac_var;} ;;
2803 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2804 *${as_nl}ac_space=\ *)
2806 "s/'\''/'\''\\\\'\'''\''/g;
2807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2818 ## ----------------- ##
2819 ## Output variables. ##
2820 ## ----------------- ##
2823 for ac_var in $ac_subst_vars
2825 eval ac_val=\$$ac_var
2827 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2829 $as_echo "$ac_var='\''$ac_val'\''"
2833 if test -n "$ac_subst_files"; then
2835 ## ------------------- ##
2836 ## File substitutions. ##
2837 ## ------------------- ##
2840 for ac_var in $ac_subst_files
2842 eval ac_val=\$$ac_var
2844 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2846 $as_echo "$ac_var='\''$ac_val'\''"
2851 if test -s confdefs.h; then
2861 test "$ac_signal" != 0 &&
2862 $as_echo "$as_me: caught signal $ac_signal"
2863 $as_echo "$as_me: exit $exit_status"
2865 rm -f core *.core core.conftest.* &&
2866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2869 for ac_signal in 1 2 13 15; do
2870 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2875 rm -f -r conftest* confdefs.h
2877 $as_echo "/* confdefs.h */" > confdefs.h
2879 # Predefined preprocessor variables.
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_NAME "$PACKAGE_NAME"
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_STRING "$PACKAGE_STRING"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_URL "$PACKAGE_URL"
2906 # Let the site file select an alternate cache file if it wants to.
2907 # Prefer an explicitly selected file to automatically selected ones.
2910 if test -n "$CONFIG_SITE"; then
2911 ac_site_file1=$CONFIG_SITE
2912 elif test "x$prefix" != xNONE; then
2913 ac_site_file1=$prefix/share/config.site
2914 ac_site_file2=$prefix/etc/config.site
2916 ac_site_file1=$ac_default_prefix/share/config.site
2917 ac_site_file2=$ac_default_prefix/etc/config.site
2919 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2921 test "x$ac_site_file" = xNONE && continue
2922 if test -r "$ac_site_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2924 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2925 sed 's/^/| /' "$ac_site_file" >&5
2930 if test -r "$cache_file"; then
2931 # Some versions of bash will fail to source /dev/null (special
2932 # files actually), so we avoid doing that.
2933 if test -f "$cache_file"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2935 $as_echo "$as_me: loading cache $cache_file" >&6;}
2937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2938 *) . "./$cache_file";;
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2943 $as_echo "$as_me: creating cache $cache_file" >&6;}
2947 # Check that the precious variables saved in the cache have kept the same
2949 ac_cache_corrupted=false
2950 for ac_var in $ac_precious_vars; do
2951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2952 eval ac_new_set=\$ac_env_${ac_var}_set
2953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2954 eval ac_new_val=\$ac_env_${ac_var}_value
2955 case $ac_old_set,$ac_new_set in
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2958 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2959 ac_cache_corrupted=: ;;
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2962 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2966 if test "x$ac_old_val" != "x$ac_new_val"; then
2967 # differences in whitespace do not lead to failure.
2968 ac_old_val_w=`echo x
$ac_old_val`
2969 ac_new_val_w=`echo x
$ac_new_val`
2970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2973 ac_cache_corrupted=:
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2977 eval $ac_var=\$ac_old_val
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2980 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2985 # Pass precious variables to config.status.
2986 if test "$ac_new_set" = set; then
2988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2989 *) ac_arg=$ac_var=$ac_new_val ;;
2991 case " $ac_configure_args " in
2992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2993 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2997 if $ac_cache_corrupted; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3002 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3004 ## -------------------- ##
3005 ## Main body of script. ##
3006 ## -------------------- ##
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3022 gcc_version=`cat $srcdir/BASE-VER
`
3024 # Determine the host, build, and target systems
3026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3027 for ac_t in install-sh install.sh shtool; do
3028 if test -f "$ac_dir/$ac_t"; then
3030 ac_install_sh="$ac_aux_dir/$ac_t -c"
3035 if test -z "$ac_aux_dir"; then
3036 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3039 # These three variables are undocumented and unsupported,
3040 # and are intended to be withdrawn in a future Autoconf release.
3041 # They can cause serious problems if a builder's source tree is in a directory
3042 # whose full name contains unusual characters.
3043 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3044 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3045 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3048 # Make sure we can run config.sub.
3049 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3050 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3053 $as_echo_n "checking build system type... " >&6; }
3054 if test "${ac_cv_build+set}" = set; then :
3055 $as_echo_n "(cached) " >&6
3057 ac_build_alias=$build_alias
3058 test "x$ac_build_alias" = x &&
3059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3060 test "x$ac_build_alias" = x &&
3061 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3063 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3067 $as_echo "$ac_cv_build" >&6; }
3068 case $ac_cv_build in
3070 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3073 ac_save_IFS=$IFS; IFS='-'
3079 # Remember, the first character of IFS is used to create $*,
3080 # except with old shells:
3083 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3087 $as_echo_n "checking host system type... " >&6; }
3088 if test "${ac_cv_host+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3091 if test "x$host_alias" = x; then
3092 ac_cv_host=$ac_cv_build
3094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3095 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3100 $as_echo "$ac_cv_host" >&6; }
3103 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3106 ac_save_IFS=$IFS; IFS='-'
3112 # Remember, the first character of IFS is used to create $*,
3113 # except with old shells:
3116 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3120 $as_echo_n "checking target system type... " >&6; }
3121 if test "${ac_cv_target+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3124 if test "x$target_alias" = x; then
3125 ac_cv_target=$ac_cv_host
3127 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3128 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3133 $as_echo "$ac_cv_target" >&6; }
3134 case $ac_cv_target in
3136 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3138 target=$ac_cv_target
3139 ac_save_IFS=$IFS; IFS='-'
3145 # Remember, the first character of IFS is used to create $*,
3146 # except with old shells:
3149 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3152 # The aliases save the names the user supplied, while $host etc.
3153 # will get canonicalized.
3154 test -n "$target_alias" &&
3155 test "$program_prefix$program_suffix$program_transform_name" = \
3157 program_prefix=${target_alias}-
3159 # Determine the noncanonical target name, for directory use.
3160 case ${build_alias} in
3161 "") build_noncanonical=${build} ;;
3162 *) build_noncanonical=${build_alias} ;;
3165 case ${host_alias} in
3166 "") host_noncanonical=${build_noncanonical} ;;
3167 *) host_noncanonical=${host_alias} ;;
3170 case ${target_alias} in
3171 "") target_noncanonical=${host_noncanonical} ;;
3172 *) target_noncanonical=${target_alias} ;;
3178 # Determine the target- and build-specific subdirectories
3180 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3181 # have matching libraries, they should use host libraries: Makefile.tpl
3182 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3183 # However, they still use the build modules, because the corresponding
3184 # host modules (e.g. bison) are only built for the host when bootstrap
3186 # - build_subdir is where we find build modules, and never changes.
3187 # - build_libsubdir is where we find build libraries, and can be overridden.
3189 # Prefix 'build-' so this never conflicts with target_subdir.
3190 build_subdir="build-${build_noncanonical}"
3192 # Check whether --with-build-libsubdir was given.
3193 if test "${with_build_libsubdir+set}" = set; then :
3194 withval=$with_build_libsubdir; build_libsubdir="$withval"
3196 build_libsubdir="$build_subdir"
3199 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3200 if ( test $srcdir = . && test -d gcc ) \
3201 || test -d $srcdir/../host-${host_noncanonical}; then
3202 host_subdir="host-${host_noncanonical}"
3207 target_subdir=${target_noncanonical}
3210 # Set program_transform_name
3211 test "$program_prefix" != NONE &&
3212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3213 # Use a double $ so make ignores it.
3214 test "$program_suffix" != NONE &&
3215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3216 # Double any \ or $.
3217 # By default was `s
,x
,x
', remove it if useless.
3218 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3219 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3222 # Check for bogus environment variables.
3223 # Test if LIBRARY_PATH contains the notation for the current directory
3224 # since this would lead to problems installing/building glibc.
3225 # LIBRARY_PATH contains the current directory if one of the following
3227 # - one of the terminals (":" and ";") is the first or last sign
3228 # - two terminals occur directly after each other
3229 # - the path contains an element with a dot in it
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3231 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3232 case ${LIBRARY_PATH} in
3233 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3234 library_path_setting="contains current directory"
3237 library_path_setting="ok"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3241 $as_echo "$library_path_setting" >&6; }
3242 if test "$library_path_setting" != "ok"; then
3244 *** LIBRARY_PATH shouldn't contain the current directory when
3245 *** building gcc. Please change the environment variable
3246 *** and run configure again.
" "$LINENO" 5
3249 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3250 # since this would lead to problems installing/building glibc.
3251 # GCC_EXEC_PREFIX contains the current directory if one of the following
3253 # - one of the terminals (":" and ";") is the first or last sign
3254 # - two terminals occur directly after each other
3255 # - the path contains an element with a dot in it
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3257 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3258 case ${GCC_EXEC_PREFIX} in
3259 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3260 gcc_exec_prefix_setting="contains current directory
"
3263 gcc_exec_prefix_setting="ok
"
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3267 $as_echo "$gcc_exec_prefix_setting" >&6; }
3268 if test "$gcc_exec_prefix_setting" != "ok
"; then
3270 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3271 *** building gcc. Please change the environment variable
3272 *** and run configure again." "$LINENO" 5
3279 # Specify the local prefix
3282 # Check whether --with-local-prefix was given.
3283 if test "${with_local_prefix+set}" = set; then :
3284 withval=$with_local_prefix; case "${withval}" in
3285 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3287 *) local_prefix=$with_local_prefix ;;
3292 # Default local prefix if it is empty
3293 if test x$local_prefix = x; then
3294 local_prefix=/usr/local
3297 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3298 # passed in by the toplevel make and thus we'd get different behavior
3299 # depending on where we built the sources.
3300 gcc_gxx_include_dir
=
3301 # Specify the g++ header file directory
3303 # Check whether --with-gxx-include-dir was given.
3304 if test "${with_gxx_include_dir+set}" = set; then :
3305 withval
=$with_gxx_include_dir; case "${withval}" in
3306 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3308 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3313 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3314 if test x
${gcc_gxx_include_dir} = x
; then
3315 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3316 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3318 libstdcxx_incdir
='include/c++/$(version)'
3319 if test x
$host != x
$target; then
3320 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3322 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3326 gcc_gxx_include_dir_add_sysroot
=0
3327 if test "${with_sysroot+set}" = set; then
3328 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3329 if test "${gcc_gxx_without_sysroot}"; then
3330 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3331 gcc_gxx_include_dir_add_sysroot
=1
3336 # Check whether --with-cpp_install_dir was given.
3337 if test "${with_cpp_install_dir+set}" = set; then :
3338 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3339 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3340 elif test x
$withval != xno
; then
3341 cpp_install_dir
=$withval
3346 # We would like to our source tree to be readonly. However when releases or
3347 # pre-releases are generated, the flex/bison generated files as well as the
3348 # various formats of manuals need to be included along with the rest of the
3349 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3353 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3354 # Check whether --enable-generated-files-in-srcdir was given.
3355 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3356 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3358 generated_files_in_srcdir
=no
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3363 $as_echo "$generated_files_in_srcdir" >&6; }
3365 if test "$generated_files_in_srcdir" = "yes"; then
3372 # -------------------
3373 # Find default linker
3374 # -------------------
3378 # Check whether --with-gnu-ld was given.
3379 if test "${with_gnu_ld+set}" = set; then :
3380 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3386 # With pre-defined ld
3388 # Check whether --with-ld was given.
3389 if test "${with_ld+set}" = set; then :
3390 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3393 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3394 if test ! -x "$DEFAULT_LINKER"; then
3395 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3396 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3400 cat >>confdefs.h
<<_ACEOF
3401 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3407 $as_echo_n "checking whether a default linker was specified... " >&6; }
3408 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3409 if test x
"$gnu_ld_flag" = x
"no"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3411 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3414 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3421 # With demangler in GNU ld
3423 # Check whether --with-demangler-in-ld was given.
3424 if test "${with_demangler_in_ld+set}" = set; then :
3425 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3431 # ----------------------
3432 # Find default assembler
3433 # ----------------------
3437 # Check whether --with-gnu-as was given.
3438 if test "${with_gnu_as+set}" = set; then :
3439 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3446 # Check whether --with-as was given.
3447 if test "${with_as+set}" = set; then :
3448 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3451 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3452 if test ! -x "$DEFAULT_ASSEMBLER"; then
3453 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3454 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3458 cat >>confdefs.h
<<_ACEOF
3459 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3465 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3466 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3467 if test x
"$gas_flag" = x
"no"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3469 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3472 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3483 # If a non-executable a.out is present (e.g. created by GNU as above even if
3484 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3485 # file, even when creating an executable, so an execution test fails.
3486 # Remove possible default executable files to avoid this.
3488 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3489 # Autoconf includes it.
3490 rm -f a.out a.exe b.out
3492 # Find the native compiler
3494 ac_cpp
='$CPP $CPPFLAGS'
3495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3500 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_CC+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC
="$CC" # Let the user override the test.
3509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir
=.
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 if test -n "$CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3537 if test -z "$ac_cv_prog_CC"; then
3539 # Extract the first word of "gcc", so it can be a program name with args.
3540 set dummy gcc
; ac_word
=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 for ac_exec_ext
in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556 ac_cv_prog_ac_ct_CC
="gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3575 if test "x$ac_ct_CC" = x
; then
3578 case $cross_compiling:$ac_tool_warned in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned
=yes ;;
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3593 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC
="$CC" # Let the user override the test.
3602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir
=.
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3631 if test -z "$CC"; then
3632 # Extract the first word of "cc", so it can be a program name with args.
3633 set dummy cc
; ac_word
=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC
="$CC" # Let the user override the test.
3643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir
=.
3648 for ac_exec_ext
in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651 ac_prog_rejected
=yes
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy
$ac_cv_prog_CC
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3671 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog
in cl.exe
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC
="$CC" # Let the user override the test.
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$CC" && break
3731 if test -z "$CC"; then
3733 for ac_prog
in cl.exe
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy
$ac_prog; ac_word
=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir
=.
3750 for ac_exec_ext
in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_ac_ct_CC
="$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 $as_echo "$ac_ct_CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3772 test -n "$ac_ct_CC" && break
3775 if test "x$ac_ct_CC" = x
; then
3778 case $cross_compiling:$ac_tool_warned in
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned
=yes ;;
3791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error
"no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details." "$LINENO" 5; }
3796 # Provide some information about the compiler.
3797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3800 for ac_option
in --version -v -V -qversion; do
3801 { { ac_try
="$ac_compiler $ac_option >&5"
3803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3810 if test -s conftest.err; then
3812 ... rest of stderr output deleted ...
3813 10q' conftest.err >conftest.er1
3814 cat conftest.er1 >&5
3815 rm -f conftest.er1 conftest.err
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 ac_clean_files_save=$ac_clean_files
3833 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3834 # Try to create an executable without -o first, disregard a.out.
3835 # It will help us diagnose broken compilers, and finding out an intuition
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3838 $as_echo_n "checking for C compiler default output file name... " >&6; }
3839 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3841 # The possible output files:
3842 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3845 for ac_file in $ac_files
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 if { { ac_try="$ac_link_default"
3856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3857 *) ac_try_echo
=$ac_try;;
3859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_link_default") 2>&5
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; then :
3865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3868 # so that the user can short-circuit this test for compilers unknown to
3870 for ac_file
in $ac_files ''
3872 test -f "$ac_file" ||
continue
3874 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3877 # We found the default executable, but exeext='' is most
3881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3883 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3885 # We set ac_cv_exeext here because the later test for it is not
3886 # safe: cross compilers may not add the suffix if given an `-o'
3887 # argument, so we may need to know it at that point already.
3888 # Even if this section looks crufty: it has the advantage of
3895 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3901 $as_echo "$ac_file" >&6; }
3902 if test -z "$ac_file"; then :
3903 $as_echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.
$ac_ext >&5
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 { as_fn_set_status
77
3909 as_fn_error
"C compiler cannot create executables
3910 See \`config.log' for more details." "$LINENO" 5; }; }
3912 ac_exeext
=$ac_cv_exeext
3914 # Check that the compiler produces executables we can run. If not, either
3915 # the compiler is broken, or we cross compile.
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3917 $as_echo_n "checking whether the C compiler works... " >&6; }
3918 # If not cross compiling, check that we can run a simple program.
3919 if test "$cross_compiling" != yes; then
3920 if { ac_try
='./$ac_file'
3921 { { case "(($ac_try" in
3922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_try") 2>&5
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }; }; then
3933 if test "$cross_compiling" = maybe; then
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "cannot run C compiled programs.
3939 If you meant to cross compile
, use \
`--host'.
3940 See \`config.log
' for more details." "$LINENO" 5; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3948 ac_clean_files=$ac_clean_files_save
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3954 $as_echo "$cross_compiling" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3957 $as_echo_n "checking for suffix of executables... " >&6; }
3958 if { { ac_try="$ac_link"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3970 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3971 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3973 for ac_file
in conftest.exe conftest conftest.
*; do
3974 test -f "$ac_file" ||
continue
3976 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3977 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3986 See \`config.log' for more details." "$LINENO" 5; }
3988 rm -f conftest
$ac_cv_exeext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3990 $as_echo "$ac_cv_exeext" >&6; }
3992 rm -f conftest.
$ac_ext
3993 EXEEXT
=$ac_cv_exeext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3996 $as_echo_n "checking for suffix of object files... " >&6; }
3997 if test "${ac_cv_objext+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4011 rm -f conftest.o conftest.obj
4012 if { { ac_try
="$ac_compile"
4014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_compile") 2>&5
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; then :
4023 for ac_file in conftest.o conftest.obj conftest.*; do
4024 test -f "$ac_file" || continue;
4026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4027 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error "cannot compute suffix of object files
: cannot compile
4038 See \
`config.log' for more details." "$LINENO" 5; }
4040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4043 $as_echo "$ac_cv_objext" >&6; }
4044 OBJEXT=$ac_cv_objext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4047 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4048 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4065 if ac_fn_c_try_compile "$LINENO"; then :
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4075 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4076 if test $ac_compiler_gnu = yes; then
4081 ac_test_CFLAGS=${CFLAGS+set}
4082 ac_save_CFLAGS=$CFLAGS
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4084 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4085 if test "${ac_cv_prog_cc_g+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4088 ac_save_c_werror_flag=$ac_c_werror_flag
4089 ac_c_werror_flag=yes
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4134 if ac_fn_c_try_compile "$LINENO"; then :
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 ac_c_werror_flag=$ac_save_c_werror_flag
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4145 $as_echo "$ac_cv_prog_cc_g" >&6; }
4146 if test "$ac_test_CFLAGS" = set; then
4147 CFLAGS=$ac_save_CFLAGS
4148 elif test $ac_cv_prog_cc_g = yes; then
4149 if test "$GCC" = yes; then
4155 if test "$GCC" = yes; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4162 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4163 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4166 ac_cv_prog_cc_c89=no
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4172 #include <sys/types.h>
4173 #include <sys/stat.h>
4174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4175 struct buf { int x; };
4176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4177 static char *e (p, i)
4183 static char *f (char * (*g) (char **, int), char **p, ...)
4188 s = g (p, va_arg (v,int));
4193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4194 function prototypes and stuff, but not '\xHH' hex character constants.
4195 These don't provoke an error unfortunately, instead are silently treated
4196 as 'x'. The following induces an error, until -std is added to get
4197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4198 array size at least. It's necessary to write '\x00'==0 to get something
4199 that's true only with -std. */
4200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4203 inside strings and character constants. */
4205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4207 int test (int i, double x);
4208 struct s1 {int (*f) (int a);};
4209 struct s2 {int (*f) (double a);};
4210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4224 CC="$ac_save_CC $ac_arg"
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_prog_cc_c89=$ac_arg
4228 rm -f core conftest.err conftest.$ac_objext
4229 test "x$ac_cv_prog_cc_c89" != "xno" && break
4231 rm -f conftest.$ac_ext
4236 case "x$ac_cv_prog_cc_c89" in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4239 $as_echo "none needed" >&6; } ;;
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4242 $as_echo "unsupported" >&6; } ;;
4244 CC="$CC $ac_cv_prog_cc_c89"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4246 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4248 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 ac_cpp='$CXXCPP $CPPFLAGS'
4260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263 if test -z "$CXX"; then
4264 if test -n "$CCC"; then
4267 if test -n "$ac_tool_prefix"; then
4268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_CXX+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4277 if test -n "$CXX"; then
4278 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 if test -n "$CXX"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4300 $as_echo "$CXX" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$CXX" && break
4310 if test -z "$CXX"; then
4312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4321 if test -n "$ac_ct_CXX"; then
4322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_ac_ct_CXX="$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4342 if test -n "$ac_ct_CXX"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4344 $as_echo "$ac_ct_CXX" >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$ac_ct_CXX" && break
4354 if test "x$ac_ct_CXX" = x; then
4357 case $cross_compiling:$ac_tool_warned in
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4369 # Provide some information about the compiler.
4370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4373 for ac_option in --version -v -V -qversion; do
4374 { { ac_try="$ac_compiler $ac_option >&5"
4376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4377 *) ac_try_echo
=$ac_try;;
4379 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4383 if test -s conftest.err
; then
4385 ... rest of stderr output deleted ...
4386 10q' conftest.err
>conftest.er1
4387 cat conftest.er1
>&5
4388 rm -f conftest.er1 conftest.err
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4395 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4396 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4413 if ac_fn_cxx_try_compile
"$LINENO"; then :
4418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4419 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4423 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4424 if test $ac_compiler_gnu = yes; then
4429 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4430 ac_save_CXXFLAGS
=$CXXFLAGS
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4432 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4433 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4436 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4437 ac_cxx_werror_flag
=yes
4440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4451 if ac_fn_cxx_try_compile
"$LINENO"; then :
4452 ac_cv_prog_cxx_g
=yes
4455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4466 if ac_fn_cxx_try_compile
"$LINENO"; then :
4469 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4482 if ac_fn_cxx_try_compile
"$LINENO"; then :
4483 ac_cv_prog_cxx_g
=yes
4485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4490 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4493 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4494 if test "$ac_test_CXXFLAGS" = set; then
4495 CXXFLAGS
=$ac_save_CXXFLAGS
4496 elif test $ac_cv_prog_cxx_g = yes; then
4497 if test "$GXX" = yes; then
4503 if test "$GXX" = yes; then
4510 ac_cpp
='$CPP $CPPFLAGS'
4511 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4520 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$GNATBIND"; then
4527 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_exec_ext
in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 GNATBIND
=$ac_cv_prog_GNATBIND
4547 if test -n "$GNATBIND"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4549 $as_echo "$GNATBIND" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4557 if test -z "$ac_cv_prog_GNATBIND"; then
4558 ac_ct_GNATBIND
=$GNATBIND
4559 # Extract the first word of "gnatbind", so it can be a program name with args.
4560 set dummy gnatbind
; ac_word
=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$ac_ct_GNATBIND"; then
4567 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir
=.
4574 for ac_exec_ext
in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4587 if test -n "$ac_ct_GNATBIND"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4589 $as_echo "$ac_ct_GNATBIND" >&6; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4595 if test "x$ac_ct_GNATBIND" = x
; then
4598 case $cross_compiling:$ac_tool_warned in
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned
=yes ;;
4604 GNATBIND
=$ac_ct_GNATBIND
4607 GNATBIND
="$ac_cv_prog_GNATBIND"
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4612 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -n "$GNATMAKE"; then
4619 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir
=.
4626 for ac_exec_ext
in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 GNATMAKE
=$ac_cv_prog_GNATMAKE
4639 if test -n "$GNATMAKE"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4641 $as_echo "$GNATMAKE" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4649 if test -z "$ac_cv_prog_GNATMAKE"; then
4650 ac_ct_GNATMAKE
=$GNATMAKE
4651 # Extract the first word of "gnatmake", so it can be a program name with args.
4652 set dummy gnatmake
; ac_word
=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$ac_ct_GNATMAKE"; then
4659 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4679 if test -n "$ac_ct_GNATMAKE"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4681 $as_echo "$ac_ct_GNATMAKE" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4687 if test "x$ac_ct_GNATMAKE" = x
; then
4690 case $cross_compiling:$ac_tool_warned in
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned
=yes ;;
4696 GNATMAKE
=$ac_ct_GNATMAKE
4699 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4703 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4704 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 cat >conftest.adb
<<EOF
4708 procedure conftest is begin null; end conftest;
4710 acx_cv_cc_gcc_supports_ada
=no
4711 # There is a bug in old released versions of GCC which causes the
4712 # driver to exit successfully when the appropriate language module
4713 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4714 # Therefore we must check for the error message as well as an
4715 # unsuccessful exit.
4716 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4717 # given a .adb file, but produce no object file. So we must check
4718 # if an object file was really produced to guard against this.
4719 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4720 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4721 acx_cv_cc_gcc_supports_ada
=yes
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4726 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4728 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4735 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4736 # optimizations to be activated explicitly by the toplevel.
4738 */prev-gcc
/xgcc
*) ;;
4739 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4740 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4745 # Determine PICFLAG for target gnatlib.
4751 # PIC is the default on some targets or must not be used.
4753 # PIC is the default on this platform
4754 # Common symbols not allowed in MH_DYLIB files
4755 PICFLAG_FOR_TARGET
=-fno-common
4758 # PIC is the default.
4761 # PIC is the default for 64-bit PA HP-UX.
4763 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4765 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4767 i
[34567]86-*-interix[3-9]*)
4768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4769 # Instead, we relocate shared libraries at runtime.
4771 i
[34567]86-*-nto-qnx*)
4772 # QNX uses GNU C++, but need to define -shared option too, otherwise
4774 PICFLAG_FOR_TARGET
='-fPIC -shared'
4776 i
[34567]86-pc-msdosdjgpp*)
4777 # DJGPP does not support shared libraries at all.
4780 # On IA64 HP-UX, PIC is the default but the pic flag
4781 # sets the default TLS model and affects inlining.
4782 PICFLAG_FOR_TARGET
=-fPIC
4785 # PIC is the default.
4787 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4788 # All AIX code is PIC.
4791 # Some targets support both -fPIC and -fpic, but prefer the latter.
4793 i
[34567]86-*-* | x86_64-
*-*)
4794 PICFLAG_FOR_TARGET
=-fpic
4797 PICFLAG_FOR_TARGET
=-fpic
4799 # FIXME: Override -fPIC default in libgcc only?
4800 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4801 PICFLAG_FOR_TARGET
=-fpic
4803 # FIXME: Simplify to sh*-*-netbsd*?
4804 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4805 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4806 PICFLAG_FOR_TARGET
=-fpic
4808 # Default to -fPIC unless specified otherwise.
4810 PICFLAG_FOR_TARGET
=-fPIC
4814 # If the user explicitly uses -fpic/-fPIC, keep that.
4815 case "${CFLAGS_FOR_TARGET}" in
4817 PICFLAG_FOR_TARGET
=-fpic
4820 PICFLAG_FOR_TARGET
=-fPIC
4826 # -------------------------
4827 # Check C compiler features
4828 # -------------------------
4832 ac_cpp
='$CPP $CPPFLAGS'
4833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4837 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4838 # On Suns, sometimes $CPP names a directory.
4839 if test -n "$CPP" && test -d "$CPP"; then
4842 if test -z "$CPP"; then
4843 if test "${ac_cv_prog_CPP+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4846 # Double quotes because CPP needs to be expanded
4847 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4850 for ac_c_preproc_warn_flag
in '' yes
4852 # Use a header file that comes with gcc, so configuring glibc
4853 # with a fresh cross-compiler works.
4854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4855 # <limits.h> exists even on freestanding compilers.
4856 # On the NeXT, cc -E runs the code through the compiler's parser,
4857 # not just through cpp. "Syntax error" is here to catch this case.
4858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4861 # include <limits.h>
4863 # include <assert.h>
4867 if ac_fn_c_try_cpp
"$LINENO"; then :
4870 # Broken: fails on valid input.
4873 rm -f conftest.err conftest.
$ac_ext
4875 # OK, works on sane cases. Now check whether nonexistent headers
4876 # can be detected and how.
4877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <ac_nonexistent.h>
4881 if ac_fn_c_try_cpp
"$LINENO"; then :
4882 # Broken: success on invalid input.
4885 # Passes both tests.
4889 rm -f conftest.err conftest.
$ac_ext
4892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893 rm -f conftest.err conftest.
$ac_ext
4894 if $ac_preproc_ok; then :
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4907 $as_echo "$CPP" >&6; }
4909 for ac_c_preproc_warn_flag
in '' yes
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4920 # include <limits.h>
4922 # include <assert.h>
4926 if ac_fn_c_try_cpp
"$LINENO"; then :
4929 # Broken: fails on valid input.
4932 rm -f conftest.err conftest.
$ac_ext
4934 # OK, works on sane cases. Now check whether nonexistent headers
4935 # can be detected and how.
4936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <ac_nonexistent.h>
4940 if ac_fn_c_try_cpp
"$LINENO"; then :
4941 # Broken: success on invalid input.
4944 # Passes both tests.
4948 rm -f conftest.err conftest.
$ac_ext
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.
$ac_ext
4953 if $ac_preproc_ok; then :
4956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4958 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." "$LINENO" 5; }
4963 ac_cpp
='$CPP $CPPFLAGS'
4964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4970 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 if test "${ac_cv_path_GREP+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4974 if test -z "$GREP"; then
4975 ac_path_GREP_found
=false
4976 # Loop through the user's path and test for each of PROGNAME-LIST
4977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4978 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4981 test -z "$as_dir" && as_dir
=.
4982 for ac_prog
in grep ggrep
; do
4983 for ac_exec_ext
in '' $ac_executable_extensions; do
4984 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4985 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4986 # Check for GNU ac_path_GREP and select it if it is found.
4987 # Check for GNU $ac_path_GREP
4988 case `"$ac_path_GREP" --version 2>&1` in
4990 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4993 $as_echo_n 0123456789 >"conftest.in"
4996 cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 mv "conftest.tmp" "conftest.in"
4998 cp "conftest.in" "conftest.nl"
4999 $as_echo 'GREP' >> "conftest.nl"
5000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5001 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5002 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004 # Best one so far, save it but keep looking for a better one
5005 ac_cv_path_GREP
="$ac_path_GREP"
5006 ac_path_GREP_max
=$ac_count
5008 # 10*(2^10) chars as input seems more than enough
5009 test $ac_count -gt 10 && break
5011 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5014 $ac_path_GREP_found && break 3
5019 if test -z "$ac_cv_path_GREP"; then
5020 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023 ac_cv_path_GREP
=$GREP
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5028 $as_echo "$ac_cv_path_GREP" >&6; }
5029 GREP
="$ac_cv_path_GREP"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5033 $as_echo_n "checking for egrep... " >&6; }
5034 if test "${ac_cv_path_EGREP+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5037 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5038 then ac_cv_path_EGREP
="$GREP -E"
5040 if test -z "$EGREP"; then
5041 ac_path_EGREP_found
=false
5042 # Loop through the user's path and test for each of PROGNAME-LIST
5043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5044 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5047 test -z "$as_dir" && as_dir
=.
5048 for ac_prog
in egrep; do
5049 for ac_exec_ext
in '' $ac_executable_extensions; do
5050 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5051 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5052 # Check for GNU ac_path_EGREP and select it if it is found.
5053 # Check for GNU $ac_path_EGREP
5054 case `"$ac_path_EGREP" --version 2>&1` in
5056 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5059 $as_echo_n 0123456789 >"conftest.in"
5062 cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 mv "conftest.tmp" "conftest.in"
5064 cp "conftest.in" "conftest.nl"
5065 $as_echo 'EGREP' >> "conftest.nl"
5066 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5067 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5068 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5069 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5070 # Best one so far, save it but keep looking for a better one
5071 ac_cv_path_EGREP
="$ac_path_EGREP"
5072 ac_path_EGREP_max
=$ac_count
5074 # 10*(2^10) chars as input seems more than enough
5075 test $ac_count -gt 10 && break
5077 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5080 $ac_path_EGREP_found && break 3
5085 if test -z "$ac_cv_path_EGREP"; then
5086 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5089 ac_cv_path_EGREP
=$EGREP
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5095 $as_echo "$ac_cv_path_EGREP" >&6; }
5096 EGREP
="$ac_cv_path_EGREP"
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5100 $as_echo_n "checking for ANSI C header files... " >&6; }
5101 if test "${ac_cv_header_stdc+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5119 if ac_fn_c_try_compile
"$LINENO"; then :
5120 ac_cv_header_stdc
=yes
5122 ac_cv_header_stdc
=no
5124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5126 if test $ac_cv_header_stdc = yes; then
5127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5134 $EGREP "memchr" >/dev
/null
2>&1; then :
5137 ac_cv_header_stdc
=no
5143 if test $ac_cv_header_stdc = yes; then
5144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151 $EGREP "free" >/dev
/null
2>&1; then :
5154 ac_cv_header_stdc
=no
5160 if test $ac_cv_header_stdc = yes; then
5161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5162 if test "$cross_compiling" = yes; then :
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5169 #if ((' ' & 0x0FF) == 0x020)
5170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5173 # define ISLOWER(c) \
5174 (('a' <= (c) && (c) <= 'i') \
5175 || ('j' <= (c) && (c) <= 'r') \
5176 || ('s' <= (c) && (c) <= 'z'))
5177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5185 for (i = 0; i < 256; i++)
5186 if (XOR (islower (i), ISLOWER (i))
5187 || toupper (i) != TOUPPER (i))
5192 if ac_fn_c_try_run
"$LINENO"; then :
5195 ac_cv_header_stdc
=no
5197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5204 $as_echo "$ac_cv_header_stdc" >&6; }
5205 if test $ac_cv_header_stdc = yes; then
5207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5212 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5213 inttypes.h stdint.h unistd.h
5215 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5216 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5218 eval as_val
=\$
$as_ac_Header
5219 if test "x$as_val" = x
""yes; then :
5220 cat >>confdefs.h
<<_ACEOF
5221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5231 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5238 if test "$MINIX" = yes; then
5240 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5243 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5246 $as_echo "#define _MINIX 1" >>confdefs.h
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5252 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5253 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5259 # define __EXTENSIONS__ 1
5260 $ac_includes_default
5269 if ac_fn_c_try_compile
"$LINENO"; then :
5270 ac_cv_safe_to_define___extensions__
=yes
5272 ac_cv_safe_to_define___extensions__
=no
5274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5277 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5278 test $ac_cv_safe_to_define___extensions__ = yes &&
5279 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5281 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5283 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5285 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5287 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5291 ac_cpp
='$CPP $CPPFLAGS'
5292 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5296 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5297 # On Suns, sometimes $CPP names a directory.
5298 if test -n "$CPP" && test -d "$CPP"; then
5301 if test -z "$CPP"; then
5302 if test "${ac_cv_prog_CPP+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5305 # Double quotes because CPP needs to be expanded
5306 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5309 for ac_c_preproc_warn_flag
in '' yes
5311 # Use a header file that comes with gcc, so configuring glibc
5312 # with a fresh cross-compiler works.
5313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5314 # <limits.h> exists even on freestanding compilers.
5315 # On the NeXT, cc -E runs the code through the compiler's parser,
5316 # not just through cpp. "Syntax error" is here to catch this case.
5317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5320 # include <limits.h>
5322 # include <assert.h>
5326 if ac_fn_c_try_cpp
"$LINENO"; then :
5329 # Broken: fails on valid input.
5332 rm -f conftest.err conftest.
$ac_ext
5334 # OK, works on sane cases. Now check whether nonexistent headers
5335 # can be detected and how.
5336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 #include <ac_nonexistent.h>
5340 if ac_fn_c_try_cpp
"$LINENO"; then :
5341 # Broken: success on invalid input.
5344 # Passes both tests.
5348 rm -f conftest.err conftest.
$ac_ext
5351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5352 rm -f conftest.err conftest.
$ac_ext
5353 if $ac_preproc_ok; then :
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5366 $as_echo "$CPP" >&6; }
5368 for ac_c_preproc_warn_flag
in '' yes
5370 # Use a header file that comes with gcc, so configuring glibc
5371 # with a fresh cross-compiler works.
5372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373 # <limits.h> exists even on freestanding compilers.
5374 # On the NeXT, cc -E runs the code through the compiler's parser,
5375 # not just through cpp. "Syntax error" is here to catch this case.
5376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5379 # include <limits.h>
5381 # include <assert.h>
5385 if ac_fn_c_try_cpp
"$LINENO"; then :
5388 # Broken: fails on valid input.
5391 rm -f conftest.err conftest.
$ac_ext
5393 # OK, works on sane cases. Now check whether nonexistent headers
5394 # can be detected and how.
5395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 #include <ac_nonexistent.h>
5399 if ac_fn_c_try_cpp
"$LINENO"; then :
5400 # Broken: success on invalid input.
5403 # Passes both tests.
5407 rm -f conftest.err conftest.
$ac_ext
5410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5411 rm -f conftest.err conftest.
$ac_ext
5412 if $ac_preproc_ok; then :
5415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5417 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5418 See \`config.log' for more details." "$LINENO" 5; }
5422 ac_cpp
='$CPP $CPPFLAGS'
5423 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5428 $as_echo_n "checking for inline... " >&6; }
5429 if test "${ac_cv_c_inline+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5433 for ac_kw
in inline __inline__ __inline
; do
5434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5438 static $ac_kw foo_t static_foo () {return 0; }
5439 $ac_kw foo_t foo () {return 0; }
5443 if ac_fn_c_try_compile
"$LINENO"; then :
5444 ac_cv_c_inline
=$ac_kw
5446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 test "$ac_cv_c_inline" != no
&& break
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5452 $as_echo "$ac_cv_c_inline" >&6; }
5454 case $ac_cv_c_inline in
5457 case $ac_cv_c_inline in
5459 *) ac_val
=$ac_cv_c_inline;;
5461 cat >>confdefs.h
<<_ACEOF
5463 #define inline $ac_val
5470 # Check whether --enable-largefile was given.
5471 if test "${enable_largefile+set}" = set; then :
5472 enableval
=$enable_largefile;
5475 if test "$enable_largefile" != no
; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5478 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5479 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5482 ac_cv_sys_largefile_CC
=no
5483 if test "$GCC" != yes; then
5486 # IRIX 6.2 and later do not support large files by default,
5487 # so use the C compiler's -n32 option if that helps.
5488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 /* Check that off_t can represent 2**63 - 1 correctly.
5492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5493 since some C++ compilers masquerading as C compilers
5494 incorrectly reject 9223372036854775807. */
5495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5497 && LARGE_OFF_T % 2147483647 == 1)
5507 if ac_fn_c_try_compile
"$LINENO"; then :
5510 rm -f core conftest.err conftest.
$ac_objext
5512 if ac_fn_c_try_compile
"$LINENO"; then :
5513 ac_cv_sys_largefile_CC
=' -n32'; break
5515 rm -f core conftest.err conftest.
$ac_objext
5519 rm -f conftest.
$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5523 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5524 if test "$ac_cv_sys_largefile_CC" != no
; then
5525 CC
=$CC$ac_cv_sys_largefile_CC
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5529 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5530 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 /* Check that off_t can represent 2**63 - 1 correctly.
5538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5539 since some C++ compilers masquerading as C compilers
5540 incorrectly reject 9223372036854775807. */
5541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5543 && LARGE_OFF_T % 2147483647 == 1)
5553 if ac_fn_c_try_compile
"$LINENO"; then :
5554 ac_cv_sys_file_offset_bits
=no
; break
5556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 #define _FILE_OFFSET_BITS 64
5560 #include <sys/types.h>
5561 /* Check that off_t can represent 2**63 - 1 correctly.
5562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5563 since some C++ compilers masquerading as C compilers
5564 incorrectly reject 9223372036854775807. */
5565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5567 && LARGE_OFF_T % 2147483647 == 1)
5577 if ac_fn_c_try_compile
"$LINENO"; then :
5578 ac_cv_sys_file_offset_bits
=64; break
5580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 ac_cv_sys_file_offset_bits
=unknown
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5586 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5587 case $ac_cv_sys_file_offset_bits in #(
5590 cat >>confdefs.h
<<_ACEOF
5591 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5596 if test $ac_cv_sys_file_offset_bits = unknown
; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5598 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5599 if test "${ac_cv_sys_large_files+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <sys/types.h>
5606 /* Check that off_t can represent 2**63 - 1 correctly.
5607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5608 since some C++ compilers masquerading as C compilers
5609 incorrectly reject 9223372036854775807. */
5610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5612 && LARGE_OFF_T % 2147483647 == 1)
5622 if ac_fn_c_try_compile
"$LINENO"; then :
5623 ac_cv_sys_large_files
=no
; break
5625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #define _LARGE_FILES 1
5629 #include <sys/types.h>
5630 /* Check that off_t can represent 2**63 - 1 correctly.
5631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632 since some C++ compilers masquerading as C compilers
5633 incorrectly reject 9223372036854775807. */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636 && LARGE_OFF_T % 2147483647 == 1)
5646 if ac_fn_c_try_compile
"$LINENO"; then :
5647 ac_cv_sys_large_files
=1; break
5649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5650 ac_cv_sys_large_files
=unknown
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5655 $as_echo "$ac_cv_sys_large_files" >&6; }
5656 case $ac_cv_sys_large_files in #(
5659 cat >>confdefs.h
<<_ACEOF
5660 #define _LARGE_FILES $ac_cv_sys_large_files
5669 # sizeof(char) is 1 by definition.
5670 # The cast to long int works around a bug in the HP C Compiler
5671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5673 # This bug is HP SR number 8606223364.
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5675 $as_echo_n "checking size of void *... " >&6; }
5676 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5679 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5682 if test "$ac_cv_type_void_p" = yes; then
5683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5685 { as_fn_set_status
77
5686 as_fn_error
"cannot compute sizeof (void *)
5687 See \`config.log' for more details." "$LINENO" 5; }; }
5689 ac_cv_sizeof_void_p
=0
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5695 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5699 cat >>confdefs.h
<<_ACEOF
5700 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5704 # The cast to long int works around a bug in the HP C Compiler
5705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5707 # This bug is HP SR number 8606223364.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5709 $as_echo_n "checking size of short... " >&6; }
5710 if test "${ac_cv_sizeof_short+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5713 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5716 if test "$ac_cv_type_short" = yes; then
5717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5719 { as_fn_set_status
77
5720 as_fn_error
"cannot compute sizeof (short)
5721 See \`config.log' for more details." "$LINENO" 5; }; }
5723 ac_cv_sizeof_short
=0
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5729 $as_echo "$ac_cv_sizeof_short" >&6; }
5733 cat >>confdefs.h
<<_ACEOF
5734 #define SIZEOF_SHORT $ac_cv_sizeof_short
5738 # The cast to long int works around a bug in the HP C Compiler
5739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5741 # This bug is HP SR number 8606223364.
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5743 $as_echo_n "checking size of int... " >&6; }
5744 if test "${ac_cv_sizeof_int+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5747 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5750 if test "$ac_cv_type_int" = yes; then
5751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5753 { as_fn_set_status
77
5754 as_fn_error
"cannot compute sizeof (int)
5755 See \`config.log' for more details." "$LINENO" 5; }; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5763 $as_echo "$ac_cv_sizeof_int" >&6; }
5767 cat >>confdefs.h
<<_ACEOF
5768 #define SIZEOF_INT $ac_cv_sizeof_int
5772 # The cast to long int works around a bug in the HP C Compiler
5773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5775 # This bug is HP SR number 8606223364.
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5777 $as_echo_n "checking size of long... " >&6; }
5778 if test "${ac_cv_sizeof_long+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5781 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5784 if test "$ac_cv_type_long" = yes; then
5785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5787 { as_fn_set_status
77
5788 as_fn_error
"cannot compute sizeof (long)
5789 See \`config.log' for more details." "$LINENO" 5; }; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5797 $as_echo "$ac_cv_sizeof_long" >&6; }
5801 cat >>confdefs.h
<<_ACEOF
5802 #define SIZEOF_LONG $ac_cv_sizeof_long
5806 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5807 if test "x$ac_cv_type_long_long" = x
""yes; then :
5809 cat >>confdefs.h
<<_ACEOF
5810 #define HAVE_LONG_LONG 1
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5818 $as_echo_n "checking size of long long... " >&6; }
5819 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5825 if test "$ac_cv_type_long_long" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 { as_fn_set_status
77
5829 as_fn_error
"cannot compute sizeof (long long)
5830 See \`config.log' for more details." "$LINENO" 5; }; }
5832 ac_cv_sizeof_long_long
=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5838 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5842 cat >>confdefs.h
<<_ACEOF
5843 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5849 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5850 if test "x$ac_cv_type___int64" = x
""yes; then :
5852 cat >>confdefs.h
<<_ACEOF
5853 #define HAVE___INT64 1
5856 # The cast to long int works around a bug in the HP C Compiler
5857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5859 # This bug is HP SR number 8606223364.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5861 $as_echo_n "checking size of __int64... " >&6; }
5862 if test "${ac_cv_sizeof___int64+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5868 if test "$ac_cv_type___int64" = yes; then
5869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5871 { as_fn_set_status
77
5872 as_fn_error
"cannot compute sizeof (__int64)
5873 See \`config.log' for more details." "$LINENO" 5; }; }
5875 ac_cv_sizeof___int64
=0
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5881 $as_echo "$ac_cv_sizeof___int64" >&6; }
5885 cat >>confdefs.h
<<_ACEOF
5886 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5892 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5893 case $ac_cv_c_int8_t in #(
5897 cat >>confdefs.h
<<_ACEOF
5898 #define int8_t $ac_cv_c_int8_t
5903 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5904 case $ac_cv_c_int16_t in #(
5908 cat >>confdefs.h
<<_ACEOF
5909 #define int16_t $ac_cv_c_int16_t
5914 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5915 case $ac_cv_c_int32_t in #(
5919 cat >>confdefs.h
<<_ACEOF
5920 #define int32_t $ac_cv_c_int32_t
5925 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5926 case $ac_cv_c_int64_t in #(
5930 cat >>confdefs.h
<<_ACEOF
5931 #define int64_t $ac_cv_c_int64_t
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5938 $as_echo_n "checking for long long int... " >&6; }
5939 if test "${ac_cv_type_long_long_int+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5945 /* For now, do not test the preprocessor; as of 2007 there are too many
5946 implementations with broken preprocessors. Perhaps this can
5947 be revisited in 2012. In the meantime, code should not expect
5948 #if to work with literals wider than 32 bits. */
5949 /* Test literals. */
5950 long long int ll = 9223372036854775807ll;
5951 long long int nll = -9223372036854775807LL;
5952 unsigned long long int ull = 18446744073709551615ULL;
5953 /* Test constant expressions. */
5954 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5956 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5962 /* Test availability of runtime routines for shift and division. */
5963 long long int llmax = 9223372036854775807ll;
5964 unsigned long long int ullmax = 18446744073709551615ull;
5965 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5966 | (llmax / ll) | (llmax % ll)
5967 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5968 | (ullmax / ull) | (ullmax % ull));
5974 if ac_fn_c_try_link
"$LINENO"; then :
5975 if test "$cross_compiling" = yes; then :
5976 ac_cv_type_long_long_int
=yes
5978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5983 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5984 # define LLONG_MAX (HALF - 1 + HALF)
5989 long long int n = 1;
5993 long long int m = n << i;
5996 if (LLONG_MAX / 2 < m)
6004 if ac_fn_c_try_run
"$LINENO"; then :
6005 ac_cv_type_long_long_int
=yes
6007 ac_cv_type_long_long_int
=no
6009 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6010 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6014 ac_cv_type_long_long_int
=no
6016 rm -f core conftest.err conftest.
$ac_objext \
6017 conftest
$ac_exeext conftest.
$ac_ext
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6020 $as_echo "$ac_cv_type_long_long_int" >&6; }
6021 if test $ac_cv_type_long_long_int = yes; then
6023 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6029 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6030 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6032 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6035 test $ac_cv_type_long_long_int = yes \
6036 && ac_type
='long long int' \
6037 || ac_type
='long int'
6039 cat >>confdefs.h
<<_ACEOF
6040 #define intmax_t $ac_type
6047 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6048 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6050 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6053 for ac_type
in 'int' 'long int' 'long long int'; do
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 $ac_includes_default
6060 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6067 if ac_fn_c_try_compile
"$LINENO"; then :
6069 cat >>confdefs.h
<<_ACEOF
6070 #define intptr_t $ac_type
6075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6076 test -z "$ac_type" && break
6081 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6082 case $ac_cv_c_uint8_t in #(
6086 $as_echo "#define _UINT8_T 1" >>confdefs.h
6089 cat >>confdefs.h
<<_ACEOF
6090 #define uint8_t $ac_cv_c_uint8_t
6095 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6096 case $ac_cv_c_uint16_t in #(
6101 cat >>confdefs.h
<<_ACEOF
6102 #define uint16_t $ac_cv_c_uint16_t
6107 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6108 case $ac_cv_c_uint32_t in #(
6112 $as_echo "#define _UINT32_T 1" >>confdefs.h
6115 cat >>confdefs.h
<<_ACEOF
6116 #define uint32_t $ac_cv_c_uint32_t
6121 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6122 case $ac_cv_c_uint64_t in #(
6126 $as_echo "#define _UINT64_T 1" >>confdefs.h
6129 cat >>confdefs.h
<<_ACEOF
6130 #define uint64_t $ac_cv_c_uint64_t
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6137 $as_echo_n "checking for unsigned long long int... " >&6; }
6138 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6144 /* For now, do not test the preprocessor; as of 2007 there are too many
6145 implementations with broken preprocessors. Perhaps this can
6146 be revisited in 2012. In the meantime, code should not expect
6147 #if to work with literals wider than 32 bits. */
6148 /* Test literals. */
6149 long long int ll = 9223372036854775807ll;
6150 long long int nll = -9223372036854775807LL;
6151 unsigned long long int ull = 18446744073709551615ULL;
6152 /* Test constant expressions. */
6153 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6155 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6161 /* Test availability of runtime routines for shift and division. */
6162 long long int llmax = 9223372036854775807ll;
6163 unsigned long long int ullmax = 18446744073709551615ull;
6164 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6165 | (llmax / ll) | (llmax % ll)
6166 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6167 | (ullmax / ull) | (ullmax % ull));
6173 if ac_fn_c_try_link
"$LINENO"; then :
6174 ac_cv_type_unsigned_long_long_int
=yes
6176 ac_cv_type_unsigned_long_long_int
=no
6178 rm -f core conftest.err conftest.
$ac_objext \
6179 conftest
$ac_exeext conftest.
$ac_ext
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6182 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6183 if test $ac_cv_type_unsigned_long_long_int = yes; then
6185 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6191 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6192 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6194 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6197 test $ac_cv_type_unsigned_long_long_int = yes \
6198 && ac_type
='unsigned long long int' \
6199 || ac_type
='unsigned long int'
6201 cat >>confdefs.h
<<_ACEOF
6202 #define uintmax_t $ac_type
6209 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6210 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6212 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6215 for ac_type
in 'unsigned int' 'unsigned long int' \
6216 'unsigned long long int'; do
6217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 $ac_includes_default
6223 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6230 if ac_fn_c_try_compile
"$LINENO"; then :
6232 cat >>confdefs.h
<<_ACEOF
6233 #define uintptr_t $ac_type
6238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6239 test -z "$ac_type" && break
6257 # ---------------------
6258 # Warnings and checking
6259 # ---------------------
6261 # Check $CC warning features (if it's GCC).
6262 # We want to use -pedantic, but we don't want warnings about
6265 # * overlong strings
6266 # * C++11 narrowing conversions in { }
6267 # So, we only use -pedantic if we can disable those warnings.
6270 save_CFLAGS
="$CFLAGS"
6271 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6272 # Do the check with the no- prefix removed since gcc silently
6273 # accepts any -Wno-* option on purpose
6274 case $real_option in
6275 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6276 *) option
=$real_option ;;
6278 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6281 $as_echo_n "checking whether $CC supports $option... " >&6; }
6282 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6283 $as_echo_n "(cached) " >&6
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6297 if ac_fn_c_try_compile
"$LINENO"; then :
6298 eval "$as_acx_Woption=yes"
6300 eval "$as_acx_Woption=no"
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6305 eval ac_res
=\$
$as_acx_Woption
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6307 $as_echo "$ac_res" >&6; }
6308 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6309 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6312 CFLAGS
="$save_CFLAGS"
6315 save_CFLAGS
="$CFLAGS"
6316 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6317 # Do the check with the no- prefix removed since gcc silently
6318 # accepts any -Wno-* option on purpose
6319 case $real_option in
6320 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6321 *) option
=$real_option ;;
6323 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6326 $as_echo_n "checking whether $CC supports $option... " >&6; }
6327 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6328 $as_echo_n "(cached) " >&6
6331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6342 if ac_fn_c_try_compile
"$LINENO"; then :
6343 eval "$as_acx_Woption=yes"
6345 eval "$as_acx_Woption=no"
6347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 eval ac_res
=\$
$as_acx_Woption
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6352 $as_echo "$ac_res" >&6; }
6353 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6354 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6357 CFLAGS
="$save_CFLAGS"
6360 save_CFLAGS
="$CFLAGS"
6361 for real_option
in -Wmissing-format-attribute; do
6362 # Do the check with the no- prefix removed since gcc silently
6363 # accepts any -Wno-* option on purpose
6364 case $real_option in
6365 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6366 *) option
=$real_option ;;
6368 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6371 $as_echo_n "checking whether $CC supports $option... " >&6; }
6372 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6373 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6387 if ac_fn_c_try_compile
"$LINENO"; then :
6388 eval "$as_acx_Woption=yes"
6390 eval "$as_acx_Woption=no"
6392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 eval ac_res
=\$
$as_acx_Woption
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6399 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6402 CFLAGS
="$save_CFLAGS"
6405 save_CFLAGS
="$CFLAGS"
6406 for real_option
in -Wold-style-definition -Wc++-compat; do
6407 # Do the check with the no- prefix removed since gcc silently
6408 # accepts any -Wno-* option on purpose
6409 case $real_option in
6410 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6411 *) option
=$real_option ;;
6413 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6416 $as_echo_n "checking whether $CC supports $option... " >&6; }
6417 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6418 $as_echo_n "(cached) " >&6
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6433 eval "$as_acx_Woption=yes"
6435 eval "$as_acx_Woption=no"
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6440 eval ac_res
=\$
$as_acx_Woption
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6442 $as_echo "$ac_res" >&6; }
6443 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6444 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6447 CFLAGS
="$save_CFLAGS"
6449 # Do the check with the no- prefix removed from the warning options
6450 # since gcc silently accepts any -Wno-* option on purpose
6451 if test "$GCC" = yes; then :
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6453 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6454 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6457 save_CFLAGS
="$CFLAGS"
6458 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6470 if ac_fn_c_try_compile
"$LINENO"; then :
6471 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6473 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6476 CFLAGS
="$save_CFLAGS"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6479 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6480 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6481 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6486 # Check whether --enable-werror-always was given.
6487 if test "${enable_werror_always+set}" = set; then :
6488 enableval
=$enable_werror_always;
6490 enable_werror_always
=no
6493 if test $enable_werror_always = yes; then :
6494 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6499 # The above macros do nothing if the compiler is not GCC. However, the
6500 # Makefile has more goo to add other flags, so these variables are used
6501 # to enable warnings only for GCC.
6504 if test "x$GCC" = "xyes"; then
6505 warn_cflags
='$(GCC_WARN_CFLAGS)'
6506 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6511 # Disable exceptions and RTTI if building with g++
6513 save_CFLAGS
="$CFLAGS"
6514 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6515 # Do the check with the no- prefix removed since gcc silently
6516 # accepts any -Wno-* option on purpose
6517 case $real_option in
6518 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6519 *) option
=$real_option ;;
6521 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 eval ac_res
=\$
$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6555 CFLAGS
="$save_CFLAGS"
6558 # Enable expensive internal checks
6560 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6564 # Check whether --enable-checking was given.
6565 if test "${enable_checking+set}" = set; then :
6566 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6569 # Determine the default checks.
6570 if test x
$is_release = x
; then
6571 ac_checking_flags
=yes
6573 ac_checking_flags
=release
6577 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6578 for check
in release
$ac_checking_flags
6581 # these set all the flags to specific states
6582 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6583 ac_fold_checking
= ; ac_gc_checking
=1 ;
6584 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6585 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6586 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6587 ac_types_checking
=1 ;;
6588 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6589 ac_fold_checking
= ; ac_gc_checking
= ;
6590 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6591 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6592 ac_tree_checking
= ; ac_valgrind_checking
= ;
6593 ac_types_checking
= ;;
6594 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6595 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6596 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6597 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6598 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6599 ac_types_checking
=1 ;;
6600 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6601 ac_fold_checking
= ; ac_gc_checking
= ;
6602 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6603 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6604 ac_tree_checking
= ; ac_valgrind_checking
= ;
6605 ac_types_checking
= ;;
6606 # these enable particular checks
6607 assert
) ac_assert_checking
=1 ;;
6608 df
) ac_df_checking
=1 ;;
6609 fold) ac_fold_checking
=1 ;;
6610 gc
) ac_gc_checking
=1 ;;
6611 gcac
) ac_gc_always_collect
=1 ;;
6612 gimple
) ac_gimple_checking
=1 ;;
6613 misc
) ac_checking
=1 ;;
6614 rtl
) ac_rtl_checking
=1 ;;
6615 rtlflag
) ac_rtlflag_checking
=1 ;;
6616 runtime
) ac_runtime_checking
=1 ;;
6617 tree
) ac_tree_checking
=1 ;;
6618 types
) ac_types_checking
=1 ;;
6619 valgrind
) ac_valgrind_checking
=1 ;;
6620 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6626 if test x
$ac_checking != x
; then
6628 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6630 nocommon_flag
=-fno-common
6633 if test x
$ac_df_checking != x
; then
6635 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6638 if test x
$ac_assert_checking != x
; then
6640 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6643 if test x
$ac_gimple_checking != x
; then
6645 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6649 if test x
$ac_runtime_checking != x
; then
6651 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6654 if test x
$ac_tree_checking != x
; then
6656 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6658 TREEBROWSER
=tree-browser.o
6661 if test x
$ac_types_checking != x
; then
6663 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6668 if test x
$ac_rtl_checking != x
; then
6670 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6673 if test x
$ac_rtlflag_checking != x
; then
6675 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6678 if test x
$ac_gc_checking != x
; then
6680 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6683 if test x
$ac_gc_always_collect != x
; then
6685 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6688 if test x
$ac_fold_checking != x
; then
6690 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6693 valgrind_path_defines
=
6696 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6697 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6705 if test x
$ac_valgrind_checking != x
; then
6706 # It is certainly possible that there's valgrind but no valgrind.h.
6707 # GCC relies on making annotations so we must have both.
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6709 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 #include <valgrind/memcheck.h>
6713 #ifndef VALGRIND_DISCARD
6714 #error VALGRIND_DISCARD not defined
6717 if ac_fn_c_try_cpp
"$LINENO"; then :
6718 gcc_cv_header_valgrind_memcheck_h
=yes
6720 gcc_cv_header_valgrind_memcheck_h
=no
6722 rm -f conftest.err conftest.
$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6724 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6726 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 #include <memcheck.h>
6730 #ifndef VALGRIND_DISCARD
6731 #error VALGRIND_DISCARD not defined
6734 if ac_fn_c_try_cpp
"$LINENO"; then :
6735 gcc_cv_header_memcheck_h
=yes
6737 gcc_cv_header_memcheck_h
=no
6739 rm -f conftest.err conftest.
$ac_ext
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6741 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746 echo "#! /bin/sh" >conf$$.sh
6747 echo "exit 0" >>conf$$.sh
6749 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.
file <<_ASEOF
6763 chmod +x conf$$.
file
6764 if test -x conf$$.
file >/dev
/null
2>&1; then
6765 ac_executable_p
="test -x"
6767 ac_executable_p
="test -f"
6771 # Extract the first word of "valgrind", so it can be a program name with args.
6772 set dummy valgrind
; ac_word
=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6778 case "$valgrind_path" in
6780 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6783 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6784 for ac_dir
in $PATH; do
6786 test -z "$ac_dir" && ac_dir
=.
6787 for ac_exec_ext
in '' $ac_executable_extensions; do
6788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6790 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6800 valgrind_path
="$ac_cv_path_valgrind_path"
6801 if test -n "$valgrind_path"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6803 $as_echo "$valgrind_path" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$valgrind_path" = "x" \
6810 ||
(test $have_valgrind_h = no \
6811 && test $gcc_cv_header_memcheck_h = no \
6812 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6813 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6815 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6816 valgrind_command
="$valgrind_path -q"
6818 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6820 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6822 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6825 if test $gcc_cv_header_memcheck_h = yes; then
6827 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6834 # Enable code coverage collection
6835 # Check whether --enable-coverage was given.
6836 if test "${enable_coverage+set}" = set; then :
6837 enableval
=$enable_coverage; case "${enableval}" in
6839 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6842 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6845 # a.k.a. --disable-coverage
6849 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6858 # Check whether --enable-gather-detailed-mem-stats was given.
6859 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6860 enableval
=$enable_gather_detailed_mem_stats;
6862 enable_gather_detailed_mem_stats
=no
6865 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6867 cat >>confdefs.h
<<_ACEOF
6868 #define GATHER_STATISTICS $gather_stats
6872 # -------------------------------
6873 # Miscenalleous configure options
6874 # -------------------------------
6878 # Check whether --with-stabs was given.
6879 if test "${with_stabs+set}" = set; then :
6880 withval
=$with_stabs; stabs
="$with_stabs"
6886 # Determine whether or not multilibs are enabled.
6887 # Check whether --enable-multilib was given.
6888 if test "${enable_multilib+set}" = set; then :
6889 enableval
=$enable_multilib;
6896 # Determine whether or not multiarch is enabled.
6897 # Check whether --enable-multiarch was given.
6898 if test "${enable_multiarch+set}" = set; then :
6899 enableval
=$enable_multiarch; case "${enableval}" in
6900 yes|no|auto
) enable_multiarch
=$enableval;;
6901 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6904 enable_multiarch
=auto
6907 if test x
${enable_multiarch} = xauto
; then
6908 if test x
${with_native_system_header_dir} != x
; then
6909 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6912 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6913 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6918 $as_echo_n "checking for multiarch configuration... " >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6921 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6923 # needed for setting the multiarch name for soft-float/hard-float ABIs
6927 # Enable __cxa_atexit for C++.
6928 # Check whether --enable-__cxa_atexit was given.
6929 if test "${enable___cxa_atexit+set}" = set; then :
6930 enableval
=$enable___cxa_atexit;
6934 # Enable C extension for decimal float if target supports it.
6936 # Check whether --enable-decimal-float was given.
6937 if test "${enable_decimal_float+set}" = set; then :
6938 enableval
=$enable_decimal_float;
6939 case $enable_decimal_float in
6940 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6941 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6942 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6948 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6950 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6951 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
6952 enable_decimal_float
=yes
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6956 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6957 enable_decimal_float
=no
6964 # x86's use BID format instead of DPD
6965 case x
$enable_decimal_float in
6968 i?
86*-*-* | x86_64
*-*-*)
6969 enable_decimal_float
=bid
6972 enable_decimal_float
=dpd
6975 default_decimal_float
=$enable_decimal_float
6978 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6979 # dependency on libdecnumber.
6980 default_decimal_float
=dpd
6987 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6989 cat >>confdefs.h
<<_ACEOF
6990 #define ENABLE_DECIMAL_FLOAT $dfp
6994 # Use default_decimal_float for dependency.
6995 enable_decimal_float
=$default_decimal_float
6997 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h
<<_ACEOF
7000 #define ENABLE_DECIMAL_BID_FORMAT $bid
7004 # Enable C extension for fixed-point arithmetic.
7005 # Check whether --enable-fixed-point was given.
7006 if test "${enable_fixed_point+set}" = set; then :
7007 enableval
=$enable_fixed_point;
7012 enable_fixed_point
=yes
7016 enable_fixed_point
=yes
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7020 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7021 enable_fixed_point
=no
7029 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7031 cat >>confdefs.h
<<_ACEOF
7032 #define ENABLE_FIXED_POINT $fixedpoint
7037 # Pass with no value to take the default
7038 # Pass with a value to specify a thread package
7039 # Check whether --enable-threads was given.
7040 if test "${enable_threads+set}" = set; then :
7041 enableval
=$enable_threads;
7047 # Check whether --enable-tls was given.
7048 if test "${enable_tls+set}" = set; then :
7049 enableval
=$enable_tls;
7052 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7053 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7061 # Check whether --enable-objc-gc was given.
7062 if test "${enable_objc_gc+set}" = set; then :
7063 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7074 # Check whether --with-dwarf2 was given.
7075 if test "${with_dwarf2+set}" = set; then :
7076 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7082 # Check whether --enable-shared was given.
7083 if test "${enable_shared+set}" = set; then :
7084 enableval
=$enable_shared;
7085 case $enable_shared in
7089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7090 for pkg
in $enableval; do
7091 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7106 # Check whether --with-native-system-header-dir was given.
7107 if test "${with_native_system_header_dir+set}" = set; then :
7108 withval
=$with_native_system_header_dir;
7109 case ${with_native_system_header_dir} in
7110 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7111 /* |
[A-Za-z
]:[\\/]*) ;;
7112 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7114 configured_native_system_header_dir
="${withval}"
7117 configured_native_system_header_dir
=
7122 # Check whether --with-build-sysroot was given.
7123 if test "${with_build_sysroot+set}" = set; then :
7124 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7125 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7128 SYSROOT_CFLAGS_FOR_TARGET
=
7133 if test "x$prefix" = xNONE
; then
7134 test_prefix
=/usr
/local
7138 if test "x$exec_prefix" = xNONE
; then
7139 test_exec_prefix
=$test_prefix
7141 test_exec_prefix
=$exec_prefix
7145 # Check whether --with-sysroot was given.
7146 if test "${with_sysroot+set}" = set; then :
7147 withval
=$with_sysroot;
7148 case ${with_sysroot} in
7149 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7150 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7153 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7154 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7156 case ${TARGET_SYSTEM_ROOT} in
7157 "${test_prefix}"|
"${test_prefix}/"*|\
7158 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7159 '${prefix}'|
'${prefix}/'*|\
7160 '${exec_prefix}'|
'${exec_prefix}/'*)
7161 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7162 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7169 TARGET_SYSTEM_ROOT_DEFINE
=
7170 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7179 # Check whether --with-specs was given.
7180 if test "${with_specs+set}" = set; then :
7181 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7191 # Check whether --with-pkgversion was given.
7192 if test "${with_pkgversion+set}" = set; then :
7193 withval
=$with_pkgversion; case "$withval" in
7194 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7196 *) PKGVERSION
="($withval) " ;;
7207 # Check whether --with-bugurl was given.
7208 if test "${with_bugurl+set}" = set; then :
7209 withval
=$with_bugurl; case "$withval" in
7210 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7213 *) BUGURL
="$withval"
7217 BUGURL
="http://gcc.gnu.org/bugs.html"
7227 REPORT_BUGS_TO
="<$BUGURL>"
7228 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7235 # Sanity check enable_languages in case someone does not run the toplevel
7236 # configure # script.
7237 # Check whether --enable-languages was given.
7238 if test "${enable_languages+set}" = set; then :
7239 enableval
=$enable_languages; case ,${enable_languages}, in
7241 # go safe -- we cannot be much sure without the toplevel
7243 # analysis of which target libs are present and usable
7247 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7252 enable_languages
=c
,${enable_languages}
7261 # Check whether --with-multilib-list was given.
7262 if test "${with_multilib_list+set}" = set; then :
7263 withval
=$with_multilib_list; :
7265 with_multilib_list
=default
7269 # -------------------------
7270 # Checks for other programs
7271 # -------------------------
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7276 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7277 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7278 $as_echo_n "(cached) " >&6
7280 cat >conftest.
make <<\_ACEOF
7283 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7285 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7288 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7290 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7294 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 SET_MAKE
="MAKE=${MAKE-make}"
7305 # Find some useful tools
7306 for ac_prog
in gawk mawk nawk
awk
7308 # Extract the first word of "$ac_prog", so it can be a program name with args.
7309 set dummy
$ac_prog; ac_word
=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if test "${ac_cv_prog_AWK+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7315 if test -n "$AWK"; then
7316 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir
=.
7323 for ac_exec_ext
in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_prog_AWK
="$ac_prog"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 if test -n "$AWK"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7338 $as_echo "$AWK" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7345 test -n "$AWK" && break
7348 # We need awk to create options.c and options.h.
7349 # Bail out if it's missing.
7351 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7355 $as_echo_n "checking whether ln -s works... " >&6; }
7356 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7359 rm -f conftestdata_t
7360 echo >conftestdata_f
7361 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7363 gcc_cv_prog_LN_S
="ln -s"
7365 if ln conftestdata_f conftestdata_t
2>/dev
/null
7369 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7371 gcc_cv_prog_LN_S
="cp -p"
7377 rm -f conftestdata_f conftestdata_t
7380 LN_S
="$gcc_cv_prog_LN_S"
7381 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7383 $as_echo "yes" >&6; }
7385 if test "$gcc_cv_prog_LN_S" = "ln"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7387 $as_echo "no, using ln" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7390 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7395 $as_echo_n "checking whether ln works... " >&6; }
7396 if test "${acx_cv_prog_LN+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 rm -f conftestdata_t
7400 echo >conftestdata_f
7401 if ln conftestdata_f conftestdata_t
2>/dev
/null
7407 rm -f conftestdata_f conftestdata_t
7410 if test $acx_cv_prog_LN = no
; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7413 $as_echo "no, using $LN" >&6; }
7415 LN
="$acx_cv_prog_LN"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7417 $as_echo "yes" >&6; }
7420 if test -n "$ac_tool_prefix"; then
7421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7422 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7428 if test -n "$RANLIB"; then
7429 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir
=.
7436 for ac_exec_ext
in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 RANLIB
=$ac_cv_prog_RANLIB
7449 if test -n "$RANLIB"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7451 $as_echo "$RANLIB" >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7459 if test -z "$ac_cv_prog_RANLIB"; then
7460 ac_ct_RANLIB
=$RANLIB
7461 # Extract the first word of "ranlib", so it can be a program name with args.
7462 set dummy ranlib
; ac_word
=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7468 if test -n "$ac_ct_RANLIB"; then
7469 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir
=.
7476 for ac_exec_ext
in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7489 if test -n "$ac_ct_RANLIB"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7491 $as_echo "$ac_ct_RANLIB" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7497 if test "x$ac_ct_RANLIB" = x
; then
7500 case $cross_compiling:$ac_tool_warned in
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7504 ac_tool_warned
=yes ;;
7506 RANLIB
=$ac_ct_RANLIB
7509 RANLIB
="$ac_cv_prog_RANLIB"
7515 # Find a good install program. We prefer a C program (faster),
7516 # so one script is as good as another. But avoid the broken or
7517 # incompatible versions:
7518 # SysV /etc/install, /usr/sbin/install
7519 # SunOS /usr/etc/install
7520 # IRIX /sbin/install
7522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7524 # ./install, which can be erroneously created by make from ./install.sh.
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7526 $as_echo_n "checking for a BSD compatible install... " >&6; }
7527 if test -z "$INSTALL"; then
7528 if test "${ac_cv_path_install+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7531 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7532 for ac_dir
in $PATH; do
7533 # Account for people who put trailing slashes in PATH elements.
7535 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7537 # OSF1 and SCO ODT 3.0 have their own names for install.
7538 for ac_prog
in ginstall scoinst
install; do
7539 if test -f $ac_dir/$ac_prog; then
7540 if test $ac_prog = install &&
7541 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7542 # AIX install. It has an incompatible calling convention.
7543 # OSF/1 installbsd also uses dspmsg, but is usable.
7546 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7557 if test "${ac_cv_path_install+set}" = set; then
7558 INSTALL
="$ac_cv_path_install"
7560 # As a last resort, use the slow shell script. We don't cache a
7561 # path for INSTALL within a source directory, because that will
7562 # break other packages using the cache if that directory is
7563 # removed, or if the path is relative.
7564 INSTALL
="$ac_install_sh"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7568 $as_echo "$INSTALL" >&6; }
7570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7571 # It thinks the first close brace ends the variable substitution.
7572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7574 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7577 # See if cmp has --ignore-initial.
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7579 $as_echo_n "checking for cmp's capabilities... " >&6; }
7580 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7585 gcc_cv_prog_cmp_skip
=slowcompare
7586 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7587 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7590 gcc_cv_prog_cmp_skip
=gnucompare
7593 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7594 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7595 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7598 gcc_cv_prog_cmp_skip
=fastcompare
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7606 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7607 make_compare_target
=$gcc_cv_prog_cmp_skip
7611 # See if we have the mktemp command.
7612 # Extract the first word of "mktemp", so it can be a program name with args.
7613 set dummy mktemp
; ac_word
=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$have_mktemp_command"; then
7620 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir
=.
7627 for ac_exec_ext
in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_have_mktemp_command
="yes"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7640 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7641 if test -n "$have_mktemp_command"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7643 $as_echo "$have_mktemp_command" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 # See if makeinfo has been installed and is modern enough
7652 # that we can use it.
7654 # Extract the first word of "makeinfo", so it can be a program name with args.
7655 set dummy makeinfo
; ac_word
=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$MAKEINFO"; then
7662 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir
=.
7669 for ac_exec_ext
in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_MAKEINFO
="makeinfo"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 MAKEINFO
=$ac_cv_prog_MAKEINFO
7682 if test -n "$MAKEINFO"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7684 $as_echo "$MAKEINFO" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 if test -n "$MAKEINFO"; then
7692 # Found it, now check the version.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7694 $as_echo_n "checking for modern makeinfo... " >&6; }
7695 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7698 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7699 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7701 case $ac_prog_version in
7702 '') gcc_cv_prog_makeinfo_modern
=no
;;
7703 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7704 *) gcc_cv_prog_makeinfo_modern
=no
;;
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7709 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7711 gcc_cv_prog_makeinfo_modern
=no
7713 if test $gcc_cv_prog_makeinfo_modern = no
; then
7714 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7717 if test $gcc_cv_prog_makeinfo_modern = no
; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7719 *** Makeinfo is missing or too old.
7720 *** Info documentation will not be built." >&5
7721 $as_echo "$as_me: WARNING:
7722 *** Makeinfo is missing or too old.
7723 *** Info documentation will not be built." >&2;}
7730 # Is pod2man recent enough to regenerate manpages?
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7732 $as_echo_n "checking for recent Pod::Man... " >&6; }
7733 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7735 $as_echo "yes" >&6; }
7736 GENERATED_MANPAGES
=generated-manpages
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7744 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7749 # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy
$ac_prog; ac_word
=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_FLEX+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$FLEX"; then
7757 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir
=.
7764 for ac_exec_ext
in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_FLEX
="$ac_prog"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 FLEX
=$ac_cv_prog_FLEX
7777 if test -n "$FLEX"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7779 $as_echo "$FLEX" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7786 test -n "$FLEX" && break
7788 test -n "$FLEX" || FLEX
="$MISSING flex"
7792 for ac_prog
in bison
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy
$ac_prog; ac_word
=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_BISON+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$BISON"; then
7802 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir
=.
7809 for ac_exec_ext
in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_BISON
="$ac_prog"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 BISON
=$ac_cv_prog_BISON
7822 if test -n "$BISON"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7824 $as_echo "$BISON" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 test -n "$BISON" && break
7833 test -n "$BISON" || BISON
="$MISSING bison"
7836 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7837 # check for build == host before using them.
7840 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7841 && test -d ..
/binutils
; then
7842 NM
='${objdir}/../binutils/nm-new'
7844 # Extract the first word of "nm", so it can be a program name with args.
7845 set dummy nm
; 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_NM+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$NM"; then
7852 ac_cv_prog_NM
="$NM" # 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
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7873 if test -n "$NM"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7875 $as_echo "$NM" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7885 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7886 && test -d ..
/binutils
; then
7887 AR
='${objdir}/../binutils/ar'
7889 # Extract the first word of "ar", so it can be a program name with args.
7890 set dummy
ar; ac_word
=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_prog_AR+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$AR"; then
7897 ac_cv_prog_AR
="$AR" # Let the user override the test.
7899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir
=.
7904 for ac_exec_ext
in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7918 if test -n "$AR"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7920 $as_echo "$AR" >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7930 # --------------------
7931 # Checks for C headers
7932 # --------------------
7934 # Need to reject headers which give warnings, so that the -Werror bootstrap
7935 # works later. *sigh* This needs to come before all header checks.
7937 ac_c_preproc_warn_flag
=yes
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7940 $as_echo_n "checking for ANSI C header files... " >&6; }
7941 if test "${ac_cv_header_stdc+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7959 if ac_fn_c_try_compile
"$LINENO"; then :
7960 ac_cv_header_stdc
=yes
7962 ac_cv_header_stdc
=no
7964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7966 if test $ac_cv_header_stdc = yes; then
7967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974 $EGREP "memchr" >/dev
/null
2>&1; then :
7977 ac_cv_header_stdc
=no
7983 if test $ac_cv_header_stdc = yes; then
7984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "free" >/dev
/null
2>&1; then :
7994 ac_cv_header_stdc
=no
8000 if test $ac_cv_header_stdc = yes; then
8001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8002 if test "$cross_compiling" = yes; then :
8005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8009 #if ((' ' & 0x0FF) == 0x020)
8010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8013 # define ISLOWER(c) \
8014 (('a' <= (c) && (c) <= 'i') \
8015 || ('j' <= (c) && (c) <= 'r') \
8016 || ('s' <= (c) && (c) <= 'z'))
8017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8025 for (i = 0; i < 256; i++)
8026 if (XOR (islower (i), ISLOWER (i))
8027 || toupper (i) != TOUPPER (i))
8032 if ac_fn_c_try_run
"$LINENO"; then :
8035 ac_cv_header_stdc
=no
8037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8044 $as_echo "$ac_cv_header_stdc" >&6; }
8045 if test $ac_cv_header_stdc = yes; then
8047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8052 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8053 if test "${ac_cv_header_time+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #include <sys/types.h>
8059 #include <sys/time.h>
8065 if ((struct tm *) 0)
8071 if ac_fn_c_try_compile
"$LINENO"; then :
8072 ac_cv_header_time
=yes
8074 ac_cv_header_time
=no
8076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8079 $as_echo "$ac_cv_header_time" >&6; }
8080 if test $ac_cv_header_time = yes; then
8082 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8087 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8088 if test "${gcc_cv_header_string+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8094 #include <strings.h>
8103 if ac_fn_c_try_compile
"$LINENO"; then :
8104 gcc_cv_header_string
=yes
8106 gcc_cv_header_string
=no
8108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8111 $as_echo "$gcc_cv_header_string" >&6; }
8112 if test $gcc_cv_header_string = yes; then
8114 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8119 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8120 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 #include <sys/types.h>
8126 #include <sys/wait.h>
8128 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8131 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8144 if ac_fn_c_try_compile
"$LINENO"; then :
8145 ac_cv_header_sys_wait_h
=yes
8147 ac_cv_header_sys_wait_h
=no
8149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8152 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8153 if test $ac_cv_header_sys_wait_h = yes; then
8155 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8160 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8161 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <sys/types.h>
8167 #include <termios.h>
8173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8174 $EGREP "yes" >/dev
/null
2>&1; then :
8175 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8177 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8183 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8185 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8187 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8188 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 #include <sys/types.h>
8194 #include <sys/ioctl.h>
8200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8201 $EGREP "yes" >/dev
/null
2>&1; then :
8202 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8204 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8210 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8212 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8214 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8219 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8220 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8221 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8222 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8224 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8226 eval as_val
=\$
$as_ac_Header
8227 if test "x$as_val" = x
""yes; then :
8228 cat >>confdefs.h
<<_ACEOF
8229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8236 # Check for thread headers.
8237 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8238 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8244 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8245 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8252 # These tests can't be done till we know if we have limits.h.
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8254 $as_echo_n "checking for CHAR_BIT... " >&6; }
8255 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 #ifdef HAVE_LIMITS_H
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268 $EGREP "found" >/dev
/null
2>&1; then :
8269 gcc_cv_decl_char_bit
=yes
8271 gcc_cv_decl_char_bit
=no
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8278 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8279 if test $gcc_cv_decl_char_bit = no
; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8281 $as_echo_n "checking number of bits in a byte... " >&6; }
8282 if test "${gcc_cv_c_nbby+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8287 while test $i -lt 65; do
8288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8295 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8296 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8302 if ac_fn_c_try_compile
"$LINENO"; then :
8303 gcc_cv_c_nbby
=$i; break
8305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8312 $as_echo "$gcc_cv_c_nbby" >&6; }
8313 if test $gcc_cv_c_nbby = failed
; then
8314 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8317 cat >>confdefs.h
<<_ACEOF
8318 #define CHAR_BIT $gcc_cv_c_nbby
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8324 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8325 if test "${ac_cv_c_bigendian+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8328 ac_cv_c_bigendian
=unknown
8329 # See if we're dealing with a universal compiler.
8330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 #ifndef __APPLE_CC__
8333 not a universal capable compiler
8338 if ac_fn_c_try_compile
"$LINENO"; then :
8340 # Check for potential -arch flags. It is not universal unless
8341 # there are at least two -arch flags with different values.
8344 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8345 if test -n "$ac_prev"; then
8347 i?
86 | x86_64 | ppc | ppc64
)
8348 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8351 ac_cv_c_bigendian
=universal
8357 elif test "x$ac_word" = "x-arch"; then
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 if test $ac_cv_c_bigendian = unknown
; then
8364 # See if sys/param.h defines the BYTE_ORDER macro.
8365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 #include <sys/types.h>
8368 #include <sys/param.h>
8373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8383 if ac_fn_c_try_compile
"$LINENO"; then :
8384 # It does; now see whether it defined to BIG_ENDIAN or not.
8385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8393 #if BYTE_ORDER != BIG_ENDIAN
8401 if ac_fn_c_try_compile
"$LINENO"; then :
8402 ac_cv_c_bigendian
=yes
8404 ac_cv_c_bigendian
=no
8406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8410 if test $ac_cv_c_bigendian = unknown
; then
8411 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8419 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8427 if ac_fn_c_try_compile
"$LINENO"; then :
8428 # It does; now see whether it defined to _BIG_ENDIAN or not.
8429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8444 if ac_fn_c_try_compile
"$LINENO"; then :
8445 ac_cv_c_bigendian
=yes
8447 ac_cv_c_bigendian
=no
8449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 if test $ac_cv_c_bigendian = unknown
; then
8454 # Compile a test program.
8455 if test "$cross_compiling" = yes; then :
8456 # Try to guess by grepping values from an object file.
8457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 short int ascii_mm[] =
8460 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8461 short int ascii_ii[] =
8462 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8463 int use_ascii (int i) {
8464 return ascii_mm[i] + ascii_ii[i];
8466 short int ebcdic_ii[] =
8467 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8468 short int ebcdic_mm[] =
8469 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8470 int use_ebcdic (int i) {
8471 return ebcdic_mm[i] + ebcdic_ii[i];
8478 return use_ascii (foo) == use_ebcdic (foo);
8483 if ac_fn_c_try_compile
"$LINENO"; then :
8484 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8485 ac_cv_c_bigendian
=yes
8487 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8488 if test "$ac_cv_c_bigendian" = unknown
; then
8489 ac_cv_c_bigendian
=no
8491 # finding both strings is unlikely to happen, but who knows?
8492 ac_cv_c_bigendian
=unknown
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 $ac_includes_default
8505 /* Are we little or big endian? From Harbison&Steele. */
8509 char c[sizeof (long int)];
8512 return u.c[sizeof (long int) - 1] == 1;
8518 if ac_fn_c_try_run
"$LINENO"; then :
8519 ac_cv_c_bigendian
=no
8521 ac_cv_c_bigendian
=yes
8523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8530 $as_echo "$ac_cv_c_bigendian" >&6; }
8531 case $ac_cv_c_bigendian in #(
8533 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8539 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8543 as_fn_error
"unknown endianness
8544 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8548 # ----------------------
8549 # Checks for C++ headers
8550 # ----------------------
8553 ac_cpp
='$CXXCPP $CPPFLAGS'
8554 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8555 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8556 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8558 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8559 if test -z "$CXXCPP"; then
8560 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
8563 # Double quotes because CXXCPP needs to be expanded
8564 for CXXCPP
in "$CXX -E" "/lib/cpp"
8567 for ac_cxx_preproc_warn_flag
in '' yes
8569 # Use a header file that comes with gcc, so configuring glibc
8570 # with a fresh cross-compiler works.
8571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 # <limits.h> exists even on freestanding compilers.
8573 # On the NeXT, cc -E runs the code through the compiler's parser,
8574 # not just through cpp. "Syntax error" is here to catch this case.
8575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8578 # include <limits.h>
8580 # include <assert.h>
8584 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8587 # Broken: fails on valid input.
8590 rm -f conftest.err conftest.
$ac_ext
8592 # OK, works on sane cases. Now check whether nonexistent headers
8593 # can be detected and how.
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <ac_nonexistent.h>
8598 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8599 # Broken: success on invalid input.
8602 # Passes both tests.
8606 rm -f conftest.err conftest.
$ac_ext
8609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8610 rm -f conftest.err conftest.
$ac_ext
8611 if $ac_preproc_ok; then :
8616 ac_cv_prog_CXXCPP
=$CXXCPP
8619 CXXCPP
=$ac_cv_prog_CXXCPP
8621 ac_cv_prog_CXXCPP
=$CXXCPP
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8624 $as_echo "$CXXCPP" >&6; }
8626 for ac_cxx_preproc_warn_flag
in '' yes
8628 # Use a header file that comes with gcc, so configuring glibc
8629 # with a fresh cross-compiler works.
8630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 # <limits.h> exists even on freestanding compilers.
8632 # On the NeXT, cc -E runs the code through the compiler's parser,
8633 # not just through cpp. "Syntax error" is here to catch this case.
8634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8637 # include <limits.h>
8639 # include <assert.h>
8643 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8646 # Broken: fails on valid input.
8649 rm -f conftest.err conftest.
$ac_ext
8651 # OK, works on sane cases. Now check whether nonexistent headers
8652 # can be detected and how.
8653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 #include <ac_nonexistent.h>
8657 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8658 # Broken: success on invalid input.
8661 # Passes both tests.
8665 rm -f conftest.err conftest.
$ac_ext
8668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8669 rm -f conftest.err conftest.
$ac_ext
8670 if $ac_preproc_ok; then :
8673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8676 See \`config.log' for more details." >&5
8677 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8678 See \`config.log' for more details." >&2;}; }
8682 ac_cpp
='$CPP $CPPFLAGS'
8683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8689 ac_cpp
='$CXXCPP $CPPFLAGS'
8690 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8697 for ac_header
in unordered_map
8699 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8700 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8701 cat >>confdefs.h
<<_ACEOF
8702 #define HAVE_UNORDERED_MAP 1
8708 for ac_header
in tr1/unordered_map
8710 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8711 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8712 cat >>confdefs.h
<<_ACEOF
8713 #define HAVE_TR1_UNORDERED_MAP 1
8719 for ac_header
in ext
/hash_map
8721 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8722 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8723 cat >>confdefs.h
<<_ACEOF
8724 #define HAVE_EXT_HASH_MAP 1
8732 ac_cpp
='$CPP $CPPFLAGS'
8733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8739 # Dependency checking.
8743 ac_cpp
='$CXXCPP $CPPFLAGS'
8744 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8748 rm -rf .tst
2>/dev
/null
8749 mkdir .tst
2>/dev
/null
8750 if test -d .tst
; then
8755 rmdir .tst
2>/dev
/null
8757 DEPDIR
="${am__leading_dot}deps"
8759 ac_config_commands
="$ac_config_commands depdir"
8762 ac_config_commands
="$ac_config_commands gccdepdir"
8765 depcc
="$CC" am_compiler_list
=
8767 am_depcomp
=$ac_aux_dir/depcomp
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8769 $as_echo_n "checking dependency style of $depcc... " >&6; }
8770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8773 if test -f "$am_depcomp"; then
8774 # We make a subdir and do the tests there. Otherwise we can end up
8775 # making bogus files that we don't know about and never remove. For
8776 # instance it was reported that on HP-UX the gcc test will end up
8777 # making a dummy file named `D' -- because `-MD' means `put the output
8780 # Copy depcomp to subdir because otherwise we won't find it if we're
8781 # using a relative directory.
8782 cp "$am_depcomp" conftest.dir
8784 # We will build objects and dependencies in a subdirectory because
8785 # it helps to detect inapplicable dependency modes. For instance
8786 # both Tru64's cc and ICC support -MD to output dependencies as a
8787 # side effect of compilation, but ICC will put the dependencies in
8788 # the current directory while Tru64 will put them in the object
8792 am_cv_CC_dependencies_compiler_type
=none
8793 if test "$am_compiler_list" = ""; then
8794 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8796 for depmode
in $am_compiler_list; do
8797 if test $depmode = none
; then break; fi
8799 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8800 # Setup a source with many dependencies, because some compilers
8801 # like to wrap large dependency lists on column 80 (with \), and
8802 # we should not choose a depcomp mode which is confused by this.
8804 # We need to recreate these files for each test, as the compiler may
8805 # overwrite some of them when testing with obscure command lines.
8806 # This happens at least with the AIX C compiler.
8808 for i
in 1 2 3 4 5 6; do
8809 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8811 # Solaris 8's {/usr,}/bin/sh.
8812 touch sub
/conftst
$i.h
8814 echo "include sub/conftest.Po" > confmf
8816 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8817 # mode. It turns out that the SunPro C++ compiler does not properly
8818 # handle `-M -o', and we need to detect this.
8819 depcmd
="depmode=$depmode \
8820 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8822 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8823 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8824 if env
$depcmd > conftest.err
2>&1 &&
8825 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8826 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8827 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8828 # icc doesn't choke on unknown options, it will just issue warnings
8829 # or remarks (even with -Werror). So we grep stderr for any message
8830 # that says an option was ignored or not supported.
8831 # When given -MP, icc 7.0 and 7.1 complain thusly:
8832 # icc: Command line warning: ignoring option '-M'; no argument required
8833 # The diagnosis changed in icc 8.0:
8834 # icc: Command line remark: option '-MP' not supported
8835 if (grep 'ignoring option' conftest.err ||
8836 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8837 am_cv_CC_dependencies_compiler_type
=$depmode
8838 $as_echo "$as_me:$LINENO: success" >&5
8842 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8843 sed -e 's/^/| /' < conftest.err
>&5
8849 am_cv_CC_dependencies_compiler_type
=none
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8855 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
8856 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8857 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
8862 ac_cpp
='$CPP $CPPFLAGS'
8863 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8873 # These libraries may be used by collect2.
8874 # We may need a special search path to get them linked.
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8876 $as_echo_n "checking for collect2 libraries... " >&6; }
8877 if test "${gcc_cv_collect2_libs+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8881 for libs
in '' -lld -lmld \
8882 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8883 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8889 /* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply. */
8904 if ac_fn_c_try_link
"$LINENO"; then :
8905 gcc_cv_collect2_libs
="$libs"; break
8907 rm -f core conftest.err conftest.
$ac_objext \
8908 conftest
$ac_exeext conftest.
$ac_ext
8911 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8914 $as_echo "$gcc_cv_collect2_libs" >&6; }
8915 case $gcc_cv_collect2_libs in
8917 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8921 # When building Ada code on Alpha, we need exc_resume which is usually in
8922 # -lexc. So test for it.
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8926 $as_echo_n "checking for library containing exc_resume... " >&6; }
8927 if test "${ac_cv_search_exc_resume+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_func_search_save_LIBS
=$LIBS
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8944 return exc_resume ();
8949 for ac_lib
in '' exc
; do
8950 if test -z "$ac_lib"; then
8951 ac_res
="none required"
8954 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link
"$LINENO"; then :
8957 ac_cv_search_exc_resume
=$ac_res
8959 rm -f core conftest.err conftest.
$ac_objext \
8961 if test "${ac_cv_search_exc_resume+set}" = set; then :
8965 if test "${ac_cv_search_exc_resume+set}" = set; then :
8968 ac_cv_search_exc_resume
=no
8971 LIBS
=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8974 $as_echo "$ac_cv_search_exc_resume" >&6; }
8975 ac_res
=$ac_cv_search_exc_resume
8976 if test "$ac_res" != no
; then :
8977 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8985 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8989 $as_echo_n "checking for library containing kstat_open... " >&6; }
8990 if test "${ac_cv_search_kstat_open+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8993 ac_func_search_save_LIBS
=$LIBS
8994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9007 return kstat_open ();
9012 for ac_lib
in '' kstat
; do
9013 if test -z "$ac_lib"; then
9014 ac_res
="none required"
9017 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9019 if ac_fn_c_try_link
"$LINENO"; then :
9020 ac_cv_search_kstat_open
=$ac_res
9022 rm -f core conftest.err conftest.
$ac_objext \
9024 if test "${ac_cv_search_kstat_open+set}" = set; then :
9028 if test "${ac_cv_search_kstat_open+set}" = set; then :
9031 ac_cv_search_kstat_open
=no
9034 LIBS
=$ac_func_search_save_LIBS
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9037 $as_echo "$ac_cv_search_kstat_open" >&6; }
9038 ac_res
=$ac_cv_search_kstat_open
9039 if test "$ac_res" != no
; then :
9040 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9044 EXTRA_GCC_LIBS
="$LIBS"
9048 # Some systems put ldexp and frexp in libm instead of libc; assume
9049 # they're both in the same place. jcf-dump needs them.
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9053 $as_echo_n "checking for library containing ldexp... " >&6; }
9054 if test "${ac_cv_search_ldexp+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9057 ac_func_search_save_LIBS
=$LIBS
9058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9061 /* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
9076 for ac_lib
in '' m
; do
9077 if test -z "$ac_lib"; then
9078 ac_res
="none required"
9081 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9083 if ac_fn_c_try_link
"$LINENO"; then :
9084 ac_cv_search_ldexp
=$ac_res
9086 rm -f core conftest.err conftest.
$ac_objext \
9088 if test "${ac_cv_search_ldexp+set}" = set; then :
9092 if test "${ac_cv_search_ldexp+set}" = set; then :
9095 ac_cv_search_ldexp
=no
9098 LIBS
=$ac_func_search_save_LIBS
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9101 $as_echo "$ac_cv_search_ldexp" >&6; }
9102 ac_res
=$ac_cv_search_ldexp
9103 if test "$ac_res" != no
; then :
9104 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9112 # Use <inttypes.h> only if it exists,
9113 # doesn't clash with <sys/types.h>, and declares intmax_t.
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9115 $as_echo_n "checking for inttypes.h... " >&6; }
9116 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 #include <sys/types.h>
9122 #include <inttypes.h>
9131 if ac_fn_c_try_compile
"$LINENO"; then :
9132 gcc_cv_header_inttypes_h
=yes
9134 gcc_cv_header_inttypes_h
=no
9136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9140 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9141 if test $gcc_cv_header_inttypes_h = yes; then
9143 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9149 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9150 sysconf strsignal getrusage nl_langinfo \
9151 gettimeofday mbstowcs wcswidth mmap setlocale \
9152 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
9154 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9156 eval as_val
=\$
$as_ac_var
9157 if test "x$as_val" = x
""yes; then :
9158 cat >>confdefs.h
<<_ACEOF
9159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9166 if test x
$ac_cv_func_mbstowcs = xyes
; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9168 $as_echo_n "checking whether mbstowcs works... " >&6; }
9169 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9172 if test "$cross_compiling" = yes; then :
9173 gcc_cv_func_mbstowcs_works
=yes
9175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9184 if ac_fn_c_try_run
"$LINENO"; then :
9185 gcc_cv_func_mbstowcs_works
=yes
9187 gcc_cv_func_mbstowcs_works
=no
9189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9190 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9195 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9196 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9198 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9203 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9204 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9208 cat >>confdefs.h
<<_ACEOF
9214 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9215 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9219 cat >>confdefs.h
<<_ACEOF
9220 #define caddr_t char *
9227 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9228 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9229 gcc_header_sys_mman_h
=yes
9231 gcc_header_sys_mman_h
=no
9234 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9235 if test "x$ac_cv_func_mmap" = x
""yes; then :
9241 if test "$gcc_header_sys_mman_h" != yes \
9242 ||
test "$gcc_func_mmap" != yes; then
9243 gcc_cv_func_mmap_file
=no
9244 gcc_cv_func_mmap_dev_zero
=no
9245 gcc_cv_func_mmap_anon
=no
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9248 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9249 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9252 # Add a system to this blacklist if
9253 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9254 # memory area containing the same data that you'd get if you applied
9255 # read() to the same fd. The only system known to have a problem here
9256 # is VMS, where text files have record structure.
9259 gcc_cv_func_mmap_file
=no
;;
9261 gcc_cv_func_mmap_file
=yes;;
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9265 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9267 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9268 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9271 # Add a system to this blacklist if it has mmap() but /dev/zero
9272 # does not exist, or if mmapping /dev/zero does not give anonymous
9273 # zeroed pages with both the following properties:
9274 # 1. If you map N consecutive pages in with one call, and then
9275 # unmap any subset of those pages, the pages that were not
9276 # explicitly unmapped remain accessible.
9277 # 2. If you map two adjacent blocks of memory and then unmap them
9278 # both at once, they must both go away.
9279 # Systems known to be in this category are Windows (all variants),
9282 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9283 gcc_cv_func_mmap_dev_zero
=no
;;
9285 gcc_cv_func_mmap_dev_zero
=yes;;
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9289 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9291 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9293 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9294 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/mman.h>
9303 #ifndef MAP_ANONYMOUS
9304 #define MAP_ANONYMOUS MAP_ANON
9310 int n = MAP_ANONYMOUS;
9315 if ac_fn_c_try_compile
"$LINENO"; then :
9316 gcc_cv_decl_map_anon
=yes
9318 gcc_cv_decl_map_anon
=no
9320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9323 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9325 if test $gcc_cv_decl_map_anon = no
; then
9326 gcc_cv_func_mmap_anon
=no
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9329 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9330 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9333 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9334 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9335 # doesn't give anonymous zeroed pages with the same properties listed
9336 # above for use of /dev/zero.
9337 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9339 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9340 gcc_cv_func_mmap_anon
=no
;;
9342 gcc_cv_func_mmap_anon
=yes;;
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9346 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9350 if test $gcc_cv_func_mmap_file = yes; then
9352 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9355 if test $gcc_cv_func_mmap_dev_zero = yes; then
9357 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9360 if test $gcc_cv_func_mmap_anon = yes; then
9362 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9369 # Under VMS, vfork works very differently than on Unix. The standard test
9370 # won't work, and it isn't easily adaptable. It makes more sense to
9372 ac_cv_func_vfork_works
=yes
9375 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9376 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9380 cat >>confdefs.h
<<_ACEOF
9386 for ac_header
in vfork.h
9388 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9389 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9390 cat >>confdefs.h
<<_ACEOF
9391 #define HAVE_VFORK_H 1
9397 for ac_func
in fork vfork
9399 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9401 eval as_val
=\$
$as_ac_var
9402 if test "x$as_val" = x
""yes; then :
9403 cat >>confdefs.h
<<_ACEOF
9404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9410 if test "x$ac_cv_func_fork" = xyes
; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9412 $as_echo_n "checking for working fork... " >&6; }
9413 if test "${ac_cv_func_fork_works+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9416 if test "$cross_compiling" = yes; then :
9417 ac_cv_func_fork_works
=cross
9419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 $ac_includes_default
9426 /* By Ruediger Kuhlmann. */
9433 if ac_fn_c_try_run
"$LINENO"; then :
9434 ac_cv_func_fork_works
=yes
9436 ac_cv_func_fork_works
=no
9438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9444 $as_echo "$ac_cv_func_fork_works" >&6; }
9447 ac_cv_func_fork_works
=$ac_cv_func_fork
9449 if test "x$ac_cv_func_fork_works" = xcross
; then
9451 *-*-amigaos* |
*-*-msdosdjgpp*)
9452 # Override, as these systems have only a dummy fork() stub
9453 ac_cv_func_fork_works
=no
9456 ac_cv_func_fork_works
=yes
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9460 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9462 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9463 if test "x$ac_cv_func_vfork" = xyes
; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9465 $as_echo_n "checking for working vfork... " >&6; }
9466 if test "${ac_cv_func_vfork_works+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9469 if test "$cross_compiling" = yes; then :
9470 ac_cv_func_vfork_works
=cross
9472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 /* Thanks to Paul Eggert for this test. */
9475 $ac_includes_default
9476 #include <sys/wait.h>
9480 /* On some sparc systems, changes by the child to local and incoming
9481 argument registers are propagated back to the parent. The compiler
9482 is told about this with #include <vfork.h>, but some compilers
9483 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9484 static variable whose address is put into a register that is
9485 clobbered by the vfork. */
9488 sparc_address_test (int arg)
9490 sparc_address_test (arg) int arg;
9511 pid_t parent = getpid ();
9514 sparc_address_test (0);
9519 /* Here is another test for sparc vfork register problems. This
9520 test uses lots of local variables, at least as many local
9521 variables as main has allocated so far including compiler
9522 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9523 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9524 reuse the register of parent for one of the local variables,
9525 since it will think that parent can't possibly be used any more
9526 in this routine. Assigning to the local variable will thus
9527 munge parent in the parent process. */
9529 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9530 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9531 /* Convince the compiler that p..p7 are live; otherwise, it might
9532 use the same hardware register for all 8 local variables. */
9533 if (p != p1 || p != p2 || p != p3 || p != p4
9534 || p != p5 || p != p6 || p != p7)
9537 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9538 from child file descriptors. If the child closes a descriptor
9539 before it execs or exits, this munges the parent's descriptor
9540 as well. Test for this by closing stdout in the child. */
9541 _exit(close(fileno(stdout)) != 0);
9546 while (wait(&status) != child)
9549 /* Was there some problem with vforking? */
9552 /* Did the child fail? (This shouldn't happen.) */
9555 /* Did the vfork/compiler bug occur? */
9556 || parent != getpid()
9558 /* Did the file descriptor bug occur? */
9559 || fstat(fileno(stdout), &st) != 0
9564 if ac_fn_c_try_run
"$LINENO"; then :
9565 ac_cv_func_vfork_works
=yes
9567 ac_cv_func_vfork_works
=no
9569 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9570 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9575 $as_echo "$ac_cv_func_vfork_works" >&6; }
9578 if test "x$ac_cv_func_fork_works" = xcross
; then
9579 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9581 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9584 if test "x$ac_cv_func_vfork_works" = xyes
; then
9586 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9590 $as_echo "#define vfork fork" >>confdefs.h
9593 if test "x$ac_cv_func_fork_works" = xyes
; then
9595 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9600 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9601 # iconv() prototype.
9603 ac_cpp
='$CXXCPP $CPPFLAGS'
9604 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9609 if test "X$prefix" = "XNONE"; then
9610 acl_final_prefix
="$ac_default_prefix"
9612 acl_final_prefix
="$prefix"
9614 if test "X$exec_prefix" = "XNONE"; then
9615 acl_final_exec_prefix
='${prefix}'
9617 acl_final_exec_prefix
="$exec_prefix"
9619 acl_save_prefix
="$prefix"
9620 prefix
="$acl_final_prefix"
9621 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9622 prefix
="$acl_save_prefix"
9625 # Check whether --with-gnu-ld was given.
9626 if test "${with_gnu_ld+set}" = set; then :
9627 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9632 # Prepare PATH_SEPARATOR.
9633 # The user is always right.
9634 if test "${PATH_SEPARATOR+set}" != set; then
9635 echo "#! /bin/sh" >conf$$.sh
9636 echo "exit 0" >>conf$$.sh
9638 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9646 if test "$GCC" = yes; then
9647 # Check if gcc -print-prog-name=ld gives a path.
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9649 $as_echo_n "checking for ld used by GCC... " >&6; }
9652 # gcc leaves a trailing carriage return which upsets mingw
9653 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9655 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9658 # Accept absolute paths.
9659 [\\/]* |
[A-Za-z
]:[\\/]*)
9660 re_direlt
='/[^/][^/]*/\.\./'
9661 # Canonicalize the path of ld
9662 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9663 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9664 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9666 test -z "$LD" && LD
="$ac_prog"
9669 # If it fails, then pretend we aren't using GCC.
9673 # If it is relative, then search for the first ld in PATH.
9677 elif test "$with_gnu_ld" = yes; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9679 $as_echo_n "checking for GNU ld... " >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9682 $as_echo_n "checking for non-GNU ld... " >&6; }
9684 if test "${acl_cv_path_LD+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9687 if test -z "$LD"; then
9688 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9689 for ac_dir
in $PATH; do
9690 test -z "$ac_dir" && ac_dir
=.
9691 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9692 acl_cv_path_LD
="$ac_dir/$ac_prog"
9693 # Check to see if the program is GNU ld. I'd rather use --version,
9694 # but apparently some GNU ld's only accept -v.
9695 # Break only if it was the GNU/non-GNU ld that we prefer.
9696 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9697 test "$with_gnu_ld" != no
&& break
9699 test "$with_gnu_ld" != yes && break
9705 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9709 LD
="$acl_cv_path_LD"
9710 if test -n "$LD"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9712 $as_echo "$LD" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9717 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9720 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9725 acl_cv_prog_gnu_ld
=yes
9727 acl_cv_prog_gnu_ld
=no
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9731 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9732 with_gnu_ld
=$acl_cv_prog_gnu_ld
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9737 $as_echo_n "checking for shared library run path origin... " >&6; }
9738 if test "${acl_cv_rpath+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9742 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9743 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9750 $as_echo "$acl_cv_rpath" >&6; }
9752 libext
="$acl_cv_libext"
9753 shlibext
="$acl_cv_shlibext"
9754 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9755 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9756 hardcode_direct
="$acl_cv_hardcode_direct"
9757 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9758 # Check whether --enable-rpath was given.
9759 if test "${enable_rpath+set}" = set; then :
9760 enableval
=$enable_rpath; :
9774 acl_save_prefix
="$prefix"
9775 prefix
="$acl_final_prefix"
9776 acl_save_exec_prefix
="$exec_prefix"
9777 exec_prefix
="$acl_final_exec_prefix"
9779 eval additional_includedir
=\"$includedir\"
9780 eval additional_libdir
=\"$libdir\"
9782 exec_prefix
="$acl_save_exec_prefix"
9783 prefix
="$acl_save_prefix"
9786 # Check whether --with-libiconv-prefix was given.
9787 if test "${with_libiconv_prefix+set}" = set; then :
9788 withval
=$with_libiconv_prefix;
9789 if test "X$withval" = "Xno"; then
9792 if test "X$withval" = "X"; then
9794 acl_save_prefix
="$prefix"
9795 prefix
="$acl_final_prefix"
9796 acl_save_exec_prefix
="$exec_prefix"
9797 exec_prefix
="$acl_final_exec_prefix"
9799 eval additional_includedir
=\"$includedir\"
9800 eval additional_libdir
=\"$libdir\"
9802 exec_prefix
="$acl_save_exec_prefix"
9803 prefix
="$acl_save_prefix"
9806 additional_includedir
="$withval/include"
9807 additional_libdir
="$withval/lib"
9818 names_already_handled
=
9819 names_next_round
='iconv '
9820 while test -n "$names_next_round"; do
9821 names_this_round
="$names_next_round"
9823 for name
in $names_this_round; do
9825 for n
in $names_already_handled; do
9826 if test "$n" = "$name"; then
9831 if test -z "$already_handled"; then
9832 names_already_handled
="$names_already_handled $name"
9833 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9834 eval value
=\"\
$HAVE_LIB$uppername\"
9835 if test -n "$value"; then
9836 if test "$value" = yes; then
9837 eval value
=\"\
$LIB$uppername\"
9838 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9839 eval value
=\"\
$LTLIB$uppername\"
9840 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9849 if test $use_additional = yes; then
9850 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9851 found_dir
="$additional_libdir"
9852 found_so
="$additional_libdir/lib$name.$shlibext"
9853 if test -f "$additional_libdir/lib$name.la"; then
9854 found_la
="$additional_libdir/lib$name.la"
9857 if test -f "$additional_libdir/lib$name.$libext"; then
9858 found_dir
="$additional_libdir"
9859 found_a
="$additional_libdir/lib$name.$libext"
9860 if test -f "$additional_libdir/lib$name.la"; then
9861 found_la
="$additional_libdir/lib$name.la"
9866 if test "X$found_dir" = "X"; then
9867 for x
in $LDFLAGS $LTLIBICONV; do
9869 acl_save_prefix
="$prefix"
9870 prefix
="$acl_final_prefix"
9871 acl_save_exec_prefix
="$exec_prefix"
9872 exec_prefix
="$acl_final_exec_prefix"
9874 exec_prefix
="$acl_save_exec_prefix"
9875 prefix
="$acl_save_prefix"
9879 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9880 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9882 found_so
="$dir/lib$name.$shlibext"
9883 if test -f "$dir/lib$name.la"; then
9884 found_la
="$dir/lib$name.la"
9887 if test -f "$dir/lib$name.$libext"; then
9889 found_a
="$dir/lib$name.$libext"
9890 if test -f "$dir/lib$name.la"; then
9891 found_la
="$dir/lib$name.la"
9897 if test "X$found_dir" != "X"; then
9902 if test "X$found_dir" != "X"; then
9903 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9904 if test "X$found_so" != "X"; then
9905 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9906 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9909 for x
in $ltrpathdirs; do
9910 if test "X$x" = "X$found_dir"; then
9915 if test -z "$haveit"; then
9916 ltrpathdirs
="$ltrpathdirs $found_dir"
9918 if test "$hardcode_direct" = yes; then
9919 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9921 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9922 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9924 for x
in $rpathdirs; do
9925 if test "X$x" = "X$found_dir"; then
9930 if test -z "$haveit"; then
9931 rpathdirs
="$rpathdirs $found_dir"
9935 for x
in $LDFLAGS $LIBICONV; do
9937 acl_save_prefix
="$prefix"
9938 prefix
="$acl_final_prefix"
9939 acl_save_exec_prefix
="$exec_prefix"
9940 exec_prefix
="$acl_final_exec_prefix"
9942 exec_prefix
="$acl_save_exec_prefix"
9943 prefix
="$acl_save_prefix"
9945 if test "X$x" = "X-L$found_dir"; then
9950 if test -z "$haveit"; then
9951 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9953 if test "$hardcode_minus_L" != no
; then
9954 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9956 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9962 if test "X$found_a" != "X"; then
9963 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9965 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9968 additional_includedir
=
9969 case "$found_dir" in
9971 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9972 additional_includedir
="$basedir/include"
9975 if test "X$additional_includedir" != "X"; then
9976 if test "X$additional_includedir" != "X/usr/include"; then
9978 if test "X$additional_includedir" = "X/usr/local/include"; then
9979 if test -n "$GCC"; then
9981 linux
*) haveit
=yes;;
9985 if test -z "$haveit"; then
9986 for x
in $CPPFLAGS $INCICONV; do
9988 acl_save_prefix
="$prefix"
9989 prefix
="$acl_final_prefix"
9990 acl_save_exec_prefix
="$exec_prefix"
9991 exec_prefix
="$acl_final_exec_prefix"
9993 exec_prefix
="$acl_save_exec_prefix"
9994 prefix
="$acl_save_prefix"
9996 if test "X$x" = "X-I$additional_includedir"; then
10001 if test -z "$haveit"; then
10002 if test -d "$additional_includedir"; then
10003 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10009 if test -n "$found_la"; then
10010 save_libdir
="$libdir"
10011 case "$found_la" in
10012 */* |
*\\*) .
"$found_la" ;;
10013 *) .
"./$found_la" ;;
10015 libdir
="$save_libdir"
10016 for dep
in $dependency_libs; do
10019 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10020 if test "X$additional_libdir" != "X/usr/lib"; then
10022 if test "X$additional_libdir" = "X/usr/local/lib"; then
10023 if test -n "$GCC"; then
10025 linux
*) haveit
=yes;;
10029 if test -z "$haveit"; then
10031 for x
in $LDFLAGS $LIBICONV; do
10033 acl_save_prefix
="$prefix"
10034 prefix
="$acl_final_prefix"
10035 acl_save_exec_prefix
="$exec_prefix"
10036 exec_prefix
="$acl_final_exec_prefix"
10038 exec_prefix
="$acl_save_exec_prefix"
10039 prefix
="$acl_save_prefix"
10041 if test "X$x" = "X-L$additional_libdir"; then
10046 if test -z "$haveit"; then
10047 if test -d "$additional_libdir"; then
10048 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10052 for x
in $LDFLAGS $LTLIBICONV; do
10054 acl_save_prefix
="$prefix"
10055 prefix
="$acl_final_prefix"
10056 acl_save_exec_prefix
="$exec_prefix"
10057 exec_prefix
="$acl_final_exec_prefix"
10059 exec_prefix
="$acl_save_exec_prefix"
10060 prefix
="$acl_save_prefix"
10062 if test "X$x" = "X-L$additional_libdir"; then
10067 if test -z "$haveit"; then
10068 if test -d "$additional_libdir"; then
10069 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10076 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10077 if test "$enable_rpath" != no
; then
10079 for x
in $rpathdirs; do
10080 if test "X$x" = "X$dir"; then
10085 if test -z "$haveit"; then
10086 rpathdirs
="$rpathdirs $dir"
10089 for x
in $ltrpathdirs; do
10090 if test "X$x" = "X$dir"; then
10095 if test -z "$haveit"; then
10096 ltrpathdirs
="$ltrpathdirs $dir"
10101 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10104 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10107 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10108 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10114 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10115 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10121 if test "X$rpathdirs" != "X"; then
10122 if test -n "$hardcode_libdir_separator"; then
10124 for found_dir
in $rpathdirs; do
10125 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10127 acl_save_libdir
="$libdir"
10129 eval flag
=\"$hardcode_libdir_flag_spec\"
10130 libdir
="$acl_save_libdir"
10131 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10133 for found_dir
in $rpathdirs; do
10134 acl_save_libdir
="$libdir"
10135 libdir
="$found_dir"
10136 eval flag
=\"$hardcode_libdir_flag_spec\"
10137 libdir
="$acl_save_libdir"
10138 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10142 if test "X$ltrpathdirs" != "X"; then
10143 for found_dir
in $ltrpathdirs; do
10144 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10154 am_save_CPPFLAGS
="$CPPFLAGS"
10156 for element
in $INCICONV; do
10158 for x
in $CPPFLAGS; do
10160 acl_save_prefix
="$prefix"
10161 prefix
="$acl_final_prefix"
10162 acl_save_exec_prefix
="$exec_prefix"
10163 exec_prefix
="$acl_final_exec_prefix"
10165 exec_prefix
="$acl_save_exec_prefix"
10166 prefix
="$acl_save_prefix"
10168 if test "X$x" = "X$element"; then
10173 if test -z "$haveit"; then
10174 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10180 $as_echo_n "checking for iconv... " >&6; }
10181 if test "${am_cv_func_iconv+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10185 am_cv_func_iconv
="no, consider installing GNU libiconv"
10187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <stdlib.h>
10194 iconv_t cd = iconv_open("","");
10195 iconv(cd,NULL,NULL,NULL,NULL);
10201 if ac_fn_cxx_try_link
"$LINENO"; then :
10202 am_cv_func_iconv
=yes
10204 rm -f core conftest.err conftest.
$ac_objext \
10205 conftest
$ac_exeext conftest.
$ac_ext
10206 if test "$am_cv_func_iconv" != yes; then
10207 am_save_LIBS
="$LIBS"
10208 LIBS
="$LIBS $LIBICONV"
10209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 #include <stdlib.h>
10216 iconv_t cd = iconv_open("","");
10217 iconv(cd,NULL,NULL,NULL,NULL);
10223 if ac_fn_cxx_try_link
"$LINENO"; then :
10224 am_cv_lib_iconv
=yes
10225 am_cv_func_iconv
=yes
10227 rm -f core conftest.err conftest.
$ac_objext \
10228 conftest
$ac_exeext conftest.
$ac_ext
10229 LIBS
="$am_save_LIBS"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10234 $as_echo "$am_cv_func_iconv" >&6; }
10235 if test "$am_cv_func_iconv" = yes; then
10237 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10240 if test "$am_cv_lib_iconv" = yes; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10242 $as_echo_n "checking how to link with libiconv... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10244 $as_echo "$LIBICONV" >&6; }
10246 CPPFLAGS
="$am_save_CPPFLAGS"
10253 if test "$am_cv_func_iconv" = yes; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10255 $as_echo_n "checking for iconv declaration... " >&6; }
10256 if test "${am_cv_proto_iconv+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10263 #include <stdlib.h>
10269 #if defined(__STDC__) || defined(__cplusplus)
10270 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10283 if ac_fn_cxx_try_compile
"$LINENO"; then :
10284 am_cv_proto_iconv_arg1
=""
10286 am_cv_proto_iconv_arg1
="const"
10288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10289 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);"
10292 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10294 }$am_cv_proto_iconv" >&5
10296 }$am_cv_proto_iconv" >&6; }
10298 cat >>confdefs.h
<<_ACEOF
10299 #define ICONV_CONST $am_cv_proto_iconv_arg1
10305 ac_cpp
='$CPP $CPPFLAGS'
10306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10311 # Until we have in-tree GNU iconv:
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10317 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10318 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 #include <locale.h>
10332 if ac_fn_c_try_link
"$LINENO"; then :
10333 am_cv_val_LC_MESSAGES
=yes
10335 am_cv_val_LC_MESSAGES
=no
10337 rm -f core conftest.err conftest.
$ac_objext \
10338 conftest
$ac_exeext conftest.
$ac_ext
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10341 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10342 if test $am_cv_val_LC_MESSAGES = yes; then
10344 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10351 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10352 if test "${am_cv_langinfo_codeset+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 #include <langinfo.h>
10361 char* cs = nl_langinfo(CODESET);
10366 if ac_fn_c_try_link
"$LINENO"; then :
10367 am_cv_langinfo_codeset
=yes
10369 am_cv_langinfo_codeset
=no
10371 rm -f core conftest.err conftest.
$ac_objext \
10372 conftest
$ac_exeext conftest.
$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10376 $as_echo "$am_cv_langinfo_codeset" >&6; }
10377 if test $am_cv_langinfo_codeset = yes; then
10379 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10384 # We will need to find libiberty.h and ansidecl.h
10385 saved_CFLAGS
="$CFLAGS"
10386 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10387 saved_CXXFLAGS
="$CXXFLAGS"
10388 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10389 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10390 strsignal strstr stpcpy strverscmp \
10391 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10392 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
10394 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10396 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10397 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10398 $as_echo_n "(cached) " >&6
10400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 #define $ac_tr_decl 1
10405 #include "ansidecl.h"
10406 #include "system.h"
10412 char *(*pfn) = (char *(*)) $ac_func ;
10418 if ac_fn_c_try_compile
"$LINENO"; then :
10419 eval "gcc_cv_have_decl_$ac_func=yes"
10421 eval "gcc_cv_have_decl_$ac_func=no"
10423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10426 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10428 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10429 #define $ac_tr_decl 1
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10435 #define $ac_tr_decl 0
10443 for ac_func
in getrlimit setrlimit getrusage
10445 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10447 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10448 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10449 $as_echo_n "(cached) " >&6
10451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10454 #define $ac_tr_decl 1
10456 #include "ansidecl.h"
10457 #include "system.h"
10458 #ifdef HAVE_SYS_RESOURCE_H
10459 #include <sys/resource.h>
10467 char *(*pfn) = (char *(*)) $ac_func ;
10473 if ac_fn_c_try_compile
"$LINENO"; then :
10474 eval "gcc_cv_have_decl_$ac_func=yes"
10476 eval "gcc_cv_have_decl_$ac_func=no"
10478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10481 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10483 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10484 #define $ac_tr_decl 1
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10490 #define $ac_tr_decl 0
10498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10501 #include "ansidecl.h"
10502 #include "system.h"
10503 #ifdef HAVE_SYS_RESOURCE_H
10504 #include <sys/resource.h>
10515 if ac_fn_c_try_compile
"$LINENO"; then :
10519 $as_echo "#define rlim_t long" >>confdefs.h
10522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10524 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10525 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10526 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10527 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10528 for ac_func
in ldgetname
10530 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10532 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10533 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10534 $as_echo_n "(cached) " >&6
10536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10539 #define $ac_tr_decl 1
10541 #include "ansidecl.h"
10542 #include "system.h"
10543 #ifdef HAVE_LDFCN_H
10554 char *(*pfn) = (char *(*)) $ac_func ;
10560 if ac_fn_c_try_compile
"$LINENO"; then :
10561 eval "gcc_cv_have_decl_$ac_func=yes"
10563 eval "gcc_cv_have_decl_$ac_func=no"
10565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10568 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10571 #define $ac_tr_decl 1
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10577 #define $ac_tr_decl 0
10585 for ac_func
in times
10587 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10589 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10590 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10591 $as_echo_n "(cached) " >&6
10593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10596 #define $ac_tr_decl 1
10598 #include "ansidecl.h"
10599 #include "system.h"
10600 #ifdef HAVE_SYS_TIMES_H
10601 #include <sys/times.h>
10609 char *(*pfn) = (char *(*)) $ac_func ;
10615 if ac_fn_c_try_compile
"$LINENO"; then :
10616 eval "gcc_cv_have_decl_$ac_func=yes"
10618 eval "gcc_cv_have_decl_$ac_func=no"
10620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10623 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10626 #define $ac_tr_decl 1
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10632 #define $ac_tr_decl 0
10640 for ac_func
in sigaltstack
10642 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10644 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10645 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10646 $as_echo_n "(cached) " >&6
10648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 #define $ac_tr_decl 1
10653 #include "ansidecl.h"
10654 #include "system.h"
10655 #include <signal.h>
10662 char *(*pfn) = (char *(*)) $ac_func ;
10668 if ac_fn_c_try_compile
"$LINENO"; then :
10669 eval "gcc_cv_have_decl_$ac_func=yes"
10671 eval "gcc_cv_have_decl_$ac_func=no"
10673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10679 #define $ac_tr_decl 1
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10685 #define $ac_tr_decl 0
10693 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10696 ac_cpp
='$CXXCPP $CPPFLAGS'
10697 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10701 for ac_func
in madvise
10703 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10705 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10706 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10707 $as_echo_n "(cached) " >&6
10709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10712 #define $ac_tr_decl 1
10714 #include "ansidecl.h"
10715 #include "system.h"
10722 char *(*pfn) = (char *(*)) $ac_func ;
10728 if ac_fn_cxx_try_compile
"$LINENO"; then :
10729 eval "gcc_cv_have_decl_$ac_func=yes"
10731 eval "gcc_cv_have_decl_$ac_func=no"
10733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10736 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10739 #define $ac_tr_decl 1
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10745 #define $ac_tr_decl 0
10753 ac_cpp
='$CPP $CPPFLAGS'
10754 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10759 # More time-related stuff.
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10761 $as_echo_n "checking for struct tms... " >&6; }
10762 if test "${ac_cv_struct_tms+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 #include "ansidecl.h"
10770 #include "system.h"
10771 #ifdef HAVE_SYS_TIMES_H
10772 #include <sys/times.h>
10783 if ac_fn_c_try_compile
"$LINENO"; then :
10784 ac_cv_struct_tms
=yes
10786 ac_cv_struct_tms
=no
10788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10791 $as_echo "$ac_cv_struct_tms" >&6; }
10792 if test $ac_cv_struct_tms = yes; then
10794 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10798 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10799 # revisit after autoconf 2.50.
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10801 $as_echo_n "checking for clock_t... " >&6; }
10802 if test "${gcc_cv_type_clock_t+set}" = set; then :
10803 $as_echo_n "(cached) " >&6
10806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 #include "ansidecl.h"
10810 #include "system.h"
10820 if ac_fn_c_try_compile
"$LINENO"; then :
10821 gcc_cv_type_clock_t
=yes
10823 gcc_cv_type_clock_t
=no
10825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10828 $as_echo "$gcc_cv_type_clock_t" >&6; }
10829 if test $gcc_cv_type_clock_t = yes; then
10831 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10835 # Check if F_SETLKW is supported by fcntl.
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10837 $as_echo_n "checking for F_SETLKW... " >&6; }
10838 if test "${ac_cv_f_setlkw+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10855 return fcntl (1, F_SETLKW, &fl);
10860 if ac_fn_c_try_compile
"$LINENO"; then :
10865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10868 $as_echo "$ac_cv_f_setlkw" >&6; }
10869 if test $ac_cv_f_setlkw = yes; then
10871 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10875 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10876 CFLAGS
="$saved_CFLAGS"
10877 CXXFLAGS
="$saved_CXXFLAGS"
10879 # mkdir takes a single argument on some systems.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10881 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10882 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 #include <sys/types.h>
10889 #ifdef HAVE_SYS_STAT_H
10890 # include <sys/stat.h>
10892 #ifdef HAVE_UNISTD_H
10893 # include <unistd.h>
10895 #ifdef HAVE_DIRECT_H
10896 # include <direct.h>
10906 if ac_fn_c_try_compile
"$LINENO"; then :
10907 gcc_cv_mkdir_takes_one_arg
=no
10909 gcc_cv_mkdir_takes_one_arg
=yes
10911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10914 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10915 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10917 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10928 # With Setjmp/Longjmp based exception handling.
10929 # Check whether --enable-sjlj-exceptions was given.
10930 if test "${enable_sjlj_exceptions+set}" = set; then :
10931 enableval
=$enable_sjlj_exceptions; case $target in
10933 if test $enableval != yes; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10935 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10940 force_sjlj_exceptions
=yes
10944 force_sjlj_exceptions
=yes
10948 force_sjlj_exceptions
=no
10953 if test $force_sjlj_exceptions = yes; then
10954 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10956 cat >>confdefs.h
<<_ACEOF
10957 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10962 # --------------------------------------------------------
10963 # Build, host, and target specific configuration fragments
10964 # --------------------------------------------------------
10966 # Collect build-machine-specific information.
10967 .
${srcdir}/config.build
10969 # Collect host-machine-specific information.
10970 .
${srcdir}/config.
host
10974 # Collect target-machine-specific information.
10975 .
${srcdir}/config.gcc
10977 extra_objs
="${host_extra_objs} ${extra_objs}"
10978 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10980 # Default the target-machine variables that were not explicitly set.
10981 if test x
"$tm_file" = x
10982 then tm_file
=$cpu_type/$cpu_type.h
; fi
10984 if test x
"$extra_headers" = x
10985 then extra_headers
=; fi
10987 if test x
$md_file = x
10988 then md_file
=$cpu_type/$cpu_type.md
; fi
10990 if test x
$out_file = x
10991 then out_file
=$cpu_type/$cpu_type.c
; fi
10993 if test x
"$tmake_file" = x
10994 then tmake_file
=$cpu_type/t-
$cpu_type
10997 # Support --enable-initfini-array.
10998 if test x
$enable_initfini_array != xno
; then
10999 tm_file
="${tm_file} initfini-array.h"
11002 if test x
"$dwarf2" = xyes
11003 then tm_file
="$tm_file tm-dwarf2.h"
11006 # Say what files are being used for the output code and MD file.
11007 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11008 echo "Using \`$srcdir/config/$md_file' as machine description file."
11010 # If any of the xm_file variables contain nonexistent files, warn
11011 # about them and drop them.
11014 for x
in $build_xm_file; do
11015 if test -f $srcdir/config
/$x
11017 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11018 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11021 build_xm_file
="$bx"
11024 for x
in $host_xm_file; do
11025 if test -f $srcdir/config
/$x
11027 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11028 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11034 for x
in $xm_file; do
11035 if test -f $srcdir/config
/$x
11037 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11038 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11044 for f
in $tm_file; do
11047 if test $count = ax
; then
11048 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11050 echo "Using the following target machine macro files:"
11051 for f
in $tm_file; do
11052 echo " $srcdir/config/$f"
11056 if test x
$need_64bit_hwint = xyes
; then
11058 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11062 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11064 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11068 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11070 cat >>confdefs.h
<<_ACEOF
11071 #define HAVE_GNU_LD $gnu_ld_bool
11075 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11077 cat >>confdefs.h
<<_ACEOF
11078 #define HAVE_GNU_AS $gnu_as_bool
11083 for f
in $host_xm_file; do
11086 if test $count = a
; then
11088 elif test $count = ax
; then
11089 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11091 echo "Using the following host machine macro files:"
11092 for f
in $host_xm_file; do
11093 echo " $srcdir/config/$f"
11096 echo "Using ${out_host_hook_obj} for host machine hooks."
11098 if test "$host_xm_file" != "$build_xm_file"; then
11100 for f
in $build_xm_file; do
11103 if test $count = a
; then
11105 elif test $count = ax
; then
11106 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11108 echo "Using the following build machine macro files:"
11109 for f
in $build_xm_file; do
11110 echo " $srcdir/config/$f"
11115 if test -n "$configured_native_system_header_dir"; then
11116 native_system_header_dir
=$configured_native_system_header_dir
11118 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11122 powerpc
*-*-darwin*)
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11124 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11125 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 #include <sys/cdefs.h>
11132 #include <sys/signal.h>
11133 #include <ucontext.h>
11134 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11137 if ac_fn_c_try_compile
"$LINENO"; then :
11138 gcc_cv_mcontext_underscores
=no
11140 gcc_cv_mcontext_underscores
=yes
11142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11145 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11146 if test $gcc_cv_mcontext_underscores = yes; then
11148 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11158 # Check if a valid thread package
11159 case ${enable_threads} in
11162 target_thread_file
='single'
11166 target_thread_file
='single'
11168 aix | dce | lynx | mipssde | posix | rtems | \
11169 single | tpf | vxworks | win32
)
11170 target_thread_file
=${enable_threads}
11173 echo "${enable_threads} is an unknown thread package" 1>&2
11178 if test x
${thread_file} = x
; then
11179 # No thread file set by target-specific clauses in config.gcc,
11180 # so use file chosen by default logic above
11181 thread_file
=${target_thread_file}
11189 if test x
$enable___cxa_atexit = xyes || \
11190 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11191 if test x
$host = x
$target; then
11193 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11194 # keyed to flag_use_cxa_atexit
11202 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11203 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11206 echo "__cxa_atexit can't be enabled on this target"
11212 # We can't check for __cxa_atexit when building a cross, so assume
11216 if test x
$use_cxa_atexit = xyes
; then
11218 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11223 # Look for a file containing extra machine modes.
11224 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11225 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11228 cat >>confdefs.h
<<_ACEOF
11229 #define EXTRA_MODES_FILE "config/$extra_modes"
11234 # Convert extra_options into a form suitable for Makefile use.
11237 for f
in $extra_options; do
11238 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11239 all_opt_files
="$all_opt_files $srcdir/config/$f"
11243 # auto-host.h is the file containing items generated by autoconf and is
11244 # the first file included by config.h.
11245 # If host=build, it is correct to have bconfig include auto-host.h
11246 # as well. If host!=build, we are in error and need to do more
11247 # work to find out the build config parameters.
11248 if test x
$host = x
$build
11250 build_auto
=auto-host.h
11252 # We create a subdir, then run autoconf in the subdir.
11253 # To prevent recursion we set host and build for the new
11254 # invocation of configure to the build for this invocation
11261 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11262 *) realsrcdir
=..
/${srcdir};;
11264 saved_CFLAGS
="${CFLAGS}"
11265 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11266 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11267 ${realsrcdir}/configure \
11268 --enable-languages=${enable_languages-all} \
11269 --target=$target_alias --host=$build_alias --build=$build_alias
11270 CFLAGS
="${saved_CFLAGS}"
11272 # We just finished tests for the build machine, so rename
11273 # the file auto-build.h in the gcc directory.
11274 mv auto-host.h ..
/auto-build.h
11277 build_auto
=auto-build.h
11281 tm_file
="${tm_file} defaults.h"
11282 tm_p_file
="${tm_p_file} tm-preds.h"
11283 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11284 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11285 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11286 # put this back in temporarily.
11287 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11293 # Compile in configure arguments.
11294 if test -f configargs.h
; then
11295 # Being re-configured.
11296 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11297 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11299 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11302 # Double all backslashes and backslash all quotes to turn
11303 # gcc_config_arguments into a C string.
11304 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11305 $gcc_config_arguments
11307 gcc_config_arguments_str
=`cat conftest.out`
11310 cat > configargs.h
<<EOF
11311 /* Generated automatically. */
11312 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11313 static const char thread_model[] = "$thread_file";
11315 static const struct {
11316 const char *name, *value;
11317 } configure_default_options[] = $configure_default_options;
11320 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11321 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11322 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11323 if test -f $srcdir/REVISION
; then
11324 gcc_REVISION
=`cat $srcdir/REVISION`
11328 cat > plugin-version.h
<<EOF
11329 #include "configargs.h"
11331 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11332 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11333 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11334 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11336 static char basever[] = "$gcc_BASEVER";
11337 static char datestamp[] = "$gcc_DATESTAMP";
11338 static char devphase[] = "$gcc_DEVPHASE";
11339 static char revision[] = "$gcc_REVISION";
11341 /* FIXME plugins: We should make the version information more precise.
11342 One way to do is to add a checksum. */
11344 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11345 devphase, revision,
11346 configuration_arguments};
11349 # Internationalization
11350 # If we haven't got the data from the intl directory,
11351 # assume NLS is disabled.
11360 if test -f ..
/intl
/config.intl
; then
11361 . ..
/intl
/config.intl
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11364 $as_echo_n "checking whether NLS is requested... " >&6; }
11365 if test x
"$USE_NLS" != xyes
; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370 $as_echo "yes" >&6; }
11372 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11376 $as_echo_n "checking for catalogs to be installed... " >&6; }
11377 # Look for .po and .gmo files in the source directory.
11380 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11381 # If there aren't any .gmo files the shell will give us the
11382 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11384 case "$cat" in *\
**)
11387 # The quadruple backslash is collapsed to a double backslash
11388 # by the backticks, then collapsed again by the double quotes,
11389 # leaving us with one backslash in the sed expression (right
11390 # before the dot that mustn't act as a wildcard).
11391 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11392 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11393 # The user is allowed to set LINGUAS to a list of languages to
11394 # install catalogs for. If it's empty that means "all of them."
11395 if test "x$LINGUAS" = x
; then
11396 CATALOGS
="$CATALOGS $cat"
11397 XLINGUAS
="$XLINGUAS $lang"
11399 case "$LINGUAS" in *$lang*)
11400 CATALOGS
="$CATALOGS $cat"
11401 XLINGUAS
="$XLINGUAS $lang"
11406 LINGUAS
="$XLINGUAS"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11408 $as_echo "$LINGUAS" >&6; }
11421 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11422 # -liconv on the link line twice.
11423 case "$LIBINTL" in *$LIBICONV*)
11427 # Check whether --enable-secureplt was given.
11428 if test "${enable_secureplt+set}" = set; then :
11429 enableval
=$enable_secureplt;
11433 # Check whether --enable-leading-mingw64-underscores was given.
11434 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11435 enableval
=$enable_leading_mingw64_underscores;
11438 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11440 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11444 # Check whether --enable-cld was given.
11445 if test "${enable_cld+set}" = set; then :
11446 enableval
=$enable_cld;
11452 # Check whether --enable-frame-pointer was given.
11453 if test "${enable_frame_pointer+set}" = set; then :
11454 enableval
=$enable_frame_pointer;
11458 linux
* | darwin
[8912]*)
11459 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11461 enable_frame_pointer
=no
11464 enable_frame_pointer
=yes
11471 # Windows32 Registry support for specifying GCC installation paths.
11472 # Check whether --enable-win32-registry was given.
11473 if test "${enable_win32_registry+set}" = set; then :
11474 enableval
=$enable_win32_registry;
11479 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11480 if test "x$enable_win32_registry" != xno
; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11482 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11483 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11486 ac_func_search_save_LIBS
=$LIBS
11487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11496 char RegOpenKeyExA ();
11500 return RegOpenKeyExA ();
11505 for ac_lib
in '' advapi32
; do
11506 if test -z "$ac_lib"; then
11507 ac_res
="none required"
11510 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11512 if ac_fn_c_try_link
"$LINENO"; then :
11513 ac_cv_search_RegOpenKeyExA
=$ac_res
11515 rm -f core conftest.err conftest.
$ac_objext \
11517 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11521 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11524 ac_cv_search_RegOpenKeyExA
=no
11526 rm conftest.
$ac_ext
11527 LIBS
=$ac_func_search_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11530 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11531 ac_res
=$ac_cv_search_RegOpenKeyExA
11532 if test "$ac_res" != no
; then :
11533 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11536 enable_win32_registry
=no
11541 if test "x$enable_win32_registry" != xno
; then
11543 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11546 if test "x$enable_win32_registry" != xyes \
11547 && test "x$enable_win32_registry" != x
; then
11549 cat >>confdefs.h
<<_ACEOF
11550 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11558 # Get an absolute path to the GCC top-level source directory
11559 holddir
=`${PWDCMD-pwd}`
11561 topdir
=`${PWDCMD-pwd}`
11564 # Conditionalize the makefile for this host machine.
11566 for f
in ${host_xmake_file}
11568 if test -f ${srcdir}/config
/$f
11570 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11574 # Conditionalize the makefile for this target machine.
11576 for f
in ${tmake_file}
11578 if test -f ${srcdir}/config
/$f
11580 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11583 tmake_file
="${tmake_file_}"
11585 out_object_file
=`basename $out_file .c`.o
11586 common_out_object_file
=`basename $common_out_file .c`.o
11588 tm_file_list
="options.h"
11589 tm_include_list
="options.h insn-constants.h"
11590 for f
in $tm_file; do
11593 f
=`echo $f | sed 's/^..//'`
11594 tm_file_list
="${tm_file_list} $f"
11595 tm_include_list
="${tm_include_list} $f"
11598 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11599 tm_include_list
="${tm_include_list} $f"
11602 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11603 tm_include_list
="${tm_include_list} config/$f"
11610 for f
in $tm_p_file; do
11613 tm_p_file_list
="${tm_p_file_list} $f"
11614 tm_p_include_list
="${tm_p_include_list} $f"
11617 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11618 tm_p_include_list
="${tm_p_include_list} config/$f"
11624 for f
in $xm_file; do
11627 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11628 xm_include_list
="${xm_include_list} $f"
11631 xm_file_list
="${xm_file_list} $f"
11632 xm_include_list
="${xm_include_list} $f"
11635 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11636 xm_include_list
="${xm_include_list} config/$f"
11642 host_xm_include_list
=
11643 for f
in $host_xm_file; do
11646 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11647 host_xm_include_list
="${host_xm_include_list} $f"
11650 host_xm_file_list
="${host_xm_file_list} $f"
11651 host_xm_include_list
="${host_xm_include_list} $f"
11654 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11655 host_xm_include_list
="${host_xm_include_list} config/$f"
11660 build_xm_file_list
=
11661 for f
in $build_xm_file; do
11664 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11665 build_xm_include_list
="${build_xm_include_list} $f"
11667 auto-build.h | auto-host.h
)
11668 build_xm_file_list
="${build_xm_file_list} $f"
11669 build_xm_include_list
="${build_xm_include_list} $f"
11672 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11673 build_xm_include_list
="${build_xm_include_list} config/$f"
11678 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11679 # cross-compiler which does not use the native headers and libraries.
11680 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11683 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11685 if test "x$with_build_sysroot" != x
; then
11686 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11688 # This value is used, even on a native system, because
11689 # CROSS_SYSTEM_HEADER_DIR is just
11690 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11691 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11694 if test x
$host != x
$target
11696 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11698 SYSTEM_HEADER_DIR
=$build_system_header_dir
11699 case "$host","$target" in
11700 # Darwin crosses can use the host system's libraries and headers,
11701 # because of the fat library support. Of course, it must be the
11702 # same version of Darwin on both sides. Allow the user to
11703 # just say --target=foo-darwin without a version number to mean
11704 # "the version on this system".
11705 *-*-darwin*,*-*-darwin*)
11706 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11707 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11708 if test $hostos = $targetos -o $targetos = darwin
; then
11710 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11715 i?
86-*-*,x86_64-
*-* \
11716 | powerpc
*-*-*,powerpc64
*-*-*)
11717 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11722 if test "x$with_headers" = x
; then
11729 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11730 SYSTEM_HEADER_DIR
=$build_system_header_dir
11733 # If this is a cross-compiler that does not
11734 # have its own set of headers then define
11737 # If this is using newlib, without having the headers available now,
11738 # then define inhibit_libc in LIBGCC2_CFLAGS.
11739 # This prevents libgcc2 from containing any code which requires libc
11741 : ${inhibit_libc=false}
11742 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11743 test x
$with_newlib = xyes
; } &&
11744 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11749 # When building gcc with a cross-compiler, we need to adjust things so
11750 # that the generator programs are still built with the native compiler.
11751 # Also, we cannot run fixincludes.
11753 # These are the normal (build=host) settings:
11754 CC_FOR_BUILD
='$(CC)'
11755 CXX_FOR_BUILD
='$(CXX)'
11756 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11757 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11758 BUILD_LDFLAGS
='$(LDFLAGS)'
11759 STMP_FIXINC
=stmp-fixinc
11761 # And these apply if build != host, or we are generating coverage data
11762 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11764 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11765 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11768 # Expand extra_headers to include complete path.
11769 # This substitutes for lots of t-* files.
11770 extra_headers_list
=
11771 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11772 for file in ${extra_headers} ; do
11773 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11776 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11777 if test x
"$use_gcc_tgmath" = xyes
11778 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11781 # Define collect2 in Makefile.
11782 case $host_can_use_collect2 in
11784 *) collect2
='collect2$(exeext)' ;;
11788 # Add a definition of USE_COLLECT2 if system wants one.
11789 case $use_collect2 in
11790 no
) use_collect2
= ;;
11793 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11794 xm_defines
="${xm_defines} USE_COLLECT2"
11795 case $host_can_use_collect2 in
11797 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11804 cat >>confdefs.h
<<_ACEOF
11805 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11809 # ---------------------------
11810 # Assembler & linker features
11811 # ---------------------------
11813 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11814 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11815 # However when ld-new is first executed from the build tree, libtool will
11816 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11817 # to the build tree. While doing this we need to use the previous-stage
11818 # linker, or we have an infinite loop. The presence of a shell script as
11819 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11820 # the gcc/collect-ld script. So we need to know how libtool works, or
11821 # exec-tool will fail.
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11827 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11832 macro_version
='2.2.7a'
11833 macro_revision
='1.3134'
11847 ltmain
="$ac_aux_dir/ltmain.sh"
11849 # Backslashify metacharacters that are still active within
11850 # double-quoted strings.
11851 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11853 # Same as above, but do not quote variable references.
11854 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11856 # Sed substitution to delay expansion of an escaped shell variable in a
11857 # double_quote_subst'ed string.
11858 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11860 # Sed substitution to delay expansion of an escaped single quote.
11861 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11863 # Sed substitution to avoid accidental globbing in evaled expressions
11864 no_glob_subst
='s/\*/\\\*/g'
11866 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11867 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11868 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11871 $as_echo_n "checking how to print strings... " >&6; }
11872 # Test print first, because it will be a builtin if present.
11873 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11874 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11876 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11879 # Use this function as a fallback that always works.
11880 func_fallback_echo ()
11882 eval 'cat <<_LTECHO_EOF
11886 ECHO='func_fallback_echo
'
11889 # func_echo_all arg...
11890 # Invoke $ECHO with all args, space-separated.
11897 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11898 $as_echo "printf" >&6; } ;;
11899 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11900 $as_echo "print -r" >&6; } ;;
11901 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11902 $as_echo "cat" >&6; } ;;
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11919 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11920 if test "${ac_cv_path_SED+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11923 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11924 for ac_i in 1 2 3 4 5 6 7; do
11925 ac_script="$ac_script$as_nl$ac_script"
11927 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11928 { ac_script=; unset ac_script;}
11929 if test -z "$SED"; then
11930 ac_path_SED_found=false
11931 # Loop through the user's path and
test for each of PROGNAME-LIST
11932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11933 for as_dir
in $PATH
11936 test -z "$as_dir" && as_dir
=.
11937 for ac_prog
in sed gsed
; do
11938 for ac_exec_ext
in '' $ac_executable_extensions; do
11939 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11940 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11941 # Check for GNU ac_path_SED and select it if it is found.
11942 # Check for GNU $ac_path_SED
11943 case `"$ac_path_SED" --version 2>&1` in
11945 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11948 $as_echo_n 0123456789 >"conftest.in"
11951 cat "conftest.in" "conftest.in" >"conftest.tmp"
11952 mv "conftest.tmp" "conftest.in"
11953 cp "conftest.in" "conftest.nl"
11954 $as_echo '' >> "conftest.nl"
11955 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11956 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11957 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11958 if test $ac_count -gt ${ac_path_SED_max-0}; then
11959 # Best one so far, save it but keep looking for a better one
11960 ac_cv_path_SED
="$ac_path_SED"
11961 ac_path_SED_max
=$ac_count
11963 # 10*(2^10) chars as input seems more than enough
11964 test $ac_count -gt 10 && break
11966 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11969 $ac_path_SED_found && break 3
11974 if test -z "$ac_cv_path_SED"; then
11975 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11978 ac_cv_path_SED
=$SED
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11983 $as_echo "$ac_cv_path_SED" >&6; }
11984 SED
="$ac_cv_path_SED"
11987 test -z "$SED" && SED
=sed
11988 Xsed
="$SED -e 1s/^X//"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12001 $as_echo_n "checking for fgrep... " >&6; }
12002 if test "${ac_cv_path_FGREP+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12005 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12006 then ac_cv_path_FGREP
="$GREP -F"
12008 if test -z "$FGREP"; then
12009 ac_path_FGREP_found
=false
12010 # Loop through the user's path and test for each of PROGNAME-LIST
12011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12012 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12015 test -z "$as_dir" && as_dir
=.
12016 for ac_prog
in fgrep
; do
12017 for ac_exec_ext
in '' $ac_executable_extensions; do
12018 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12019 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12020 # Check for GNU ac_path_FGREP and select it if it is found.
12021 # Check for GNU $ac_path_FGREP
12022 case `"$ac_path_FGREP" --version 2>&1` in
12024 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12027 $as_echo_n 0123456789 >"conftest.in"
12030 cat "conftest.in" "conftest.in" >"conftest.tmp"
12031 mv "conftest.tmp" "conftest.in"
12032 cp "conftest.in" "conftest.nl"
12033 $as_echo 'FGREP' >> "conftest.nl"
12034 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12035 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12036 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12038 # Best one so far, save it but keep looking for a better one
12039 ac_cv_path_FGREP
="$ac_path_FGREP"
12040 ac_path_FGREP_max
=$ac_count
12042 # 10*(2^10) chars as input seems more than enough
12043 test $ac_count -gt 10 && break
12045 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12048 $ac_path_FGREP_found && break 3
12053 if test -z "$ac_cv_path_FGREP"; then
12054 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12057 ac_cv_path_FGREP
=$FGREP
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12063 $as_echo "$ac_cv_path_FGREP" >&6; }
12064 FGREP
="$ac_cv_path_FGREP"
12067 test -z "$GREP" && GREP
=grep
12087 # Check whether --with-gnu-ld was given.
12088 if test "${with_gnu_ld+set}" = set; then :
12089 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12095 if test "$GCC" = yes; then
12096 # Check if gcc -print-prog-name=ld gives a path.
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12098 $as_echo_n "checking for ld used by $CC... " >&6; }
12101 # gcc leaves a trailing carriage return which upsets mingw
12102 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12104 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12107 # Accept absolute paths.
12109 re_direlt
='/[^/][^/]*/\.\./'
12110 # Canonicalize the pathname of ld
12111 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12112 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12113 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12115 test -z "$LD" && LD
="$ac_prog"
12118 # If it fails, then pretend we aren't using GCC.
12122 # If it is relative, then search for the first ld in PATH.
12123 with_gnu_ld
=unknown
12126 elif test "$with_gnu_ld" = yes; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12128 $as_echo_n "checking for GNU ld... " >&6; }
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12131 $as_echo_n "checking for non-GNU ld... " >&6; }
12133 if test "${lt_cv_path_LD+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12136 if test -z "$LD"; then
12137 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12138 for ac_dir
in $PATH; do
12140 test -z "$ac_dir" && ac_dir
=.
12141 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12142 lt_cv_path_LD
="$ac_dir/$ac_prog"
12143 # Check to see if the program is GNU ld. I'd rather use --version,
12144 # but apparently some variants of GNU ld only accept -v.
12145 # Break only if it was the GNU/non-GNU ld that we prefer.
12146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12147 *GNU
* |
*'with BFD'*)
12148 test "$with_gnu_ld" != no
&& break
12151 test "$with_gnu_ld" != yes && break
12158 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12162 LD
="$lt_cv_path_LD"
12163 if test -n "$LD"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12165 $as_echo "$LD" >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12170 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12173 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12177 case `$LD -v 2>&1 </dev/null` in
12178 *GNU
* |
*'with BFD'*)
12179 lt_cv_prog_gnu_ld
=yes
12182 lt_cv_prog_gnu_ld
=no
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12188 with_gnu_ld
=$lt_cv_prog_gnu_ld
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12200 if test "${lt_cv_path_NM+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12203 if test -n "$NM"; then
12204 # Let the user override the test.
12205 lt_cv_path_NM
="$NM"
12207 lt_nm_to_check
="${ac_tool_prefix}nm"
12208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12209 lt_nm_to_check
="$lt_nm_to_check nm"
12211 for lt_tmp_nm
in $lt_nm_to_check; do
12212 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12213 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12215 test -z "$ac_dir" && ac_dir
=.
12216 tmp_nm
="$ac_dir/$lt_tmp_nm"
12217 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12218 # Check to see if the nm accepts a BSD-compat flag.
12219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12220 # nm: unknown option "B" ignored
12221 # Tru64's nm complains that /dev/null is an invalid object file
12222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12223 */dev
/null
* |
*'Invalid file or object type'*)
12224 lt_cv_path_NM
="$tmp_nm -B"
12228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12230 lt_cv_path_NM
="$tmp_nm -p"
12234 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12235 continue # so that we can try to find one that supports BSD flags
12244 : ${lt_cv_path_NM=no}
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12248 $as_echo "$lt_cv_path_NM" >&6; }
12249 if test "$lt_cv_path_NM" != "no"; then
12250 NM
="$lt_cv_path_NM"
12252 # Didn't find any BSD compatible name lister, look for dumpbin.
12253 if test -n "$DUMPBIN"; then :
12254 # Let the user override the test.
12256 if test -n "$ac_tool_prefix"; then
12257 for ac_prog
in dumpbin
"link -dump"
12259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12260 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12266 if test -n "$DUMPBIN"; then
12267 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12270 for as_dir
in $PATH
12273 test -z "$as_dir" && as_dir
=.
12274 for ac_exec_ext
in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 DUMPBIN
=$ac_cv_prog_DUMPBIN
12287 if test -n "$DUMPBIN"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12289 $as_echo "$DUMPBIN" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12296 test -n "$DUMPBIN" && break
12299 if test -z "$DUMPBIN"; then
12300 ac_ct_DUMPBIN
=$DUMPBIN
12301 for ac_prog
in dumpbin
"link -dump"
12303 # Extract the first word of "$ac_prog", so it can be a program name with args.
12304 set dummy
$ac_prog; ac_word
=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12310 if test -n "$ac_ct_DUMPBIN"; then
12311 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12314 for as_dir
in $PATH
12317 test -z "$as_dir" && as_dir
=.
12318 for ac_exec_ext
in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12320 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12331 if test -n "$ac_ct_DUMPBIN"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12333 $as_echo "$ac_ct_DUMPBIN" >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12340 test -n "$ac_ct_DUMPBIN" && break
12343 if test "x$ac_ct_DUMPBIN" = x
; then
12346 case $cross_compiling:$ac_tool_warned in
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12350 ac_tool_warned
=yes ;;
12352 DUMPBIN
=$ac_ct_DUMPBIN
12356 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12358 DUMPBIN
="$DUMPBIN -symbols"
12366 if test "$DUMPBIN" != ":"; then
12370 test -z "$NM" && NM
=nm
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12379 if test "${lt_cv_nm_interface+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12382 lt_cv_nm_interface
="BSD nm"
12383 echo "int some_variable = 0;" > conftest.
$ac_ext
12384 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12385 (eval "$ac_compile" 2>conftest.err
)
12386 cat conftest.err
>&5
12387 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12388 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12389 cat conftest.err
>&5
12390 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12391 cat conftest.out
>&5
12392 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12393 lt_cv_nm_interface
="MS dumpbin"
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12398 $as_echo "$lt_cv_nm_interface" >&6; }
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12401 $as_echo_n "checking whether ln -s works... " >&6; }
12403 if test "$LN_S" = "ln -s"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12408 $as_echo "no, using $LN_S" >&6; }
12411 # find the maximum length of command line arguments
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12414 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12422 # On DJGPP, this test can blow up pretty badly due to problems in libc
12423 # (any single argument exceeding 2000 bytes causes a buffer overrun
12424 # during glob expansion). Even if it were fixed, the result of this
12425 # check would be larger than it should be.
12426 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12430 # Under GNU Hurd, this test is not required because there is
12431 # no limit to the length of command line arguments.
12432 # Libtool will interpret -1 as no limit whatsoever
12433 lt_cv_sys_max_cmd_len
=-1;
12436 cygwin
* | mingw
* | cegcc
*)
12437 # On Win9x/ME, this test blows up -- it succeeds, but takes
12438 # about 5 minutes as the teststring grows exponentially.
12439 # Worse, since 9x/ME are not pre-emptively multitasking,
12440 # you end up with a "frozen" computer, even though with patience
12441 # the test eventually succeeds (with a max line length of 256k).
12442 # Instead, let's just punt: use the minimum linelength reported by
12443 # all of the supported platforms: 8192 (on NT/2K/XP).
12444 lt_cv_sys_max_cmd_len
=8192;
12448 # On MiNT this can take a long time and run out of memory.
12449 lt_cv_sys_max_cmd_len
=8192;
12453 # On AmigaOS with pdksh, this test takes hours, literally.
12454 # So we just punt and use a minimum line length of 8192.
12455 lt_cv_sys_max_cmd_len
=8192;
12458 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12459 # This has been around since 386BSD, at least. Likely further.
12460 if test -x /sbin
/sysctl
; then
12461 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12462 elif test -x /usr
/sbin
/sysctl
; then
12463 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12465 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12467 # And add a safety zone
12468 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12469 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12474 lt_cv_sys_max_cmd_len
=196608
12478 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12479 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12480 # nice to cause kernel panics so lets avoid the loop below.
12481 # First set a reasonable default.
12482 lt_cv_sys_max_cmd_len
=16384
12484 if test -x /sbin
/sysconfig
; then
12485 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12486 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12491 lt_cv_sys_max_cmd_len
=102400
12493 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12494 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12495 if test -n "$kargmax"; then
12496 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12498 lt_cv_sys_max_cmd_len
=32768
12502 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12503 if test -n "$lt_cv_sys_max_cmd_len"; then
12504 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12505 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12507 # Make teststring a little bigger before we do anything with it.
12508 # a 1K string should be a reasonable start.
12509 for i
in 1 2 3 4 5 6 7 8 ; do
12510 teststring
=$teststring$teststring
12512 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12513 # If test is not a shell built-in, we'll probably end up computing a
12514 # maximum length that is only half of the actual maximum length, but
12516 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12517 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12518 test $i != 17 # 1/2 MB should be enough
12521 teststring
=$teststring$teststring
12523 # Only check the string length outside the loop.
12524 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12526 # Add a significant safety factor because C++ compilers can tack on
12527 # massive amounts of additional arguments before passing them to the
12528 # linker. It appears as though 1/2 is a usable value.
12529 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12536 if test -n $lt_cv_sys_max_cmd_len ; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12538 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12541 $as_echo "none" >&6; }
12543 max_cmd_len
=$lt_cv_sys_max_cmd_len
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12555 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12556 # Try some XSI features
12558 ( _lt_dummy
="a/b/c"
12559 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12561 && eval 'test $(( 1 + 1 )) -eq 2 \
12562 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12565 $as_echo "$xsi_shell" >&6; }
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12569 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12571 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12573 && lt_shell_append=yes
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12575 $as_echo "$lt_shell_append" >&6; }
12578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12588 # test EBCDIC or ASCII
12589 case `echo X|tr X '\101'` in
12590 A) # ASCII based system
12591 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12592 lt_SP2NL='tr \040 \012'
12593 lt_NL2SP='tr \015\012 \040\040'
12595 *) # EBCDIC based system
12596 lt_SP2NL='tr \100 \n'
12597 lt_NL2SP='tr \r\n \100\100'
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12610 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12611 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12612 $as_echo_n "(cached
) " >&6
12614 lt_cv_ld_reload_flag='-r'
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12617 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12618 reload_flag=$lt_cv_ld_reload_flag
12619 case $reload_flag in
12621 *) reload_flag=" $reload_flag" ;;
12623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12626 if test "$GCC" = yes; then
12627 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12629 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12642 if test -n "$ac_tool_prefix"; then
12643 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12644 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12646 $as_echo_n "checking
for $ac_word...
" >&6; }
12647 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12648 $as_echo_n "(cached
) " >&6
12650 if test -n "$OBJDUMP"; then
12651 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12670 OBJDUMP=$ac_cv_prog_OBJDUMP
12671 if test -n "$OBJDUMP"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12673 $as_echo "$OBJDUMP" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12676 $as_echo "no
" >&6; }
12681 if test -z "$ac_cv_prog_OBJDUMP"; then
12682 ac_ct_OBJDUMP=$OBJDUMP
12683 # Extract the first word of "objdump
", so it can be a program name with args.
12684 set dummy objdump; ac_word=$2
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12686 $as_echo_n "checking
for $ac_word...
" >&6; }
12687 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12688 $as_echo_n "(cached
) " >&6
12690 if test -n "$ac_ct_OBJDUMP"; then
12691 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12697 test -z "$as_dir" && as_dir=.
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12701 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12710 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12711 if test -n "$ac_ct_OBJDUMP"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12713 $as_echo "$ac_ct_OBJDUMP" >&6; }
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12716 $as_echo "no
" >&6; }
12719 if test "x
$ac_ct_OBJDUMP" = x; then
12722 case $cross_compiling:$ac_tool_warned in
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12725 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12726 ac_tool_warned=yes ;;
12728 OBJDUMP=$ac_ct_OBJDUMP
12731 OBJDUMP="$ac_cv_prog_OBJDUMP"
12734 test -z "$OBJDUMP" && OBJDUMP=objdump
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12745 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12746 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12747 $as_echo_n "(cached
) " >&6
12749 lt_cv_file_magic_cmd='$MAGIC_CMD'
12750 lt_cv_file_magic_test_file=
12751 lt_cv_deplibs_check_method='unknown'
12752 # Need to set the preceding variable on all platforms that support
12753 # interlibrary dependencies.
12754 # 'none' -- dependencies not supported.
12755 # `unknown' -- same as none, but documents that we really don't know.
12756 # 'pass_all' -- all dependencies passed with no checks.
12757 # 'test_compile' -- check by making test program.
12758 # 'file_magic [[regex]]' -- check by looking for files in library path
12759 # which responds to the $file_magic_cmd with a given extended regex.
12760 # If you have `file' or equivalent on your system and you're not sure
12761 # whether `pass_all' will *always* work, you probably want this one.
12765 lt_cv_deplibs_check_method=pass_all
12769 lt_cv_deplibs_check_method=pass_all
12773 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12774 lt_cv_file_magic_cmd='/usr/bin/file -L'
12775 lt_cv_file_magic_test_file=/shlib/libc.so
12779 # func_win32_libid is a shell function defined in ltmain.sh
12780 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12781 lt_cv_file_magic_cmd='func_win32_libid'
12785 # Base MSYS/MinGW do not provide the 'file' command needed by
12786 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12787 # unless we find 'file', for example because we are cross-compiling.
12788 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12789 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12790 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12791 lt_cv_file_magic_cmd='func_win32_libid'
12793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12794 lt_cv_file_magic_cmd='$OBJDUMP -f'
12799 # use the weaker test based on 'objdump'. See mingw*.
12800 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12804 darwin* | rhapsody*)
12805 lt_cv_deplibs_check_method=pass_all
12808 freebsd* | dragonfly*)
12809 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12812 # Not sure whether the presence of OpenBSD here was a mistake.
12813 # Let's accept both of them until this is cleared up.
12814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12815 lt_cv_file_magic_cmd=/usr/bin/file
12816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12820 lt_cv_deplibs_check_method=pass_all
12825 lt_cv_deplibs_check_method=pass_all
12829 lt_cv_deplibs_check_method=pass_all
12832 hpux10.20* | hpux11*)
12833 lt_cv_file_magic_cmd=/usr/bin/file
12836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12840 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]'
12841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12855 irix5* | irix6* | nonstopux*)
12857 *-32|*"-32 ") libmagic=32-bit;;
12858 *-n32|*"-n32 ") libmagic=N32;;
12859 *-64|*"-64 ") libmagic=64-bit;;
12860 *) libmagic=never-match;;
12862 lt_cv_deplibs_check_method=pass_all
12865 # This must be Linux ELF.
12866 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12867 lt_cv_deplibs_check_method=pass_all
12871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12880 lt_cv_file_magic_cmd=/usr/bin/file
12881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12885 lt_cv_deplibs_check_method=pass_all
12889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12896 osf3* | osf4* | osf5*)
12897 lt_cv_deplibs_check_method=pass_all
12901 lt_cv_deplibs_check_method=pass_all
12905 lt_cv_deplibs_check_method=pass_all
12908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12909 lt_cv_deplibs_check_method=pass_all
12913 case $host_vendor in
12915 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]'
12916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12919 lt_cv_deplibs_check_method=pass_all
12922 lt_cv_file_magic_cmd='/bin/file'
12923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12926 lt_cv_file_magic_cmd='/bin/file'
12927 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12928 lt_cv_file_magic_test_file=/lib/libc.so
12931 lt_cv_deplibs_check_method=pass_all
12934 lt_cv_deplibs_check_method=pass_all
12940 lt_cv_deplibs_check_method=pass_all
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12946 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12947 file_magic_cmd=$lt_cv_file_magic_cmd
12948 deplibs_check_method=$lt_cv_deplibs_check_method
12949 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12962 if test -n "$ac_tool_prefix"; then
12963 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12964 set dummy ${ac_tool_prefix}ar; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12966 $as_echo_n "checking
for $ac_word...
" >&6; }
12967 if test "${ac_cv_prog_AR+set}" = set; then :
12968 $as_echo_n "(cached
) " >&6
12970 if test -n "$AR"; then
12971 ac_cv_prog_AR="$AR" # Let the user override the test.
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12977 test -z "$as_dir" && as_dir=.
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12980 ac_cv_prog_AR="${ac_tool_prefix}ar"
12981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12991 if test -n "$AR"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12993 $as_echo "$AR" >&6; }
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12996 $as_echo "no
" >&6; }
13001 if test -z "$ac_cv_prog_AR"; then
13003 # Extract the first word of "ar", so it can be a program name with args.
13004 set dummy ar; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13006 $as_echo_n "checking
for $ac_word...
" >&6; }
13007 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13008 $as_echo_n "(cached
) " >&6
13010 if test -n "$ac_ct_AR"; then
13011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_ac_ct_AR="ar"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13031 if test -n "$ac_ct_AR"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13033 $as_echo "$ac_ct_AR" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13036 $as_echo "no
" >&6; }
13039 if test "x
$ac_ct_AR" = x; then
13042 case $cross_compiling:$ac_tool_warned in
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13045 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13046 ac_tool_warned=yes ;;
13051 AR="$ac_cv_prog_AR"
13054 test -z "$AR" && AR=ar
13055 test -z "$AR_FLAGS" && AR_FLAGS=cru
13067 if test -n "$ac_tool_prefix"; then
13068 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13069 set dummy ${ac_tool_prefix}strip; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13071 $as_echo_n "checking
for $ac_word...
" >&6; }
13072 if test "${ac_cv_prog_STRIP+set}" = set; then :
13073 $as_echo_n "(cached
) " >&6
13075 if test -n "$STRIP"; then
13076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13085 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13086 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13095 STRIP=$ac_cv_prog_STRIP
13096 if test -n "$STRIP"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13098 $as_echo "$STRIP" >&6; }
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13101 $as_echo "no
" >&6; }
13106 if test -z "$ac_cv_prog_STRIP"; then
13108 # Extract the first word of "strip
", so it can be a program name with args.
13109 set dummy strip; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13111 $as_echo_n "checking
for $ac_word...
" >&6; }
13112 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13113 $as_echo_n "(cached
) " >&6
13115 if test -n "$ac_ct_STRIP"; then
13116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_prog_ac_ct_STRIP="strip
"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13136 if test -n "$ac_ct_STRIP"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13138 $as_echo "$ac_ct_STRIP" >&6; }
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13141 $as_echo "no
" >&6; }
13144 if test "x
$ac_ct_STRIP" = x; then
13147 case $cross_compiling:$ac_tool_warned in
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13150 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13151 ac_tool_warned=yes ;;
13156 STRIP="$ac_cv_prog_STRIP"
13159 test -z "$STRIP" && STRIP=:
13166 if test -n "$ac_tool_prefix"; then
13167 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13170 $as_echo_n "checking
for $ac_word...
" >&6; }
13171 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13172 $as_echo_n "(cached
) " >&6
13174 if test -n "$RANLIB"; then
13175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13194 RANLIB=$ac_cv_prog_RANLIB
13195 if test -n "$RANLIB"; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13197 $as_echo "$RANLIB" >&6; }
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13200 $as_echo "no
" >&6; }
13205 if test -z "$ac_cv_prog_RANLIB"; then
13206 ac_ct_RANLIB=$RANLIB
13207 # Extract the first word of "ranlib
", so it can be a program name with args.
13208 set dummy ranlib; ac_word=$2
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13210 $as_echo_n "checking
for $ac_word...
" >&6; }
13211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13212 $as_echo_n "(cached
) " >&6
13214 if test -n "$ac_ct_RANLIB"; then
13215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218 for as_dir in $PATH
13221 test -z "$as_dir" && as_dir=.
13222 for ac_exec_ext in '' $ac_executable_extensions; do
13223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13224 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13235 if test -n "$ac_ct_RANLIB"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13237 $as_echo "$ac_ct_RANLIB" >&6; }
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13240 $as_echo "no
" >&6; }
13243 if test "x
$ac_ct_RANLIB" = x; then
13246 case $cross_compiling:$ac_tool_warned in
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13249 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13250 ac_tool_warned=yes ;;
13252 RANLIB=$ac_ct_RANLIB
13255 RANLIB="$ac_cv_prog_RANLIB"
13258 test -z "$RANLIB" && RANLIB=:
13265 # Determine commands to create old-style static archives.
13266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13267 old_postinstall_cmds='chmod 644 $oldlib'
13268 old_postuninstall_cmds=
13270 if test -n "$RANLIB"; then
13273 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13276 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13279 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13284 lock_old_archive_extraction=yes ;;
13286 lock_old_archive_extraction=no ;;
13327 # If no C compiler was specified, use CC.
13330 # If no C compiler flags were specified, use CFLAGS.
13331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13333 # Allow CC to be a program name with arguments.
13337 # Check for command to grab the raw symbol name followed by C symbol from nm.
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13339 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13341 $as_echo_n "(cached
) " >&6
13344 # These are sane defaults that work on at least a few old systems.
13345 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13347 # Character class describing NM global symbol codes.
13348 symcode='[BCDEGRST]'
13350 # Regexp to match symbols that can be accessed directly from C.
13351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13353 # Define system-specific variables.
13358 cygwin* | mingw* | pw32* | cegcc*)
13359 symcode='[ABCDGISTW]'
13362 if test "$host_cpu" = ia64; then
13363 symcode='[ABCDEGRST]'
13366 irix* | nonstopux*)
13367 symcode='[BCDEGRST]'
13370 symcode='[BCDEGQRST]'
13381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13389 # If we're using GNU nm, then use its standard symbol codes.
13390 case `$NM -V 2>&1` in
13391 *GNU* | *'with BFD'*)
13392 symcode='[ABCDGIRSTW]' ;;
13395 # Transform an extracted symbol line into a proper C declaration.
13396 # Some systems (esp. on ia64) link data and code symbols differently,
13397 # so use this general approach.
13398 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13400 # Transform an extracted symbol line into symbol name and symbol address
13401 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13402 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'"
13404 # Handle CRLF in mingw tool chain
13408 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13412 # Try without a prefix underscore, then with it.
13413 for ac_symprfx in "" "_
"; do
13415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13416 symxfrm="\\1 $ac_symprfx\\2 \\2"
13418 # Write the raw and C identifiers.
13419 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13420 # Fake it for dumpbin and say T for any non-static function
13421 # and D for any global variable.
13422 # Also find C++ and __fastcall symbols from MSVC++,
13423 # which start with @ or ?.
13424 lt_cv_sys_global_symbol_pipe="$AWK '"\
13425 " {last_section=section; section=\$ 3};"\
13426 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13427 " \$ 0!~/External *\|/{next};"\
13428 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13429 " {if(hide[section]) next};"\
13430 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13431 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13432 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13433 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13434 " ' prfx
=^
$ac_symprfx"
13436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13439 # Check to see that the pipe works correctly.
13443 cat > conftest.$ac_ext <<_LT_EOF
13448 void nm_test_func(void);
13449 void nm_test_func(void){}
13453 int main(){nm_test_var='a';nm_test_func();return(0);}
13456 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13457 (eval $ac_compile) 2>&5
13459 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13460 test $ac_status = 0; }; then
13461 # Now try to grab the symbols.
13463 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13464 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13467 test $ac_status = 0; } && test -s "$nlist"; then
13468 # Try sorting and uniquifying the output.
13469 if sort "$nlist" | uniq > "$nlist"T; then
13470 mv -f "$nlist"T "$nlist"
13475 # Make sure that we snagged all the symbols we need.
13476 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13477 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13478 cat <<_LT_EOF > conftest.$ac_ext
13484 # Now generate the symbol file.
13485 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13487 cat <<_LT_EOF >> conftest.$ac_ext
13489 /* The mapping between symbol names and symbols. */
13494 lt__PROGRAM__LTX_preloaded_symbols[] =
13496 { "@PROGRAM@
", (void *) 0 },
13498 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13499 cat <<\_LT_EOF >> conftest.$ac_ext
13503 /* This works around a problem in FreeBSD linker */
13504 #ifdef FREEBSD_WORKAROUND
13505 static const void *lt_preloaded_setup() {
13506 return lt__PROGRAM__LTX_preloaded_symbols;
13514 # Now try linking the two files.
13515 mv conftest.$ac_objext conftstm.$ac_objext
13516 lt_save_LIBS="$LIBS"
13517 lt_save_CFLAGS="$CFLAGS"
13518 LIBS="conftstm.
$ac_objext"
13519 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13520 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13521 (eval $ac_link) 2>&5
13523 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13524 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13527 LIBS="$lt_save_LIBS"
13528 CFLAGS="$lt_save_CFLAGS"
13530 echo "cannot
find nm_test_func
in $nlist" >&5
13533 echo "cannot
find nm_test_var
in $nlist" >&5
13536 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13539 echo "$progname: failed program was
:" >&5
13540 cat conftest.$ac_ext >&5
13542 rm -rf conftest* conftst*
13544 # Do not use the global_symbol_pipe unless it works.
13545 if test "$pipe_works" = yes; then
13548 lt_cv_sys_global_symbol_pipe=
13554 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13555 lt_cv_sys_global_symbol_to_cdecl=
13557 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13559 $as_echo "failed
" >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13562 $as_echo "ok
" >&6; }
13586 # Check whether --enable-libtool-lock was given.
13587 if test "${enable_libtool_lock+set}" = set; then :
13588 enableval=$enable_libtool_lock;
13591 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13593 # Some flags need to be propagated to the compiler or linker for good
13597 # Find out which ABI we are using.
13598 echo 'int i;' > conftest.$ac_ext
13599 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13600 (eval $ac_compile) 2>&5
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13603 test $ac_status = 0; }; then
13604 case `/usr/bin/file conftest.$ac_objext` in
13606 HPUX_IA64_MODE="32"
13609 HPUX_IA64_MODE="64"
13616 # Find out which ABI we are using.
13617 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13618 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13619 (eval $ac_compile) 2>&5
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 if test "$lt_cv_prog_gnu_ld" = yes; then
13624 case `/usr/bin/file conftest.$ac_objext` in
13626 LD="${LD-ld} -melf32bsmip"
13629 LD="${LD-ld} -melf32bmipn32"
13632 LD="${LD-ld} -melf64bmip"
13636 case `/usr/bin/file conftest.$ac_objext` in
13652 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13653 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13654 # Find out which ABI we are using.
13655 echo 'int i;' > conftest.$ac_ext
13656 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13657 (eval $ac_compile) 2>&5
13659 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13660 test $ac_status = 0; }; then
13661 case `/usr/bin/file conftest.o` in
13664 x86_64-*kfreebsd*-gnu)
13665 LD="${LD-ld} -m elf_i386_fbsd
"
13668 case `/usr/bin/file conftest.o` in
13670 LD="${LD-ld} -m elf32_x86_64
"
13673 LD="${LD-ld} -m elf_i386
"
13677 powerpc64le-*linux*)
13678 LD="${LD-ld} -m elf32lppclinux
"
13681 LD="${LD-ld} -m elf32ppclinux
"
13684 LD="${LD-ld} -m elf_s390
"
13687 LD="${LD-ld} -m elf32_sparc
"
13693 x86_64-*kfreebsd*-gnu)
13694 LD="${LD-ld} -m elf_x86_64_fbsd
"
13697 LD="${LD-ld} -m elf_x86_64
"
13700 LD="${LD-ld} -m elf64lppc
"
13703 LD="${LD-ld} -m elf64ppc
"
13705 s390*-*linux*|s390*-*tpf*)
13706 LD="${LD-ld} -m elf64_s390
"
13709 LD="${LD-ld} -m elf64_sparc
"
13719 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13720 SAVE_CFLAGS="$CFLAGS"
13721 CFLAGS="$CFLAGS -belf"
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13723 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13724 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13725 $as_echo_n "(cached
) " >&6
13728 ac_cpp='$CPP $CPPFLAGS'
13729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13744 if ac_fn_c_try_link "$LINENO"; then :
13745 lt_cv_cc_needs_belf=yes
13747 lt_cv_cc_needs_belf=no
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13752 ac_cpp='$CPP $CPPFLAGS'
13753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13759 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13760 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13761 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13762 CFLAGS="$SAVE_CFLAGS"
13766 # Find out which ABI we are using.
13767 echo 'int i;' > conftest.$ac_ext
13768 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13769 (eval $ac_compile) 2>&5
13771 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13772 test $ac_status = 0; }; then
13773 case `/usr/bin/file conftest.o` in
13775 case $lt_cv_prog_gnu_ld in
13776 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13778 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13790 need_locks="$enable_libtool_lock"
13794 rhapsody* | darwin*)
13795 if test -n "$ac_tool_prefix"; then
13796 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13797 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13799 $as_echo_n "checking
for $ac_word...
" >&6; }
13800 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13801 $as_echo_n "(cached
) " >&6
13803 if test -n "$DSYMUTIL"; then
13804 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH
13810 test -z "$as_dir" && as_dir=.
13811 for ac_exec_ext in '' $ac_executable_extensions; do
13812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13813 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13823 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13824 if test -n "$DSYMUTIL"; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13826 $as_echo "$DSYMUTIL" >&6; }
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13829 $as_echo "no
" >&6; }
13834 if test -z "$ac_cv_prog_DSYMUTIL"; then
13835 ac_ct_DSYMUTIL=$DSYMUTIL
13836 # Extract the first word of "dsymutil
", so it can be a program name with args.
13837 set dummy dsymutil; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13839 $as_echo_n "checking
for $ac_word...
" >&6; }
13840 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13841 $as_echo_n "(cached
) " >&6
13843 if test -n "$ac_ct_DSYMUTIL"; then
13844 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13850 test -z "$as_dir" && as_dir=.
13851 for ac_exec_ext in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13863 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13864 if test -n "$ac_ct_DSYMUTIL"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13866 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13869 $as_echo "no
" >&6; }
13872 if test "x
$ac_ct_DSYMUTIL" = x; then
13875 case $cross_compiling:$ac_tool_warned in
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13878 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13879 ac_tool_warned=yes ;;
13881 DSYMUTIL=$ac_ct_DSYMUTIL
13884 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13887 if test -n "$ac_tool_prefix"; then
13888 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13889 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13891 $as_echo_n "checking
for $ac_word...
" >&6; }
13892 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13893 $as_echo_n "(cached
) " >&6
13895 if test -n "$NMEDIT"; then
13896 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13906 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13915 NMEDIT=$ac_cv_prog_NMEDIT
13916 if test -n "$NMEDIT"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13918 $as_echo "$NMEDIT" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13921 $as_echo "no
" >&6; }
13926 if test -z "$ac_cv_prog_NMEDIT"; then
13927 ac_ct_NMEDIT=$NMEDIT
13928 # Extract the first word of "nmedit
", so it can be a program name with args.
13929 set dummy nmedit; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13931 $as_echo_n "checking
for $ac_word...
" >&6; }
13932 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13933 $as_echo_n "(cached
) " >&6
13935 if test -n "$ac_ct_NMEDIT"; then
13936 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13955 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13956 if test -n "$ac_ct_NMEDIT"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13958 $as_echo "$ac_ct_NMEDIT" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13961 $as_echo "no
" >&6; }
13964 if test "x
$ac_ct_NMEDIT" = x; then
13967 case $cross_compiling:$ac_tool_warned in
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13970 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13971 ac_tool_warned=yes ;;
13973 NMEDIT=$ac_ct_NMEDIT
13976 NMEDIT="$ac_cv_prog_NMEDIT"
13979 if test -n "$ac_tool_prefix"; then
13980 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13981 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13983 $as_echo_n "checking
for $ac_word...
" >&6; }
13984 if test "${ac_cv_prog_LIPO+set}" = set; then :
13985 $as_echo_n "(cached
) " >&6
13987 if test -n "$LIPO"; then
13988 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
13996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13997 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14007 LIPO=$ac_cv_prog_LIPO
14008 if test -n "$LIPO"; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14010 $as_echo "$LIPO" >&6; }
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14013 $as_echo "no
" >&6; }
14018 if test -z "$ac_cv_prog_LIPO"; then
14020 # Extract the first word of "lipo
", so it can be a program name with args.
14021 set dummy lipo; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14023 $as_echo_n "checking
for $ac_word...
" >&6; }
14024 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14025 $as_echo_n "(cached
) " >&6
14027 if test -n "$ac_ct_LIPO"; then
14028 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
14036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14037 ac_cv_prog_ac_ct_LIPO="lipo
"
14038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14047 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14048 if test -n "$ac_ct_LIPO"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14050 $as_echo "$ac_ct_LIPO" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14053 $as_echo "no
" >&6; }
14056 if test "x
$ac_ct_LIPO" = x; then
14059 case $cross_compiling:$ac_tool_warned in
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14062 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14063 ac_tool_warned=yes ;;
14068 LIPO="$ac_cv_prog_LIPO"
14071 if test -n "$ac_tool_prefix"; then
14072 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14073 set dummy ${ac_tool_prefix}otool; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14075 $as_echo_n "checking
for $ac_word...
" >&6; }
14076 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14077 $as_echo_n "(cached
) " >&6
14079 if test -n "$OTOOL"; then
14080 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14086 test -z "$as_dir" && as_dir=.
14087 for ac_exec_ext in '' $ac_executable_extensions; do
14088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14089 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14099 OTOOL=$ac_cv_prog_OTOOL
14100 if test -n "$OTOOL"; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14102 $as_echo "$OTOOL" >&6; }
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14105 $as_echo "no
" >&6; }
14110 if test -z "$ac_cv_prog_OTOOL"; then
14112 # Extract the first word of "otool
", so it can be a program name with args.
14113 set dummy otool; ac_word=$2
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14115 $as_echo_n "checking
for $ac_word...
" >&6; }
14116 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14117 $as_echo_n "(cached
) " >&6
14119 if test -n "$ac_ct_OTOOL"; then
14120 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14129 ac_cv_prog_ac_ct_OTOOL="otool
"
14130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14139 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14140 if test -n "$ac_ct_OTOOL"; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14142 $as_echo "$ac_ct_OTOOL" >&6; }
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14145 $as_echo "no
" >&6; }
14148 if test "x
$ac_ct_OTOOL" = x; then
14151 case $cross_compiling:$ac_tool_warned in
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14154 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14155 ac_tool_warned=yes ;;
14160 OTOOL="$ac_cv_prog_OTOOL"
14163 if test -n "$ac_tool_prefix"; then
14164 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14165 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14167 $as_echo_n "checking
for $ac_word...
" >&6; }
14168 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14169 $as_echo_n "(cached
) " >&6
14171 if test -n "$OTOOL64"; then
14172 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14178 test -z "$as_dir" && as_dir=.
14179 for ac_exec_ext in '' $ac_executable_extensions; do
14180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14181 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14182 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14191 OTOOL64=$ac_cv_prog_OTOOL64
14192 if test -n "$OTOOL64"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14194 $as_echo "$OTOOL64" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14197 $as_echo "no
" >&6; }
14202 if test -z "$ac_cv_prog_OTOOL64"; then
14203 ac_ct_OTOOL64=$OTOOL64
14204 # Extract the first word of "otool64
", so it can be a program name with args.
14205 set dummy otool64; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14207 $as_echo_n "checking
for $ac_word...
" >&6; }
14208 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14209 $as_echo_n "(cached
) " >&6
14211 if test -n "$ac_ct_OTOOL64"; then
14212 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14221 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14231 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14232 if test -n "$ac_ct_OTOOL64"; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14234 $as_echo "$ac_ct_OTOOL64" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14237 $as_echo "no
" >&6; }
14240 if test "x
$ac_ct_OTOOL64" = x; then
14243 case $cross_compiling:$ac_tool_warned in
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14246 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14247 ac_tool_warned=yes ;;
14249 OTOOL64=$ac_ct_OTOOL64
14252 OTOOL64="$ac_cv_prog_OTOOL64"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14282 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14283 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14284 $as_echo_n "(cached
) " >&6
14286 lt_cv_apple_cc_single_mod=no
14287 if test -z "${LT_MULTI_MODULE}"; then
14288 # By default we will add the -single_module flag. You can override
14289 # by either setting the environment variable LT_MULTI_MODULE
14290 # non-empty at configure time, or by adding -multi_module to the
14292 rm -rf libconftest.dylib*
14293 echo "int foo
(void
){return 1;}" > conftest.c
14294 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14295 -dynamiclib -Wl,-single_module conftest.c
" >&5
14296 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14297 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14299 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14300 lt_cv_apple_cc_single_mod=yes
14302 cat conftest.err >&5
14304 rm -rf libconftest.dylib*
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14309 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14311 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14312 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14313 $as_echo_n "(cached
) " >&6
14315 lt_cv_ld_exported_symbols_list=no
14316 save_LDFLAGS=$LDFLAGS
14317 echo "_main
" > conftest.sym
14318 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 lt_cv_ld_exported_symbols_list=yes
14333 lt_cv_ld_exported_symbols_list=no
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LDFLAGS="$save_LDFLAGS"
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14341 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14343 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14344 if test "${lt_cv_ld_force_load+set}" = set; then :
14345 $as_echo_n "(cached
) " >&6
14347 lt_cv_ld_force_load=no
14348 cat > conftest.c << _LT_EOF
14349 int forced_loaded() { return 2;}
14351 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14352 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14353 echo "$AR cru libconftest.a conftest.o
" >&5
14354 $AR cru libconftest.a conftest.o 2>&5
14355 cat > conftest.c << _LT_EOF
14356 int main() { return 0;}
14358 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14359 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14361 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14362 lt_cv_ld_force_load=yes
14364 cat conftest.err >&5
14366 rm -f conftest.err libconftest.a conftest conftest.c
14367 rm -rf conftest.dSYM
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14371 $as_echo "$lt_cv_ld_force_load" >&6; }
14373 rhapsody* | darwin1.[012])
14374 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14376 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14377 darwin*) # darwin 5.x on
14378 # if running on 10.5 or later, the deployment target defaults
14379 # to the OS version, if on x86, and 10.4, the deployment
14380 # target defaults to 10.4. Don't you love it?
14381 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14382 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14383 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14385 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14387 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14391 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14392 _lt_dar_single_mod='$single_module'
14394 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14395 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14397 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14399 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14400 _lt_dsymutil='~$DSYMUTIL $lib || :'
14407 for ac_header in dlfcn.h
14409 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14410 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14411 cat >>confdefs.h <<_ACEOF
14412 #define HAVE_DLFCN_H 1
14429 enable_win32_dll=no
14432 # Check whether --enable-shared was given.
14433 if test "${enable_shared+set}" = set; then :
14434 enableval=$enable_shared; p=${PACKAGE-default}
14436 yes) enable_shared=yes ;;
14437 no) enable_shared=no ;;
14440 # Look at the argument we got. We use all the common list separators.
14441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14442 for pkg in $enableval; do
14444 if test "X
$pkg" = "X
$p"; then
14463 # Check whether --enable-static was given.
14464 if test "${enable_static+set}" = set; then :
14465 enableval=$enable_static; p=${PACKAGE-default}
14467 yes) enable_static=yes ;;
14468 no) enable_static=no ;;
14471 # Look at the argument we got. We use all the common list separators.
14472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14473 for pkg in $enableval; do
14475 if test "X
$pkg" = "X
$p"; then
14495 # Check whether --with-pic was given.
14496 if test "${with_pic+set}" = set; then :
14497 withval=$with_pic; pic_mode="$withval"
14503 test -z "$pic_mode" && pic_mode=default
14511 # Check whether --enable-fast-install was given.
14512 if test "${enable_fast_install+set}" = set; then :
14513 enableval=$enable_fast_install; p=${PACKAGE-default}
14515 yes) enable_fast_install=yes ;;
14516 no) enable_fast_install=no ;;
14518 enable_fast_install=no
14519 # Look at the argument we got. We use all the common list separators.
14520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14521 for pkg in $enableval; do
14523 if test "X
$pkg" = "X
$p"; then
14524 enable_fast_install=yes
14531 enable_fast_install=yes
14544 # This can be used to rebuild libtool when needed
14545 LIBTOOL_DEPS="$ltmain"
14547 # Always use our own libtool.
14548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14575 test -z "$LN_S" && LN_S="ln -s"
14590 if test -n "${ZSH_VERSION+set}" ; then
14591 setopt NO_GLOB_SUBST
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14595 $as_echo_n "checking
for objdir...
" >&6; }
14596 if test "${lt_cv_objdir+set}" = set; then :
14597 $as_echo_n "(cached
) " >&6
14599 rm -f .libs 2>/dev/null
14600 mkdir .libs 2>/dev/null
14601 if test -d .libs; then
14604 # MS-DOS does not allow filenames that begin with a dot.
14607 rmdir .libs 2>/dev/null
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14610 $as_echo "$lt_cv_objdir" >&6; }
14611 objdir=$lt_cv_objdir
14617 cat >>confdefs.h <<_ACEOF
14618 #define LT_OBJDIR "$lt_cv_objdir/"
14626 # AIX sometimes has problems with the GCC collect2 program. For some
14627 # reason, if we set the COLLECT_NAMES environment variable, the problems
14628 # vanish in a puff of smoke.
14629 if test "X
${COLLECT_NAMES+set}" != Xset; then
14631 export COLLECT_NAMES
14636 # Global variables:
14638 can_build_shared=yes
14640 # All known linkers require a `.a' archive for static linking (except MSVC,
14641 # which needs '.lib').
14644 with_gnu_ld="$lt_cv_prog_gnu_ld"
14647 old_CFLAGS="$CFLAGS"
14649 # Set sane defaults for various variables
14650 test -z "$CC" && CC=cc
14651 test -z "$LTCC" && LTCC=$CC
14652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14653 test -z "$LD" && LD=ld
14654 test -z "$ac_objext" && ac_objext=o
14656 for cc_temp in $compiler""; do
14658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14664 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14667 # Only perform the check for file, if the check method requires it
14668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14669 case $deplibs_check_method in
14671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14673 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14674 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14675 $as_echo_n "(cached
) " >&6
14679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14682 lt_save_MAGIC_CMD="$MAGIC_CMD"
14683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14684 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14685 for ac_dir in $ac_dummy; do
14687 test -z "$ac_dir" && ac_dir=.
14688 if test -f $ac_dir/${ac_tool_prefix}file; then
14689 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14690 if test -n "$file_magic_test_file"; then
14691 case $deplibs_check_method in
14693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14696 $EGREP "$file_magic_regex" > /dev/null; then
14701 *** Warning: the command libtool uses to detect shared libraries,
14702 *** $file_magic_cmd, produces output that libtool cannot recognize.
14703 *** The result is that libtool may fail to recognize shared libraries
14704 *** as such. This will affect the creation of libtool libraries that
14705 *** depend on shared libraries, but programs linked with such libtool
14706 *** libraries will work regardless of this problem. Nevertheless, you
14707 *** may want to report the problem to your system manager and/or to
14708 *** bug-libtool@gnu.org
14718 MAGIC_CMD="$lt_save_MAGIC_CMD"
14723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14724 if test -n "$MAGIC_CMD"; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14726 $as_echo "$MAGIC_CMD" >&6; }
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14729 $as_echo "no
" >&6; }
14736 if test -z "$lt_cv_path_MAGIC_CMD"; then
14737 if test -n "$ac_tool_prefix"; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14739 $as_echo_n "checking
for file...
" >&6; }
14740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14741 $as_echo_n "(cached
) " >&6
14745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14748 lt_save_MAGIC_CMD="$MAGIC_CMD"
14749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14750 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14751 for ac_dir in $ac_dummy; do
14753 test -z "$ac_dir" && ac_dir=.
14754 if test -f $ac_dir/file; then
14755 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14756 if test -n "$file_magic_test_file"; then
14757 case $deplibs_check_method in
14759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14762 $EGREP "$file_magic_regex" > /dev/null; then
14767 *** Warning: the command libtool uses to detect shared libraries,
14768 *** $file_magic_cmd, produces output that libtool cannot recognize.
14769 *** The result is that libtool may fail to recognize shared libraries
14770 *** as such. This will affect the creation of libtool libraries that
14771 *** depend on shared libraries, but programs linked with such libtool
14772 *** libraries will work regardless of this problem. Nevertheless, you
14773 *** may want to report the problem to your system manager and/or to
14774 *** bug-libtool@gnu.org
14784 MAGIC_CMD="$lt_save_MAGIC_CMD"
14789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14790 if test -n "$MAGIC_CMD"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14792 $as_echo "$MAGIC_CMD" >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14795 $as_echo "no
" >&6; }
14808 # Use C for the default configuration in the libtool script
14812 ac_cpp='$CPP $CPPFLAGS'
14813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818 # Source file extension for C test sources.
14821 # Object file extension for compiled C test sources.
14825 # Code to be used in simple compile tests
14826 lt_simple_compile_test_code="int some_variable
= 0;"
14828 # Code to be used in simple link tests
14829 lt_simple_link_test_code='int main(){return(0);}'
14837 # If no C compiler was specified, use CC.
14840 # If no C compiler flags were specified, use CFLAGS.
14841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14843 # Allow CC to be a program name with arguments.
14846 # Save the default compiler, since it gets overwritten when the other
14847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14848 compiler_DEFAULT=$CC
14850 # save warnings/boilerplate of simple test code
14851 ac_outfile=conftest.$ac_objext
14852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14854 _lt_compiler_boilerplate=`cat conftest.err`
14857 ac_outfile=conftest.$ac_objext
14858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14860 _lt_linker_boilerplate=`cat conftest.err`
14865 ## There is no encapsulation within the following macros, do not change
14866 ## the running order or otherwise move them around unless you know exactly
14867 ## what you are doing...
14868 if test -n "$compiler"; then
14870 lt_prog_compiler_no_builtin_flag=
14872 if test "$GCC" = yes; then
14873 case $cc_basename in
14875 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14877 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14881 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14882 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14883 $as_echo_n "(cached
) " >&6
14885 lt_cv_prog_compiler_rtti_exceptions=no
14886 ac_outfile=conftest.$ac_objext
14887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888 lt_compiler_flag="-fno-rtti -fno-exceptions"
14889 # Insert the option either (1) after the last *FLAGS variable, or
14890 # (2) before a word containing "conftest.
", or (3) at the end.
14891 # Note that $ac_compile itself does not contain backslashes and begins
14892 # with a dollar sign (not a hyphen), so the echo should work correctly.
14893 # The option is referenced via a variable to avoid confusing sed.
14894 lt_compile=`echo "$ac_compile" | $SED \
14895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897 -e 's:$: $lt_compiler_flag:'`
14898 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14899 (eval "$lt_compile" 2>conftest.err)
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14903 if (exit $ac_status) && test -s "$ac_outfile"; then
14904 # The compiler can only warn and ignore the option if not recognized
14905 # So say no if there are warnings other than the usual output.
14906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14909 lt_cv_prog_compiler_rtti_exceptions=yes
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14916 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14919 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14931 lt_prog_compiler_wl=
14932 lt_prog_compiler_pic=
14933 lt_prog_compiler_static=
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14936 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14938 if test "$GCC" = yes; then
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_static='-static'
14944 # All AIX code is PIC.
14945 if test "$host_cpu" = ia64; then
14946 # AIX 5 now supports IA64 processor
14947 lt_prog_compiler_static='-Bstatic'
14949 lt_prog_compiler_pic='-fPIC'
14955 # see comment about AmigaOS4 .so support
14956 lt_prog_compiler_pic='-fPIC'
14959 # FIXME: we need at least 68020 code to build shared libraries, but
14960 # adding the `-m68020' flag to GCC prevents building anything better,
14962 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14967 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14968 # PIC is the default for these OSes.
14971 mingw* | cygwin* | pw32* | os2* | cegcc*)
14972 # This hack is so that the source file can tell whether it is being
14973 # built for inclusion in a dll (and should export symbols for example).
14974 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14975 # (--disable-auto-import) libraries
14976 lt_prog_compiler_pic='-DDLL_EXPORT'
14979 darwin* | rhapsody*)
14980 # PIC is the default on this platform
14981 # Common symbols not allowed in MH_DYLIB files
14982 lt_prog_compiler_pic='-fno-common'
14986 # PIC is the default for Haiku.
14987 # The "-static" flag exists, but is broken.
14988 lt_prog_compiler_static=
14992 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14993 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14994 # sets the default TLS model and affects inlining.
15000 lt_prog_compiler_pic='-fPIC'
15006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15007 # Instead, we relocate shared libraries at runtime.
15011 # Just because we use GCC doesn't mean we suddenly get shared libraries
15012 # on systems that don't support them.
15013 lt_prog_compiler_can_build_shared=no
15018 # QNX uses GNU C++, but need to define -shared option too, otherwise
15019 # it will coredump.
15020 lt_prog_compiler_pic='-fPIC -shared'
15024 if test -d /usr/nec; then
15025 lt_prog_compiler_pic=-Kconform_pic
15030 lt_prog_compiler_pic='-fPIC'
15034 case $cc_basename in
15035 nvcc*) # Cuda Compiler Driver 2.2
15036 lt_prog_compiler_wl='-Xlinker '
15037 lt_prog_compiler_pic='-Xcompiler -fPIC'
15041 # PORTME Check for flag to pass linker flags through the system compiler.
15044 lt_prog_compiler_wl='-Wl,'
15045 if test "$host_cpu" = ia64; then
15046 # AIX 5 now supports IA64 processor
15047 lt_prog_compiler_static='-Bstatic'
15049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15053 mingw* | cygwin* | pw32* | os2* | cegcc*)
15054 # This hack is so that the source file can tell whether it is being
15055 # built for inclusion in a dll (and should export symbols for example).
15056 lt_prog_compiler_pic='-DDLL_EXPORT'
15059 hpux9* | hpux10* | hpux11*)
15060 lt_prog_compiler_wl='-Wl,'
15061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15062 # not for PA HP-UX.
15068 lt_prog_compiler_pic='+Z'
15071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15072 lt_prog_compiler_static='${wl}-a ${wl}archive'
15075 irix5* | irix6* | nonstopux*)
15076 lt_prog_compiler_wl='-Wl,'
15077 # PIC (with -KPIC) is the default.
15078 lt_prog_compiler_static='-non_shared'
15081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15082 case $cc_basename in
15083 # old Intel for x86_64 which still supported -KPIC.
15085 lt_prog_compiler_wl='-Wl,'
15086 lt_prog_compiler_pic='-KPIC'
15087 lt_prog_compiler_static='-static'
15089 # icc used to be incompatible with GCC.
15090 # ICC 10 doesn't accept -KPIC any more.
15092 lt_prog_compiler_wl='-Wl,'
15093 lt_prog_compiler_pic='-fPIC'
15094 lt_prog_compiler_static='-static'
15096 # Lahey Fortran 8.1.
15098 lt_prog_compiler_wl='-Wl,'
15099 lt_prog_compiler_pic='--shared'
15100 lt_prog_compiler_static='--static'
15102 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15103 # Portland Group compilers (*not* the Pentium gcc compiler,
15104 # which looks to be a dead project)
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='-fpic'
15107 lt_prog_compiler_static='-Bstatic'
15110 lt_prog_compiler_wl='-Wl,'
15111 # All Alpha code is PIC.
15112 lt_prog_compiler_static='-non_shared'
15114 xl* | bgxl* | bgf* | mpixl*)
15115 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15116 lt_prog_compiler_wl='-Wl,'
15117 lt_prog_compiler_pic='-qpic'
15118 lt_prog_compiler_static='-qstaticlink'
15121 case `$CC -V 2>&1 | sed 5q` in
15122 *Sun\ F* | *Sun*Fortran*)
15123 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15124 lt_prog_compiler_pic='-KPIC'
15125 lt_prog_compiler_static='-Bstatic'
15126 lt_prog_compiler_wl=''
15130 lt_prog_compiler_pic='-KPIC'
15131 lt_prog_compiler_static='-Bstatic'
15132 lt_prog_compiler_wl='-Wl,'
15140 lt_prog_compiler_pic='-KPIC'
15141 lt_prog_compiler_static='-Bstatic'
15145 # QNX uses GNU C++, but need to define -shared option too, otherwise
15146 # it will coredump.
15147 lt_prog_compiler_pic='-fPIC -shared'
15150 osf3* | osf4* | osf5*)
15151 lt_prog_compiler_wl='-Wl,'
15152 # All OSF/1 code is PIC.
15153 lt_prog_compiler_static='-non_shared'
15157 lt_prog_compiler_static='-non_shared'
15161 lt_prog_compiler_pic='-KPIC'
15162 lt_prog_compiler_static='-Bstatic'
15163 case $cc_basename in
15164 f77* | f90* | f95*)
15165 lt_prog_compiler_wl='-Qoption ld ';;
15167 lt_prog_compiler_wl='-Wl,';;
15172 lt_prog_compiler_wl='-Qoption ld '
15173 lt_prog_compiler_pic='-PIC'
15174 lt_prog_compiler_static='-Bstatic'
15177 sysv4 | sysv4.2uw2* | sysv4.3*)
15178 lt_prog_compiler_wl='-Wl,'
15179 lt_prog_compiler_pic='-KPIC'
15180 lt_prog_compiler_static='-Bstatic'
15184 if test -d /usr/nec ;then
15185 lt_prog_compiler_pic='-Kconform_pic'
15186 lt_prog_compiler_static='-Bstatic'
15190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15191 lt_prog_compiler_wl='-Wl,'
15192 lt_prog_compiler_pic='-KPIC'
15193 lt_prog_compiler_static='-Bstatic'
15197 lt_prog_compiler_wl='-Wl,'
15198 lt_prog_compiler_can_build_shared=no
15202 lt_prog_compiler_pic='-pic'
15203 lt_prog_compiler_static='-Bstatic'
15207 lt_prog_compiler_can_build_shared=no
15213 # For platforms which do not support PIC, -DPIC is meaningless:
15215 lt_prog_compiler_pic=
15218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15222 $as_echo "$lt_prog_compiler_pic" >&6; }
15230 # Check to make sure the PIC flag actually works.
15232 if test -n "$lt_prog_compiler_pic"; then
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15234 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15235 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15236 $as_echo_n "(cached
) " >&6
15238 lt_cv_prog_compiler_pic_works=no
15239 ac_outfile=conftest.$ac_objext
15240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15242 # Insert the option either (1) after the last *FLAGS variable, or
15243 # (2) before a word containing "conftest.
", or (3) at the end.
15244 # Note that $ac_compile itself does not contain backslashes and begins
15245 # with a dollar sign (not a hyphen), so the echo should work correctly.
15246 # The option is referenced via a variable to avoid confusing sed.
15247 lt_compile=`echo "$ac_compile" | $SED \
15248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15250 -e 's:$: $lt_compiler_flag:'`
15251 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15252 (eval "$lt_compile" 2>conftest.err)
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15256 if (exit $ac_status) && test -s "$ac_outfile"; then
15257 # The compiler can only warn and ignore the option if not recognized
15258 # So say no if there are warnings other than the usual output.
15259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15262 lt_cv_prog_compiler_pic_works=yes
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15272 case $lt_prog_compiler_pic in
15274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15277 lt_prog_compiler_pic=
15278 lt_prog_compiler_can_build_shared=no
15289 # Check to make sure the static flag actually works.
15291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15293 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15294 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15295 $as_echo_n "(cached
) " >&6
15297 lt_cv_prog_compiler_static_works=no
15298 save_LDFLAGS="$LDFLAGS"
15299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15302 # The linker can only warn and ignore the option if not recognized
15303 # So say no if there are warnings
15304 if test -s conftest.err; then
15305 # Append any errors to the config.log.
15306 cat conftest.err 1>&5
15307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15309 if diff conftest.exp conftest.er2 >/dev/null; then
15310 lt_cv_prog_compiler_static_works=yes
15313 lt_cv_prog_compiler_static_works=yes
15317 LDFLAGS="$save_LDFLAGS"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15321 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15323 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15326 lt_prog_compiler_static=
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15336 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15338 $as_echo_n "(cached
) " >&6
15340 lt_cv_prog_compiler_c_o=no
15341 $RM -r conftest 2>/dev/null
15345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15347 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15348 # Insert the option either (1) after the last *FLAGS variable, or
15349 # (2) before a word containing "conftest.
", or (3) at the end.
15350 # Note that $ac_compile itself does not contain backslashes and begins
15351 # with a dollar sign (not a hyphen), so the echo should work correctly.
15352 lt_compile=`echo "$ac_compile" | $SED \
15353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15355 -e 's:$: $lt_compiler_flag:'`
15356 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15357 (eval "$lt_compile" 2>out/conftest.err)
15359 cat out/conftest.err >&5
15360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15363 # The compiler can only warn and ignore the option if not recognized
15364 # So say no if there are warnings
15365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15368 lt_cv_prog_compiler_c_o=yes
15373 # SGI C++ compiler will create directory out/ii_files/ for
15374 # template instantiation
15375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15376 $RM out/* && rmdir out
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15391 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15393 $as_echo_n "(cached
) " >&6
15395 lt_cv_prog_compiler_c_o=no
15396 $RM -r conftest 2>/dev/null
15400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15402 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15403 # Insert the option either (1) after the last *FLAGS variable, or
15404 # (2) before a word containing "conftest.
", or (3) at the end.
15405 # Note that $ac_compile itself does not contain backslashes and begins
15406 # with a dollar sign (not a hyphen), so the echo should work correctly.
15407 lt_compile=`echo "$ac_compile" | $SED \
15408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15410 -e 's:$: $lt_compiler_flag:'`
15411 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15412 (eval "$lt_compile" 2>out/conftest.err)
15414 cat out/conftest.err >&5
15415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15418 # The compiler can only warn and ignore the option if not recognized
15419 # So say no if there are warnings
15420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15423 lt_cv_prog_compiler_c_o=yes
15428 # SGI C++ compiler will create directory out/ii_files/ for
15429 # template instantiation
15430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15431 $RM out/* && rmdir out
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15443 hard_links="nottested
"
15444 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15445 # do not overwrite the value of need_locks provided by the user
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15447 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15452 ln conftest.a conftest.b 2>&5 || hard_links=no
15453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15455 $as_echo "$hard_links" >&6; }
15456 if test "$hard_links" = no; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15458 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15471 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15474 allow_undefined_flag=
15475 always_export_symbols=no
15477 archive_expsym_cmds=
15478 compiler_needs_object=no
15479 enable_shared_with_static_runtimes=no
15480 export_dynamic_flag_spec=
15481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15482 hardcode_automatic=no
15484 hardcode_direct_absolute=no
15485 hardcode_libdir_flag_spec=
15486 hardcode_libdir_flag_spec_ld=
15487 hardcode_libdir_separator=
15488 hardcode_minus_L=no
15489 hardcode_shlibpath_var=unsupported
15491 link_all_deplibs=unknown
15493 module_expsym_cmds=
15494 old_archive_from_new_cmds=
15495 old_archive_from_expsyms_cmds=
15496 thread_safe_flag_spec=
15497 whole_archive_flag_spec=
15498 # include_expsyms should be a list of space-separated symbols to be *always*
15499 # included in the symbol list
15501 # exclude_expsyms can be an extended regexp of symbols to exclude
15502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15504 # as well as any symbol that contains `d'.
15505 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15507 # platforms (ab)use it in PIC code, but their linkers get confused if
15508 # the symbol is explicitly referenced. Since portable code cannot
15509 # rely on this symbol name, it's probably fine to never include it in
15510 # preloaded symbol tables.
15511 # Exclude shared library initialization/finalization symbols.
15512 extract_expsyms_cmds=
15515 cygwin* | mingw* | pw32* | cegcc*)
15516 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15517 # When not using gcc, we currently assume that we are using
15518 # Microsoft Visual C++.
15519 if test "$GCC" != yes; then
15524 # we just hope/assume this is gcc and not c89 (= MSVC++)
15534 # On some targets, GNU ld is compatible enough with the native linker
15535 # that we're better off using the native interface for both.
15536 lt_use_gnu_ld_interface=no
15537 if test "$with_gnu_ld" = yes; then
15540 # The AIX port of GNU ld has always aspired to compatibility
15541 # with the native linker. However, as the warning in the GNU ld
15542 # block says, versions before 2.19.5* couldn't really create working
15543 # shared libraries, regardless of the interface used.
15544 case `$LD -v 2>&1` in
15545 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15546 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15547 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15549 lt_use_gnu_ld_interface=yes
15554 lt_use_gnu_ld_interface=yes
15559 if test "$lt_use_gnu_ld_interface" = yes; then
15560 # If archive_cmds runs LD, not CC, wlarc should be empty
15563 # Set some defaults for GNU ld with shared library support. These
15564 # are reset later if shared libraries are not supported. Putting them
15565 # here allows them to be overridden if necessary.
15566 runpath_var=LD_RUN_PATH
15567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568 export_dynamic_flag_spec='${wl}--export-dynamic'
15569 # ancient GNU ld didn't support --whole-archive et. al.
15570 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15571 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15573 whole_archive_flag_spec=
15575 supports_anon_versioning=no
15576 case `$LD -v 2>&1` in
15577 *GNU\ gold*) supports_anon_versioning=yes ;;
15578 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15581 *\ 2.11.*) ;; # other 2.11 versions
15582 *) supports_anon_versioning=yes ;;
15585 # See if GNU ld supports shared libraries.
15588 # On AIX/PPC, the GNU linker is very broken
15589 if test "$host_cpu" != ia64; then
15593 *** Warning: the GNU linker, at least up to release 2.19, is reported
15594 *** to be unable to reliably create shared libraries on AIX.
15595 *** Therefore, libtool is disabling shared libraries support. If you
15596 *** really care for shared libraries, you may want to install binutils
15597 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15598 *** You will then need to restart the configuration process.
15607 # see comment about AmigaOS4 .so support
15608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15609 archive_expsym_cmds=''
15612 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)'
15613 hardcode_libdir_flag_spec
='-L$libdir'
15614 hardcode_minus_L
=yes
15620 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15621 allow_undefined_flag
=unsupported
15622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15623 # support --undefined. This deserves some investigation. FIXME
15624 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15630 cygwin
* | mingw
* | pw32
* | cegcc
*)
15631 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15632 # as there is no search path for DLLs.
15633 hardcode_libdir_flag_spec
='-L$libdir'
15634 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15635 allow_undefined_flag
=unsupported
15636 always_export_symbols
=no
15637 enable_shared_with_static_runtimes
=yes
15638 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15640 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15641 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15642 # If the export-symbols file already is a .def file (1st line
15643 # is EXPORTS), use it as is; otherwise, prepend...
15644 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15645 cp $export_symbols $output_objdir/$soname.def;
15647 echo EXPORTS > $output_objdir/$soname.def;
15648 cat $export_symbols >> $output_objdir/$soname.def;
15650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15657 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658 link_all_deplibs
=yes
15663 hardcode_shlibpath_var
=no
15664 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15665 export_dynamic_flag_spec
='${wl}-E'
15666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15667 # Instead, shared libraries are loaded at an image base (0x10000000 by
15668 # default) and relocated if they conflict, which is a slow very memory
15669 # consuming and fragmenting process. To avoid this, we pick a random,
15670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15672 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15673 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'
15676 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15678 if test "$host_os" = linux-dietlibc
; then
15679 case $cc_basename in
15680 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15683 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15684 && test "$tmp_diet" = no
15687 tmp_sharedflag
='-shared'
15688 case $cc_basename,$host_cpu in
15689 pgcc
*) # Portland Group C compiler
15690 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'
15691 tmp_addflag
=' $pic_flag'
15693 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15694 # Portland Group f77 and f90 compilers
15695 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'
15696 tmp_addflag
=' $pic_flag -Mnomain' ;;
15697 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15698 tmp_addflag
=' -i_dynamic' ;;
15699 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15700 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15701 ifc
* | ifort
*) # Intel Fortran compiler
15702 tmp_addflag
=' -nofor_main' ;;
15703 lf95
*) # Lahey Fortran 8.1
15704 whole_archive_flag_spec
=
15705 tmp_sharedflag
='--shared' ;;
15706 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15707 tmp_sharedflag
='-qmkshrobj'
15709 nvcc
*) # Cuda Compiler Driver 2.2
15710 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'
15711 compiler_needs_object
=yes
15714 case `$CC -V 2>&1 | sed 5q` in
15715 *Sun\ C
*) # Sun C 5.9
15716 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'
15717 compiler_needs_object
=yes
15718 tmp_sharedflag
='-G' ;;
15719 *Sun\ F
*) # Sun Fortran 8.3
15720 tmp_sharedflag
='-G' ;;
15722 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15724 if test "x$supports_anon_versioning" = xyes
; then
15725 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15727 echo "local: *; };" >> $output_objdir/$libname.ver~
15728 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15731 case $cc_basename in
15732 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15733 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15734 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15735 hardcode_libdir_flag_spec
=
15736 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15737 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15738 if test "x$supports_anon_versioning" = xyes
; then
15739 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15741 echo "local: *; };" >> $output_objdir/$libname.ver~
15742 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15752 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15753 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15756 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15762 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15766 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15767 *** create shared libraries on Solaris systems. Therefore, libtool
15768 *** is disabling shared libraries support. We urge you to upgrade GNU
15769 *** binutils to release 2.9.1 or newer. Another option is to modify
15770 *** your PATH or compiler configuration so that the native linker is
15771 *** used, and then restart.
15774 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15775 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15776 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15782 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15783 case `$LD -v 2>&1` in
15784 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15788 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15789 *** reliably create shared libraries on SCO systems. Therefore, libtool
15790 *** is disabling shared libraries support. We urge you to upgrade GNU
15791 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15798 # For security reasons, it is highly recommended that you always
15799 # use absolute paths for naming shared libraries, and exclude the
15800 # DT_RUNPATH tag from executables and libraries. But doing so
15801 # requires that you compile everything twice, which is a pain.
15802 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15803 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15804 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15814 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_direct
=yes
15817 hardcode_shlibpath_var
=no
15821 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15822 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15830 if test "$ld_shlibs" = no
; then
15832 hardcode_libdir_flag_spec
=
15833 export_dynamic_flag_spec
=
15834 whole_archive_flag_spec
=
15837 # PORTME fill in a description of your system's linker (not GNU ld)
15840 allow_undefined_flag
=unsupported
15841 always_export_symbols
=yes
15842 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'
15843 # Note: this linker hardcodes the directories in LIBPATH if there
15844 # are no directories specified by -L.
15845 hardcode_minus_L
=yes
15846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15847 # Neither direct hardcoding nor static linking is supported with a
15849 hardcode_direct
=unsupported
15854 if test "$host_cpu" = ia64
; then
15855 # On IA64, the linker does run time linking by default, so we don't
15856 # have to do anything special.
15857 aix_use_runtimelinking
=no
15858 exp_sym_flag
='-Bexport'
15861 # If we're using GNU nm, then we don't want the "-C" option.
15862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15863 # Also, AIX nm treats weak defined symbols like other global
15864 # defined symbols, whereas GNU nm marks them as "W".
15865 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15866 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'
15868 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'
15870 aix_use_runtimelinking
=no
15872 # Test if we are trying to use run time linking or normal
15873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15874 # need to do runtime linking.
15875 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15876 for ld_flag
in $LDFLAGS; do
15877 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15878 aix_use_runtimelinking
=yes
15885 exp_sym_flag
='-bexport'
15886 no_entry_flag
='-bnoentry'
15889 # When large executables or shared objects are built, AIX ld can
15890 # have problems creating the table of contents. If linking a library
15891 # or program results in "error TOC overflow" add -mminimal-toc to
15892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15896 hardcode_direct
=yes
15897 hardcode_direct_absolute
=yes
15898 hardcode_libdir_separator
=':'
15899 link_all_deplibs
=yes
15900 file_list_spec
='${wl}-f,'
15902 if test "$GCC" = yes; then
15903 case $host_os in aix4.
[012]|aix4.
[012].
*)
15904 # We only want to do this on AIX 4.2 and lower, the check
15905 # below for broken collect2 doesn't work under 4.3+
15906 collect2name
=`${CC} -print-prog-name=collect2`
15907 if test -f "$collect2name" &&
15908 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15910 # We have reworked collect2
15913 # We have old collect2
15914 hardcode_direct
=unsupported
15915 # It fails to find uninstalled libraries when the uninstalled
15916 # path is not listed in the libpath. Setting hardcode_minus_L
15917 # to unsupported forces relinking
15918 hardcode_minus_L
=yes
15919 hardcode_libdir_flag_spec
='-L$libdir'
15920 hardcode_libdir_separator
=
15924 shared_flag
='-shared'
15925 if test "$aix_use_runtimelinking" = yes; then
15926 shared_flag
="$shared_flag "'${wl}-G'
15930 if test "$host_cpu" = ia64
; then
15931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15932 # chokes on -Wl,-G. The following line is correct:
15935 if test "$aix_use_runtimelinking" = yes; then
15936 shared_flag
='${wl}-G'
15938 shared_flag
='${wl}-bM:SRE'
15943 export_dynamic_flag_spec
='${wl}-bexpall'
15944 # It seems that -bexpall does not export symbols beginning with
15945 # underscore (_), so it is better to generate a list of symbols to export.
15946 always_export_symbols
=yes
15947 if test "$aix_use_runtimelinking" = yes; then
15948 # Warning - without using the other runtime loading flags (-brtl),
15949 # -berok will link without error, but may produce a broken library.
15950 allow_undefined_flag
='-berok'
15951 # Determine the default libpath from the value encoded in an
15952 # empty executable.
15953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15964 if ac_fn_c_try_link
"$LINENO"; then :
15966 lt_aix_libpath_sed
='
15967 /Import File Strings/,/^$/ {
15973 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15974 # Check for a 64-bit object if we didn't find anything.
15975 if test -z "$aix_libpath"; then
15976 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15979 rm -f core conftest.err conftest.
$ac_objext \
15980 conftest
$ac_exeext conftest.
$ac_ext
15981 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15983 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15984 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"
15986 if test "$host_cpu" = ia64
; then
15987 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15988 allow_undefined_flag
="-z nodefs"
15989 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"
15991 # Determine the default libpath from the value encoded in an
15992 # empty executable.
15993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
16004 if ac_fn_c_try_link
"$LINENO"; then :
16006 lt_aix_libpath_sed
='
16007 /Import File Strings/,/^$/ {
16013 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16014 # Check for a 64-bit object if we didn't find anything.
16015 if test -z "$aix_libpath"; then
16016 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16019 rm -f core conftest.err conftest.
$ac_objext \
16020 conftest
$ac_exeext conftest.
$ac_ext
16021 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16023 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16024 # Warning - without using the other run time loading flags,
16025 # -berok will link without error, but may produce a broken library.
16026 no_undefined_flag
=' ${wl}-bernotok'
16027 allow_undefined_flag
=' ${wl}-berok'
16028 if test "$with_gnu_ld" = yes; then
16029 # We only use this code for GNU lds that support --whole-archive.
16030 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16032 # Exported symbols can be pulled into shared objects from archives
16033 whole_archive_flag_spec
='$convenience'
16035 archive_cmds_need_lc
=yes
16036 # This is similar to how AIX traditionally builds its shared libraries.
16037 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'
16045 # see comment about AmigaOS4 .so support
16046 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16047 archive_expsym_cmds
=''
16050 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)'
16051 hardcode_libdir_flag_spec
='-L$libdir'
16052 hardcode_minus_L
=yes
16058 export_dynamic_flag_spec
=-rdynamic
16061 cygwin
* | mingw
* | pw32
* | cegcc
*)
16062 # When not using gcc, we currently assume that we are using
16063 # Microsoft Visual C++.
16064 # hardcode_libdir_flag_spec is actually meaningless, as there is
16065 # no search path for DLLs.
16066 hardcode_libdir_flag_spec
=' '
16067 allow_undefined_flag
=unsupported
16068 # Tell ltmain to make .lib files, not .a files.
16070 # Tell ltmain to make .dll files, not .so files.
16072 # FIXME: Setting linknames here is a bad hack.
16073 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16074 # The linker will automatically build a .lib file if we build a DLL.
16075 old_archive_from_new_cmds
='true'
16076 # FIXME: Should let the user specify the lib program.
16077 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16078 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16079 enable_shared_with_static_runtimes
=yes
16082 darwin
* | rhapsody
*)
16085 archive_cmds_need_lc
=no
16087 hardcode_automatic
=yes
16088 hardcode_shlibpath_var
=unsupported
16089 if test "$lt_cv_ld_force_load" = "yes"; then
16090 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\"`'
16092 whole_archive_flag_spec
=''
16094 link_all_deplibs
=yes
16095 allow_undefined_flag
="$_lt_dar_allow_undefined"
16096 case $cc_basename in
16097 ifort
*) _lt_dar_can_shared
=yes ;;
16098 *) _lt_dar_can_shared
=$GCC ;;
16100 if test "$_lt_dar_can_shared" = "yes"; then
16101 output_verbose_link_cmd
=func_echo_all
16102 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16103 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16104 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}"
16105 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}"
16114 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_libdir_flag_spec
='-L$libdir'
16116 hardcode_shlibpath_var
=no
16119 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16120 # support. Future versions do this automatically, but an explicit c++rt0.o
16121 # does not break anything, and helps significantly (at the cost of a little
16124 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16125 hardcode_libdir_flag_spec
='-R$libdir'
16126 hardcode_direct
=yes
16127 hardcode_shlibpath_var
=no
16130 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16132 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16133 hardcode_direct
=yes
16134 hardcode_minus_L
=yes
16135 hardcode_shlibpath_var
=no
16138 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16139 freebsd
* | dragonfly
*)
16140 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16141 hardcode_libdir_flag_spec
='-R$libdir'
16142 hardcode_direct
=yes
16143 hardcode_shlibpath_var
=no
16147 if test "$GCC" = yes; then
16148 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'
16150 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'
16152 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16153 hardcode_libdir_separator
=:
16154 hardcode_direct
=yes
16156 # hardcode_minus_L: Not really in the search PATH,
16157 # but as the default location of the library.
16158 hardcode_minus_L
=yes
16159 export_dynamic_flag_spec
='${wl}-E'
16163 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16164 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16168 if test "$with_gnu_ld" = no
; then
16169 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16170 hardcode_libdir_flag_spec_ld
='+b $libdir'
16171 hardcode_libdir_separator
=:
16172 hardcode_direct
=yes
16173 hardcode_direct_absolute
=yes
16174 export_dynamic_flag_spec
='${wl}-E'
16175 # hardcode_minus_L: Not really in the search PATH,
16176 # but as the default location of the library.
16177 hardcode_minus_L
=yes
16182 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16185 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16191 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16204 # Older versions of the 11.00 compiler do not understand -b yet
16205 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16207 $as_echo_n "checking if $CC understands -b... " >&6; }
16208 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16209 $as_echo_n "(cached) " >&6
16211 lt_cv_prog_compiler__b
=no
16212 save_LDFLAGS
="$LDFLAGS"
16213 LDFLAGS
="$LDFLAGS -b"
16214 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16215 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16216 # The linker can only warn and ignore the option if not recognized
16217 # So say no if there are warnings
16218 if test -s conftest.err
; then
16219 # Append any errors to the config.log.
16220 cat conftest.err
1>&5
16221 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16222 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16223 if diff conftest.exp conftest.er2
>/dev
/null
; then
16224 lt_cv_prog_compiler__b
=yes
16227 lt_cv_prog_compiler__b
=yes
16231 LDFLAGS
="$save_LDFLAGS"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16235 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16237 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16238 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16240 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16246 if test "$with_gnu_ld" = no
; then
16247 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_separator
=:
16253 hardcode_shlibpath_var
=no
16256 hardcode_direct
=yes
16257 hardcode_direct_absolute
=yes
16258 export_dynamic_flag_spec
='${wl}-E'
16260 # hardcode_minus_L: Not really in the search PATH,
16261 # but as the default location of the library.
16262 hardcode_minus_L
=yes
16268 irix5
* | irix6
* | nonstopux
*)
16269 if test "$GCC" = yes; then
16270 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'
16271 # Try to use the -exported_symbol ld option, if it does not
16272 # work, assume that -exports_file does not work either and
16273 # implicitly export all symbols.
16274 save_LDFLAGS
="$LDFLAGS"
16275 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16280 if ac_fn_c_try_link
"$LINENO"; then :
16281 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'
16284 rm -f core conftest.err conftest.
$ac_objext \
16285 conftest
$ac_exeext conftest.
$ac_ext
16286 LDFLAGS
="$save_LDFLAGS"
16288 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'
16289 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'
16291 archive_cmds_need_lc
='no'
16292 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16293 hardcode_libdir_separator
=:
16295 link_all_deplibs
=yes
16299 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16300 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16302 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16304 hardcode_libdir_flag_spec
='-R$libdir'
16305 hardcode_direct
=yes
16306 hardcode_shlibpath_var
=no
16310 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16311 hardcode_direct
=yes
16312 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16313 hardcode_libdir_separator
=:
16314 hardcode_shlibpath_var
=no
16321 if test -f /usr
/libexec
/ld.so
; then
16322 hardcode_direct
=yes
16323 hardcode_shlibpath_var
=no
16324 hardcode_direct_absolute
=yes
16325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16326 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16327 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16328 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16329 export_dynamic_flag_spec
='${wl}-E'
16332 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16333 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_libdir_flag_spec
='-R$libdir'
16337 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16338 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16348 hardcode_libdir_flag_spec
='-L$libdir'
16349 hardcode_minus_L
=yes
16350 allow_undefined_flag
=unsupported
16351 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'
16352 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16356 if test "$GCC" = yes; then
16357 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16358 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'
16360 allow_undefined_flag
=' -expect_unresolved \*'
16361 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'
16363 archive_cmds_need_lc
='no'
16364 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16365 hardcode_libdir_separator
=:
16368 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16369 if test "$GCC" = yes; then
16370 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16371 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'
16372 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16374 allow_undefined_flag
=' -expect_unresolved \*'
16375 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'
16376 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~
16377 $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'
16379 # Both c and cxx compiler support -rpath directly
16380 hardcode_libdir_flag_spec
='-rpath $libdir'
16382 archive_cmds_need_lc
='no'
16383 hardcode_libdir_separator
=:
16387 no_undefined_flag
=' -z defs'
16388 if test "$GCC" = yes; then
16390 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16391 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16394 case `$CC -V 2>&1` in
16397 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16403 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16404 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16409 hardcode_libdir_flag_spec
='-R$libdir'
16410 hardcode_shlibpath_var
=no
16412 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16414 # The compiler driver will combine and reorder linker options,
16415 # but understands `-z linker_flag'. GCC discards it without `$wl',
16416 # but is careful enough not to reorder.
16417 # Supported since Solaris 2.6 (maybe 2.5.1?)
16418 if test "$GCC" = yes; then
16419 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16421 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16425 link_all_deplibs
=yes
16429 if test "x$host_vendor" = xsequent
; then
16430 # Use $CC to link under sequent, because it throws in some extra .o
16431 # files that make .init and .fini sections work.
16432 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16434 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_libdir_flag_spec
='-L$libdir'
16437 hardcode_direct
=yes
16438 hardcode_minus_L
=yes
16439 hardcode_shlibpath_var
=no
16443 case $host_vendor in
16445 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 hardcode_direct
=yes # is this really true???
16449 ## LD is ld it makes a PLAMLIB
16450 ## CC just makes a GrossModule.
16451 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16452 reload_cmds
='$CC -r -o $output$reload_objs'
16456 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16460 runpath_var
='LD_RUN_PATH'
16461 hardcode_shlibpath_var
=no
16465 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_shlibpath_var
=no
16467 export_dynamic_flag_spec
='-Bexport'
16471 if test -d /usr
/nec
; then
16472 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_shlibpath_var
=no
16474 runpath_var
=LD_RUN_PATH
16475 hardcode_runpath_var
=yes
16480 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16481 no_undefined_flag
='${wl}-z,text'
16482 archive_cmds_need_lc
=no
16483 hardcode_shlibpath_var
=no
16484 runpath_var
='LD_RUN_PATH'
16486 if test "$GCC" = yes; then
16487 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16490 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 sysv5
* | sco3.2v5
* | sco5v6
*)
16496 # Note: We can NOT use -z defs as we might desire, because we do not
16497 # link with -lc, and that would cause any symbols used from libc to
16498 # always be unresolved, which means just about no library would
16499 # ever link correctly. If we're not using GNU ld we use -z text
16500 # though, which does catch some bad symbols but isn't as heavy-handed
16502 no_undefined_flag
='${wl}-z,text'
16503 allow_undefined_flag
='${wl}-z,nodefs'
16504 archive_cmds_need_lc
=no
16505 hardcode_shlibpath_var
=no
16506 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16507 hardcode_libdir_separator
=':'
16508 link_all_deplibs
=yes
16509 export_dynamic_flag_spec
='${wl}-Bexport'
16510 runpath_var
='LD_RUN_PATH'
16512 if test "$GCC" = yes; then
16513 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_libdir_flag_spec
='-L$libdir'
16524 hardcode_shlibpath_var
=no
16532 if test x
$host_vendor = xsni
; then
16534 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16535 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16542 $as_echo "$ld_shlibs" >&6; }
16543 test "$ld_shlibs" = no
&& can_build_shared
=no
16545 with_gnu_ld
=$with_gnu_ld
16562 # Do we need to explicitly link libc?
16564 case "x$archive_cmds_need_lc" in
16566 # Assume -lc should be added
16567 archive_cmds_need_lc
=yes
16569 if test "$enable_shared" = yes && test "$GCC" = yes; then
16570 case $archive_cmds in
16572 # FIXME: we may have to deal with multi-command sequences.
16575 # Test whether the compiler implicitly links with -lc since on some
16576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16577 # to ld, don't add -lc before -lgcc.
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16580 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16581 $as_echo_n "(cached) " >&6
16584 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16587 (eval $ac_compile) 2>&5
16589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16590 test $ac_status = 0; } 2>conftest.err
; then
16593 libobjs
=conftest.
$ac_objext
16595 wl
=$lt_prog_compiler_wl
16596 pic_flag
=$lt_prog_compiler_pic
16602 lt_save_allow_undefined_flag
=$allow_undefined_flag
16603 allow_undefined_flag
=
16604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16605 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16608 test $ac_status = 0; }
16610 lt_cv_archive_cmds_need_lc
=no
16612 lt_cv_archive_cmds_need_lc
=yes
16614 allow_undefined_flag
=$lt_save_allow_undefined_flag
16616 cat conftest.err
1>&5
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16623 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16789 if test "$GCC" = yes; then
16791 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16792 *) lt_awk_arg
="/^libraries:/" ;;
16795 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16796 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16798 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16799 case $lt_search_path_spec in
16801 # if the path contains ";" then we assume it to be the separator
16802 # otherwise default to the standard path separator (i.e. ":") - it is
16803 # assumed that no part of a normal pathname contains ";" but that should
16804 # okay in the real world where ";" in dirpaths is itself problematic.
16805 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16808 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16811 # Ok, now we have the path, separated by spaces, we can step through it
16812 # and add multilib dir if necessary.
16813 lt_tmp_lt_search_path_spec
=
16814 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16815 for lt_sys_path
in $lt_search_path_spec; do
16816 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16817 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16819 test -d "$lt_sys_path" && \
16820 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16823 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16824 BEGIN {RS=" "; FS="/|\n";} {
16827 for (lt_i = NF; lt_i > 0; lt_i--) {
16828 if ($lt_i != "" && $lt_i != ".") {
16829 if ($lt_i == "..") {
16832 if (lt_count == 0) {
16833 lt_foo="/" $lt_i lt_foo;
16840 if (lt_foo != "") { lt_freq[lt_foo]++; }
16841 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16843 # AWK program above erroneously prepends '/' to C:/dos/paths
16846 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16847 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16849 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16851 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16853 library_names_spec
=
16854 libname_spec
='lib$name'
16858 postuninstall_cmds
=
16862 shlibpath_overrides_runpath
=unknown
16864 dynamic_linker
="$host_os ld.so"
16865 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16866 need_lib_prefix
=unknown
16867 hardcode_into_libs
=no
16869 # when you set need_version to no, make sure it does not cause -set_version
16870 # flags to be left without arguments
16871 need_version
=unknown
16876 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16877 shlibpath_var
=LIBPATH
16879 # AIX 3 has no versioning support, so we append a major version to the name.
16880 soname_spec
='${libname}${release}${shared_ext}$major'
16887 hardcode_into_libs
=yes
16888 if test "$host_cpu" = ia64
; then
16889 # AIX 5 supports IA64
16890 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16891 shlibpath_var
=LD_LIBRARY_PATH
16893 # With GCC up to 2.95.x, collect2 would create an import file
16894 # for dependence libraries. The import file would start with
16895 # the line `#! .'. This would cause the generated library to
16896 # depend on `.', always an invalid library. This was fixed in
16897 # development snapshots of GCC prior to 3.0.
16899 aix4 | aix4.
[01] | aix4.
[01].
*)
16900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16902 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16905 can_build_shared
=no
16909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16910 # soname into executable. Probably we can add versioning support to
16911 # collect2, so additional links can be useful in future.
16912 if test "$aix_use_runtimelinking" = yes; then
16913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16914 # instead of lib<name>.a to let people know that these are not
16915 # typical AIX shared libraries.
16916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 # We preserve .a as extension for shared libraries through AIX4.2
16919 # and later when we are not doing run time linking.
16920 library_names_spec
='${libname}${release}.a $libname.a'
16921 soname_spec
='${libname}${release}${shared_ext}$major'
16923 shlibpath_var
=LIBPATH
16930 # Since July 2007 AmigaOS4 officially supports .so libraries.
16931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935 library_names_spec
='$libname.ixlibrary $libname.a'
16936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16937 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'
16943 library_names_spec
='${libname}${shared_ext}'
16944 dynamic_linker
="$host_os ld.so"
16945 shlibpath_var
=LIBRARY_PATH
16951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952 soname_spec
='${libname}${release}${shared_ext}$major'
16953 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16954 shlibpath_var
=LD_LIBRARY_PATH
16955 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16956 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16957 # the default ld.so.conf also contains /usr/contrib/lib and
16958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16959 # libtool to hard-code these into programs
16962 cygwin
* | mingw
* | pw32
* | cegcc
*)
16963 version_type
=windows
16968 case $GCC,$host_os in
16969 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16970 library_names_spec
='$libname.dll.a'
16971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16972 postinstall_cmds
='base_file=`basename \${file}`~
16973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16974 dldir=$destdir/`dirname \$dlpath`~
16975 test -d \$dldir || mkdir -p \$dldir~
16976 $install_prog $dir/$dlname \$dldir/$dlname~
16977 chmod a+x \$dldir/$dlname~
16978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16981 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16982 dlpath=$dir/\$dldll~
16984 shlibpath_overrides_runpath
=yes
16988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16989 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16991 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16994 # MinGW DLLs use traditional 'lib' prefix
16995 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998 # pw32 DLLs use 'pw' prefix rather than 'lib'
16999 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17008 dynamic_linker
='Win32 ld.exe'
17009 # FIXME: first we should search . and the directory the executable is in
17013 darwin
* | rhapsody
*)
17014 dynamic_linker
="$host_os dyld"
17015 version_type
=darwin
17018 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17019 soname_spec
='${libname}${release}${major}$shared_ext'
17020 shlibpath_overrides_runpath
=yes
17021 shlibpath_var
=DYLD_LIBRARY_PATH
17022 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17024 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17025 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17033 soname_spec
='${libname}${release}${shared_ext}$major'
17034 shlibpath_var
=LD_LIBRARY_PATH
17037 freebsd
* | dragonfly
*)
17038 # DragonFly does not have aout. When/if they implement a new
17039 # versioning mechanism, adjust this.
17040 if test -x /usr
/bin
/objformat
; then
17041 objformat
=`/usr/bin/objformat`
17044 freebsd
[23].
*) objformat
=aout
;;
17045 *) objformat
=elf
;;
17048 version_type
=freebsd-
$objformat
17049 case $version_type in
17051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17056 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17060 shlibpath_var
=LD_LIBRARY_PATH
17063 shlibpath_overrides_runpath
=yes
17065 freebsd3.
[01]* | freebsdelf3.
[01]*)
17066 shlibpath_overrides_runpath
=yes
17067 hardcode_into_libs
=yes
17069 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17070 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17071 shlibpath_overrides_runpath
=no
17072 hardcode_into_libs
=yes
17074 *) # from 4.6 on, and DragonFly
17075 shlibpath_overrides_runpath
=yes
17076 hardcode_into_libs
=yes
17085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17086 soname_spec
='${libname}${release}${shared_ext}$major'
17087 shlibpath_var
=LD_LIBRARY_PATH
17088 hardcode_into_libs
=yes
17095 dynamic_linker
="$host_os runtime_loader"
17096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17097 soname_spec
='${libname}${release}${shared_ext}$major'
17098 shlibpath_var
=LIBRARY_PATH
17099 shlibpath_overrides_runpath
=yes
17100 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17101 hardcode_into_libs
=yes
17104 hpux9
* | hpux10
* | hpux11
*)
17105 # Give a soname corresponding to the major version so that dld.sl refuses to
17106 # link against other versions.
17113 hardcode_into_libs
=yes
17114 dynamic_linker
="$host_os dld.so"
17115 shlibpath_var
=LD_LIBRARY_PATH
17116 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec
='${libname}${release}${shared_ext}$major'
17119 if test "X$HPUX_IA64_MODE" = X32
; then
17120 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17122 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17124 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17128 hardcode_into_libs
=yes
17129 dynamic_linker
="$host_os dld.sl"
17130 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17131 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec
='${libname}${release}${shared_ext}$major'
17134 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17135 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17139 dynamic_linker
="$host_os dld.sl"
17140 shlibpath_var
=SHLIB_PATH
17141 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec
='${libname}${release}${shared_ext}$major'
17146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17147 postinstall_cmds
='chmod 555 $lib'
17148 # or fails outright, so override atomically:
17149 install_override_mode
=555
17156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17157 soname_spec
='${libname}${release}${shared_ext}$major'
17158 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17159 shlibpath_var
=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath
=no
17161 hardcode_into_libs
=yes
17164 irix5
* | irix6
* | nonstopux
*)
17166 nonstopux
*) version_type
=nonstopux
;;
17168 if test "$lt_cv_prog_gnu_ld" = yes; then
17176 soname_spec
='${libname}${release}${shared_ext}$major'
17177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17179 irix5
* | nonstopux
*)
17180 libsuff
= shlibsuff
=
17183 case $LD in # libtool.m4 will add one of these switches to LD
17184 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17185 libsuff
= shlibsuff
= libmagic
=32-bit;;
17186 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17187 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17188 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17189 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17190 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17194 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17195 shlibpath_overrides_runpath
=no
17196 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17197 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17198 hardcode_into_libs
=yes
17201 # No shared lib support for Linux oldld, aout, or coff.
17202 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17206 # This must be Linux ELF.
17207 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec
='${libname}${release}${shared_ext}$major'
17213 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17214 shlibpath_var
=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath
=no
17217 # Some binutils ld are patched to set DT_RUNPATH
17218 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17219 $as_echo_n "(cached) " >&6
17221 lt_cv_shlibpath_overrides_runpath
=no
17222 save_LDFLAGS
=$LDFLAGS
17223 save_libdir
=$libdir
17224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17237 if ac_fn_c_try_link
"$LINENO"; then :
17238 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17239 lt_cv_shlibpath_overrides_runpath
=yes
17242 rm -f core conftest.err conftest.
$ac_objext \
17243 conftest
$ac_exeext conftest.
$ac_ext
17244 LDFLAGS
=$save_LDFLAGS
17245 libdir
=$save_libdir
17249 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17251 # This implies no fast_install, which is unacceptable.
17252 # Some rework will be needed to allow for fast_install
17253 # before this can be enabled.
17254 hardcode_into_libs
=yes
17256 # Append ld.so.conf contents to the search path
17257 if test -f /etc
/ld.so.conf
; then
17258 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' ' '`
17259 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17262 # We used to test for /lib/ld.so.1 and disable shared libraries on
17263 # powerpc, because MkLinux only supported shared libraries with the
17264 # GNU dynamic linker. Since this was broken with cross compilers,
17265 # most powerpc-linux boxes support dynamic linking these days and
17266 # people can always --disable-shared, the test was removed, and we
17267 # assume the GNU/Linux dynamic linker is in use.
17268 dynamic_linker
='GNU/Linux ld.so'
17275 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17277 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17278 dynamic_linker
='NetBSD (a.out) ld.so'
17280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17281 soname_spec
='${libname}${release}${shared_ext}$major'
17282 dynamic_linker
='NetBSD ld.elf_so'
17284 shlibpath_var
=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath
=yes
17286 hardcode_into_libs
=yes
17291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 shlibpath_var
=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath
=yes
17300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec
='${libname}${release}${shared_ext}$major'
17302 shlibpath_var
=LD_LIBRARY_PATH
17303 shlibpath_overrides_runpath
=no
17304 hardcode_into_libs
=yes
17305 dynamic_linker
='ldqnx.so'
17310 sys_lib_dlsearch_path_spec
="/usr/lib"
17312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17314 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17315 *) need_version
=no
;;
17317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17318 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17319 shlibpath_var
=LD_LIBRARY_PATH
17320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17322 openbsd2.
[89] | openbsd2.
[89].
*)
17323 shlibpath_overrides_runpath
=no
17326 shlibpath_overrides_runpath
=yes
17330 shlibpath_overrides_runpath
=yes
17335 libname_spec
='$name'
17338 library_names_spec
='$libname${shared_ext} $libname.a'
17339 dynamic_linker
='OS/2 ld.exe'
17340 shlibpath_var
=LIBPATH
17343 osf3
* | osf4
* | osf5
*)
17347 soname_spec
='${libname}${release}${shared_ext}$major'
17348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17349 shlibpath_var
=LD_LIBRARY_PATH
17350 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17351 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec
='${libname}${release}${shared_ext}$major'
17364 shlibpath_var
=LD_LIBRARY_PATH
17365 shlibpath_overrides_runpath
=yes
17366 hardcode_into_libs
=yes
17367 # ldd complains unless libraries are executable
17368 postinstall_cmds
='chmod +x $lib'
17373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17375 shlibpath_var
=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath
=yes
17377 if test "$with_gnu_ld" = yes; then
17385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec
='${libname}${release}${shared_ext}$major'
17387 shlibpath_var
=LD_LIBRARY_PATH
17388 case $host_vendor in
17390 shlibpath_overrides_runpath
=no
17392 runpath_var
=LD_RUN_PATH
17400 shlibpath_overrides_runpath
=no
17401 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17407 if test -d /usr
/nec
;then
17409 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17410 soname_spec
='$libname${shared_ext}.$major'
17411 shlibpath_var
=LD_LIBRARY_PATH
17415 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17416 version_type
=freebsd-elf
17419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17420 soname_spec
='${libname}${release}${shared_ext}$major'
17421 shlibpath_var
=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath
=yes
17423 hardcode_into_libs
=yes
17424 if test "$with_gnu_ld" = yes; then
17425 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17427 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17430 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17434 sys_lib_dlsearch_path_spec
='/usr/lib'
17438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 shlibpath_var
=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath
=no
17445 hardcode_into_libs
=yes
17450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 soname_spec
='${libname}${release}${shared_ext}$major'
17452 shlibpath_var
=LD_LIBRARY_PATH
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17460 $as_echo "$dynamic_linker" >&6; }
17461 test "$dynamic_linker" = no
&& can_build_shared
=no
17463 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17464 if test "$GCC" = yes; then
17465 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17469 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17472 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17569 if test -n "$hardcode_libdir_flag_spec" ||
17570 test -n "$runpath_var" ||
17571 test "X$hardcode_automatic" = "Xyes" ; then
17573 # We can hardcode non-existent directories.
17574 if test "$hardcode_direct" != no
&&
17575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17576 # have to relink, otherwise we might link with an installed library
17577 # when we should be linking with a yet-to-be-installed one
17578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17579 test "$hardcode_minus_L" != no
; then
17580 # Linking always hardcodes the temporary library directory.
17581 hardcode_action
=relink
17583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17584 hardcode_action
=immediate
17587 # We cannot hardcode anything, or else we can only hardcode existing
17589 hardcode_action
=unsupported
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17592 $as_echo "$hardcode_action" >&6; }
17594 if test "$hardcode_action" = relink ||
17595 test "$inherit_rpath" = yes; then
17596 # Fast installation is not supported
17597 enable_fast_install
=no
17598 elif test "$shlibpath_overrides_runpath" = yes ||
17599 test "$enable_shared" = no
; then
17600 # Fast installation is not necessary
17601 enable_fast_install
=needless
17609 if test "x$enable_dlopen" != xyes
; then
17610 enable_dlopen
=unknown
17611 enable_dlopen_self
=unknown
17612 enable_dlopen_self_static
=unknown
17619 lt_cv_dlopen
="load_add_on"
17621 lt_cv_dlopen_self
=yes
17624 mingw
* | pw32
* | cegcc
*)
17625 lt_cv_dlopen
="LoadLibrary"
17630 lt_cv_dlopen
="dlopen"
17635 # if libdl is installed we need to link against it
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17639 $as_echo_n "(cached) " >&6
17641 ac_check_lib_save_LIBS
=$LIBS
17643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17646 /* Override any GCC internal prototype to avoid an error.
17647 Use char because int might match the return type of a GCC
17648 builtin and then its argument prototype would still apply. */
17661 if ac_fn_c_try_link
"$LINENO"; then :
17662 ac_cv_lib_dl_dlopen
=yes
17664 ac_cv_lib_dl_dlopen
=no
17666 rm -f core conftest.err conftest.
$ac_objext \
17667 conftest
$ac_exeext conftest.
$ac_ext
17668 LIBS
=$ac_check_lib_save_LIBS
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17672 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17673 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17676 lt_cv_dlopen
="dyld"
17678 lt_cv_dlopen_self
=yes
17685 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17686 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17687 lt_cv_dlopen
="shl_load"
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17691 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17692 $as_echo_n "(cached) " >&6
17694 ac_check_lib_save_LIBS
=$LIBS
17696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17709 return shl_load ();
17714 if ac_fn_c_try_link
"$LINENO"; then :
17715 ac_cv_lib_dld_shl_load
=yes
17717 ac_cv_lib_dld_shl_load
=no
17719 rm -f core conftest.err conftest.
$ac_objext \
17720 conftest
$ac_exeext conftest.
$ac_ext
17721 LIBS
=$ac_check_lib_save_LIBS
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17725 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17726 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17728 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17729 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17730 lt_cv_dlopen
="dlopen"
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17735 $as_echo_n "(cached) " >&6
17737 ac_check_lib_save_LIBS
=$LIBS
17739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17742 /* Override any GCC internal prototype to avoid an error.
17743 Use char because int might match the return type of a GCC
17744 builtin and then its argument prototype would still apply. */
17757 if ac_fn_c_try_link
"$LINENO"; then :
17758 ac_cv_lib_dl_dlopen
=yes
17760 ac_cv_lib_dl_dlopen
=no
17762 rm -f core conftest.err conftest.
$ac_objext \
17763 conftest
$ac_exeext conftest.
$ac_ext
17764 LIBS
=$ac_check_lib_save_LIBS
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17768 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17769 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17773 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
17776 ac_check_lib_save_LIBS
=$LIBS
17777 LIBS
="-lsvld $LIBS"
17778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h. */
17781 /* Override any GCC internal prototype to avoid an error.
17782 Use char because int might match the return type of a GCC
17783 builtin and then its argument prototype would still apply. */
17796 if ac_fn_c_try_link
"$LINENO"; then :
17797 ac_cv_lib_svld_dlopen
=yes
17799 ac_cv_lib_svld_dlopen
=no
17801 rm -f core conftest.err conftest.
$ac_objext \
17802 conftest
$ac_exeext conftest.
$ac_ext
17803 LIBS
=$ac_check_lib_save_LIBS
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17807 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17808 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17812 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17813 $as_echo_n "(cached) " >&6
17815 ac_check_lib_save_LIBS
=$LIBS
17817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17830 return dld_link ();
17835 if ac_fn_c_try_link
"$LINENO"; then :
17836 ac_cv_lib_dld_dld_link
=yes
17838 ac_cv_lib_dld_dld_link
=no
17840 rm -f core conftest.err conftest.
$ac_objext \
17841 conftest
$ac_exeext conftest.
$ac_ext
17842 LIBS
=$ac_check_lib_save_LIBS
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17846 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17847 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17868 if test "x$lt_cv_dlopen" != xno
; then
17874 case $lt_cv_dlopen in
17876 save_CPPFLAGS
="$CPPFLAGS"
17877 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17879 save_LDFLAGS
="$LDFLAGS"
17880 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17883 LIBS
="$lt_cv_dlopen_libs $LIBS"
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17887 if test "${lt_cv_dlopen_self+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17890 if test "$cross_compiling" = yes; then :
17891 lt_cv_dlopen_self
=cross
17893 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17894 lt_status
=$lt_dlunknown
17895 cat > conftest.
$ac_ext <<_LT_EOF
17896 #line 17896 "configure"
17897 #include "confdefs.h"
17906 # define LT_DLGLOBAL RTLD_GLOBAL
17909 # define LT_DLGLOBAL DL_GLOBAL
17911 # define LT_DLGLOBAL 0
17915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17916 find out it does not work in some platform. */
17917 #ifndef LT_DLLAZY_OR_NOW
17919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17922 # define LT_DLLAZY_OR_NOW DL_LAZY
17925 # define LT_DLLAZY_OR_NOW RTLD_NOW
17928 # define LT_DLLAZY_OR_NOW DL_NOW
17930 # define LT_DLLAZY_OR_NOW 0
17937 /* When -fvisbility=hidden is used, assume the code has been annotated
17938 correspondingly for the symbols needed. */
17939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17940 void fnord () __attribute__((visibility("default")));
17943 void fnord () { int i=42; }
17946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17947 int status = $lt_dlunknown;
17951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17955 else puts (dlerror ());
17957 /* dlclose (self); */
17965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17966 (eval $ac_link) 2>&5
17968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17970 (.
/conftest
; exit; ) >&5 2>/dev
/null
17972 case x
$lt_status in
17973 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17974 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17975 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17978 # compilation failed
17979 lt_cv_dlopen_self
=no
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17987 $as_echo "$lt_cv_dlopen_self" >&6; }
17989 if test "x$lt_cv_dlopen_self" = xyes
; then
17990 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17993 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17994 $as_echo_n "(cached) " >&6
17996 if test "$cross_compiling" = yes; then :
17997 lt_cv_dlopen_self_static
=cross
17999 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18000 lt_status
=$lt_dlunknown
18001 cat > conftest.
$ac_ext <<_LT_EOF
18002 #line 18002 "configure"
18003 #include "confdefs.h"
18012 # define LT_DLGLOBAL RTLD_GLOBAL
18015 # define LT_DLGLOBAL DL_GLOBAL
18017 # define LT_DLGLOBAL 0
18021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18022 find out it does not work in some platform. */
18023 #ifndef LT_DLLAZY_OR_NOW
18025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18028 # define LT_DLLAZY_OR_NOW DL_LAZY
18031 # define LT_DLLAZY_OR_NOW RTLD_NOW
18034 # define LT_DLLAZY_OR_NOW DL_NOW
18036 # define LT_DLLAZY_OR_NOW 0
18043 /* When -fvisbility=hidden is used, assume the code has been annotated
18044 correspondingly for the symbols needed. */
18045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18046 void fnord () __attribute__((visibility("default")));
18049 void fnord () { int i=42; }
18052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18053 int status = $lt_dlunknown;
18057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18061 else puts (dlerror ());
18063 /* dlclose (self); */
18071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18072 (eval $ac_link) 2>&5
18074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18075 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18076 (.
/conftest
; exit; ) >&5 2>/dev
/null
18078 case x
$lt_status in
18079 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18080 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18081 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18084 # compilation failed
18085 lt_cv_dlopen_self_static
=no
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18096 CPPFLAGS
="$save_CPPFLAGS"
18097 LDFLAGS
="$save_LDFLAGS"
18102 case $lt_cv_dlopen_self in
18103 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18104 *) enable_dlopen_self
=unknown
;;
18107 case $lt_cv_dlopen_self_static in
18108 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18109 *) enable_dlopen_self_static
=unknown
;;
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18133 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18134 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18135 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18139 # FIXME - insert some real tests, host_os isn't really good enough
18142 if test -n "$STRIP" ; then
18143 striplib
="$STRIP -x"
18144 old_striplib
="$STRIP -S"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18146 $as_echo "yes" >&6; }
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18149 $as_echo "no" >&6; }
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154 $as_echo "no" >&6; }
18170 # Report which library types will actually be built
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18174 $as_echo "$can_build_shared" >&6; }
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18177 $as_echo_n "checking whether to build shared libraries... " >&6; }
18178 test "$can_build_shared" = "no" && enable_shared
=no
18180 # On AIX, shared libraries and static libraries use the same namespace, and
18181 # are all built from PIC.
18184 test "$enable_shared" = yes && enable_static
=no
18185 if test -n "$RANLIB"; then
18186 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18187 postinstall_cmds
='$RANLIB $lib'
18192 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18193 test "$enable_shared" = yes && enable_static
=no
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18198 $as_echo "$enable_shared" >&6; }
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18201 $as_echo_n "checking whether to build static libraries... " >&6; }
18202 # Make sure either enable_shared or enable_static is yes.
18203 test "$enable_shared" = yes || enable_static
=yes
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18205 $as_echo "$enable_static" >&6; }
18212 ac_cpp
='$CPP $CPPFLAGS'
18213 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18219 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18220 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18221 (test "X$CXX" != "Xg++"))) ; then
18223 ac_cpp
='$CXXCPP $CPPFLAGS'
18224 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18225 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18226 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18228 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18229 if test -z "$CXXCPP"; then
18230 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18233 # Double quotes because CXXCPP needs to be expanded
18234 for CXXCPP
in "$CXX -E" "/lib/cpp"
18236 ac_preproc_ok
=false
18237 for ac_cxx_preproc_warn_flag
in '' yes
18239 # Use a header file that comes with gcc, so configuring glibc
18240 # with a fresh cross-compiler works.
18241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18242 # <limits.h> exists even on freestanding compilers.
18243 # On the NeXT, cc -E runs the code through the compiler's parser,
18244 # not just through cpp. "Syntax error" is here to catch this case.
18245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18248 # include <limits.h>
18250 # include <assert.h>
18254 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18257 # Broken: fails on valid input.
18260 rm -f conftest.err conftest.
$ac_ext
18262 # OK, works on sane cases. Now check whether nonexistent headers
18263 # can be detected and how.
18264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 #include <ac_nonexistent.h>
18268 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18269 # Broken: success on invalid input.
18272 # Passes both tests.
18276 rm -f conftest.err conftest.
$ac_ext
18279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18280 rm -f conftest.err conftest.
$ac_ext
18281 if $ac_preproc_ok; then :
18286 ac_cv_prog_CXXCPP
=$CXXCPP
18289 CXXCPP
=$ac_cv_prog_CXXCPP
18291 ac_cv_prog_CXXCPP
=$CXXCPP
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18294 $as_echo "$CXXCPP" >&6; }
18295 ac_preproc_ok
=false
18296 for ac_cxx_preproc_warn_flag
in '' yes
18298 # Use a header file that comes with gcc, so configuring glibc
18299 # with a fresh cross-compiler works.
18300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 # <limits.h> exists even on freestanding compilers.
18302 # On the NeXT, cc -E runs the code through the compiler's parser,
18303 # not just through cpp. "Syntax error" is here to catch this case.
18304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18307 # include <limits.h>
18309 # include <assert.h>
18313 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18316 # Broken: fails on valid input.
18319 rm -f conftest.err conftest.
$ac_ext
18321 # OK, works on sane cases. Now check whether nonexistent headers
18322 # can be detected and how.
18323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 #include <ac_nonexistent.h>
18327 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18328 # Broken: success on invalid input.
18331 # Passes both tests.
18335 rm -f conftest.err conftest.
$ac_ext
18338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18339 rm -f conftest.err conftest.
$ac_ext
18340 if $ac_preproc_ok; then :
18343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18345 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18346 See \`config.log' for more details." "$LINENO" 5; }
18350 ac_cpp
='$CPP $CPPFLAGS'
18351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18356 _lt_caught_CXX_error
=yes
18360 ac_cpp
='$CXXCPP $CPPFLAGS'
18361 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18362 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18363 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18365 archive_cmds_need_lc_CXX
=no
18366 allow_undefined_flag_CXX
=
18367 always_export_symbols_CXX
=no
18368 archive_expsym_cmds_CXX
=
18369 compiler_needs_object_CXX
=no
18370 export_dynamic_flag_spec_CXX
=
18371 hardcode_direct_CXX
=no
18372 hardcode_direct_absolute_CXX
=no
18373 hardcode_libdir_flag_spec_CXX
=
18374 hardcode_libdir_flag_spec_ld_CXX
=
18375 hardcode_libdir_separator_CXX
=
18376 hardcode_minus_L_CXX
=no
18377 hardcode_shlibpath_var_CXX
=unsupported
18378 hardcode_automatic_CXX
=no
18379 inherit_rpath_CXX
=no
18381 module_expsym_cmds_CXX
=
18382 link_all_deplibs_CXX
=unknown
18383 old_archive_cmds_CXX
=$old_archive_cmds
18384 reload_flag_CXX
=$reload_flag
18385 reload_cmds_CXX
=$reload_cmds
18386 no_undefined_flag_CXX
=
18387 whole_archive_flag_spec_CXX
=
18388 enable_shared_with_static_runtimes_CXX
=no
18390 # Source file extension for C++ test sources.
18393 # Object file extension for compiled C++ test sources.
18397 # No sense in running all these tests if we already determined that
18398 # the CXX compiler isn't working. Some variables (like enable_shared)
18399 # are currently assumed to apply to all compilers on this platform,
18400 # and will be corrupted by setting them based on a non-working compiler.
18401 if test "$_lt_caught_CXX_error" != yes; then
18402 # Code to be used in simple compile tests
18403 lt_simple_compile_test_code
="int some_variable = 0;"
18405 # Code to be used in simple link tests
18406 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18415 # If no C compiler was specified, use CC.
18418 # If no C compiler flags were specified, use CFLAGS.
18419 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18421 # Allow CC to be a program name with arguments.
18425 # save warnings/boilerplate of simple test code
18426 ac_outfile
=conftest.
$ac_objext
18427 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18428 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18429 _lt_compiler_boilerplate
=`cat conftest.err`
18432 ac_outfile
=conftest.
$ac_objext
18433 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18434 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18435 _lt_linker_boilerplate
=`cat conftest.err`
18439 # Allow CC to be a program name with arguments.
18444 lt_save_with_gnu_ld
=$with_gnu_ld
18445 lt_save_path_LD
=$lt_cv_path_LD
18446 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18447 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18449 $as_unset lt_cv_prog_gnu_ld
18451 if test -n "${lt_cv_path_LDCXX+set}"; then
18452 lt_cv_path_LD
=$lt_cv_path_LDCXX
18454 $as_unset lt_cv_path_LD
18456 test -z "${LDCXX+set}" || LD
=$LDCXX
18460 for cc_temp
in $compiler""; do
18462 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18463 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18468 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18471 if test -n "$compiler"; then
18472 # We don't want -fno-exception when compiling C++ code, so set the
18473 # no_builtin_flag separately
18474 if test "$GXX" = yes; then
18475 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18477 lt_prog_compiler_no_builtin_flag_CXX
=
18480 if test "$GXX" = yes; then
18481 # Set up default GNU C++ configuration
18485 # Check whether --with-gnu-ld was given.
18486 if test "${with_gnu_ld+set}" = set; then :
18487 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18493 if test "$GCC" = yes; then
18494 # Check if gcc -print-prog-name=ld gives a path.
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18496 $as_echo_n "checking for ld used by $CC... " >&6; }
18499 # gcc leaves a trailing carriage return which upsets mingw
18500 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18502 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18505 # Accept absolute paths.
18507 re_direlt
='/[^/][^/]*/\.\./'
18508 # Canonicalize the pathname of ld
18509 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18510 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18511 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18513 test -z "$LD" && LD
="$ac_prog"
18516 # If it fails, then pretend we aren't using GCC.
18520 # If it is relative, then search for the first ld in PATH.
18521 with_gnu_ld
=unknown
18524 elif test "$with_gnu_ld" = yes; then
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18526 $as_echo_n "checking for GNU ld... " >&6; }
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18529 $as_echo_n "checking for non-GNU ld... " >&6; }
18531 if test "${lt_cv_path_LD+set}" = set; then :
18532 $as_echo_n "(cached) " >&6
18534 if test -z "$LD"; then
18535 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18536 for ac_dir
in $PATH; do
18538 test -z "$ac_dir" && ac_dir
=.
18539 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18540 lt_cv_path_LD
="$ac_dir/$ac_prog"
18541 # Check to see if the program is GNU ld. I'd rather use --version,
18542 # but apparently some variants of GNU ld only accept -v.
18543 # Break only if it was the GNU/non-GNU ld that we prefer.
18544 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18545 *GNU
* |
*'with BFD'*)
18546 test "$with_gnu_ld" != no
&& break
18549 test "$with_gnu_ld" != yes && break
18556 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18560 LD
="$lt_cv_path_LD"
18561 if test -n "$LD"; then
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18563 $as_echo "$LD" >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18566 $as_echo "no" >&6; }
18568 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18572 $as_echo_n "(cached) " >&6
18574 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18575 case `$LD -v 2>&1 </dev/null` in
18576 *GNU
* |
*'with BFD'*)
18577 lt_cv_prog_gnu_ld
=yes
18580 lt_cv_prog_gnu_ld
=no
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18586 with_gnu_ld
=$lt_cv_prog_gnu_ld
18594 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18595 # archiving commands below assume that GNU ld is being used.
18596 if test "$with_gnu_ld" = yes; then
18597 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18598 archive_expsym_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18600 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18601 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18603 # If archive_cmds runs LD, not CC, wlarc should be empty
18604 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18605 # investigate it a little bit more. (MM)
18608 # ancient GNU ld didn't support --whole-archive et. al.
18609 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18610 $GREP 'no-whole-archive' > /dev
/null
; then
18611 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18613 whole_archive_flag_spec_CXX
=
18619 # A generic and very simple default shared library creation
18620 # command for GNU C++ for the case where it uses the native
18621 # linker, instead of GNU ld. If possible, this setting should
18622 # overridden to take advantage of the native linker features on
18623 # the platform it is being used on.
18624 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18627 # Commands to make compiler produce verbose output that lists
18628 # what "hidden" libraries, object files and flags are used when
18629 # linking a shared library.
18630 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18638 # PORTME: fill in a description of your system's C++ link characteristics
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18640 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18644 # FIXME: insert proper C++ library support
18648 if test "$host_cpu" = ia64
; then
18649 # On IA64, the linker does run time linking by default, so we don't
18650 # have to do anything special.
18651 aix_use_runtimelinking
=no
18652 exp_sym_flag
='-Bexport'
18655 aix_use_runtimelinking
=no
18657 # Test if we are trying to use run time linking or normal
18658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18659 # need to do runtime linking.
18660 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18661 for ld_flag
in $LDFLAGS; do
18664 aix_use_runtimelinking
=yes
18672 exp_sym_flag
='-bexport'
18673 no_entry_flag
='-bnoentry'
18676 # When large executables or shared objects are built, AIX ld can
18677 # have problems creating the table of contents. If linking a library
18678 # or program results in "error TOC overflow" add -mminimal-toc to
18679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18682 archive_cmds_CXX
=''
18683 hardcode_direct_CXX
=yes
18684 hardcode_direct_absolute_CXX
=yes
18685 hardcode_libdir_separator_CXX
=':'
18686 link_all_deplibs_CXX
=yes
18687 file_list_spec_CXX
='${wl}-f,'
18689 if test "$GXX" = yes; then
18690 case $host_os in aix4.
[012]|aix4.
[012].
*)
18691 # We only want to do this on AIX 4.2 and lower, the check
18692 # below for broken collect2 doesn't work under 4.3+
18693 collect2name
=`${CC} -print-prog-name=collect2`
18694 if test -f "$collect2name" &&
18695 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18697 # We have reworked collect2
18700 # We have old collect2
18701 hardcode_direct_CXX
=unsupported
18702 # It fails to find uninstalled libraries when the uninstalled
18703 # path is not listed in the libpath. Setting hardcode_minus_L
18704 # to unsupported forces relinking
18705 hardcode_minus_L_CXX
=yes
18706 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18707 hardcode_libdir_separator_CXX
=
18710 shared_flag
='-shared'
18711 if test "$aix_use_runtimelinking" = yes; then
18712 shared_flag
="$shared_flag "'${wl}-G'
18716 if test "$host_cpu" = ia64
; then
18717 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18718 # chokes on -Wl,-G. The following line is correct:
18721 if test "$aix_use_runtimelinking" = yes; then
18722 shared_flag
='${wl}-G'
18724 shared_flag
='${wl}-bM:SRE'
18729 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18730 # It seems that -bexpall does not export symbols beginning with
18731 # underscore (_), so it is better to generate a list of symbols to
18733 always_export_symbols_CXX
=yes
18734 if test "$aix_use_runtimelinking" = yes; then
18735 # Warning - without using the other runtime loading flags (-brtl),
18736 # -berok will link without error, but may produce a broken library.
18737 allow_undefined_flag_CXX
='-berok'
18738 # Determine the default libpath from the value encoded in an empty
18740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18751 if ac_fn_cxx_try_link
"$LINENO"; then :
18753 lt_aix_libpath_sed
='
18754 /Import File Strings/,/^$/ {
18760 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18761 # Check for a 64-bit object if we didn't find anything.
18762 if test -z "$aix_libpath"; then
18763 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18766 rm -f core conftest.err conftest.
$ac_objext \
18767 conftest
$ac_exeext conftest.
$ac_ext
18768 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18770 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18772 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"
18774 if test "$host_cpu" = ia64
; then
18775 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18776 allow_undefined_flag_CXX
="-z nodefs"
18777 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"
18779 # Determine the default libpath from the value encoded in an
18780 # empty executable.
18781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18792 if ac_fn_cxx_try_link
"$LINENO"; then :
18794 lt_aix_libpath_sed
='
18795 /Import File Strings/,/^$/ {
18801 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18802 # Check for a 64-bit object if we didn't find anything.
18803 if test -z "$aix_libpath"; then
18804 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18807 rm -f core conftest.err conftest.
$ac_objext \
18808 conftest
$ac_exeext conftest.
$ac_ext
18809 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18811 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18812 # Warning - without using the other run time loading flags,
18813 # -berok will link without error, but may produce a broken library.
18814 no_undefined_flag_CXX
=' ${wl}-bernotok'
18815 allow_undefined_flag_CXX
=' ${wl}-berok'
18816 if test "$with_gnu_ld" = yes; then
18817 # We only use this code for GNU lds that support --whole-archive.
18818 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18820 # Exported symbols can be pulled into shared objects from archives
18821 whole_archive_flag_spec_CXX
='$convenience'
18823 archive_cmds_need_lc_CXX
=yes
18824 # This is similar to how AIX traditionally builds its shared
18826 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'
18832 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18833 allow_undefined_flag_CXX
=unsupported
18834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835 # support --undefined. This deserves some investigation. FIXME
18836 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18843 case $cc_basename in
18845 # FIXME: insert proper C++ library support
18851 cygwin
* | mingw
* | pw32
* | cegcc
*)
18852 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853 # as there is no search path for DLLs.
18854 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18855 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18856 allow_undefined_flag_CXX
=unsupported
18857 always_export_symbols_CXX
=no
18858 enable_shared_with_static_runtimes_CXX
=yes
18860 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18861 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'
18862 # If the export-symbols file already is a .def file (1st line
18863 # is EXPORTS), use it as is; otherwise, prepend...
18864 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18865 cp $export_symbols $output_objdir/$soname.def;
18867 echo EXPORTS > $output_objdir/$soname.def;
18868 cat $export_symbols >> $output_objdir/$soname.def;
18870 $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'
18875 darwin
* | rhapsody
*)
18878 archive_cmds_need_lc_CXX
=no
18879 hardcode_direct_CXX
=no
18880 hardcode_automatic_CXX
=yes
18881 hardcode_shlibpath_var_CXX
=unsupported
18882 if test "$lt_cv_ld_force_load" = "yes"; then
18883 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\"`'
18885 whole_archive_flag_spec_CXX
=''
18887 link_all_deplibs_CXX
=yes
18888 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18889 case $cc_basename in
18890 ifort
*) _lt_dar_can_shared
=yes ;;
18891 *) _lt_dar_can_shared
=$GCC ;;
18893 if test "$_lt_dar_can_shared" = "yes"; then
18894 output_verbose_link_cmd
=func_echo_all
18895 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}"
18896 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18897 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}"
18898 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}"
18899 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18900 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}"
18901 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}"
18911 case $cc_basename in
18913 # FIXME: insert proper C++ library support
18917 # Green Hills C++ Compiler
18918 # FIXME: insert proper C++ library support
18922 # FIXME: insert proper C++ library support
18929 # C++ shared libraries reported to be fairly broken before
18935 archive_cmds_need_lc_CXX
=no
18938 freebsd
* | dragonfly
*)
18939 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18948 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18949 link_all_deplibs_CXX
=yes
18953 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18954 hardcode_libdir_separator_CXX
=:
18955 export_dynamic_flag_spec_CXX
='${wl}-E'
18956 hardcode_direct_CXX
=yes
18957 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18958 # but as the default
18959 # location of the library.
18961 case $cc_basename in
18963 # FIXME: insert proper C++ library support
18967 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'
18968 # Commands to make compiler produce verbose output that lists
18969 # what "hidden" libraries, object files and flags are used when
18970 # linking a shared library.
18972 # There doesn't appear to be a way to prevent this compiler from
18973 # explicitly linking system object files so we need to strip them
18974 # from the output so that they don't get included in the library
18976 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"'
18979 if test "$GXX" = yes; then
18980 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'
18982 # FIXME: insert proper C++ library support
18990 if test $with_gnu_ld = no
; then
18991 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18992 hardcode_libdir_separator_CXX
=:
18998 export_dynamic_flag_spec_CXX
='${wl}-E'
19004 hardcode_direct_CXX
=no
19005 hardcode_shlibpath_var_CXX
=no
19008 hardcode_direct_CXX
=yes
19009 hardcode_direct_absolute_CXX
=yes
19010 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19011 # but as the default
19012 # location of the library.
19016 case $cc_basename in
19018 # FIXME: insert proper C++ library support
19024 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19027 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19030 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19033 # Commands to make compiler produce verbose output that lists
19034 # what "hidden" libraries, object files and flags are used when
19035 # linking a shared library.
19037 # There doesn't appear to be a way to prevent this compiler from
19038 # explicitly linking system object files so we need to strip them
19039 # from the output so that they don't get included in the library
19041 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"'
19044 if test "$GXX" = yes; then
19045 if test $with_gnu_ld = no
; then
19048 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054 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'
19059 # FIXME: insert proper C++ library support
19067 hardcode_direct_CXX
=no
19068 hardcode_shlibpath_var_CXX
=no
19069 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19070 export_dynamic_flag_spec_CXX
='${wl}-E'
19071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19072 # Instead, shared libraries are loaded at an image base (0x10000000 by
19073 # default) and relocated if they conflict, which is a slow very memory
19074 # consuming and fragmenting process. To avoid this, we pick a random,
19075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19077 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'
19078 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'
19081 case $cc_basename in
19084 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'
19086 # Archives containing C++ object files must be created using
19087 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19088 # necessary to make sure instantiated templates are included
19090 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19093 if test "$GXX" = yes; then
19094 if test "$with_gnu_ld" = no
; then
19095 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'
19097 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'
19100 link_all_deplibs_CXX
=yes
19103 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19104 hardcode_libdir_separator_CXX
=:
19105 inherit_rpath_CXX
=yes
19108 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19109 case $cc_basename in
19111 # Kuck and Associates, Inc. (KAI) C++ Compiler
19113 # KCC will only create a shared library if the output file
19114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19115 # to its proper name (with version) after linking.
19116 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'
19117 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'
19118 # Commands to make compiler produce verbose output that lists
19119 # what "hidden" libraries, object files and flags are used when
19120 # linking a shared library.
19122 # There doesn't appear to be a way to prevent this compiler from
19123 # explicitly linking system object files so we need to strip them
19124 # from the output so that they don't get included in the library
19126 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"'
19128 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19129 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19131 # Archives containing C++ object files must be created using
19132 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19133 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19138 # version 8.0 and above of icpc choke on multiply defined symbols
19139 # if we add $predep_objects and $postdep_objects, however 7.1 and
19140 # earlier do not add the objects themselves.
19141 case `$CC -V 2>&1` in
19143 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19144 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'
19146 *) # Version 8.0 or newer
19149 ia64
*) tmp_idyn
=' -i_dynamic';;
19151 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19152 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'
19155 archive_cmds_need_lc_CXX
=no
19156 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19157 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19158 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19161 # Portland Group C++ compiler
19163 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19164 prelink_cmds_CXX
='tpldir=Template.dir~
19166 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19167 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19168 old_archive_cmds_CXX
='tpldir=Template.dir~
19170 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19171 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19173 archive_cmds_CXX
='tpldir=Template.dir~
19175 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19176 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19177 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19179 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19180 $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'
19182 *) # Version 6 and above use weak symbols
19183 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19184 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'
19188 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19189 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19190 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'
19194 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195 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'
19197 runpath_var
=LD_RUN_PATH
19198 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19199 hardcode_libdir_separator_CXX
=:
19201 # Commands to make compiler produce verbose output that lists
19202 # what "hidden" libraries, object files and flags are used when
19203 # linking a shared library.
19205 # There doesn't appear to be a way to prevent this compiler from
19206 # explicitly linking system object files so we need to strip them
19207 # from the output so that they don't get included in the library
19209 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'
19211 xl
* | mpixl
* | bgxl
*)
19212 # IBM XL 8.0 on PPC, with GNU ld
19213 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19214 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19215 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 if test "x$supports_anon_versioning" = xyes
; then
19217 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19219 echo "local: *; };" >> $output_objdir/$libname.ver~
19220 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19224 case `$CC -V 2>&1 | sed 5q` in
19227 no_undefined_flag_CXX
=' -zdefs'
19228 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 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'
19230 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19231 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'
19232 compiler_needs_object_CXX
=yes
19234 # Not sure whether something based on
19235 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19237 output_verbose_link_cmd
='func_echo_all'
19239 # Archives containing C++ object files must be created using
19240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19241 # necessary to make sure instantiated templates are included
19243 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19251 # FIXME: insert proper C++ library support
19256 # FIXME: insert proper C++ library support
19261 case $cc_basename in
19263 # FIXME: insert proper C++ library support
19267 # FIXME: insert proper C++ library support
19274 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19275 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19277 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19278 hardcode_direct_CXX
=yes
19279 hardcode_shlibpath_var_CXX
=no
19281 # Workaround some broken pre-1.5 toolchains
19282 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19290 # C++ shared libraries are fairly broken
19295 if test -f /usr
/libexec
/ld.so
; then
19296 hardcode_direct_CXX
=yes
19297 hardcode_shlibpath_var_CXX
=no
19298 hardcode_direct_absolute_CXX
=yes
19299 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19300 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19302 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19303 export_dynamic_flag_spec_CXX
='${wl}-E'
19304 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19306 output_verbose_link_cmd
=func_echo_all
19312 osf3
* | osf4
* | osf5
*)
19313 case $cc_basename in
19315 # Kuck and Associates, Inc. (KAI) C++ Compiler
19317 # KCC will only create a shared library if the output file
19318 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19319 # to its proper name (with version) after linking.
19320 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'
19322 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19323 hardcode_libdir_separator_CXX
=:
19325 # Archives containing C++ object files must be created using
19326 # the KAI C++ compiler.
19328 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19329 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19333 # Rational C++ 2.4.1
19334 # FIXME: insert proper C++ library support
19340 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19341 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'
19342 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19345 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19346 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'
19347 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19348 echo "-hidden">> $lib.exp~
19349 $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~
19351 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19355 hardcode_libdir_separator_CXX
=:
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19365 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"'
19368 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19369 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19372 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'
19375 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'
19379 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19380 hardcode_libdir_separator_CXX
=:
19382 # Commands to make compiler produce verbose output that lists
19383 # what "hidden" libraries, object files and flags are used when
19384 # linking a shared library.
19385 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19388 # FIXME: insert proper C++ library support
19396 # FIXME: insert proper C++ library support
19401 case $cc_basename in
19404 # FIXME: insert proper C++ library support
19409 # FIXME: insert proper C++ library support
19413 # FIXME: insert proper C++ library support
19420 case $cc_basename in
19422 # Sun C++ 4.2, 5.x and Centerline C++
19423 archive_cmds_need_lc_CXX
=yes
19424 no_undefined_flag_CXX
=' -zdefs'
19425 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19426 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19427 $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'
19429 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19430 hardcode_shlibpath_var_CXX
=no
19432 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19434 # The compiler driver will combine and reorder linker options,
19435 # but understands `-z linker_flag'.
19436 # Supported since Solaris 2.6 (maybe 2.5.1?)
19437 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19440 link_all_deplibs_CXX
=yes
19442 output_verbose_link_cmd
='func_echo_all'
19444 # Archives containing C++ object files must be created using
19445 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19446 # necessary to make sure instantiated templates are included
19448 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19451 # Green Hills C++ Compiler
19452 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454 # The C++ compiler must be used to create the archive.
19455 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19458 # GNU C++ compiler with Solaris linker
19459 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19460 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19461 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19462 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19463 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19464 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19466 # Commands to make compiler produce verbose output that lists
19467 # what "hidden" libraries, object files and flags are used when
19468 # linking a shared library.
19469 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19471 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19473 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19474 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19475 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19480 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19483 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19485 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19487 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19495 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19496 no_undefined_flag_CXX
='${wl}-z,text'
19497 archive_cmds_need_lc_CXX
=no
19498 hardcode_shlibpath_var_CXX
=no
19499 runpath_var
='LD_RUN_PATH'
19501 case $cc_basename in
19503 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19504 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19507 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19508 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19513 sysv5
* | sco3.2v5
* | sco5v6
*)
19514 # Note: We can NOT use -z defs as we might desire, because we do not
19515 # link with -lc, and that would cause any symbols used from libc to
19516 # always be unresolved, which means just about no library would
19517 # ever link correctly. If we're not using GNU ld we use -z text
19518 # though, which does catch some bad symbols but isn't as heavy-handed
19520 no_undefined_flag_CXX
='${wl}-z,text'
19521 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19522 archive_cmds_need_lc_CXX
=no
19523 hardcode_shlibpath_var_CXX
=no
19524 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19525 hardcode_libdir_separator_CXX
=':'
19526 link_all_deplibs_CXX
=yes
19527 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19528 runpath_var
='LD_RUN_PATH'
19530 case $cc_basename in
19532 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19533 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19535 '"$old_archive_cmds_CXX"
19536 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19537 '"$reload_cmds_CXX"
19540 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19541 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19547 case $cc_basename in
19549 # NonStop-UX NCC 3.20
19550 # FIXME: insert proper C++ library support
19554 # FIXME: insert proper C++ library support
19561 # FIXME: insert proper C++ library support
19566 # FIXME: insert proper C++ library support
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19572 $as_echo "$ld_shlibs_CXX" >&6; }
19573 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19579 ## There is no encapsulation within the following macros, do not change
19580 ## the running order or otherwise move them around unless you know exactly
19581 ## what you are doing...
19582 # Dependencies to place before and after the object being linked:
19583 predep_objects_CXX
=
19584 postdep_objects_CXX
=
19587 compiler_lib_search_path_CXX
=
19589 cat > conftest.
$ac_ext <<_LT_EOF
19593 Foo (void) { a = 0; }
19599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19600 (eval $ac_compile) 2>&5
19602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19603 test $ac_status = 0; }; then
19604 # Parse the compiler output and extract the necessary
19605 # objects, libraries and library flags.
19607 # Sentinel used to keep track of whether or not we are before
19608 # the conftest object file.
19609 pre_test_object_deps_done
=no
19611 for p
in `eval "$output_verbose_link_cmd"`; do
19615 # Some compilers place space between "-{L,R}" and the path.
19616 # Remove the space.
19617 if test $p = "-L" ||
19618 test $p = "-R"; then
19625 if test "$pre_test_object_deps_done" = no
; then
19628 # Internal compiler library paths should come after those
19629 # provided the user. The postdeps already come after the
19630 # user supplied libs so there is no need to process them.
19631 if test -z "$compiler_lib_search_path_CXX"; then
19632 compiler_lib_search_path_CXX
="${prev}${p}"
19634 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19637 # The "-l" case would never come before the object being
19638 # linked, so don't bother handling this case.
19641 if test -z "$postdeps_CXX"; then
19642 postdeps_CXX
="${prev}${p}"
19644 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19650 # This assumes that the test object file only shows up
19651 # once in the compiler output.
19652 if test "$p" = "conftest.$objext"; then
19653 pre_test_object_deps_done
=yes
19657 if test "$pre_test_object_deps_done" = no
; then
19658 if test -z "$predep_objects_CXX"; then
19659 predep_objects_CXX
="$p"
19661 predep_objects_CXX
="$predep_objects_CXX $p"
19664 if test -z "$postdep_objects_CXX"; then
19665 postdep_objects_CXX
="$p"
19667 postdep_objects_CXX
="$postdep_objects_CXX $p"
19672 *) ;; # Ignore the rest.
19680 echo "libtool.m4: error: problem compiling CXX test program"
19683 $RM -f confest.
$objext
19685 # PORTME: override above test on systems where it is broken
19688 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19689 # hack all around it, let's just trust "g++" to DTRT.
19690 predep_objects_CXX
=
19691 postdep_objects_CXX
=
19696 case `$CC -V 2>&1 | sed 5q` in
19700 # The more standards-conforming stlport4 library is
19701 # incompatible with the Cstd library. Avoid specifying
19702 # it if it's in CXXFLAGS. Ignore libCrun as
19703 # -library=stlport4 depends on it.
19704 case " $CXX $CXXFLAGS " in
19705 *" -library=stlport4 "*)
19706 solaris_use_stlport4
=yes
19710 if test "$solaris_use_stlport4" != yes; then
19711 postdeps_CXX
='-library=Cstd -library=Crun'
19718 case $cc_basename in
19720 # The more standards-conforming stlport4 library is
19721 # incompatible with the Cstd library. Avoid specifying
19722 # it if it's in CXXFLAGS. Ignore libCrun as
19723 # -library=stlport4 depends on it.
19724 case " $CXX $CXXFLAGS " in
19725 *" -library=stlport4 "*)
19726 solaris_use_stlport4
=yes
19730 # Adding this requires a known-good setup of shared libraries for
19731 # Sun compiler versions before 5.6, else PIC objects from an old
19732 # archive will be linked into the output, leading to subtle bugs.
19733 if test "$solaris_use_stlport4" != yes; then
19734 postdeps_CXX
='-library=Cstd -library=Crun'
19742 case " $postdeps_CXX " in
19743 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19745 compiler_lib_search_dirs_CXX
=
19746 if test -n "${compiler_lib_search_path_CXX}"; then
19747 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19780 lt_prog_compiler_wl_CXX
=
19781 lt_prog_compiler_pic_CXX
=
19782 lt_prog_compiler_static_CXX
=
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19785 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19787 # C++ specific cases for pic, static, wl, etc.
19788 if test "$GXX" = yes; then
19789 lt_prog_compiler_wl_CXX
='-Wl,'
19790 lt_prog_compiler_static_CXX
='-static'
19794 # All AIX code is PIC.
19795 if test "$host_cpu" = ia64
; then
19796 # AIX 5 now supports IA64 processor
19797 lt_prog_compiler_static_CXX
='-Bstatic'
19799 lt_prog_compiler_pic_CXX
='-fPIC'
19805 # see comment about AmigaOS4 .so support
19806 lt_prog_compiler_pic_CXX
='-fPIC'
19809 # FIXME: we need at least 68020 code to build shared libraries, but
19810 # adding the `-m68020' flag to GCC prevents building anything better,
19812 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19817 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19818 # PIC is the default for these OSes.
19820 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19821 # This hack is so that the source file can tell whether it is being
19822 # built for inclusion in a dll (and should export symbols for example).
19823 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19824 # (--disable-auto-import) libraries
19825 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19827 darwin
* | rhapsody
*)
19828 # PIC is the default on this platform
19829 # Common symbols not allowed in MH_DYLIB files
19830 lt_prog_compiler_pic_CXX
='-fno-common'
19833 # DJGPP does not support shared libraries at all
19834 lt_prog_compiler_pic_CXX
=
19837 # PIC is the default for Haiku.
19838 # The "-static" flag exists, but is broken.
19839 lt_prog_compiler_static_CXX
=
19842 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19843 # Instead, we relocate shared libraries at runtime.
19846 if test -d /usr
/nec
; then
19847 lt_prog_compiler_pic_CXX
=-Kconform_pic
19851 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19852 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19853 # sets the default TLS model and affects inlining.
19858 lt_prog_compiler_pic_CXX
='-fPIC'
19863 # QNX uses GNU C++, but need to define -shared option too, otherwise
19864 # it will coredump.
19865 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19868 lt_prog_compiler_pic_CXX
='-fPIC'
19874 # All AIX code is PIC.
19875 if test "$host_cpu" = ia64
; then
19876 # AIX 5 now supports IA64 processor
19877 lt_prog_compiler_static_CXX
='-Bstatic'
19879 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19883 case $cc_basename in
19885 # Green Hills C++ Compiler
19886 # _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"
19891 case $cc_basename in
19893 lt_prog_compiler_pic_CXX
='-KPIC'
19896 # Green Hills C++ Compiler
19897 lt_prog_compiler_pic_CXX
='-pic'
19903 freebsd
* | dragonfly
*)
19904 # FreeBSD uses GNU C++
19906 hpux9
* | hpux10
* | hpux11
*)
19907 case $cc_basename in
19909 lt_prog_compiler_wl_CXX
='-Wl,'
19910 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19911 if test "$host_cpu" != ia64
; then
19912 lt_prog_compiler_pic_CXX
='+Z'
19916 lt_prog_compiler_wl_CXX
='-Wl,'
19917 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19923 lt_prog_compiler_pic_CXX
='+Z'
19932 # This is c89, which is MS Visual C++ (no shared libs)
19933 # Anyone wants to do a port?
19935 irix5
* | irix6
* | nonstopux
*)
19936 case $cc_basename in
19938 lt_prog_compiler_wl_CXX
='-Wl,'
19939 lt_prog_compiler_static_CXX
='-non_shared'
19940 # CC pic flag -KPIC is the default.
19946 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19947 case $cc_basename in
19950 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19951 lt_prog_compiler_pic_CXX
='-fPIC'
19954 # old Intel C++ for x86_64 which still supported -KPIC.
19955 lt_prog_compiler_wl_CXX
='-Wl,'
19956 lt_prog_compiler_pic_CXX
='-KPIC'
19957 lt_prog_compiler_static_CXX
='-static'
19960 # Intel C++, used to be incompatible with GCC.
19961 # ICC 10 doesn't accept -KPIC any more.
19962 lt_prog_compiler_wl_CXX
='-Wl,'
19963 lt_prog_compiler_pic_CXX
='-fPIC'
19964 lt_prog_compiler_static_CXX
='-static'
19967 # Portland Group C++ compiler
19968 lt_prog_compiler_wl_CXX
='-Wl,'
19969 lt_prog_compiler_pic_CXX
='-fpic'
19970 lt_prog_compiler_static_CXX
='-Bstatic'
19974 # Make sure the PIC flag is empty. It appears that all Alpha
19975 # Linux and Compaq Tru64 Unix objects are PIC.
19976 lt_prog_compiler_pic_CXX
=
19977 lt_prog_compiler_static_CXX
='-non_shared'
19979 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19980 # IBM XL 8.0, 9.0 on PPC and BlueGene
19981 lt_prog_compiler_wl_CXX
='-Wl,'
19982 lt_prog_compiler_pic_CXX
='-qpic'
19983 lt_prog_compiler_static_CXX
='-qstaticlink'
19986 case `$CC -V 2>&1 | sed 5q` in
19989 lt_prog_compiler_pic_CXX
='-KPIC'
19990 lt_prog_compiler_static_CXX
='-Bstatic'
19991 lt_prog_compiler_wl_CXX
='-Qoption ld '
20002 case $cc_basename in
20004 lt_prog_compiler_pic_CXX
='-W c,exportall'
20013 # QNX uses GNU C++, but need to define -shared option too, otherwise
20014 # it will coredump.
20015 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20017 osf3
* | osf4
* | osf5
*)
20018 case $cc_basename in
20020 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20023 # Rational C++ 2.4.1
20024 lt_prog_compiler_pic_CXX
='-pic'
20027 # Digital/Compaq C++
20028 lt_prog_compiler_wl_CXX
='-Wl,'
20029 # Make sure the PIC flag is empty. It appears that all Alpha
20030 # Linux and Compaq Tru64 Unix objects are PIC.
20031 lt_prog_compiler_pic_CXX
=
20032 lt_prog_compiler_static_CXX
='-non_shared'
20041 case $cc_basename in
20043 # Sun C++ 4.2, 5.x and Centerline C++
20044 lt_prog_compiler_pic_CXX
='-KPIC'
20045 lt_prog_compiler_static_CXX
='-Bstatic'
20046 lt_prog_compiler_wl_CXX
='-Qoption ld '
20049 # Green Hills C++ Compiler
20050 lt_prog_compiler_pic_CXX
='-PIC'
20057 case $cc_basename in
20060 lt_prog_compiler_pic_CXX
='-pic'
20061 lt_prog_compiler_static_CXX
='-Bstatic'
20065 lt_prog_compiler_pic_CXX
='-pic'
20071 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20072 case $cc_basename in
20074 lt_prog_compiler_wl_CXX
='-Wl,'
20075 lt_prog_compiler_pic_CXX
='-KPIC'
20076 lt_prog_compiler_static_CXX
='-Bstatic'
20081 case $cc_basename in
20083 # NonStop-UX NCC 3.20
20084 lt_prog_compiler_pic_CXX
='-KPIC'
20093 lt_prog_compiler_can_build_shared_CXX
=no
20099 # For platforms which do not support PIC, -DPIC is meaningless:
20101 lt_prog_compiler_pic_CXX
=
20104 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20108 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20113 # Check to make sure the PIC flag actually works.
20115 if test -n "$lt_prog_compiler_pic_CXX"; then
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20117 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20118 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20119 $as_echo_n "(cached) " >&6
20121 lt_cv_prog_compiler_pic_works_CXX
=no
20122 ac_outfile
=conftest.
$ac_objext
20123 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20124 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20125 # Insert the option either (1) after the last *FLAGS variable, or
20126 # (2) before a word containing "conftest.", or (3) at the end.
20127 # Note that $ac_compile itself does not contain backslashes and begins
20128 # with a dollar sign (not a hyphen), so the echo should work correctly.
20129 # The option is referenced via a variable to avoid confusing sed.
20130 lt_compile
=`echo "$ac_compile" | $SED \
20131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20133 -e 's:$: $lt_compiler_flag:'`
20134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20135 (eval "$lt_compile" 2>conftest.err
)
20137 cat conftest.err
>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 if (exit $ac_status) && test -s "$ac_outfile"; then
20140 # The compiler can only warn and ignore the option if not recognized
20141 # So say no if there are warnings other than the usual output.
20142 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20143 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20144 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20145 lt_cv_prog_compiler_pic_works_CXX
=yes
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20152 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20154 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20155 case $lt_prog_compiler_pic_CXX in
20157 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20160 lt_prog_compiler_pic_CXX
=
20161 lt_prog_compiler_can_build_shared_CXX
=no
20169 # Check to make sure the static flag actually works.
20171 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20173 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20174 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20175 $as_echo_n "(cached) " >&6
20177 lt_cv_prog_compiler_static_works_CXX
=no
20178 save_LDFLAGS
="$LDFLAGS"
20179 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20180 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20181 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20182 # The linker can only warn and ignore the option if not recognized
20183 # So say no if there are warnings
20184 if test -s conftest.err
; then
20185 # Append any errors to the config.log.
20186 cat conftest.err
1>&5
20187 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20188 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20189 if diff conftest.exp conftest.er2
>/dev
/null
; then
20190 lt_cv_prog_compiler_static_works_CXX
=yes
20193 lt_cv_prog_compiler_static_works_CXX
=yes
20197 LDFLAGS
="$save_LDFLAGS"
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20201 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20203 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20206 lt_prog_compiler_static_CXX
=
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20214 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20215 $as_echo_n "(cached) " >&6
20217 lt_cv_prog_compiler_c_o_CXX
=no
20218 $RM -r conftest
2>/dev
/null
20222 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20224 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20225 # Insert the option either (1) after the last *FLAGS variable, or
20226 # (2) before a word containing "conftest.", or (3) at the end.
20227 # Note that $ac_compile itself does not contain backslashes and begins
20228 # with a dollar sign (not a hyphen), so the echo should work correctly.
20229 lt_compile
=`echo "$ac_compile" | $SED \
20230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20232 -e 's:$: $lt_compiler_flag:'`
20233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20234 (eval "$lt_compile" 2>out
/conftest.err
)
20236 cat out
/conftest.err
>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20240 # The compiler can only warn and ignore the option if not recognized
20241 # So say no if there are warnings
20242 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20243 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20244 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20245 lt_cv_prog_compiler_c_o_CXX
=yes
20250 # SGI C++ compiler will create directory out/ii_files/ for
20251 # template instantiation
20252 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20253 $RM out
/* && rmdir out
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20260 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20265 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20266 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20267 $as_echo_n "(cached) " >&6
20269 lt_cv_prog_compiler_c_o_CXX
=no
20270 $RM -r conftest
2>/dev
/null
20274 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20276 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20277 # Insert the option either (1) after the last *FLAGS variable, or
20278 # (2) before a word containing "conftest.", or (3) at the end.
20279 # Note that $ac_compile itself does not contain backslashes and begins
20280 # with a dollar sign (not a hyphen), so the echo should work correctly.
20281 lt_compile
=`echo "$ac_compile" | $SED \
20282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20284 -e 's:$: $lt_compiler_flag:'`
20285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20286 (eval "$lt_compile" 2>out
/conftest.err
)
20288 cat out
/conftest.err
>&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20292 # The compiler can only warn and ignore the option if not recognized
20293 # So say no if there are warnings
20294 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20295 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20296 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20297 lt_cv_prog_compiler_c_o_CXX
=yes
20302 # SGI C++ compiler will create directory out/ii_files/ for
20303 # template instantiation
20304 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20305 $RM out
/* && rmdir out
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20312 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20317 hard_links
="nottested"
20318 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20319 # do not overwrite the value of need_locks provided by the user
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20321 $as_echo_n "checking if we can lock with hard links... " >&6; }
20324 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20326 ln conftest.a conftest.b
2>&5 || hard_links
=no
20327 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20329 $as_echo "$hard_links" >&6; }
20330 if test "$hard_links" = no
; then
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20332 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20344 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20347 # If we're using GNU nm, then we don't want the "-C" option.
20348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20349 # Also, AIX nm treats weak defined symbols like other global defined
20350 # symbols, whereas GNU nm marks them as "W".
20351 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20352 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'
20354 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'
20358 export_symbols_cmds_CXX
="$ltdll_cmds"
20360 cygwin
* | mingw
* | cegcc
*)
20361 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'
20364 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20367 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20370 $as_echo "$ld_shlibs_CXX" >&6; }
20371 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20373 with_gnu_ld_CXX
=$with_gnu_ld
20381 # Do we need to explicitly link libc?
20383 case "x$archive_cmds_need_lc_CXX" in
20385 # Assume -lc should be added
20386 archive_cmds_need_lc_CXX
=yes
20388 if test "$enable_shared" = yes && test "$GCC" = yes; then
20389 case $archive_cmds_CXX in
20391 # FIXME: we may have to deal with multi-command sequences.
20394 # Test whether the compiler implicitly links with -lc since on some
20395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20396 # to ld, don't add -lc before -lgcc.
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20399 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20403 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20406 (eval $ac_compile) 2>&5
20408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20409 test $ac_status = 0; } 2>conftest.err
; then
20412 libobjs
=conftest.
$ac_objext
20414 wl
=$lt_prog_compiler_wl_CXX
20415 pic_flag
=$lt_prog_compiler_pic_CXX
20421 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20422 allow_undefined_flag_CXX
=
20423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20424 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427 test $ac_status = 0; }
20429 lt_cv_archive_cmds_need_lc_CXX
=no
20431 lt_cv_archive_cmds_need_lc_CXX
=yes
20433 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20435 cat conftest.err
1>&5
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20441 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20442 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20513 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20515 library_names_spec
=
20516 libname_spec
='lib$name'
20520 postuninstall_cmds
=
20524 shlibpath_overrides_runpath
=unknown
20526 dynamic_linker
="$host_os ld.so"
20527 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20528 need_lib_prefix
=unknown
20529 hardcode_into_libs
=no
20531 # when you set need_version to no, make sure it does not cause -set_version
20532 # flags to be left without arguments
20533 need_version
=unknown
20538 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20539 shlibpath_var
=LIBPATH
20541 # AIX 3 has no versioning support, so we append a major version to the name.
20542 soname_spec
='${libname}${release}${shared_ext}$major'
20549 hardcode_into_libs
=yes
20550 if test "$host_cpu" = ia64
; then
20551 # AIX 5 supports IA64
20552 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20553 shlibpath_var
=LD_LIBRARY_PATH
20555 # With GCC up to 2.95.x, collect2 would create an import file
20556 # for dependence libraries. The import file would start with
20557 # the line `#! .'. This would cause the generated library to
20558 # depend on `.', always an invalid library. This was fixed in
20559 # development snapshots of GCC prior to 3.0.
20561 aix4 | aix4.
[01] | aix4.
[01].
*)
20562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20564 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20567 can_build_shared
=no
20571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20572 # soname into executable. Probably we can add versioning support to
20573 # collect2, so additional links can be useful in future.
20574 if test "$aix_use_runtimelinking" = yes; then
20575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20576 # instead of lib<name>.a to let people know that these are not
20577 # typical AIX shared libraries.
20578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20580 # We preserve .a as extension for shared libraries through AIX4.2
20581 # and later when we are not doing run time linking.
20582 library_names_spec
='${libname}${release}.a $libname.a'
20583 soname_spec
='${libname}${release}${shared_ext}$major'
20585 shlibpath_var
=LIBPATH
20592 # Since July 2007 AmigaOS4 officially supports .so libraries.
20593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597 library_names_spec
='$libname.ixlibrary $libname.a'
20598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20599 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'
20605 library_names_spec
='${libname}${shared_ext}'
20606 dynamic_linker
="$host_os ld.so"
20607 shlibpath_var
=LIBRARY_PATH
20613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec
='${libname}${release}${shared_ext}$major'
20615 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20616 shlibpath_var
=LD_LIBRARY_PATH
20617 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20618 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20619 # the default ld.so.conf also contains /usr/contrib/lib and
20620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20621 # libtool to hard-code these into programs
20624 cygwin
* | mingw
* | pw32
* | cegcc
*)
20625 version_type
=windows
20630 case $GCC,$host_os in
20631 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20632 library_names_spec
='$libname.dll.a'
20633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20634 postinstall_cmds
='base_file=`basename \${file}`~
20635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20636 dldir=$destdir/`dirname \$dlpath`~
20637 test -d \$dldir || mkdir -p \$dldir~
20638 $install_prog $dir/$dlname \$dldir/$dlname~
20639 chmod a+x \$dldir/$dlname~
20640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20643 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20644 dlpath=$dir/\$dldll~
20646 shlibpath_overrides_runpath
=yes
20650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20651 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20655 # MinGW DLLs use traditional 'lib' prefix
20656 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20659 # pw32 DLLs use 'pw' prefix rather than 'lib'
20660 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20666 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20669 dynamic_linker
='Win32 ld.exe'
20670 # FIXME: first we should search . and the directory the executable is in
20674 darwin
* | rhapsody
*)
20675 dynamic_linker
="$host_os dyld"
20676 version_type
=darwin
20679 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20680 soname_spec
='${libname}${release}${major}$shared_ext'
20681 shlibpath_overrides_runpath
=yes
20682 shlibpath_var
=DYLD_LIBRARY_PATH
20683 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20685 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20693 soname_spec
='${libname}${release}${shared_ext}$major'
20694 shlibpath_var
=LD_LIBRARY_PATH
20697 freebsd
* | dragonfly
*)
20698 # DragonFly does not have aout. When/if they implement a new
20699 # versioning mechanism, adjust this.
20700 if test -x /usr
/bin
/objformat
; then
20701 objformat
=`/usr/bin/objformat`
20704 freebsd
[23].
*) objformat
=aout
;;
20705 *) objformat
=elf
;;
20708 version_type
=freebsd-
$objformat
20709 case $version_type in
20711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20716 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20720 shlibpath_var
=LD_LIBRARY_PATH
20723 shlibpath_overrides_runpath
=yes
20725 freebsd3.
[01]* | freebsdelf3.
[01]*)
20726 shlibpath_overrides_runpath
=yes
20727 hardcode_into_libs
=yes
20729 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20730 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20731 shlibpath_overrides_runpath
=no
20732 hardcode_into_libs
=yes
20734 *) # from 4.6 on, and DragonFly
20735 shlibpath_overrides_runpath
=yes
20736 hardcode_into_libs
=yes
20745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20746 soname_spec
='${libname}${release}${shared_ext}$major'
20747 shlibpath_var
=LD_LIBRARY_PATH
20748 hardcode_into_libs
=yes
20755 dynamic_linker
="$host_os runtime_loader"
20756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20757 soname_spec
='${libname}${release}${shared_ext}$major'
20758 shlibpath_var
=LIBRARY_PATH
20759 shlibpath_overrides_runpath
=yes
20760 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20761 hardcode_into_libs
=yes
20764 hpux9
* | hpux10
* | hpux11
*)
20765 # Give a soname corresponding to the major version so that dld.sl refuses to
20766 # link against other versions.
20773 hardcode_into_libs
=yes
20774 dynamic_linker
="$host_os dld.so"
20775 shlibpath_var
=LD_LIBRARY_PATH
20776 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec
='${libname}${release}${shared_ext}$major'
20779 if test "X$HPUX_IA64_MODE" = X32
; then
20780 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20782 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20784 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20788 hardcode_into_libs
=yes
20789 dynamic_linker
="$host_os dld.sl"
20790 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20791 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20793 soname_spec
='${libname}${release}${shared_ext}$major'
20794 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20795 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20799 dynamic_linker
="$host_os dld.sl"
20800 shlibpath_var
=SHLIB_PATH
20801 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803 soname_spec
='${libname}${release}${shared_ext}$major'
20806 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20807 postinstall_cmds
='chmod 555 $lib'
20808 # or fails outright, so override atomically:
20809 install_override_mode
=555
20816 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20817 soname_spec
='${libname}${release}${shared_ext}$major'
20818 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20819 shlibpath_var
=LD_LIBRARY_PATH
20820 shlibpath_overrides_runpath
=no
20821 hardcode_into_libs
=yes
20824 irix5
* | irix6
* | nonstopux
*)
20826 nonstopux
*) version_type
=nonstopux
;;
20828 if test "$lt_cv_prog_gnu_ld" = yes; then
20836 soname_spec
='${libname}${release}${shared_ext}$major'
20837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20839 irix5
* | nonstopux
*)
20840 libsuff
= shlibsuff
=
20843 case $LD in # libtool.m4 will add one of these switches to LD
20844 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20845 libsuff
= shlibsuff
= libmagic
=32-bit;;
20846 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20847 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20848 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20849 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20850 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20854 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20855 shlibpath_overrides_runpath
=no
20856 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20857 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20858 hardcode_into_libs
=yes
20861 # No shared lib support for Linux oldld, aout, or coff.
20862 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20866 # This must be Linux ELF.
20867 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872 soname_spec
='${libname}${release}${shared_ext}$major'
20873 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20874 shlibpath_var
=LD_LIBRARY_PATH
20875 shlibpath_overrides_runpath
=no
20877 # Some binutils ld are patched to set DT_RUNPATH
20878 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20879 $as_echo_n "(cached) " >&6
20881 lt_cv_shlibpath_overrides_runpath
=no
20882 save_LDFLAGS
=$LDFLAGS
20883 save_libdir
=$libdir
20884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20887 /* end confdefs.h. */
20897 if ac_fn_cxx_try_link
"$LINENO"; then :
20898 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20899 lt_cv_shlibpath_overrides_runpath
=yes
20902 rm -f core conftest.err conftest.
$ac_objext \
20903 conftest
$ac_exeext conftest.
$ac_ext
20904 LDFLAGS
=$save_LDFLAGS
20905 libdir
=$save_libdir
20909 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20911 # This implies no fast_install, which is unacceptable.
20912 # Some rework will be needed to allow for fast_install
20913 # before this can be enabled.
20914 hardcode_into_libs
=yes
20916 # Append ld.so.conf contents to the search path
20917 if test -f /etc
/ld.so.conf
; then
20918 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' ' '`
20919 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20922 # We used to test for /lib/ld.so.1 and disable shared libraries on
20923 # powerpc, because MkLinux only supported shared libraries with the
20924 # GNU dynamic linker. Since this was broken with cross compilers,
20925 # most powerpc-linux boxes support dynamic linking these days and
20926 # people can always --disable-shared, the test was removed, and we
20927 # assume the GNU/Linux dynamic linker is in use.
20928 dynamic_linker
='GNU/Linux ld.so'
20935 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20937 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20938 dynamic_linker
='NetBSD (a.out) ld.so'
20940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20941 soname_spec
='${libname}${release}${shared_ext}$major'
20942 dynamic_linker
='NetBSD ld.elf_so'
20944 shlibpath_var
=LD_LIBRARY_PATH
20945 shlibpath_overrides_runpath
=yes
20946 hardcode_into_libs
=yes
20951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 shlibpath_var
=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath
=yes
20960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 soname_spec
='${libname}${release}${shared_ext}$major'
20962 shlibpath_var
=LD_LIBRARY_PATH
20963 shlibpath_overrides_runpath
=no
20964 hardcode_into_libs
=yes
20965 dynamic_linker
='ldqnx.so'
20970 sys_lib_dlsearch_path_spec
="/usr/lib"
20972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20974 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20975 *) need_version
=no
;;
20977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20978 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20979 shlibpath_var
=LD_LIBRARY_PATH
20980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20982 openbsd2.
[89] | openbsd2.
[89].
*)
20983 shlibpath_overrides_runpath
=no
20986 shlibpath_overrides_runpath
=yes
20990 shlibpath_overrides_runpath
=yes
20995 libname_spec
='$name'
20998 library_names_spec
='$libname${shared_ext} $libname.a'
20999 dynamic_linker
='OS/2 ld.exe'
21000 shlibpath_var
=LIBPATH
21003 osf3
* | osf4
* | osf5
*)
21007 soname_spec
='${libname}${release}${shared_ext}$major'
21008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21009 shlibpath_var
=LD_LIBRARY_PATH
21010 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21011 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023 soname_spec
='${libname}${release}${shared_ext}$major'
21024 shlibpath_var
=LD_LIBRARY_PATH
21025 shlibpath_overrides_runpath
=yes
21026 hardcode_into_libs
=yes
21027 # ldd complains unless libraries are executable
21028 postinstall_cmds
='chmod +x $lib'
21033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21034 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21035 shlibpath_var
=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath
=yes
21037 if test "$with_gnu_ld" = yes; then
21045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec
='${libname}${release}${shared_ext}$major'
21047 shlibpath_var
=LD_LIBRARY_PATH
21048 case $host_vendor in
21050 shlibpath_overrides_runpath
=no
21052 runpath_var
=LD_RUN_PATH
21060 shlibpath_overrides_runpath
=no
21061 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21067 if test -d /usr
/nec
;then
21069 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21070 soname_spec
='$libname${shared_ext}.$major'
21071 shlibpath_var
=LD_LIBRARY_PATH
21075 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21076 version_type
=freebsd-elf
21079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21080 soname_spec
='${libname}${release}${shared_ext}$major'
21081 shlibpath_var
=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath
=yes
21083 hardcode_into_libs
=yes
21084 if test "$with_gnu_ld" = yes; then
21085 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21087 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21090 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21094 sys_lib_dlsearch_path_spec
='/usr/lib'
21098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21103 shlibpath_var
=LD_LIBRARY_PATH
21104 shlibpath_overrides_runpath
=no
21105 hardcode_into_libs
=yes
21110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 soname_spec
='${libname}${release}${shared_ext}$major'
21112 shlibpath_var
=LD_LIBRARY_PATH
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21120 $as_echo "$dynamic_linker" >&6; }
21121 test "$dynamic_linker" = no
&& can_build_shared
=no
21123 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21124 if test "$GCC" = yes; then
21125 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21129 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21132 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21174 hardcode_action_CXX
=
21175 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21176 test -n "$runpath_var_CXX" ||
21177 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21179 # We can hardcode non-existent directories.
21180 if test "$hardcode_direct_CXX" != no
&&
21181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21182 # have to relink, otherwise we might link with an installed library
21183 # when we should be linking with a yet-to-be-installed one
21184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21185 test "$hardcode_minus_L_CXX" != no
; then
21186 # Linking always hardcodes the temporary library directory.
21187 hardcode_action_CXX
=relink
21189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21190 hardcode_action_CXX
=immediate
21193 # We cannot hardcode anything, or else we can only hardcode existing
21195 hardcode_action_CXX
=unsupported
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21198 $as_echo "$hardcode_action_CXX" >&6; }
21200 if test "$hardcode_action_CXX" = relink ||
21201 test "$inherit_rpath_CXX" = yes; then
21202 # Fast installation is not supported
21203 enable_fast_install
=no
21204 elif test "$shlibpath_overrides_runpath" = yes ||
21205 test "$enable_shared" = no
; then
21206 # Fast installation is not necessary
21207 enable_fast_install
=needless
21216 fi # test -n "$compiler"
21222 with_gnu_ld
=$lt_save_with_gnu_ld
21223 lt_cv_path_LDCXX
=$lt_cv_path_LD
21224 lt_cv_path_LD
=$lt_save_path_LD
21225 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21226 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21227 fi # test "$_lt_caught_CXX_error" != yes
21230 ac_cpp
='$CPP $CPPFLAGS'
21231 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21250 # Only expand once:
21256 # Identify the assembler which will work hand-in-glove with the newly
21257 # built GCC, so that we can examine its features. This is the assembler
21258 # which will be driven by the driver program.
21260 # If build != host, and we aren't building gas in-tree, we identify a
21261 # build->target assembler and hope that it will have the same features
21262 # as the host->target assembler we'll be using.
21263 gcc_cv_gas_major_version
=
21264 gcc_cv_gas_minor_version
=
21265 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21267 if test "${gcc_cv_as+set}" = set; then :
21271 if test -x "$DEFAULT_ASSEMBLER"; then
21272 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21273 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21274 && test -f ..
/gas
/Makefile \
21275 && test x
$build = x
$host; then
21276 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21277 elif test -x as
$build_exeext; then
21278 # Build using assembler in the current directory.
21279 gcc_cv_as
=.
/as
$build_exeext
21280 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21281 gcc_cv_as
="$AS_FOR_TARGET"
21283 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21284 set dummy
$AS_FOR_TARGET; ac_word
=$2
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21286 $as_echo_n "checking for $ac_word... " >&6; }
21287 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21288 $as_echo_n "(cached) " >&6
21292 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21296 for as_dir
in $PATH
21299 test -z "$as_dir" && as_dir
=.
21300 for ac_exec_ext
in '' $ac_executable_extensions; do
21301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21302 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21313 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21314 if test -n "$gcc_cv_as"; then
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21316 $as_echo "$gcc_cv_as" >&6; }
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 $as_echo "no" >&6; }
21326 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21328 case "$ORIGINAL_AS_FOR_TARGET" in
21329 .
/as | .
/as
$build_exeext) ;;
21330 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21335 $as_echo_n "checking what assembler to use... " >&6; }
21336 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21337 # Single tree build which includes gas. We want to prefer it
21338 # over whatever linker top-level may have detected, since
21339 # we'll use what we're building after installation anyway.
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21341 $as_echo "newly built gas" >&6; }
21343 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21344 for f
in $gcc_cv_as_bfd_srcdir/configure \
21345 $gcc_cv_as_gas_srcdir/configure \
21346 $gcc_cv_as_gas_srcdir/configure.
in \
21347 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21348 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21349 if test x
$gcc_cv_gas_version != x
; then
21353 case $gcc_cv_gas_version in
21355 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21357 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21358 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21359 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21360 case $gcc_cv_gas_patch_version in
21361 "") gcc_cv_gas_patch_version
="0" ;;
21363 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21364 + $gcc_cv_gas_minor_version \) \* 1000 \
21365 + $gcc_cv_gas_patch_version`
21367 in_tree_gas_is_elf
=no
21368 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21369 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21370 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21372 in_tree_gas_is_elf
=yes
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21376 $as_echo "$gcc_cv_as" >&6; }
21380 # Identify the linker which will work hand-in-glove with the newly
21381 # built GCC, so that we can examine its features. This is the linker
21382 # which will be driven by the driver program.
21384 # If build != host, and we aren't building gas in-tree, we identify a
21385 # build->target linker and hope that it will have the same features
21386 # as the host->target linker we'll be using.
21387 gcc_cv_gld_major_version
=
21388 gcc_cv_gld_minor_version
=
21389 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21390 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21392 if test "${gcc_cv_ld+set}" = set; then :
21396 if test -x "$DEFAULT_LINKER"; then
21397 gcc_cv_ld
="$DEFAULT_LINKER"
21398 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21399 && test -f ..
/ld
/Makefile \
21400 && test x
$build = x
$host; then
21401 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21402 elif test -x collect-ld
$build_exeext; then
21403 # Build using linker in the current directory.
21404 gcc_cv_ld
=.
/collect-ld
$build_exeext
21405 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21406 gcc_cv_ld
="$LD_FOR_TARGET"
21408 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21409 set dummy
$LD_FOR_TARGET; ac_word
=$2
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21411 $as_echo_n "checking for $ac_word... " >&6; }
21412 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21413 $as_echo_n "(cached) " >&6
21417 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21421 for as_dir
in $PATH
21424 test -z "$as_dir" && as_dir
=.
21425 for ac_exec_ext
in '' $ac_executable_extensions; do
21426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21427 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21438 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21439 if test -n "$gcc_cv_ld"; then
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21441 $as_echo "$gcc_cv_ld" >&6; }
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21451 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21452 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21453 # if the PLUGIN_LD is set ld-new, just have it as ld
21454 # as that is the installed named.
21455 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21456 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21457 PLUGIN_LD_SUFFIX
=ld
21460 # Check whether --with-plugin-ld was given.
21461 if test "${with_plugin_ld+set}" = set; then :
21462 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21463 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21464 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21470 cat >>confdefs.h
<<_ACEOF
21471 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21475 # Check to see if we are using gold instead of ld
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21477 $as_echo_n "checking whether we are using gold... " >&6; }
21479 if test x
$gcc_cv_ld != x
; then
21480 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21481 |
grep "GNU gold" > /dev
/null
; then
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21486 $as_echo "$ld_is_gold" >&6; }
21488 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21490 case "$ORIGINAL_LD_FOR_TARGET" in
21491 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21492 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21497 $as_echo_n "checking what linker to use... " >&6; }
21498 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21499 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21500 # Single tree build which includes ld. We want to prefer it
21501 # over whatever linker top-level may have detected, since
21502 # we'll use what we're building after installation anyway.
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21504 $as_echo "newly built ld" >&6; }
21506 in_tree_ld_is_elf
=no
21507 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21508 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21509 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21510 in_tree_ld_is_elf
=yes
21511 elif test "$ld_is_gold" = yes; then
21512 in_tree_ld_is_elf
=yes
21514 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
21516 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21517 if test x
$gcc_cv_gld_version != x
; then
21521 case $gcc_cv_gld_version in
21523 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21525 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21526 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21529 $as_echo "$gcc_cv_ld" >&6; }
21533 # Figure out what nm we will be using.
21534 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21535 if test "${gcc_cv_nm+set}" = set; then :
21539 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21540 && test -f ..
/binutils
/Makefile \
21541 && test x
$build = x
$host; then
21542 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21543 elif test -x nm
$build_exeext; then
21544 gcc_cv_nm
=.
/nm
$build_exeext
21545 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21546 gcc_cv_nm
="$NM_FOR_TARGET"
21548 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21549 set dummy
$NM_FOR_TARGET; ac_word
=$2
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21551 $as_echo_n "checking for $ac_word... " >&6; }
21552 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21553 $as_echo_n "(cached) " >&6
21557 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21561 for as_dir
in $PATH
21564 test -z "$as_dir" && as_dir
=.
21565 for ac_exec_ext
in '' $ac_executable_extensions; do
21566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21567 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21578 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21579 if test -n "$gcc_cv_nm"; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21581 $as_echo "$gcc_cv_nm" >&6; }
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584 $as_echo "no" >&6; }
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21592 $as_echo_n "checking what nm to use... " >&6; }
21593 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21594 # Single tree build which includes binutils.
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21596 $as_echo "newly built nm" >&6; }
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21600 $as_echo "$gcc_cv_nm" >&6; }
21604 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21606 case "$ORIGINAL_NM_FOR_TARGET" in
21607 .
/nm | .
/nm
$build_exeext) ;;
21608 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21613 # Figure out what objdump we will be using.
21614 if test "${gcc_cv_objdump+set}" = set; then :
21618 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21619 && test -f ..
/binutils
/Makefile \
21620 && test x
$build = x
$host; then
21621 # Single tree build which includes binutils.
21622 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21623 elif test -x objdump
$build_exeext; then
21624 gcc_cv_objdump
=.
/objdump
$build_exeext
21625 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21626 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21628 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21629 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21631 $as_echo_n "checking for $ac_word... " >&6; }
21632 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21633 $as_echo_n "(cached) " >&6
21635 case $gcc_cv_objdump in
21637 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21641 for as_dir
in $PATH
21644 test -z "$as_dir" && as_dir
=.
21645 for ac_exec_ext
in '' $ac_executable_extensions; do
21646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21647 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21658 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21659 if test -n "$gcc_cv_objdump"; then
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21661 $as_echo "$gcc_cv_objdump" >&6; }
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21664 $as_echo "no" >&6; }
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21672 $as_echo_n "checking what objdump to use... " >&6; }
21673 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21674 # Single tree build which includes binutils.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21676 $as_echo "newly built objdump" >&6; }
21677 elif test x
$gcc_cv_objdump = x
; then
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21679 $as_echo "not found" >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21682 $as_echo "$gcc_cv_objdump" >&6; }
21685 # Figure out what readelf we will be using.
21686 if test "${gcc_cv_readelf+set}" = set; then :
21690 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21691 && test -f ..
/binutils
/Makefile \
21692 && test x
$build = x
$host; then
21693 # Single tree build which includes binutils.
21694 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21695 elif test -x readelf
$build_exeext; then
21696 gcc_cv_readelf
=.
/readelf
$build_exeext
21698 # Extract the first word of "readelf", so it can be a program name with args.
21699 set dummy readelf
; ac_word
=$2
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21701 $as_echo_n "checking for $ac_word... " >&6; }
21702 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21705 case $gcc_cv_readelf in
21707 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21711 for as_dir
in $PATH
21714 test -z "$as_dir" && as_dir
=.
21715 for ac_exec_ext
in '' $ac_executable_extensions; do
21716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21717 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21728 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21729 if test -n "$gcc_cv_readelf"; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21731 $as_echo "$gcc_cv_readelf" >&6; }
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21742 $as_echo_n "checking what readelf to use... " >&6; }
21743 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21744 # Single tree build which includes binutils.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21746 $as_echo "newly built readelf" >&6; }
21747 elif test x
$gcc_cv_readelf = x
; then
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21749 $as_echo "not found" >&6; }
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21752 $as_echo "$gcc_cv_readelf" >&6; }
21755 # Figure out what assembler alignment features are present.
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21757 $as_echo_n "checking assembler flags... " >&6; }
21758 if test "${gcc_cv_as_flags+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21762 i
[34567]86-*-linux*)
21763 gcc_cv_as_flags
="--32"
21765 powerpc
*-*-darwin*)
21766 gcc_cv_as_flags
="-arch ppc"
21769 gcc_cv_as_flags
=" "
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21774 $as_echo "$gcc_cv_as_flags" >&6; }
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21777 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21778 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21781 gcc_cv_as_balign_and_p2align
=no
21782 if test $in_tree_gas = yes; then
21783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21784 then gcc_cv_as_balign_and_p2align
=yes
21786 elif test x
$gcc_cv_as != x
; then
21787 $as_echo '.balign 4
21788 .p2align 2' > conftest.s
21789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21791 (eval $ac_try) 2>&5
21793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21794 test $ac_status = 0; }; }
21796 gcc_cv_as_balign_and_p2align
=yes
21798 echo "configure: failed program was" >&5
21801 rm -f conftest.o conftest.s
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21805 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21806 if test $gcc_cv_as_balign_and_p2align = yes; then
21808 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21813 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21814 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21815 $as_echo_n "(cached) " >&6
21817 gcc_cv_as_max_skip_p2align
=no
21818 if test $in_tree_gas = yes; then
21819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21820 then gcc_cv_as_max_skip_p2align
=yes
21822 elif test x
$gcc_cv_as != x
; then
21823 $as_echo '.p2align 4,,7' > conftest.s
21824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21831 gcc_cv_as_max_skip_p2align
=yes
21833 echo "configure: failed program was" >&5
21836 rm -f conftest.o conftest.s
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21840 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21841 if test $gcc_cv_as_max_skip_p2align = yes; then
21843 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21848 $as_echo_n "checking assembler for .literal16... " >&6; }
21849 if test "${gcc_cv_as_literal16+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21852 gcc_cv_as_literal16
=no
21853 if test $in_tree_gas = yes; then
21854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21855 then gcc_cv_as_literal16
=yes
21857 elif test x
$gcc_cv_as != x
; then
21858 $as_echo '.literal16' > conftest.s
21859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21861 (eval $ac_try) 2>&5
21863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21864 test $ac_status = 0; }; }
21866 gcc_cv_as_literal16
=yes
21868 echo "configure: failed program was" >&5
21871 rm -f conftest.o conftest.s
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21875 $as_echo "$gcc_cv_as_literal16" >&6; }
21876 if test $gcc_cv_as_literal16 = yes; then
21878 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21883 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21884 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21885 $as_echo_n "(cached) " >&6
21887 gcc_cv_as_subsection_m1
=no
21888 if test $in_tree_gas = yes; then
21889 if test $in_tree_gas_is_elf = yes \
21890 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21891 then gcc_cv_as_subsection_m1
=yes
21893 elif test x
$gcc_cv_as != x
; then
21894 $as_echo 'conftest_label1: .word 0
21896 conftest_label2: .word 0
21897 .previous' > conftest.s
21898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21900 (eval $ac_try) 2>&5
21902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903 test $ac_status = 0; }; }
21905 if test x
$gcc_cv_nm != x
; then
21906 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21907 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21908 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21910 else gcc_cv_as_subsection_m1
=yes
21912 rm -f conftest.nm1 conftest.nm2
21915 echo "configure: failed program was" >&5
21918 rm -f conftest.o conftest.s
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21922 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21923 if test $gcc_cv_as_subsection_m1 = yes; then
21925 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21930 $as_echo_n "checking assembler for .weak... " >&6; }
21931 if test "${gcc_cv_as_weak+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21935 if test $in_tree_gas = yes; then
21936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21937 then gcc_cv_as_weak
=yes
21939 elif test x
$gcc_cv_as != x
; then
21940 $as_echo ' .weak foobar' > conftest.s
21941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21943 (eval $ac_try) 2>&5
21945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21946 test $ac_status = 0; }; }
21950 echo "configure: failed program was" >&5
21953 rm -f conftest.o conftest.s
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21957 $as_echo "$gcc_cv_as_weak" >&6; }
21958 if test $gcc_cv_as_weak = yes; then
21960 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21965 $as_echo_n "checking assembler for .weakref... " >&6; }
21966 if test "${gcc_cv_as_weakref+set}" = set; then :
21967 $as_echo_n "(cached) " >&6
21969 gcc_cv_as_weakref
=no
21970 if test $in_tree_gas = yes; then
21971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21972 then gcc_cv_as_weakref
=yes
21974 elif test x
$gcc_cv_as != x
; then
21975 $as_echo ' .weakref foobar, barfnot' > conftest.s
21976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21978 (eval $ac_try) 2>&5
21980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21981 test $ac_status = 0; }; }
21983 gcc_cv_as_weakref
=yes
21985 echo "configure: failed program was" >&5
21988 rm -f conftest.o conftest.s
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21992 $as_echo "$gcc_cv_as_weakref" >&6; }
21993 if test $gcc_cv_as_weakref = yes; then
21995 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22000 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22001 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22004 gcc_cv_as_nsubspa_comdat
=no
22005 if test $in_tree_gas = yes; then
22006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22007 then gcc_cv_as_nsubspa_comdat
=yes
22009 elif test x
$gcc_cv_as != x
; then
22010 $as_echo ' .SPACE $TEXT$
22011 .NSUBSPA $CODE$,COMDAT' > conftest.s
22012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22014 (eval $ac_try) 2>&5
22016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22017 test $ac_status = 0; }; }
22019 gcc_cv_as_nsubspa_comdat
=yes
22021 echo "configure: failed program was" >&5
22024 rm -f conftest.o conftest.s
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22028 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22029 if test $gcc_cv_as_nsubspa_comdat = yes; then
22031 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22035 # .hidden needs to be supported in both the assembler and the linker,
22036 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22037 # This is irritatingly difficult to feature test for; we have to check the
22038 # date string after the version number. If we've got an in-tree
22039 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22041 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22043 $as_echo_n "checking assembler for .hidden... " >&6; }
22044 if test "${gcc_cv_as_hidden+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22047 gcc_cv_as_hidden
=no
22048 if test $in_tree_gas = yes; then
22049 if test $in_tree_gas_is_elf = yes \
22050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22051 then gcc_cv_as_hidden
=yes
22053 elif test x
$gcc_cv_as != x
; then
22054 $as_echo ' .hidden foobar
22055 foobar:' > conftest.s
22056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; }
22064 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22065 # STV_HIDDEN, so disable .hidden support if so.
22066 case "${target}" in
22067 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22068 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22069 cat > conftest.s
<<EOF
22074 .set default,hidden
22076 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22077 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22078 grep '\.hidden default' > /dev
/null
; then
22079 gcc_cv_as_hidden
=no
22081 gcc_cv_as_hidden
=yes
22084 # Assume bug is present if objdump is missing.
22085 gcc_cv_as_hidden
=no
22089 gcc_cv_as_hidden
=yes
22093 echo "configure: failed program was" >&5
22096 rm -f conftest.o conftest.s
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22100 $as_echo "$gcc_cv_as_hidden" >&6; }
22102 case "${target}" in
22104 # Darwin as has some visibility support, though with a different syntax.
22105 gcc_cv_as_hidden
=yes
22109 # gnu_indirect_function type is an extension proposed at
22110 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22111 # selection of function implementation
22112 # Check whether --enable-gnu-indirect-function was given.
22113 if test "${enable_gnu_indirect_function+set}" = set; then :
22114 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22116 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22117 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22120 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22124 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22126 cat >>confdefs.h
<<_ACEOF
22127 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22132 if test $in_tree_ld != yes ; then
22133 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22134 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22135 if test x
"$ld_is_gold" = xyes
; then
22136 # GNU gold --version looks like this:
22138 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22140 # We extract the binutils version which is more familiar and specific
22141 # than the gold version.
22142 ld_vers
=`echo $ld_ver | sed -n \
22143 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22145 # GNU ld --version looks like this:
22147 # GNU ld (GNU Binutils) 2.21.51.20110225
22148 ld_vers
=`echo $ld_ver | sed -n \
22149 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22151 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'`
22152 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22153 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22154 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22156 case "${target}" in
22158 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22161 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22162 # /usr/ccs/bin/ld has been configured.
22163 ld_ver
=`$gcc_cv_ld -V 2>&1`
22164 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22165 ld_vers
=`echo $ld_ver | sed -n \
22166 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22167 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22168 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22176 $as_echo_n "checking linker for .hidden support... " >&6; }
22177 if test "${gcc_cv_ld_hidden+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22180 if test $in_tree_ld = yes ; then
22181 gcc_cv_ld_hidden
=no
22182 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 \
22183 && test $in_tree_ld_is_elf = yes; then
22184 gcc_cv_ld_hidden
=yes
22187 gcc_cv_ld_hidden
=yes
22188 if test x
"$ld_is_gold" = xyes
; then
22190 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22191 case "${target}" in
22192 mmix-knuth-mmixware
)
22193 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22194 gcc_cv_ld_hidden
=no
22197 if test 0"$ld_date" -lt 20020404; then
22198 if test -n "$ld_date"; then
22199 # If there was date string, but was earlier than 2002-04-04, fail
22200 gcc_cv_ld_hidden
=no
22201 elif test -z "$ld_vers"; then
22202 # If there was no date string nor ld version number, something is wrong
22203 gcc_cv_ld_hidden
=no
22205 test -z "$ld_vers_patch" && ld_vers_patch
=0
22206 if test "$ld_vers_major" -lt 2; then
22207 gcc_cv_ld_hidden
=no
22208 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22209 gcc_cv_ld_hidden
="no"
22210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22211 gcc_cv_ld_hidden
=no
22216 case "${target}" in
22218 # Darwin ld has some visibility support.
22219 gcc_cv_ld_hidden
=yes
22221 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22222 gcc_cv_ld_hidden
=yes
22224 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22225 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22226 # .symbolic was only added in Solaris 9 12/02.
22227 gcc_cv_ld_hidden
=yes
22230 gcc_cv_ld_hidden
=no
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22237 $as_echo "$gcc_cv_ld_hidden" >&6; }
22238 libgcc_visibility
=no
22241 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22242 libgcc_visibility
=yes
22244 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22249 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22250 gcc_cv_ld_ro_rw_mix
=unknown
22251 if test $in_tree_ld = yes ; then
22252 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 \
22253 && test $in_tree_ld_is_elf = yes; then
22254 gcc_cv_ld_ro_rw_mix
=read-write
22256 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22257 echo '.section myfoosect, "a"' > conftest1.s
22258 echo '.section myfoosect, "aw"' > conftest2.s
22259 echo '.byte 1' >> conftest2.s
22260 echo '.section myfoosect, "a"' > conftest3.s
22261 echo '.byte 0' >> conftest3.s
22262 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22263 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22264 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22265 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22266 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22267 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22268 | sed -e '/myfoosect/!d' -e N`
22269 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22270 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22271 gcc_cv_ld_ro_rw_mix
=read-only
22273 gcc_cv_ld_ro_rw_mix
=read-write
22277 rm -f conftest.
* conftest
[123].
*
22279 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22281 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22285 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22287 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22288 case "${target}" in
22291 # Solaris 2 ld -V output looks like this for a regular version:
22293 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22295 # but test versions add stuff at the end:
22297 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22299 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22300 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22301 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22302 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22303 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22304 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22310 # Check whether --enable-initfini-array was given.
22311 if test "${enable_initfini_array+set}" = set; then :
22312 enableval
=$enable_initfini_array;
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22316 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22317 if test "${gcc_cv_initfini_array+set}" = set; then :
22318 $as_echo_n "(cached) " >&6
22320 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22321 case "${target}" in
22323 if test "$cross_compiling" = yes; then :
22324 gcc_cv_initfini_array
=no
22326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22327 /* end confdefs.h. */
22330 #error Not an ELF OS
22332 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22333 if it can be used. */
22335 int main (void) { return x; }
22336 int foo (void) { x = 0; }
22337 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22340 if ac_fn_c_try_run
"$LINENO"; then :
22341 gcc_cv_initfini_array
=yes
22343 gcc_cv_initfini_array
=no
22345 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22346 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22350 gcc_cv_initfini_array
=no
22351 if test $in_tree_ld = yes ; then
22352 if test "$gcc_cv_gld_major_version" -eq 2 \
22353 -a "$gcc_cv_gld_minor_version" -ge 22 \
22354 -o "$gcc_cv_gld_major_version" -gt 2 \
22355 && test $in_tree_ld_is_elf = yes; then
22356 gcc_cv_initfini_array
=yes
22358 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22359 cat > conftest.s
<<\EOF
22360 .section .dtors
,"a",%progbits
22362 .byte
'A', 'A', 'A', 'A'
22363 .section .ctors
,"a",%progbits
22365 .byte
'B', 'B', 'B', 'B'
22366 .section .fini_array
.65530,"a",%progbits
22368 .byte
'C', 'C', 'C', 'C'
22369 .section .init_array
.65530,"a",%progbits
22371 .byte
'D', 'D', 'D', 'D'
22372 .section .dtors
.64528,"a",%progbits
22374 .byte
'E', 'E', 'E', 'E'
22375 .section .ctors
.64528,"a",%progbits
22377 .byte
'F', 'F', 'F', 'F'
22378 .section .fini_array
.01005,"a",%progbits
22380 .byte
'G', 'G', 'G', 'G'
22381 .section .init_array
.01005,"a",%progbits
22383 .byte
'H', 'H', 'H', 'H'
22388 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22389 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22390 && $gcc_cv_objdump -s -j .init_array conftest \
22391 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22392 && $gcc_cv_objdump -s -j .fini_array conftest \
22393 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22394 gcc_cv_initfini_array
=yes
22396 rm -f conftest conftest.
*
22398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h. */
22402 # error Not an ELF OS
22404 #include <stdlib.h>
22405 #if defined __GLIBC_PREREQ
22406 # if __GLIBC_PREREQ (2, 4)
22408 # error GLIBC 2.4 required
22411 # if defined __sun__ && defined __svr4__
22412 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22414 # error The C library not known to support .init_array/.fini_array
22419 if ac_fn_c_try_cpp
"$LINENO"; then :
22422 gcc_cv_initfini_array
=no
22424 rm -f conftest.err conftest.
$ac_ext;;
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22428 $as_echo_n "checking cross compile... guessing... " >&6; }
22429 gcc_cv_initfini_array
=no
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22433 $as_echo "$gcc_cv_initfini_array" >&6; }
22434 enable_initfini_array
=$gcc_cv_initfini_array
22438 if test $enable_initfini_array = yes; then
22440 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22444 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22446 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22447 if test "${gcc_cv_as_leb128+set}" = set; then :
22448 $as_echo_n "(cached) " >&6
22450 gcc_cv_as_leb128
=no
22451 if test $in_tree_gas = yes; then
22452 if test $in_tree_gas_is_elf = yes \
22453 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22454 then gcc_cv_as_leb128
=yes
22456 elif test x
$gcc_cv_as != x
; then
22463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22465 (eval $ac_try) 2>&5
22467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22468 test $ac_status = 0; }; }
22470 # GAS versions before 2.11 do not support uleb128,
22471 # despite appearing to.
22472 # ??? There exists an elf-specific test that will crash
22473 # the assembler. Perhaps it's better to figure out whether
22474 # arbitrary sections are supported and try the test.
22475 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22476 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22477 as_vers
=`echo $as_ver | sed -n \
22478 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22479 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22480 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22481 if test $as_major -eq 2 && test $as_minor -lt 11
22483 else gcc_cv_as_leb128
=yes
22487 echo "configure: failed program was" >&5
22490 rm -f conftest.o conftest.s
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22494 $as_echo "$gcc_cv_as_leb128" >&6; }
22495 if test $gcc_cv_as_leb128 = yes; then
22497 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22501 # Check if we have assembler support for unwind directives.
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22503 $as_echo_n "checking assembler for cfi directives... " >&6; }
22504 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22507 gcc_cv_as_cfi_directive
=no
22508 if test x
$gcc_cv_as != x
; then
22514 .cfi_escape 1, 2, 3, 4, 5
22515 .cfi_endproc' > conftest.s
22516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22518 (eval $ac_try) 2>&5
22520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22521 test $ac_status = 0; }; }
22525 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22526 # read-only and read-write sections, we need to make sure that the
22527 # assembler used emits read-write .eh_frame sections.
22528 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22529 if test "x$gcc_cv_objdump" != x
; then
22530 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22531 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22532 gcc_cv_as_cfi_directive
=no
22535 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22536 # On Solaris/x86, make sure that GCC and gas agree on using
22537 # read-only .eh_frame sections for 64-bit.
22538 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22539 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22540 sed -e /.eh_frame
/!d
-e N | \
22541 grep READONLY
> /dev
/null
; then
22542 gcc_cv_as_cfi_directive
=yes
22544 gcc_cv_as_cfi_directive
=no
22548 gcc_cv_as_cfi_directive
=yes
22553 # no objdump, err on the side of caution
22554 gcc_cv_as_cfi_directive
=no
22557 gcc_cv_as_cfi_directive
=yes
22561 gcc_cv_as_cfi_directive
=yes
22565 echo "configure: failed program was" >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22572 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22574 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22576 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22577 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22580 gcc_cv_as_cfi_advance_working
=no
22581 if test x
$gcc_cv_as != x
; then
22584 .cfi_adjust_cfa_offset 64
22586 .cfi_adjust_cfa_offset 128
22587 .cfi_endproc' > conftest.s
22588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22590 (eval $ac_try) 2>&5
22592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22593 test $ac_status = 0; }; }
22596 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22597 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22598 gcc_cv_as_cfi_advance_working
=yes
22602 echo "configure: failed program was" >&5
22605 rm -f conftest.o conftest.s
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22609 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22612 # no objdump, err on the side of caution
22613 gcc_cv_as_cfi_advance_working
=no
22617 cat >>confdefs.h
<<_ACEOF
22618 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22619 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22625 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22626 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22627 $as_echo_n "(cached) " >&6
22629 gcc_cv_as_cfi_personality_directive
=no
22630 if test x
$gcc_cv_as != x
; then
22633 .cfi_personality 0, symbol
22634 .cfi_endproc' > conftest.s
22635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22637 (eval $ac_try) 2>&5
22639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22640 test $ac_status = 0; }; }
22642 gcc_cv_as_cfi_personality_directive
=yes
22644 echo "configure: failed program was" >&5
22647 rm -f conftest.o conftest.s
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22651 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22654 cat >>confdefs.h
<<_ACEOF
22655 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22656 then echo 1; else echo 0; fi`
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22661 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22662 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22663 $as_echo_n "(cached) " >&6
22665 gcc_cv_as_cfi_sections_directive
=no
22666 if test x
$gcc_cv_as != x
; then
22668 .cfi_sections .debug_frame, .eh_frame
22670 .cfi_endproc' > conftest.s
22671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22673 (eval $ac_try) 2>&5
22675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22676 test $ac_status = 0; }; }
22679 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22680 # Need to check that we generated the correct relocation for the
22681 # .debug_frame section. This was fixed for binutils 2.21.
22682 gcc_cv_as_cfi_sections_directive
=no
22683 if test "x$gcc_cv_objdump" != x
; then
22684 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22685 grep secrel
> /dev
/null
; then
22686 gcc_cv_as_cfi_sections_directive
=yes
22691 gcc_cv_as_cfi_sections_directive
=yes
22695 echo "configure: failed program was" >&5
22698 rm -f conftest.o conftest.s
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22702 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22706 cat >>confdefs.h
<<_ACEOF
22707 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22708 then echo 1; else echo 0; fi`
22712 # GAS versions up to and including 2.11.0 may mis-optimize
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22715 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22716 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22719 gcc_cv_as_eh_frame
=no
22720 if test $in_tree_gas = yes; then
22721 if test $in_tree_gas_is_elf = yes \
22722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22723 then gcc_cv_as_eh_frame
=yes
22725 elif test x
$gcc_cv_as != x
; then
22732 .section .eh_frame,"aw",@progbits
22734 .4byte .LECIE1-.LSCIE1
22748 .4byte .LEFDE1-.LASFDE1
22750 .4byte .LASFDE1-__FRAME_BEGIN__
22757 .LEFDE1:' > conftest.s
22758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760 (eval $ac_try) 2>&5
22762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763 test $ac_status = 0; }; }
22765 cat > conftest.lit
<<EOF
22766 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22767 0010 01000000 12000000 18000000 00000000 ................
22768 0020 08000000 04080000 0044 .........D
22770 cat > conftest.big
<<EOF
22771 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22772 0010 00000001 00000012 00000018 00000000 ................
22773 0020 00000008 04000000 0844 .........D
22775 # If the assembler didn't choke, and we can objdump,
22776 # and we got the correct data, then succeed.
22777 # The text in the here-document typically retains its unix-style line
22778 # endings, while the output of objdump will use host line endings.
22779 # Therefore, use diff -b for the comparisons.
22780 if test x
$gcc_cv_objdump != x \
22781 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22782 |
tail -3 > conftest.got \
22783 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22784 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22786 gcc_cv_as_eh_frame
=yes
22787 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789 (eval $ac_try) 2>&5
22791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792 test $ac_status = 0; }; }; then
22793 gcc_cv_as_eh_frame
=buggy
22795 # Uh oh, what do we do now?
22796 gcc_cv_as_eh_frame
=no
22799 echo "configure: failed program was" >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22806 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22809 if test $gcc_cv_as_eh_frame = buggy
; then
22811 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22816 $as_echo_n "checking assembler for section merging support... " >&6; }
22817 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22818 $as_echo_n "(cached) " >&6
22820 gcc_cv_as_shf_merge
=no
22821 if test $in_tree_gas = yes; then
22822 if test $in_tree_gas_is_elf = yes \
22823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22824 then gcc_cv_as_shf_merge
=yes
22826 elif test x
$gcc_cv_as != x
; then
22827 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22830 (eval $ac_try) 2>&5
22832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22833 test $ac_status = 0; }; }
22835 gcc_cv_as_shf_merge
=yes
22837 echo "configure: failed program was" >&5
22840 rm -f conftest.o conftest.s
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22844 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22846 if test $gcc_cv_as_shf_merge = no
; then
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22848 $as_echo_n "checking assembler for section merging support... " >&6; }
22849 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22850 $as_echo_n "(cached) " >&6
22852 gcc_cv_as_shf_merge
=no
22853 if test $in_tree_gas = yes; then
22854 if test $in_tree_gas_is_elf = yes \
22855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22856 then gcc_cv_as_shf_merge
=yes
22858 elif test x
$gcc_cv_as != x
; then
22859 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22862 (eval $ac_try) 2>&5
22864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22865 test $ac_status = 0; }; }
22867 gcc_cv_as_shf_merge
=yes
22869 echo "configure: failed program was" >&5
22872 rm -f conftest.o conftest.s
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22876 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22880 cat >>confdefs.h
<<_ACEOF
22881 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22886 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22887 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22888 $as_echo_n "(cached) " >&6
22890 gcc_cv_as_comdat_group
=no
22891 if test $in_tree_gas = yes; then
22892 if test $in_tree_gas_is_elf = yes \
22893 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22894 then gcc_cv_as_comdat_group
=yes
22896 elif test x
$gcc_cv_as != x
; then
22897 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22900 (eval $ac_try) 2>&5
22902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22903 test $ac_status = 0; }; }
22905 gcc_cv_as_comdat_group
=yes
22907 echo "configure: failed program was" >&5
22910 rm -f conftest.o conftest.s
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22914 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22916 if test $gcc_cv_as_comdat_group = yes; then
22917 gcc_cv_as_comdat_group_percent
=no
22918 gcc_cv_as_comdat_group_group
=no
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22921 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22922 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22925 gcc_cv_as_comdat_group_percent
=no
22926 if test $in_tree_gas = yes; then
22927 if test $in_tree_gas_is_elf = yes \
22928 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22929 then gcc_cv_as_comdat_group_percent
=yes
22931 elif test x
$gcc_cv_as != x
; then
22932 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; }
22940 gcc_cv_as_comdat_group_percent
=yes
22942 echo "configure: failed program was" >&5
22945 rm -f conftest.o conftest.s
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22949 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22951 if test $gcc_cv_as_comdat_group_percent = yes; then
22952 gcc_cv_as_comdat_group_group
=no
22954 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22955 gcc_cv_as_comdat_group_group
=no
22957 case "${target}" in
22958 # Sun as uses a completely different syntax.
22960 case "${target}" in
22961 sparc
*-*-solaris2*)
22963 .group foo,".text%foo",#comdat
22964 .section ".text%foo", #alloc,#execinstr,#progbits
22969 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22971 .group foo,.text%foo,#comdat
22972 .section .text%foo, "ax", @progbits
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22979 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22980 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22981 $as_echo_n "(cached) " >&6
22983 gcc_cv_as_comdat_group_group
=no
22984 if test x
$gcc_cv_as != x
; then
22985 $as_echo "$conftest_s" > conftest.s
22986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; }
22993 gcc_cv_as_comdat_group_group
=yes
22995 echo "configure: failed program was" >&5
22998 rm -f conftest.o conftest.s
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23002 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23008 if test x
"$ld_is_gold" = xyes
; then
23010 elif test $in_tree_ld = yes ; then
23012 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 \
23013 && test $in_tree_ld_is_elf = yes; then
23016 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23018 if test 0"$ld_date" -lt 20050308; then
23019 if test -n "$ld_date"; then
23020 # If there was date string, but was earlier than 2005-03-08, fail
23022 elif test "$ld_vers_major" -lt 2; then
23024 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23029 case "${target}" in
23030 *-*-solaris2.1
[1-9]*)
23032 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23033 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23036 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23037 # least ld version 1.2267.
23038 if test "$ld_vers_major" -gt 1; then
23040 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23042 elif test "$ld_vers_minor" -ge 2267; then
23047 # Assume linkers other than GNU ld don't support COMDAT group.
23052 # Allow overriding the automatic COMDAT group tests above.
23053 # Check whether --enable-comdat was given.
23054 if test "${enable_comdat+set}" = set; then :
23055 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23058 if test $comdat_group = no
; then
23059 gcc_cv_as_comdat_group
=no
23060 gcc_cv_as_comdat_group_percent
=no
23061 gcc_cv_as_comdat_group_group
=no
23064 cat >>confdefs.h
<<_ACEOF
23065 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23066 || test $gcc_cv_as_comdat_group_percent = yes \
23067 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23072 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23073 if test "${gcc_cv_as_discriminator+set}" = set; then :
23074 $as_echo_n "(cached) " >&6
23076 gcc_cv_as_discriminator
=no
23077 if test $in_tree_gas = yes; then
23078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23079 then gcc_cv_as_discriminator
=yes
23081 elif test x
$gcc_cv_as != x
; then
23084 .loc 1 1 0 discriminator 1' > conftest.s
23085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23087 (eval $ac_try) 2>&5
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; }
23092 gcc_cv_as_discriminator
=yes
23094 echo "configure: failed program was" >&5
23097 rm -f conftest.o conftest.s
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23101 $as_echo "$gcc_cv_as_discriminator" >&6; }
23102 if test $gcc_cv_as_discriminator = yes; then
23104 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23108 # Thread-local storage - the check is heavily parameterized.
23116 .section ".tdata","awT",@progbits
23119 ldq $27,__tls_get_addr($29) !literal!1
23120 lda $16,foo($29) !tlsgd!1
23121 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23122 ldq $27,__tls_get_addr($29) !literal!2
23123 lda $16,foo($29) !tlsldm!2
23124 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23125 ldq $1,foo($29) !gotdtprel
23126 ldah $2,foo($29) !dtprelhi
23127 lda $3,foo($2) !dtprello
23128 lda $4,foo($29) !dtprel
23129 ldq $1,foo($29) !gottprel
23130 ldah $2,foo($29) !tprelhi
23131 lda $3,foo($2) !tprello
23132 lda $4,foo($29) !tprel'
23135 tls_as_opt
=--fatal-warnings
23137 cris-
*-*|crisv32-
*-*)
23139 .section ".tdata","awT",@progbits
23146 tls_as_opt
=--fatal-warnings
23150 .section ".tdata","awT",@progbits
23153 call #gettlsoff(x)'
23162 .section ".tdata","awT",@progbits
23166 addil LT%foo-$tls_gdidx$,gp
23167 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23170 addil LT%foo-$tls_ldidx$,gp
23172 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23173 addil LR%foo-$tls_dtpoff$,%ret0
23174 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23176 addil LT%foo-$tls_ieoff$,gp
23177 ldw RT%foo-$tls_ieoff$(%r1),%t2
23180 addil LR%foo-$tls_leoff$,%t1
23181 ldo RR%foo-$tls_leoff$(%r1),%t2'
23184 tls_as_opt
=--fatal-warnings
23188 .section ".tdata","awT",%progbits
23191 .word foo(gottpoff)
23199 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23201 i
[34567]86-*-solaris2.
*)
23203 tga_func
=___tls_get_addr
23205 x86_64-
*-solaris2.1
[0-9]*)
23207 tga_func
=__tls_get_addr
23213 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23215 .section .tdata,"awt",@progbits'
23219 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23223 .section ".tdata","awT",@progbits'
23226 tls_as_opt
="--fatal-warnings"
23228 conftest_s
="$conftest_s
23232 leal foo@tlsgd(,%ebx,1), %eax
23233 leal foo@tlsldm(%ebx), %eax
23234 leal foo@dtpoff(%eax), %edx
23235 movl foo@gottpoff(%ebx), %eax
23236 subl foo@gottpoff(%ebx), %eax
23237 addl foo@gotntpoff(%ebx), %eax
23238 movl foo@indntpoff, %eax
23239 movl \$foo@tpoff, %eax
23240 subl \$foo@tpoff, %eax
23241 leal foo@ntpoff(%ecx), %eax"
23245 .section ".tdata","awT",@progbits
23249 leaq foo@TLSGD(%rip), %rdi
23250 leaq foo@TLSLD(%rip), %rdi
23251 leaq foo@DTPOFF(%rax), %rdx
23252 movq foo@GOTTPOFF(%rip), %rax
23253 movq $foo@TPOFF, %rax'
23256 tls_as_opt
=--fatal-warnings
23260 .section ".tdata","awT",@progbits
23263 addl r16 = @ltoff(@dtpmod(foo#)), gp
23264 addl r17 = @ltoff(@dtprel(foo#)), gp
23265 addl r18 = @ltoff(@tprel(foo#)), gp
23266 addl r19 = @dtprel(foo#), gp
23267 adds r21 = @dtprel(foo#), r13
23268 movl r23 = @dtprel(foo#)
23269 addl r20 = @tprel(foo#), gp
23270 adds r22 = @tprel(foo#), r13
23271 movl r24 = @tprel(foo#)'
23274 tls_as_opt
=--fatal-warnings
23278 .section .tdata,"awT",@progbits
23282 addik r5,r20,x@TLSGD
23283 addik r5,r20,x@TLSLDM'
23286 tls_as_opt
='--fatal-warnings'
23290 .section .tdata,"awT",@progbits
23294 addiu $4, $28, %tlsgd(x)
23295 addiu $4, $28, %tlsldm(x)
23296 lui $4, %dtprel_hi(x)
23297 addiu $4, $4, %dtprel_lo(x)
23298 lw $4, %gottprel(x)($28)
23299 lui $4, %tprel_hi(x)
23300 addiu $4, $4, %tprel_lo(x)'
23303 tls_as_opt
='-32 --fatal-warnings'
23307 .section .tdata,"awT",@progbits
23312 move.l x@TLSGD(%a5),%a0
23313 move.l x@TLSLDM(%a5),%a0
23314 move.l x@TLSLDO(%a5),%a0
23315 move.l x@TLSIE(%a5),%a0
23316 move.l x@TLSLE(%a5),%a0'
23319 tls_as_opt
='--fatal-warnings'
23323 .section ".tdata","awT",%progbits
23327 add x0, x0, #:tlsgd_lo12:x
23332 tls_as_opt
='--fatal-warnings'
23336 .extern __get_tpointer
23354 .section ".tdata","awT",@progbits
23362 addi 3,2,ld0@got@tlsgd
23368 addi 3,2,x1@got@tlsld
23374 addis 9,3,x2@dtprel@ha
23375 addi 9,9,x2@dtprel@l
23378 ld 9,x3@got@dtprel(2)
23384 tls_as_opt
="-a64 --fatal-warnings"
23388 .section ".tdata","awT",@progbits
23396 addi 3,31,ld0@got@tlsgd
23398 addi 3,31,x1@got@tlsld
23401 addis 9,3,x2@dtprel@ha
23402 addi 9,9,x2@dtprel@l
23403 lwz 9,x3@got@tprel(31)
23406 addis 9,2,x2@tprel@ha
23407 addi 9,9,x2@tprel@l'
23410 tls_as_opt
="-a32 --fatal-warnings"
23414 .section ".tdata","awT",@progbits
23421 .long foo@GOTNTPOFF
23422 .long foo@INDNTPOFF
23423 l %r1,foo@GOTNTPOFF(%r12)
23424 l %r1,0(%r1):tls_load:foo
23425 bas %r14,0(%r1,%r13):tls_gdcall:foo
23426 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23429 tls_as_opt
="-m31 --fatal-warnings"
23433 .section ".tdata","awT",@progbits
23440 .quad foo@GOTNTPOFF
23441 lg %r1,foo@GOTNTPOFF(%r12)
23442 larl %r1,foo@INDNTPOFF
23443 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23444 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23447 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23449 sh-
*-* | sh
[34]-*-*)
23451 .section ".tdata","awT",@progbits
23461 tls_as_opt
=--fatal-warnings
23465 sparc
*-sun-solaris2.
*)
23467 tga_func
=__tls_get_addr
23473 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23475 .section ".tdata",#alloc,#write,#tls'
23480 .section ".tdata","awT",@progbits'
23483 tls_as_opt
="-32 --fatal-warnings"
23485 conftest_s
="$conftest_s
23488 sethi %tgd_hi22(foo), %o0
23489 add %o0, %tgd_lo10(foo), %o1
23490 add %l7, %o1, %o0, %tgd_add(foo)
23491 call __tls_get_addr, %tgd_call(foo)
23492 sethi %tldm_hi22(foo), %l1
23493 add %l1, %tldm_lo10(foo), %l2
23494 add %l7, %l2, %o0, %tldm_add(foo)
23495 call __tls_get_addr, %tldm_call(foo)
23496 sethi %tldo_hix22(foo), %l3
23497 xor %l3, %tldo_lox10(foo), %l4
23498 add %o0, %l4, %l5, %tldo_add(foo)
23499 sethi %tie_hi22(foo), %o3
23500 add %o3, %tie_lo10(foo), %o3
23501 ld [%l7 + %o3], %o2, %tie_ld(foo)
23502 add %g7, %o2, %o4, %tie_add(foo)
23503 sethi %tle_hix22(foo), %l1
23504 xor %l1, %tle_lox10(foo), %o5
23505 ld [%g7 + %o5], %o1"
23509 .section ".tdata","awT",@progbits
23512 addli r0, zero, tls_gd(foo)
23513 auli r0, zero, tls_gd_ha16(foo)
23514 addli r0, r0, tls_gd_lo16(foo)
23516 addli r0, zero, tls_ie(foo)
23517 auli r0, r0, tls_ie_ha16(foo)
23518 addli r0, r0, tls_ie_lo16(foo)'
23521 tls_as_opt
="--fatal-warnings"
23525 .section ".tdata","awT",@progbits
23528 shl16insli r0, zero, hw0_last_tls_gd(foo)
23529 shl16insli r0, zero, hw1_last_tls_gd(foo)
23530 shl16insli r0, r0, hw0_tls_gd(foo)
23532 shl16insli r0, zero, hw1_last_tls_ie(foo)
23533 shl16insli r0, r0, hw0_tls_ie(foo)'
23536 tls_as_opt
="--fatal-warnings"
23540 .section ".tdata","awT",@progbits
23543 movi a8, foo@TLSFUNC
23544 movi a10, foo@TLSARG
23545 callx8.tls a8, foo@TLSCALL'
23551 if test "x$enable_tls" = xno
; then
23552 : # TLS explicitly disabled.
23553 elif test "x$enable_tls" = xyes
; then
23554 set_have_as_tls
=yes # TLS explicitly enabled.
23555 elif test -z "$tls_first_major"; then
23556 : # If we don't have a check, assume no support.
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23559 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23560 if test "${gcc_cv_as_tls+set}" = set; then :
23561 $as_echo_n "(cached) " >&6
23564 if test $in_tree_gas = yes; then
23565 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23566 then gcc_cv_as_tls
=yes
23568 elif test x
$gcc_cv_as != x
; then
23569 $as_echo "$conftest_s" > conftest.s
23570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23579 echo "configure: failed program was" >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23586 $as_echo "$gcc_cv_as_tls" >&6; }
23587 if test $gcc_cv_as_tls = yes; then
23588 set_have_as_tls
=yes
23592 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23593 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23594 # Sun style that Sun ld and GCC don't support any longer.
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23597 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23599 # Check ld and ld.so.1 TLS support.
23600 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23601 # Assume all interesting versions of GNU ld have TLS support.
23602 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23606 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23608 min_tls_ld_vers_minor
=374
23610 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23611 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23612 min_tls_ld_vers_minor
=343
23615 if test "$ld_vers_major" -gt 1 || \
23616 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23623 $as_echo "$ld_tls_support" >&6; }
23626 save_LDFLAGS
="$LDFLAGS"
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23631 $as_echo_n "checking library containing $tga_func... " >&6; }
23632 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23633 # (32-bit x86) only lived in libthread, so check for that. Keep
23634 # set_have_as_tls if found, disable if not.
23635 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23637 $as_echo_n "checking for library containing $tga_func... " >&6; }
23638 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23639 $as_echo_n "(cached) " >&6
23641 ac_func_search_save_LIBS
=$LIBS
23642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23643 /* end confdefs.h. */
23645 /* Override any GCC internal prototype to avoid an error.
23646 Use char because int might match the return type of a GCC
23647 builtin and then its argument prototype would still apply. */
23655 return $tga_func ();
23660 for ac_lib
in '' thread
; do
23661 if test -z "$ac_lib"; then
23662 ac_res
="none required"
23665 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23667 if ac_fn_c_try_link
"$LINENO"; then :
23668 eval "$as_ac_Search=\$ac_res"
23670 rm -f core conftest.err conftest.
$ac_objext \
23672 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23676 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23679 eval "$as_ac_Search=no"
23681 rm conftest.
$ac_ext
23682 LIBS
=$ac_func_search_save_LIBS
23684 eval ac_res
=\$
$as_ac_Search
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23686 $as_echo "$ac_res" >&6; }
23687 eval ac_res
=\$
$as_ac_Search
23688 if test "$ac_res" != no
; then :
23689 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23695 # Clear LIBS if we cannot support TLS.
23696 if test $set_have_as_tls = no
; then
23699 # Always define LIB_TLS_SPEC, even without TLS support.
23701 cat >>confdefs.h
<<_ACEOF
23702 #define LIB_TLS_SPEC "$LIBS"
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23706 $as_echo "$LIBS" >&6; }
23709 LDFLAGS
="$save_LDFLAGS"
23712 if test $set_have_as_tls = yes ; then
23714 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23718 # Target-specific assembler checks.
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23721 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23722 gcc_cv_ld_static_dynamic
=no
23723 gcc_cv_ld_static_option
='-Bstatic'
23724 gcc_cv_ld_dynamic_option
='-Bdynamic'
23725 if test $in_tree_ld = yes ; then
23726 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
23727 gcc_cv_ld_static_dynamic
=yes
23729 elif test x
$gcc_cv_ld != x
; then
23730 # Check if linker supports -Bstatic/-Bdynamic option
23731 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23732 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23733 gcc_cv_ld_static_dynamic
=yes
23736 # AIX ld uses -b flags
23737 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23738 gcc_cv_ld_static_dynamic
=yes
23739 gcc_cv_ld_static_option
="-bstatic"
23740 gcc_cv_ld_dynamic_option
="-bdynamic"
23742 # HP-UX ld uses -a flags to select between shared and archive.
23744 if test x
"$gnu_ld" = xno
; then
23745 gcc_cv_ld_static_dynamic
=yes
23746 gcc_cv_ld_static_option
="-aarchive_shared"
23747 gcc_cv_ld_dynamic_option
="-adefault"
23750 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23752 gcc_cv_ld_static_dynamic
=yes
23757 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23759 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23762 cat >>confdefs.h
<<_ACEOF
23763 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23767 cat >>confdefs.h
<<_ACEOF
23768 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23773 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23775 if test x
"$demangler_in_ld" = xyes
; then
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23777 $as_echo_n "checking linker --demangle support... " >&6; }
23778 gcc_cv_ld_demangle
=no
23779 if test $in_tree_ld = yes; then
23780 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 \
23781 gcc_cv_ld_demangle
=yes
23783 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23784 # Check if the GNU linker supports --demangle option
23785 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23786 gcc_cv_ld_demangle
=yes
23789 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23791 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23795 $as_echo "$gcc_cv_ld_demangle" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23799 $as_echo_n "checking linker plugin support... " >&6; }
23800 gcc_cv_lto_plugin
=0
23801 if test -f liblto_plugin.la
; then
23802 save_ld_ver
="$ld_ver"
23803 save_ld_vers_major
="$ld_vers_major"
23804 save_ld_vers_minor
="$ld_vers_minor"
23805 save_ld_is_gold
="$ld_is_gold"
23809 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23811 # FIXME: ld_is_gold?
23812 ld_vers_major
="$gcc_cv_gld_major_version"
23813 ld_vers_minor
="$gcc_cv_gld_minor_version"
23815 # Determine plugin linker version.
23816 # FIXME: Partial duplicate from above, generalize.
23817 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23818 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23819 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23821 ld_vers
=`echo $ld_ver | sed -n \
23822 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23824 ld_vers
=`echo $ld_ver | sed -n \
23825 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23827 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23828 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23832 # Determine plugin support.
23833 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23834 # Require GNU ld or gold 2.21+ for plugin support by default.
23835 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23836 gcc_cv_lto_plugin
=2
23837 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23838 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23839 gcc_cv_lto_plugin
=1
23843 ld_ver
="$save_ld_ver"
23844 ld_vers_major
="$save_ld_vers_major"
23845 ld_vers_minor
="$save_ld_vers_minor"
23846 ld_is_gold
="$save_ld_is_gold"
23849 cat >>confdefs.h
<<_ACEOF
23850 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23854 $as_echo "$gcc_cv_lto_plugin" >&6; }
23857 # All TARGET_ABI_OSF targets.
23858 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23860 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23861 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23864 gcc_cv_as_alpha_explicit_relocs
=no
23865 if test $in_tree_gas = yes; then
23866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23867 then gcc_cv_as_alpha_explicit_relocs
=yes
23869 elif test x
$gcc_cv_as != x
; then
23870 $as_echo ' .set nomacro
23872 extbl $3, $2, $3 !lituse_bytoff!1
23873 ldq $2, a($29) !literal!1
23874 ldq $4, b($29) !literal!2
23875 ldq_u $3, 0($2) !lituse_base!1
23876 ldq $27, f($29) !literal!5
23877 jsr $26, ($27), f !lituse_jsr!5
23878 ldah $29, 0($26) !gpdisp!3
23879 lda $0, c($29) !gprel
23880 ldah $1, d($29) !gprelhigh
23881 lda $1, d($1) !gprellow
23882 lda $29, 0($29) !gpdisp!3' > conftest.s
23883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23885 (eval $ac_try) 2>&5
23887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888 test $ac_status = 0; }; }
23890 gcc_cv_as_alpha_explicit_relocs
=yes
23892 echo "configure: failed program was" >&5
23895 rm -f conftest.o conftest.s
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23899 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23900 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23902 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23906 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23907 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23908 $as_echo_n "(cached) " >&6
23910 gcc_cv_as_alpha_jsrdirect_relocs
=no
23911 if test $in_tree_gas = yes; then
23912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23913 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23915 elif test x
$gcc_cv_as != x
; then
23916 $as_echo ' .set nomacro
23918 ldq $27, a($29) !literal!1
23919 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23922 (eval $ac_try) 2>&5
23924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23925 test $ac_status = 0; }; }
23927 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23929 echo "configure: failed program was" >&5
23932 rm -f conftest.o conftest.s
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23936 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23937 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23939 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23946 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23947 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23948 $as_echo_n "(cached) " >&6
23950 gcc_cv_as_cris_no_mul_bug
=no
23951 if test $in_tree_gas = yes; then
23952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23953 then gcc_cv_as_cris_no_mul_bug
=yes
23955 elif test x
$gcc_cv_as != x
; then
23956 $as_echo '.text' > conftest.s
23957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23959 (eval $ac_try) 2>&5
23961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23962 test $ac_status = 0; }; }
23964 gcc_cv_as_cris_no_mul_bug
=yes
23966 echo "configure: failed program was" >&5
23969 rm -f conftest.o conftest.s
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23973 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23974 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23976 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23983 $as_echo_n "checking assembler for .register... " >&6; }
23984 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23987 gcc_cv_as_sparc_register_op
=no
23988 if test x
$gcc_cv_as != x
; then
23989 $as_echo '.register %g2, #scratch' > conftest.s
23990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23992 (eval $ac_try) 2>&5
23994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23995 test $ac_status = 0; }; }
23997 gcc_cv_as_sparc_register_op
=yes
23999 echo "configure: failed program was" >&5
24002 rm -f conftest.o conftest.s
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24006 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24007 if test $gcc_cv_as_sparc_register_op = yes; then
24009 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24014 $as_echo_n "checking assembler for #nobits... " >&6; }
24015 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24016 $as_echo_n "(cached) " >&6
24018 gcc_cv_as_sparc_nobits
=no
24019 if test x
$gcc_cv_as != x
; then
24020 $as_echo '.section "nobits",#alloc,#write,#nobits
24021 .section "progbits",#alloc,#write,#progbits' > conftest.s
24022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24024 (eval $ac_try) 2>&5
24026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24027 test $ac_status = 0; }; }
24029 gcc_cv_as_sparc_nobits
=yes
24031 echo "configure: failed program was" >&5
24034 rm -f conftest.o conftest.s
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24038 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24041 cat >>confdefs.h
<<_ACEOF
24042 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24047 $as_echo_n "checking assembler for -relax option... " >&6; }
24048 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24051 gcc_cv_as_sparc_relax
=no
24052 if test x
$gcc_cv_as != x
; then
24053 $as_echo '.text' > conftest.s
24054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24056 (eval $ac_try) 2>&5
24058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24059 test $ac_status = 0; }; }
24061 gcc_cv_as_sparc_relax
=yes
24063 echo "configure: failed program was" >&5
24066 rm -f conftest.o conftest.s
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24070 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24071 if test $gcc_cv_as_sparc_relax = yes; then
24073 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24078 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24079 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24082 gcc_cv_as_sparc_gotdata_op
=no
24083 if test x
$gcc_cv_as != x
; then
24089 sethi %gdop_hix22(foo), %g1
24090 xor %g1, %gdop_lox10(foo), %g1
24091 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24099 if test x
$gcc_cv_ld != x \
24100 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24101 if test x
$gcc_cv_objdump != x
; then
24102 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24103 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24104 gcc_cv_as_sparc_gotdata_op
=no
24106 gcc_cv_as_sparc_gotdata_op
=yes
24112 echo "configure: failed program was" >&5
24115 rm -f conftest.o conftest.s
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24119 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24120 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24122 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24127 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24128 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24129 $as_echo_n "(cached) " >&6
24131 gcc_cv_as_sparc_ua_pcrel
=no
24132 if test x
$gcc_cv_as != x
; then
24139 .uaword %r_disp32(foo)' > conftest.s
24140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24142 (eval $ac_try) 2>&5
24144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24145 test $ac_status = 0; }; }
24147 if test x
$gcc_cv_ld != x \
24148 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24149 gcc_cv_as_sparc_ua_pcrel
=yes
24153 echo "configure: failed program was" >&5
24156 rm -f conftest.o conftest.s
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24160 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24161 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24163 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24167 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24168 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24169 $as_echo_n "(cached) " >&6
24171 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24172 if test x
$gcc_cv_as != x
; then
24176 .uaword %r_disp32(foo)
24177 .byte 0x32, 0x33, 0x34
24181 .skip 4' > conftest.s
24182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24184 (eval $ac_try) 2>&5
24186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24187 test $ac_status = 0; }; }
24189 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24190 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24191 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24192 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24193 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24194 |
grep 'DISP32' > /dev
/null
2>&1; then
24197 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24202 echo "configure: failed program was" >&5
24205 rm -f conftest.o conftest.s
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24209 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24210 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24212 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24216 fi # unaligned pcrel relocs
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24219 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24220 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24223 gcc_cv_as_sparc_offsetable_lo10
=no
24224 if test x
$gcc_cv_as != x
; then
24226 or %g1, %lo(ab) + 12, %g1
24227 or %g1, %lo(ab + 12), %g1' > conftest.s
24228 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24230 (eval $ac_try) 2>&5
24232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24233 test $ac_status = 0; }; }
24235 if test x
$gcc_cv_objdump != x \
24236 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24237 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24238 gcc_cv_as_sparc_offsetable_lo10
=yes
24241 echo "configure: failed program was" >&5
24244 rm -f conftest.o conftest.s
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24248 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24249 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24251 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24256 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24257 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24258 $as_echo_n "(cached) " >&6
24260 gcc_cv_as_sparc_fmaf
=no
24261 if test x
$gcc_cv_as != x
; then
24263 .register %g2, #scratch
24264 .register %g3, #scratch
24266 fmaddd %f0, %f2, %f4, %f6
24267 addxccc %g1, %g2, %g3
24268 fsrl32 %f2, %f4, %f8
24269 fnaddd %f10, %f12, %f14' > conftest.s
24270 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }
24277 gcc_cv_as_sparc_fmaf
=yes
24279 echo "configure: failed program was" >&5
24282 rm -f conftest.o conftest.s
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24286 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24287 if test $gcc_cv_as_sparc_fmaf = yes; then
24289 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24294 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24295 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24296 $as_echo_n "(cached) " >&6
24298 gcc_cv_as_sparc_sparc4
=no
24299 if test x
$gcc_cv_as != x
; then
24301 .register %g2, #scratch
24302 .register %g3, #scratch
24305 1: cwbneg %g2, %g3, 1f
24308 aes_kexpand0 %f4, %f6, %f8
24309 des_round %f38, %f40, %f42, %f44
24310 camellia_f %f54, %f56, %f58, %f60
24311 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24312 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24314 (eval $ac_try) 2>&5
24316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24317 test $ac_status = 0; }; }
24319 gcc_cv_as_sparc_sparc4
=yes
24321 echo "configure: failed program was" >&5
24324 rm -f conftest.o conftest.s
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24328 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24329 if test $gcc_cv_as_sparc_sparc4 = yes; then
24331 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24336 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24337 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24338 $as_echo_n "(cached) " >&6
24340 gcc_cv_as_sparc_leon
=no
24341 if test x
$gcc_cv_as != x
; then
24343 .register %g2, #scratch
24344 .register %g3, #scratch
24348 cas [%g2], %g3, %g1' > conftest.s
24349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24356 gcc_cv_as_sparc_leon
=yes
24358 echo "configure: failed program was" >&5
24361 rm -f conftest.o conftest.s
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24365 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24366 if test $gcc_cv_as_sparc_leon = yes; then
24368 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24373 i
[34567]86-*-* | x86_64-
*-*)
24376 # Full C++ conformance when using a shared libstdc++-v3 requires some
24377 # support from the Cygwin DLL, which in more recent versions exports
24378 # wrappers to aid in interposing and redirecting operators new, delete,
24379 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24380 # are configuring for a version of Cygwin that exports the wrappers.
24381 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24382 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24383 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24384 gcc_ac_cygwin_dll_wrappers
=yes
24386 gcc_ac_cygwin_dll_wrappers
=no
24390 # Can't check presence of libc functions during cross-compile, so
24391 # we just have to assume we're building for an up-to-date target.
24392 gcc_ac_cygwin_dll_wrappers
=yes
24395 cat >>confdefs.h
<<_ACEOF
24396 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24401 cygwin
* | pe | mingw32
* | interix
*)
24402 # Recent binutils allows the three-operand form of ".comm" on PE. This
24403 # definition is used unconditionally to initialise the default state of
24404 # the target option variable that governs usage of the feature.
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24406 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24407 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24410 gcc_cv_as_comm_has_align
=no
24411 if test $in_tree_gas = yes; then
24412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24413 then gcc_cv_as_comm_has_align
=yes
24415 elif test x
$gcc_cv_as != x
; then
24416 $as_echo '.comm foo,1,32' > conftest.s
24417 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24419 (eval $ac_try) 2>&5
24421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24422 test $ac_status = 0; }; }
24424 gcc_cv_as_comm_has_align
=yes
24426 echo "configure: failed program was" >&5
24429 rm -f conftest.o conftest.s
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24433 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24436 cat >>confdefs.h
<<_ACEOF
24437 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24440 # Used for DWARF 2 in PE
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24442 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24443 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24446 gcc_cv_as_ix86_pe_secrel32
=no
24447 if test $in_tree_gas = yes; then
24448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24449 then gcc_cv_as_ix86_pe_secrel32
=yes
24451 elif test x
$gcc_cv_as != x
; then
24455 .secrel32 foo' > conftest.s
24456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458 (eval $ac_try) 2>&5
24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461 test $ac_status = 0; }; }
24463 if test x
$gcc_cv_ld != x \
24464 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24465 gcc_cv_as_ix86_pe_secrel32
=yes
24469 echo "configure: failed program was" >&5
24472 rm -f conftest.o conftest.s
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24476 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24477 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24479 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24482 # Test if the assembler supports the extended form of the .section
24483 # directive that specifies section alignment. LTO support uses this,
24484 # but normally only after installation, so we warn but don't fail the
24485 # configure if LTO is enabled but the assembler does not support it.
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24487 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24488 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_section_has_align
=no
24492 if test $in_tree_gas = yes; then
24493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24494 then gcc_cv_as_section_has_align
=yes
24496 elif test x
$gcc_cv_as != x
; then
24497 $as_echo '.section lto_test,"dr0"' > conftest.s
24498 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24500 (eval $ac_try) 2>&5
24502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24503 test $ac_status = 0; }; }
24505 gcc_cv_as_section_has_align
=yes
24507 echo "configure: failed program was" >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24514 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24516 if test x
$gcc_cv_as_section_has_align != xyes
; then
24517 case ",$enable_languages," in
24519 { $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
24520 $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;}
24524 # Test if the assembler supports the section flag 'e' for specifying
24525 # an excluded section.
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24527 $as_echo_n "checking assembler for .section with e... " >&6; }
24528 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24531 gcc_cv_as_section_has_e
=no
24532 if test $in_tree_gas = yes; then
24533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24534 then gcc_cv_as_section_has_e
=yes
24536 elif test x
$gcc_cv_as != x
; then
24537 $as_echo '.section foo1,"e"
24538 .byte 0,0,0,0' > conftest.s
24539 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24541 (eval $ac_try) 2>&5
24543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24544 test $ac_status = 0; }; }
24546 gcc_cv_as_section_has_e
=yes
24548 echo "configure: failed program was" >&5
24551 rm -f conftest.o conftest.s
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24555 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24558 cat >>confdefs.h
<<_ACEOF
24559 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24566 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24567 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24570 gcc_cv_as_ix86_filds
=no
24571 if test x
$gcc_cv_as != x
; then
24572 $as_echo 'filds mem; fists mem' > conftest.s
24573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24575 (eval $ac_try) 2>&5
24577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24578 test $ac_status = 0; }; }
24580 gcc_cv_as_ix86_filds
=yes
24582 echo "configure: failed program was" >&5
24585 rm -f conftest.o conftest.s
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24589 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24590 if test $gcc_cv_as_ix86_filds = yes; then
24592 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24597 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24598 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_as_ix86_fildq
=no
24602 if test x
$gcc_cv_as != x
; then
24603 $as_echo 'fildq mem; fistpq mem' > conftest.s
24604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24611 gcc_cv_as_ix86_fildq
=yes
24613 echo "configure: failed program was" >&5
24616 rm -f conftest.o conftest.s
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24620 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24621 if test $gcc_cv_as_ix86_fildq = yes; then
24623 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24628 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24629 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24632 gcc_cv_as_ix86_cmov_sun_syntax
=no
24633 if test x
$gcc_cv_as != x
; then
24634 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24637 (eval $ac_try) 2>&5
24639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24640 test $ac_status = 0; }; }
24642 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24644 echo "configure: failed program was" >&5
24647 rm -f conftest.o conftest.s
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24651 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24652 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24654 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24659 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24660 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24663 gcc_cv_as_ix86_ffreep
=no
24664 if test x
$gcc_cv_as != x
; then
24665 $as_echo 'ffreep %st(1)' > conftest.s
24666 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }
24673 gcc_cv_as_ix86_ffreep
=yes
24675 echo "configure: failed program was" >&5
24678 rm -f conftest.o conftest.s
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24682 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24683 if test $gcc_cv_as_ix86_ffreep = yes; then
24685 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24690 $as_echo_n "checking assembler for .quad directive... " >&6; }
24691 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24694 gcc_cv_as_ix86_quad
=no
24695 if test x
$gcc_cv_as != x
; then
24696 $as_echo '.quad 0' > conftest.s
24697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24704 gcc_cv_as_ix86_quad
=yes
24706 echo "configure: failed program was" >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24713 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24714 if test $gcc_cv_as_ix86_quad = yes; then
24716 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24721 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24722 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24725 gcc_cv_as_ix86_sahf
=no
24726 if test x
$gcc_cv_as != x
; then
24729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24736 gcc_cv_as_ix86_sahf
=yes
24738 echo "configure: failed program was" >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24745 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24746 if test $gcc_cv_as_ix86_sahf = yes; then
24748 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24753 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24754 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24757 gcc_cv_as_ix86_interunit_movq
=no
24758 if test x
$gcc_cv_as != x
; then
24761 movq %rax, %xmm0' > conftest.s
24762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24769 gcc_cv_as_ix86_interunit_movq
=yes
24771 echo "configure: failed program was" >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24778 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24779 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24781 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24786 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24787 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24790 gcc_cv_as_ix86_hle
=no
24791 if test x
$gcc_cv_as != x
; then
24792 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; }
24800 gcc_cv_as_ix86_hle
=yes
24802 echo "configure: failed program was" >&5
24805 rm -f conftest.o conftest.s
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24809 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24810 if test $gcc_cv_as_ix86_hle = yes; then
24812 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24817 $as_echo_n "checking assembler for swap suffix... " >&6; }
24818 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24819 $as_echo_n "(cached) " >&6
24821 gcc_cv_as_ix86_swap
=no
24822 if test x
$gcc_cv_as != x
; then
24823 $as_echo 'movl.s %esp, %ebp' > conftest.s
24824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24826 (eval $ac_try) 2>&5
24828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24829 test $ac_status = 0; }; }
24831 gcc_cv_as_ix86_swap
=yes
24833 echo "configure: failed program was" >&5
24836 rm -f conftest.o conftest.s
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24840 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24841 if test $gcc_cv_as_ix86_swap = yes; then
24843 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24848 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24849 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24850 $as_echo_n "(cached) " >&6
24852 gcc_cv_as_ix86_diff_sect_delta
=no
24853 if test x
$gcc_cv_as != x
; then
24854 $as_echo '.section .rodata
24860 .L2: nop' > conftest.s
24861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24868 gcc_cv_as_ix86_diff_sect_delta
=yes
24870 echo "configure: failed program was" >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24877 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24878 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24880 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24884 # These two are used unconditionally by i386.[ch]; it is to be defined
24885 # to 1 if the feature is present, 0 otherwise.
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24887 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24888 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24889 $as_echo_n "(cached) " >&6
24891 gcc_cv_as_ix86_gotoff_in_data
=no
24892 if test $in_tree_gas = yes; then
24893 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24894 then gcc_cv_as_ix86_gotoff_in_data
=yes
24896 elif test x
$gcc_cv_as != x
; then
24901 .long .L0@GOTOFF' > conftest.s
24902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24904 (eval $ac_try) 2>&5
24906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24907 test $ac_status = 0; }; }
24909 gcc_cv_as_ix86_gotoff_in_data
=yes
24911 echo "configure: failed program was" >&5
24914 rm -f conftest.o conftest.s
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24918 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24921 cat >>confdefs.h
<<_ACEOF
24922 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24927 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24928 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24931 gcc_cv_as_ix86_rep_lock_prefix
=no
24932 if test x
$gcc_cv_as != x
; then
24933 $as_echo 'rep movsl
24938 lock addl %edi, (%eax,%esi)
24939 lock orl $0, (%esp)' > conftest.s
24940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24947 gcc_cv_as_ix86_rep_lock_prefix
=yes
24949 echo "configure: failed program was" >&5
24952 rm -f conftest.o conftest.s
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24956 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24957 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24959 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24964 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24965 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24968 gcc_cv_as_ix86_tlsgdplt
=no
24969 if test x
$gcc_cv_as != x
; then
24970 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 if test x
$gcc_cv_ld != x \
24979 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24980 gcc_cv_as_ix86_tlsgdplt
=yes
24984 echo "configure: failed program was" >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24991 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24992 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24994 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24999 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25000 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25003 gcc_cv_as_ix86_tlsldmplt
=no
25004 if test x
$gcc_cv_as != x
; then
25006 call tls_ld@tlsldmplt' > 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 if test x
$gcc_cv_ld != x \
25015 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25016 gcc_cv_as_ix86_tlsldmplt
=yes
25020 echo "configure: failed program was" >&5
25023 rm -f conftest.o conftest.s
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25027 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25028 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25030 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25038 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25039 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25040 $as_echo_n "(cached) " >&6
25042 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25045 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25047 elif test x
$gcc_cv_as != x
; then
25049 addl r15 = @ltoffx(x#), gp
25051 ld8.mov r16 = [r15], x#' > conftest.s
25052 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25054 (eval $ac_try) 2>&5
25056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25057 test $ac_status = 0; }; }
25059 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25061 echo "configure: failed program was" >&5
25064 rm -f conftest.o conftest.s
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25068 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25069 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25071 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25079 *-*-aix*) conftest_s
=' .machine "pwr5"
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25084 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25085 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25088 gcc_cv_as_machine_directive
=no
25089 if test x
$gcc_cv_as != x
; then
25090 $as_echo ' .machine ppc7400' > conftest.s
25091 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; }
25098 gcc_cv_as_machine_directive
=yes
25100 echo "configure: failed program was" >&5
25103 rm -f conftest.o conftest.s
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25107 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25109 if test x
$gcc_cv_as_machine_directive != xyes
; then
25110 echo "*** This target requires an assembler supporting \".machine\"" >&2
25111 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25112 test x
$build = x
$target && exit 1
25116 *) conftest_s
=' .machine power4
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25122 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25123 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25124 $as_echo_n "(cached) " >&6
25126 gcc_cv_as_powerpc_mfcrf
=no
25127 if test $in_tree_gas = yes; then
25128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25129 then gcc_cv_as_powerpc_mfcrf
=yes
25131 elif test x
$gcc_cv_as != x
; then
25132 $as_echo "$conftest_s" > conftest.s
25133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }
25140 gcc_cv_as_powerpc_mfcrf
=yes
25142 echo "configure: failed program was" >&5
25145 rm -f conftest.o conftest.s
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25149 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25150 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25152 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25157 *-*-aix*) conftest_s
=' .machine "pwr5"
25160 *) conftest_s
=' .machine power5
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25166 $as_echo_n "checking assembler for popcntb support... " >&6; }
25167 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25170 gcc_cv_as_powerpc_popcntb
=no
25171 if test $in_tree_gas = yes; then
25172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25173 then gcc_cv_as_powerpc_popcntb
=yes
25175 elif test x
$gcc_cv_as != x
; then
25176 $as_echo "$conftest_s" > conftest.s
25177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25184 gcc_cv_as_powerpc_popcntb
=yes
25186 echo "configure: failed program was" >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25193 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25194 if test $gcc_cv_as_powerpc_popcntb = yes; then
25196 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25201 *-*-aix*) conftest_s
=' .machine "pwr5x"
25204 *) conftest_s
=' .machine power5
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25210 $as_echo_n "checking assembler for fp round support... " >&6; }
25211 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25214 gcc_cv_as_powerpc_fprnd
=no
25215 if test $in_tree_gas = yes; then
25216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25217 then gcc_cv_as_powerpc_fprnd
=yes
25219 elif test x
$gcc_cv_as != x
; then
25220 $as_echo "$conftest_s" > 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_powerpc_fprnd
=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_powerpc_fprnd" >&5
25237 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25238 if test $gcc_cv_as_powerpc_fprnd = yes; then
25240 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25245 *-*-aix*) conftest_s
=' .machine "pwr6"
25248 *) conftest_s
=' .machine power6
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25254 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25255 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25258 gcc_cv_as_powerpc_mfpgpr
=no
25259 if test $in_tree_gas = yes; then
25260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25261 then gcc_cv_as_powerpc_mfpgpr
=yes
25263 elif test x
$gcc_cv_as != x
; then
25264 $as_echo "$conftest_s" > conftest.s
25265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25267 (eval $ac_try) 2>&5
25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25270 test $ac_status = 0; }; }
25272 gcc_cv_as_powerpc_mfpgpr
=yes
25274 echo "configure: failed program was" >&5
25277 rm -f conftest.o conftest.s
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25281 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25282 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25284 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25289 *-*-aix*) conftest_s
=' .csect .text[PR]
25291 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25295 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25296 *) conftest_s
=' .text
25298 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25302 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25303 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25306 gcc_cv_as_powerpc_rel16
=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25309 then gcc_cv_as_powerpc_rel16
=yes
25311 elif test x
$gcc_cv_as != x
; then
25312 $as_echo "$conftest_s" > conftest.s
25313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25320 gcc_cv_as_powerpc_rel16
=yes
25322 echo "configure: failed program was" >&5
25325 rm -f conftest.o conftest.s
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25329 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25330 if test $gcc_cv_as_powerpc_rel16 = yes; then
25332 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25337 *-*-aix*) conftest_s
=' .machine "pwr6"
25340 *) conftest_s
=' .machine power6
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25346 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25350 gcc_cv_as_powerpc_cmpb
=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25353 then gcc_cv_as_powerpc_cmpb
=yes
25355 elif test x
$gcc_cv_as != x
; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_powerpc_cmpb
=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_powerpc_cmpb" >&5
25373 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25374 if test $gcc_cv_as_powerpc_cmpb = yes; then
25376 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25381 *-*-aix*) conftest_s
=' .machine "pwr6"
25384 *) conftest_s
=' .machine power6
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25390 $as_echo_n "checking assembler for decimal float support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_powerpc_dfp
=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25397 then gcc_cv_as_powerpc_dfp
=yes
25399 elif test x
$gcc_cv_as != x
; then
25400 $as_echo "$conftest_s" > conftest.s
25401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25408 gcc_cv_as_powerpc_dfp
=yes
25410 echo "configure: failed program was" >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25417 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25418 if test $gcc_cv_as_powerpc_dfp = yes; then
25420 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25425 *-*-aix*) conftest_s
=' .machine "pwr7"
25428 *) conftest_s
=' .machine power7
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25434 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25438 gcc_cv_as_powerpc_vsx
=no
25439 if test $in_tree_gas = yes; then
25440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25441 then gcc_cv_as_powerpc_vsx
=yes
25443 elif test x
$gcc_cv_as != x
; then
25444 $as_echo "$conftest_s" > conftest.s
25445 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25452 gcc_cv_as_powerpc_vsx
=yes
25454 echo "configure: failed program was" >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25461 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25462 if test $gcc_cv_as_powerpc_vsx = yes; then
25464 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25469 *-*-aix*) conftest_s
=' .machine "pwr7"
25472 *) conftest_s
=' .machine power7
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25478 $as_echo_n "checking assembler for popcntd support... " >&6; }
25479 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25482 gcc_cv_as_powerpc_popcntd
=no
25483 if test $in_tree_gas = yes; then
25484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25485 then gcc_cv_as_powerpc_popcntd
=yes
25487 elif test x
$gcc_cv_as != x
; then
25488 $as_echo "$conftest_s" > conftest.s
25489 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491 (eval $ac_try) 2>&5
25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; }
25496 gcc_cv_as_powerpc_popcntd
=yes
25498 echo "configure: failed program was" >&5
25501 rm -f conftest.o conftest.s
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25505 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25506 if test $gcc_cv_as_powerpc_popcntd = yes; then
25508 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25513 *-*-aix*) conftest_s
=' .machine "pwr8"
25514 .csect .text[PR]';;
25515 *) conftest_s
=' .machine power8
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25520 $as_echo_n "checking assembler for power8 support... " >&6; }
25521 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25524 gcc_cv_as_powerpc_power8
=no
25525 if test $in_tree_gas = yes; then
25526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25527 then gcc_cv_as_powerpc_power8
=yes
25529 elif test x
$gcc_cv_as != x
; then
25530 $as_echo "$conftest_s" > conftest.s
25531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25538 gcc_cv_as_powerpc_power8
=yes
25540 echo "configure: failed program was" >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25547 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25548 if test $gcc_cv_as_powerpc_power8 = yes; then
25550 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25555 *-*-aix*) conftest_s
=' .csect .text[PR]
25557 *) conftest_s
=' .text
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25562 $as_echo_n "checking assembler for lwsync support... " >&6; }
25563 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25564 $as_echo_n "(cached) " >&6
25566 gcc_cv_as_powerpc_lwsync
=no
25567 if test $in_tree_gas = yes; then
25568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25569 then gcc_cv_as_powerpc_lwsync
=yes
25571 elif test x
$gcc_cv_as != x
; then
25572 $as_echo "$conftest_s" > conftest.s
25573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575 (eval $ac_try) 2>&5
25577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578 test $ac_status = 0; }; }
25580 gcc_cv_as_powerpc_lwsync
=yes
25582 echo "configure: failed program was" >&5
25585 rm -f conftest.o conftest.s
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25589 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25590 if test $gcc_cv_as_powerpc_lwsync = yes; then
25592 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25597 *-*-aix*) conftest_s
=' .machine "476"
25600 *) conftest_s
=' .machine "476"
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25606 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25607 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25610 gcc_cv_as_powerpc_dci
=no
25611 if test $in_tree_gas = yes; then
25612 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25613 then gcc_cv_as_powerpc_dci
=yes
25615 elif test x
$gcc_cv_as != x
; then
25616 $as_echo "$conftest_s" > conftest.s
25617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25624 gcc_cv_as_powerpc_dci
=yes
25626 echo "configure: failed program was" >&5
25629 rm -f conftest.o conftest.s
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25633 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25634 if test $gcc_cv_as_powerpc_dci = yes; then
25636 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25641 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25642 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25645 gcc_cv_as_powerpc_gnu_attribute
=no
25646 if test $in_tree_gas = yes; then
25647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25648 then gcc_cv_as_powerpc_gnu_attribute
=yes
25650 elif test x
$gcc_cv_as != x
; then
25651 $as_echo '.gnu_attribute 4,1' > conftest.s
25652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25654 (eval $ac_try) 2>&5
25656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25657 test $ac_status = 0; }; }
25659 gcc_cv_as_powerpc_gnu_attribute
=yes
25661 echo "configure: failed program was" >&5
25664 rm -f conftest.o conftest.s
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25668 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25669 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25671 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25676 $as_echo_n "checking assembler for tls marker support... " >&6; }
25677 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25678 $as_echo_n "(cached) " >&6
25680 gcc_cv_as_powerpc_tls_markers
=no
25681 if test $in_tree_gas = yes; then
25682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25683 then gcc_cv_as_powerpc_tls_markers
=yes
25685 elif test x
$gcc_cv_as != x
; then
25686 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25689 (eval $ac_try) 2>&5
25691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25692 test $ac_status = 0; }; }
25694 gcc_cv_as_powerpc_tls_markers
=yes
25696 echo "configure: failed program was" >&5
25699 rm -f conftest.o conftest.s
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25703 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25704 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25706 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25713 $as_echo_n "checking assembler for .ref support... " >&6; }
25714 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25715 $as_echo_n "(cached) " >&6
25717 gcc_cv_as_aix_ref
=no
25718 if test $in_tree_gas = yes; then
25719 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25720 then gcc_cv_as_aix_ref
=yes
25722 elif test x
$gcc_cv_as != x
; then
25723 $as_echo ' .csect stuff[rw]
25729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25731 (eval $ac_try) 2>&5
25733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25734 test $ac_status = 0; }; }
25736 gcc_cv_as_aix_ref
=yes
25738 echo "configure: failed program was" >&5
25741 rm -f conftest.o conftest.s
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25745 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25746 if test $gcc_cv_as_aix_ref = yes; then
25748 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25757 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25758 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25759 $as_echo_n "(cached) " >&6
25761 gcc_cv_as_mips_explicit_relocs
=no
25762 if test $in_tree_gas = yes; then
25763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25764 then gcc_cv_as_mips_explicit_relocs
=yes
25766 elif test x
$gcc_cv_as != x
; then
25767 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25770 (eval $ac_try) 2>&5
25772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25773 test $ac_status = 0; }; }
25775 gcc_cv_as_mips_explicit_relocs
=yes
25777 echo "configure: failed program was" >&5
25780 rm -f conftest.o conftest.s
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25784 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25785 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25786 if test x
$target_cpu_default = x
25787 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25788 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25792 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25793 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25794 $as_echo_n "(cached) " >&6
25796 gcc_cv_as_mips_no_shared
=no
25797 if test $in_tree_gas = yes; then
25798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25799 then gcc_cv_as_mips_no_shared
=yes
25801 elif test x
$gcc_cv_as != x
; then
25802 $as_echo 'nop' > conftest.s
25803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25805 (eval $ac_try) 2>&5
25807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25808 test $ac_status = 0; }; }
25810 gcc_cv_as_mips_no_shared
=yes
25812 echo "configure: failed program was" >&5
25815 rm -f conftest.o conftest.s
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25819 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25820 if test $gcc_cv_as_mips_no_shared = yes; then
25822 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25827 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25828 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25831 gcc_cv_as_mips_gnu_attribute
=no
25832 if test $in_tree_gas = yes; then
25833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25834 then gcc_cv_as_mips_gnu_attribute
=yes
25836 elif test x
$gcc_cv_as != x
; then
25837 $as_echo '.gnu_attribute 4,1' > conftest.s
25838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25845 gcc_cv_as_mips_gnu_attribute
=yes
25847 echo "configure: failed program was" >&5
25850 rm -f conftest.o conftest.s
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25854 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25855 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25857 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25862 $as_echo_n "checking assembler for .micromips support... " >&6; }
25863 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25864 $as_echo_n "(cached) " >&6
25866 gcc_cv_as_micromips_support
=no
25867 if test x
$gcc_cv_as != x
; then
25868 $as_echo '.set micromips' > conftest.s
25869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25876 gcc_cv_as_micromips_support
=yes
25878 echo "configure: failed program was" >&5
25881 rm -f conftest.o conftest.s
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25885 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25886 if test $gcc_cv_as_micromips_support = yes; then
25888 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25893 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25894 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25895 $as_echo_n "(cached) " >&6
25897 gcc_cv_as_mips_dtprelword
=no
25898 if test $in_tree_gas = yes; then
25899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25900 then gcc_cv_as_mips_dtprelword
=yes
25902 elif test x
$gcc_cv_as != x
; then
25903 $as_echo '.section .tdata,"awT",@progbits
25907 .dtprelword x+0x8000' > conftest.s
25908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25915 gcc_cv_as_mips_dtprelword
=yes
25917 echo "configure: failed program was" >&5
25920 rm -f conftest.o conftest.s
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25924 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25925 if test $gcc_cv_as_mips_dtprelword = yes; then
25927 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25932 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25933 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25934 $as_echo_n "(cached) " >&6
25936 gcc_cv_as_mips_dspr1_mult
=no
25937 if test x
$gcc_cv_as != x
; then
25938 $as_echo ' .set mips32r2
25946 multu $ac3,$4,$5' > conftest.s
25947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25954 gcc_cv_as_mips_dspr1_mult
=yes
25956 echo "configure: failed program was" >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25963 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25964 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25966 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25971 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25972 gcc_cv_as_ld_jalr_reloc
=no
25973 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25974 if test $in_tree_ld = yes ; then
25975 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 \
25976 && test $in_tree_ld_is_elf = yes; then
25977 gcc_cv_as_ld_jalr_reloc
=yes
25979 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25980 echo ' .ent x' > conftest.s
25981 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25982 echo ' ld $25,%call16(y)($28)' >> conftest.s
25983 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25984 echo '1: jalr $25' >> conftest.s
25985 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25986 echo '1: jalr $25' >> conftest.s
25987 echo ' .end x' >> conftest.s
25988 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25989 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25990 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25991 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25992 gcc_cv_as_ld_jalr_reloc
=yes
25998 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25999 if test x
$target_cpu_default = x
; then
26000 target_cpu_default
=MASK_RELAX_PIC_CALLS
26002 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26006 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26009 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26010 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26011 $as_echo_n "(cached) " >&6
26013 gcc_cv_ld_mips_personality_relaxation
=no
26014 if test $in_tree_ld = yes ; then
26015 if test "$gcc_cv_gld_major_version" -eq 2 \
26016 -a "$gcc_cv_gld_minor_version" -ge 21 \
26017 -o "$gcc_cv_gld_major_version" -gt 2; then
26018 gcc_cv_ld_mips_personality_relaxation
=yes
26020 elif test x
$gcc_cv_as != x \
26021 -a x
$gcc_cv_ld != x \
26022 -a x
$gcc_cv_readelf != x
; then
26023 cat > conftest.s
<<EOF
26025 .cfi_personality 0x80,indirect_ptr
26032 .section .data,"aw",@progbits
26036 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26037 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26038 if $gcc_cv_readelf -d conftest
2>&1 \
26039 |
grep TEXTREL
> /dev
/null
2>&1; then
26041 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26042 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26045 gcc_cv_ld_mips_personality_relaxation
=yes
26049 rm -f conftest.s conftest.o conftest
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26052 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26053 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26055 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26060 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26061 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26064 gcc_cv_as_mips_nan
=no
26065 if test x
$gcc_cv_as != x
; then
26066 $as_echo '' > conftest.s
26067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26069 (eval $ac_try) 2>&5
26071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26072 test $ac_status = 0; }; }
26074 gcc_cv_as_mips_nan
=yes
26076 echo "configure: failed program was" >&5
26079 rm -f conftest.o conftest.s
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26083 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26084 if test $gcc_cv_as_mips_nan = yes; then
26086 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26089 if test x
$gcc_cv_as_mips_nan = xno \
26090 && test x
$with_nan != x
; then
26091 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26096 # Mips and HP-UX need the GNU assembler.
26097 # Linux on IA64 might be able to use the Intel assembler.
26100 mips
*-*-* |
*-*-hpux* )
26101 if test x
$gas_flag = xyes \
26102 ||
test x
"$host" != x
"$build" \
26103 ||
test ! -x "$gcc_cv_as" \
26104 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26107 echo "*** This configuration requires the GNU assembler" >&2
26113 # ??? Not all targets support dwarf2 debug_line, even within a version
26114 # of gas. Moreover, we need to emit a valid instruction to trigger any
26115 # info to the output file. So, as supported targets are added to gas 2.11,
26116 # add some instruction here to (also) show we expect this might work.
26117 # ??? Once 2.11 is released, probably need to add first known working
26118 # version to the per-target configury.
26119 case "$cpu_type" in
26120 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26121 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26132 if test x
"$insn" != x
; then
26134 .file 1 \"conftest.s\"
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26138 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26139 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_as_dwarf2_debug_line
=no
26143 if test $in_tree_gas = yes; then
26144 if test $in_tree_gas_is_elf = yes \
26145 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26146 then gcc_cv_as_dwarf2_debug_line
=yes
26148 elif test x
$gcc_cv_as != x
; then
26149 $as_echo "$conftest_s" > conftest.s
26150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 if test x
$gcc_cv_objdump != x \
26158 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26159 |
grep debug_line
> /dev
/null
2>&1; then
26160 gcc_cv_as_dwarf2_debug_line
=yes
26163 echo "configure: failed program was" >&5
26166 rm -f conftest.o conftest.s
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26170 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26173 # The .debug_line file table must be in the exact order that
26174 # we specified the files, since these indices are also used
26175 # by DW_AT_decl_file. Approximate this test by testing if
26176 # the assembler bitches if the same index is assigned twice.
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26178 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26179 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26180 $as_echo_n "(cached) " >&6
26182 gcc_cv_as_dwarf2_file_buggy
=no
26183 if test x
$gcc_cv_as != x
; then
26184 $as_echo ' .file 1 "foo.s"
26185 .file 1 "bar.s"' > conftest.s
26186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26193 gcc_cv_as_dwarf2_file_buggy
=yes
26195 echo "configure: failed program was" >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26202 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26205 if test $gcc_cv_as_dwarf2_debug_line = yes \
26206 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26208 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26213 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26214 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26215 $as_echo_n "(cached) " >&6
26217 gcc_cv_as_gdwarf2_flag
=no
26218 if test $in_tree_gas = yes; then
26219 if test $in_tree_gas_is_elf = yes \
26220 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26221 then gcc_cv_as_gdwarf2_flag
=yes
26223 elif test x
$gcc_cv_as != x
; then
26224 $as_echo "$insn" > conftest.s
26225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26227 (eval $ac_try) 2>&5
26229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26230 test $ac_status = 0; }; }
26232 gcc_cv_as_gdwarf2_flag
=yes
26234 echo "configure: failed program was" >&5
26237 rm -f conftest.o conftest.s
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26241 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26242 if test $gcc_cv_as_gdwarf2_flag = yes; then
26244 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26249 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26250 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26251 $as_echo_n "(cached) " >&6
26253 gcc_cv_as_gstabs_flag
=no
26254 if test $in_tree_gas = yes; then
26255 if test $in_tree_gas_is_elf = yes \
26256 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26257 then gcc_cv_as_gstabs_flag
=yes
26259 elif test x
$gcc_cv_as != x
; then
26260 $as_echo "$insn" > conftest.s
26261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26268 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26269 # and warns about it, but still exits successfully. So check for
26271 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26273 (eval $ac_try) 2>&5
26275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26276 test $ac_status = 0; }; }
26278 else gcc_cv_as_gstabs_flag
=yes
26281 echo "configure: failed program was" >&5
26284 rm -f conftest.o conftest.s
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26288 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26289 if test $gcc_cv_as_gstabs_flag = yes; then
26291 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26296 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26297 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26300 gcc_cv_as_debug_prefix_map_flag
=no
26301 if test $in_tree_gas = yes; then
26302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26303 then gcc_cv_as_debug_prefix_map_flag
=yes
26305 elif test x
$gcc_cv_as != x
; then
26306 $as_echo "$insn" > conftest.s
26307 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26314 gcc_cv_as_debug_prefix_map_flag
=yes
26316 echo "configure: failed program was" >&5
26319 rm -f conftest.o conftest.s
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26323 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26324 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26326 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26332 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26333 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26336 gcc_cv_as_lcomm_with_alignment
=no
26337 if test x
$gcc_cv_as != x
; then
26338 $as_echo '.lcomm bar,4,16' > conftest.s
26339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; }
26346 gcc_cv_as_lcomm_with_alignment
=yes
26348 echo "configure: failed program was" >&5
26351 rm -f conftest.o conftest.s
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26355 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26356 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26358 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26362 # Check whether --enable-gnu-unique-object was given.
26363 if test "${enable_gnu_unique_object+set}" = set; then :
26364 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26366 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26367 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26371 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26372 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26375 gcc_cv_as_gnu_unique_object
=no
26376 if test $in_tree_gas = yes; then
26377 if test $in_tree_gas_is_elf = yes \
26378 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26379 then gcc_cv_as_gnu_unique_object
=yes
26381 elif test x
$gcc_cv_as != x
; then
26382 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26390 gcc_cv_as_gnu_unique_object
=yes
26392 echo "configure: failed program was" >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26399 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26400 if test $gcc_cv_as_gnu_unique_object = yes; then
26401 # We need to unquote above to to use the definition from config.gcc.
26402 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26403 if test x
$host = x
$build -a x
$host = x
$target &&
26404 ldd
--version 2>/dev
/null
&&
26405 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26406 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26407 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26408 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26409 if test "$glibcnum" -ge 2011 ; then
26410 enable_gnu_unique_object
=yes
26416 if test x
$enable_gnu_unique_object = xyes
; then
26418 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26423 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26424 if test "${gcc_cv_as_line_zero+set}" = set; then :
26425 $as_echo_n "(cached) " >&6
26427 gcc_cv_as_line_zero
=no
26428 if test $in_tree_gas = yes; then
26429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26430 then gcc_cv_as_line_zero
=yes
26432 elif test "x$gcc_cv_as" != x
; then
26433 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26434 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26436 (eval $ac_try) 2>&5
26438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26439 test $ac_status = 0; }; } &&
26440 test "x`cat conftest.out`" = x
26442 gcc_cv_as_line_zero
=yes
26444 echo "configure: failed program was" >&5
26446 echo "configure: error output was" >&5
26447 cat conftest.out
>&5
26449 rm -f conftest.o conftest.s conftest.out
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26453 $as_echo "$gcc_cv_as_line_zero" >&6; }
26454 if test "x$gcc_cv_as_line_zero" = xyes
; then
26456 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26461 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26462 gcc_cv_ld_eh_frame_hdr
=no
26463 if test $in_tree_ld = yes ; then
26464 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 \
26465 && test $in_tree_ld_is_elf = yes; then
26466 gcc_cv_ld_eh_frame_hdr
=yes
26468 elif test x
$gcc_cv_ld != x
; then
26469 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26470 # Check if linker supports --eh-frame-hdr option
26471 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26472 gcc_cv_ld_eh_frame_hdr
=yes
26477 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26478 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26479 gcc_cv_ld_eh_frame_hdr
=yes
26486 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26488 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26492 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26495 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26496 gcc_cv_ld_eh_frame_ciev3
=no
26497 if test $in_tree_ld = yes ; then
26498 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 \
26499 && test $in_tree_ld_is_elf = yes; then
26500 gcc_cv_ld_eh_frame_ciev3
=yes
26502 elif test x
$gcc_cv_ld != x
; then
26503 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26504 gcc_cv_ld_eh_frame_ciev3
=yes
26505 if test 0"$ld_date" -lt 20040513; then
26506 if test -n "$ld_date"; then
26507 # If there was date string, but was earlier than 2004-05-13, fail
26508 gcc_cv_ld_eh_frame_ciev3
=no
26509 elif test "$ld_vers_major" -lt 2; then
26510 gcc_cv_ld_eh_frame_ciev3
=no
26511 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26512 gcc_cv_ld_eh_frame_ciev3
=no
26518 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26519 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26520 gcc_cv_ld_eh_frame_ciev3
=yes
26527 cat >>confdefs.h
<<_ACEOF
26528 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26532 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26535 $as_echo_n "checking linker position independent executable support... " >&6; }
26537 if test $in_tree_ld = yes ; then
26538 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 \
26539 && test $in_tree_ld_is_elf = yes; then
26542 elif test x
$gcc_cv_ld != x
; then
26543 # Check if linker supports -pie option
26544 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26548 if test x
"$gcc_cv_ld_pie" = xyes
; then
26550 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26554 $as_echo "$gcc_cv_ld_pie" >&6; }
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26557 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26558 gcc_cv_ld_eh_gc_sections
=no
26559 if test $in_tree_ld = yes ; then
26560 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 \
26561 && test $in_tree_ld_is_elf = yes; then
26562 gcc_cv_ld_eh_gc_sections
=yes
26564 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26565 cat > conftest.s
<<EOF
26568 .type _start, @function
26571 .size _start, .-_start
26572 .section .text.foo,"ax",@progbits
26573 .type foo, @function
26577 .section .gcc_except_table.foo,"a",@progbits
26580 .section .eh_frame,"a",@progbits
26583 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26584 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26585 |
grep "gc-sections option ignored" > /dev
/null
; then
26586 gcc_cv_ld_eh_gc_sections
=no
26587 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26588 |
grep gcc_except_table
> /dev
/null
; then
26589 gcc_cv_ld_eh_gc_sections
=yes
26590 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26591 if test x
$gcc_cv_as_comdat_group != xyes
; then
26592 gcc_cv_ld_eh_gc_sections
=no
26593 cat > conftest.s
<<EOF
26596 .type _start, @function
26599 .size _start, .-_start
26600 .section .gnu.linkonce.t.foo,"ax",@progbits
26601 .type foo, @function
26605 .section .gcc_except_table.foo,"a",@progbits
26608 .section .eh_frame,"a",@progbits
26611 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26612 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26613 |
grep "gc-sections option ignored" > /dev
/null
; then
26614 gcc_cv_ld_eh_gc_sections
=no
26615 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26616 |
grep gcc_except_table
> /dev
/null
; then
26617 gcc_cv_ld_eh_gc_sections
=yes
26623 rm -f conftest.s conftest.o conftest
26627 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26628 gcc_cv_ld_eh_gc_sections
=no
26631 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26633 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26637 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26640 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26641 gcc_cv_ld_eh_gc_sections_bug
=no
26642 if test $in_tree_ld = yes ; then
26643 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 \
26644 && test $in_tree_ld_is_elf = yes; then
26645 gcc_cv_ld_eh_gc_sections_bug
=yes
26647 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
26648 gcc_cv_ld_eh_gc_sections_bug
=yes
26649 cat > conftest.s
<<EOF
26652 .type _start, @function
26655 .size _start, .-_start
26656 .section .text.startup.foo,"ax",@progbits
26657 .type foo, @function
26661 .section .gcc_except_table.foo,"a",@progbits
26664 .section .eh_frame,"a",@progbits
26667 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26668 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26669 |
grep "gc-sections option ignored" > /dev
/null
; then
26671 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26672 |
grep gcc_except_table
> /dev
/null
; then
26673 gcc_cv_ld_eh_gc_sections_bug
=no
26676 rm -f conftest.s conftest.o conftest
26678 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26680 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26684 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26691 $as_echo_n "checking linker --as-needed support... " >&6; }
26692 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26695 gcc_cv_ld_as_needed
=no
26696 gcc_cv_ld_as_needed_option
='--as-needed'
26697 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26698 if test $in_tree_ld = yes ; then
26699 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 \
26700 && test $in_tree_ld_is_elf = yes; then
26701 gcc_cv_ld_as_needed
=yes
26703 elif test x
$gcc_cv_ld != x
; then
26704 # Check if linker supports --as-needed and --no-as-needed options
26705 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26706 gcc_cv_ld_as_needed
=yes
26709 # Solaris 2 ld always supports -z ignore/-z record.
26711 gcc_cv_ld_as_needed
=yes
26712 gcc_cv_ld_as_needed_option
="-z ignore"
26713 gcc_cv_ld_no_as_needed_option
="-z record"
26718 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26719 # dl_iterate_phdr, i.e. since Solaris 11.
26721 *-*-solaris2.1
[1-9]*)
26723 i?
86-*-* | x86_64-
*-*)
26724 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26725 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26726 gcc_cv_ld_as_needed
=no
26732 gcc_cv_ld_as_needed
=no
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26738 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26739 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26741 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26744 cat >>confdefs.h
<<_ACEOF
26745 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26749 cat >>confdefs.h
<<_ACEOF
26750 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26755 case "$target:$tm_file" in
26756 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26759 emul_name
="-melf64lppc"
26762 emul_name
="-melf64ppc"
26765 emul_name
="-melf64ppc_fbsd"
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26769 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26770 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26771 $as_echo_n "(cached) " >&6
26773 gcc_cv_ld_no_dot_syms
=no
26774 if test x
"$ld_is_gold" = xyes
; then
26775 gcc_cv_ld_no_dot_syms
=yes
26776 elif test $in_tree_ld = yes ; then
26777 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
26778 gcc_cv_ld_no_dot_syms
=yes
26780 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26781 cat > conftest1.s
<<EOF
26785 cat > conftest2.s
<<EOF
26786 .section ".opd","aw"
26789 .type foo,@function
26791 .quad .LEfoo,.TOC.@tocbase,0
26797 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26798 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26799 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26800 gcc_cv_ld_no_dot_syms
=yes
26802 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26807 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26808 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26810 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26815 $as_echo_n "checking linker large toc support... " >&6; }
26816 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26817 $as_echo_n "(cached) " >&6
26819 gcc_cv_ld_large_toc
=no
26820 if test x
"$ld_is_gold" = xyes
; then
26821 gcc_cv_ld_large_toc
=yes
26822 elif test $in_tree_ld = yes ; then
26823 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
26824 gcc_cv_ld_large_toc
=yes
26826 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26827 cat > conftest.s
<<EOF
26828 .section ".tbss","awT",@nobits
26834 addis 9,13,ie0@got@tprel@ha
26835 ld 9,ie0@got@tprel@l(9)
26837 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26838 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26839 gcc_cv_ld_large_toc
=yes
26841 rm -f conftest conftest.o conftest.s
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26846 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26847 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26849 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26858 $as_echo_n "checking linker large toc support... " >&6; }
26859 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26862 gcc_cv_ld_large_toc
=no
26863 if test x
$gcc_cv_as != x
; then
26864 cat > conftest.s
<<EOF
26874 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26875 gcc_cv_ld_large_toc
=yes
26877 rm -f conftest conftest.o conftest.s
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26882 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26883 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26885 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26892 $as_echo_n "checking linker --build-id support... " >&6; }
26893 if test "${gcc_cv_ld_buildid+set}" = set; then :
26894 $as_echo_n "(cached) " >&6
26896 gcc_cv_ld_buildid
=no
26897 if test $in_tree_ld = yes ; then
26898 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26899 "$gcc_cv_gld_minor_version" -ge 18 -o \
26900 "$gcc_cv_gld_major_version" -gt 2 \
26901 && test $in_tree_ld_is_elf = yes; then
26902 gcc_cv_ld_buildid
=yes
26904 elif test x
$gcc_cv_ld != x
; then
26905 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26906 gcc_cv_ld_buildid
=yes
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26911 $as_echo "$gcc_cv_ld_buildid" >&6; }
26912 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26914 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26918 # Check whether --enable-linker-build-id was given.
26919 if test "${enable_linker_build_id+set}" = set; then :
26920 enableval
=$enable_linker_build_id;
26922 enable_linker_build_id
=no
26926 if test x
"$enable_linker_build_id" = xyes
; then
26927 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26929 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26933 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26937 # In binutils 2.21, GNU ld gained support for new emulations fully
26938 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26940 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26941 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26942 $as_echo_n "(cached) " >&6
26944 gcc_cv_ld_sol2_emulation
=no
26945 if test $in_tree_ld = yes ; then
26946 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26947 "$gcc_cv_gld_minor_version" -ge 21 -o \
26948 "$gcc_cv_gld_major_version" -gt 2 \
26949 && test $in_tree_ld_is_elf = yes; then
26950 gcc_cv_ld_sol2_emulation
=yes
26952 elif test x
$gcc_cv_ld != x
; then
26953 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26954 grep _sol2
> /dev
/null
; then
26955 gcc_cv_ld_sol2_emulation
=yes
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26960 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26961 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26963 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26968 $as_echo_n "checking linker --sysroot support... " >&6; }
26969 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26970 $as_echo_n "(cached) " >&6
26972 gcc_cv_ld_sysroot
=no
26973 if test $in_tree_ld = yes ; then
26974 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
26975 gcc_cv_ld_sysroot
=yes
26977 elif test x
$gcc_cv_ld != x
; then
26978 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26979 gcc_cv_ld_sysroot
=yes
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26984 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26985 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26987 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26991 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26992 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26993 && test "$prefix" != "NONE"; then
26995 cat >>confdefs.h
<<_ACEOF
26996 #define PREFIX_INCLUDE_DIR "$prefix/include"
27001 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
27002 if test "x$with_headers" != x
; then
27003 target_header_dir
=$with_headers
27004 elif test "x$with_sysroot" = x
; then
27005 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
27006 elif test "x$with_build_sysroot" != "x"; then
27007 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
27008 elif test "x$with_sysroot" = xyes
; then
27009 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27011 target_header_dir
="${with_sysroot}${native_system_header_dir}"
27014 target_header_dir
=${native_system_header_dir}
27017 # Test for stack protector support in target C library.
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27019 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27020 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27021 $as_echo_n "(cached) " >&6
27023 gcc_cv_libc_provides_ssp
=no
27025 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27026 # glibc 2.4 and later provides __stack_chk_fail and
27027 # either __stack_chk_guard, or TLS access to stack guard canary.
27028 if test -f $target_header_dir/features.h \
27029 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27030 $target_header_dir/features.h
> /dev
/null
; then
27031 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27032 $target_header_dir/features.h
> /dev
/null
; then
27033 gcc_cv_libc_provides_ssp
=yes
27034 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27035 $target_header_dir/features.h
> /dev
/null \
27036 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27037 $target_header_dir/features.h
> /dev
/null
; then
27038 gcc_cv_libc_provides_ssp
=yes
27039 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27040 $target_header_dir/features.h
> /dev
/null
&& \
27041 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27042 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27043 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27044 gcc_cv_libc_provides_ssp
=yes
27046 # all versions of Bionic support stack protector
27047 elif test -f $target_header_dir/sys
/cdefs.h \
27048 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27049 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27050 gcc_cv_libc_provides_ssp
=yes
27054 # Avoid complicated tests (see
27055 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27056 # simply assert that glibc does provide this, which is true for all
27057 # realistically usable GNU/Hurd configurations.
27058 gcc_cv_libc_provides_ssp
=yes;;
27059 *-*-darwin* |
*-*-freebsd*)
27060 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27061 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27062 gcc_cv_libc_provides_ssp
=yes
27064 echo "no __stack_chk_fail on this target"
27068 *) gcc_cv_libc_provides_ssp
=no
;;
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27072 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27074 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27076 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27080 # Test for <sys/sdt.h> on the target.
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27083 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27085 if test -f $target_header_dir/sys
/sdt.h
; then
27088 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27092 $as_echo "$have_sys_sdt_h" >&6; }
27094 # Check if TFmode long double should be used by default or not.
27095 # Some glibc targets used DFmode long double, but with glibc 2.4
27096 # and later they can use TFmode.
27098 powerpc
*-*-linux* | \
27099 sparc
*-*-linux* | \
27103 # Check whether --with-long-double-128 was given.
27104 if test "${with_long_double_128+set}" = set; then :
27105 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27107 gcc_cv_target_ldbl128
=no
27108 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27109 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27110 && gcc_cv_target_ldbl128
=yes
27116 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27118 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27123 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27124 gcc_cv_target_dl_iterate_phdr
=unknown
27126 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27127 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27128 # libdl there, both complicating its use and breaking compatibility
27129 # between Solaris 10 updates.
27130 *-*-solaris2.1
[1-9]*)
27131 # <link.h> needs both a dl_iterate_phdr declaration and support for
27132 # compilation with largefile support.
27133 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27134 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27135 gcc_cv_target_dl_iterate_phdr
=yes
27137 gcc_cv_target_dl_iterate_phdr
=no
27142 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27144 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27148 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27150 # We no longer support different GC mechanisms. Emit an error if
27151 # the user configures with --with-gc.
27153 # Check whether --with-gc was given.
27154 if test "${with_gc+set}" = set; then :
27155 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27159 # Libraries to use on the host. This will normally be set by the top
27160 # level Makefile. Here we simply capture the value for our Makefile.
27161 if test -z "${HOST_LIBS+set}"; then
27166 # Use the system's zlib library.
27168 zlibinc
="-I\$(srcdir)/../zlib"
27170 # Check whether --with-system-zlib was given.
27171 if test "${with_system_zlib+set}" = set; then :
27172 withval
=$with_system_zlib; zlibdir
=
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27182 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27183 # Check whether --enable-maintainer-mode was given.
27184 if test "${enable_maintainer_mode+set}" = set; then :
27185 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27192 $as_echo "$maintainer_mode" >&6; }
27194 if test "$maintainer_mode" = "yes"; then
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27202 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27203 # Check whether --enable-link-mutex was given.
27204 if test "${enable_link_mutex+set}" = set; then :
27205 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27211 $as_echo "$do_link_mutex" >&6; }
27213 if test "$do_link_mutex" = "yes"; then
27216 DO_LINK_MUTEX
=false
27224 # Make empty files to contain the specs and options for each language.
27225 # Then add #include lines to for a compiler that has specs and/or options.
27231 # These (without "all_") are set in each config-lang.in.
27232 # `language' must be a single word so is spelled singularly.
27235 all_outputs
='Makefile'
27236 # List of language makefile fragments.
27237 all_lang_makefrags
=
27238 # Additional files for gengtype
27239 all_gtfiles
="$target_gtfiles"
27241 # These are the languages that are set in --enable-languages,
27242 # and are available in the GCC tree.
27243 all_selected_languages
=
27245 # Add the language fragments.
27246 # Languages are added via two mechanisms. Some information must be
27247 # recorded in makefile variables, these are defined in config-lang.in.
27248 # We accumulate them and plug them into the main Makefile.
27249 # The other mechanism is a set of hooks for each of the main targets
27250 # like `clean', `install', etc.
27252 language_hooks
="Make-hooks"
27254 for lang
in ${srcdir}/*/config-lang.
in
27256 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27258 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27259 if test "x$lang_alias" = x
27261 echo "$lang doesn't set \$language." 1>&2
27264 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27265 subdirs
="$subdirs $subdir"
27267 # $gcc_subdir is where the gcc integration files are to be found
27268 # for a language, both for internal compiler purposes (compiler
27269 # sources implementing front-end to GCC tree converters), and for
27270 # build infrastructure purposes (Make-lang.in, etc.)
27272 # This will be <subdir> (relative to $srcdir) if a line like
27273 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27274 # is found in <langdir>/config-lang.in, and will remain <langdir>
27277 # Except for the language alias (fetched above), the regular
27278 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27279 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27280 # only this and the language alias.
27282 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27283 if [ "$gcc_subdir" = "" ]; then
27284 gcc_subdir
="$subdir"
27287 case ",$enable_languages," in
27289 all_selected_languages
="$all_selected_languages $lang_alias"
27290 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27291 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27302 .
${srcdir}/$gcc_subdir/config-lang.
in
27303 if test "x$language" = x
27305 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27310 case ",$enable_languages," in
27311 *,$lang_alias,*) ;;
27313 for i
in $subdir_requires; do
27314 test -f "${srcdir}/$i/config-lang.in" && continue
27322 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27323 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27324 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27325 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27327 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27328 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27330 all_languages
="$all_languages $language"
27331 all_compilers
="$all_compilers $compilers"
27332 all_outputs
="$all_outputs $outputs"
27333 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27334 case ",$enable_languages," in
27337 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27347 for language
in $all_selected_languages
27349 check_languages
="$check_languages check-$language"
27352 # We link each language in with a set of hooks, reached indirectly via
27353 # lang.${target}. Only do so for selected languages.
27357 target_list
="all.cross start.encap rest.encap tags \
27358 install-common install-man install-info install-pdf install-html dvi \
27359 pdf html uninstall info man srcextra srcman srcinfo \
27360 mostlyclean clean distclean maintainer-clean install-plugin"
27362 for t
in $target_list
27365 for lang
in $all_selected_languages
27369 echo "lang.$t: $x" >> Make-hooks
27373 # Option include files
27376 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27377 option_includes
="option-includes.mk"
27386 echo "dir ." > .gdbinit
27387 echo "dir ${srcdir}" >> .gdbinit
27388 if test x
$gdb_needs_out_file_path = xyes
27390 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27392 if test "x$subdirs" != x
; then
27395 echo "dir ${srcdir}/$s" >> .gdbinit
27398 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27399 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27401 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27405 # Find a directory in which to install a shared libgcc.
27407 # Check whether --enable-version-specific-runtime-libs was given.
27408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27409 enableval
=$enable_version_specific_runtime_libs;
27413 # Substitute configuration variables
27477 if test x
${build} = x
${host} ; then
27478 if test x
${host} = x
${target} ; then
27479 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27481 echo "Links are now set up to build a cross-compiler" 1>&2
27482 echo " from ${host} to ${target}." 1>&2
27485 if test x
${host} = x
${target} ; then
27486 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27487 echo " for ${target}." 1>&2
27489 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27490 echo " from ${host} to ${target}." 1>&2
27502 if test "x${CLOOGLIBS}" != "x" ; then
27504 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27508 # Check for plugin support
27509 # Check whether --enable-plugin was given.
27510 if test "${enable_plugin+set}" = set; then :
27511 enableval
=$enable_plugin; enable_plugin
=$enableval
27513 enable_plugin
=yes; default_plugin
=yes
27521 if test x
$build = x
$host; then
27522 export_sym_check
="nm${exeext} -g"
27523 elif test x
$host = x
$target; then
27524 export_sym_check
="$gcc_cv_nm -g"
27530 if test x
$build = x
$host; then
27531 export_sym_check
="objdump${exeext} -T"
27532 elif test x
$host = x
$target; then
27533 export_sym_check
="$gcc_cv_objdump -T"
27540 if test x
"$enable_plugin" = x
"yes"; then
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27543 $as_echo_n "checking for exported symbols... " >&6; }
27544 if test "x$export_sym_check" != x
; then
27545 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27546 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27547 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27548 : # No need to use a flag
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27550 $as_echo "yes" >&6; }
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27553 $as_echo "yes" >&6; }
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27555 $as_echo_n "checking for -rdynamic... " >&6; }
27556 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27557 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27558 plugin_rdynamic
=yes
27559 pluginlibs
="-rdynamic"
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27565 $as_echo "$plugin_rdynamic" >&6; }
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27569 $as_echo "unable to check" >&6; }
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27575 $as_echo_n "checking for library containing dlopen... " >&6; }
27576 if test "${ac_cv_search_dlopen+set}" = set; then :
27577 $as_echo_n "(cached) " >&6
27579 ac_func_search_save_LIBS
=$LIBS
27580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27581 /* end confdefs.h. */
27583 /* Override any GCC internal prototype to avoid an error.
27584 Use char because int might match the return type of a GCC
27585 builtin and then its argument prototype would still apply. */
27598 for ac_lib
in '' dl
; do
27599 if test -z "$ac_lib"; then
27600 ac_res
="none required"
27603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27605 if ac_fn_c_try_link
"$LINENO"; then :
27606 ac_cv_search_dlopen
=$ac_res
27608 rm -f core conftest.err conftest.
$ac_objext \
27610 if test "${ac_cv_search_dlopen+set}" = set; then :
27614 if test "${ac_cv_search_dlopen+set}" = set; then :
27617 ac_cv_search_dlopen
=no
27619 rm conftest.
$ac_ext
27620 LIBS
=$ac_func_search_save_LIBS
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27623 $as_echo "$ac_cv_search_dlopen" >&6; }
27624 ac_res
=$ac_cv_search_dlopen
27625 if test "$ac_res" != no
; then :
27626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27630 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27631 pluginlibs
="$pluginlibs -ldl"
27635 # Check that we can build shared objects with -fPIC -shared
27636 saved_LDFLAGS
="$LDFLAGS"
27637 saved_CFLAGS
="$CFLAGS"
27640 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27641 CFLAGS
="$CFLAGS -fPIC"
27642 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27645 CFLAGS
="$CFLAGS -fPIC"
27646 LDFLAGS
="$LDFLAGS -fPIC -shared"
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27650 $as_echo_n "checking for -fPIC -shared... " >&6; }
27651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27652 /* end confdefs.h. */
27662 if ac_fn_c_try_link
"$LINENO"; then :
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27664 $as_echo "yes" >&6; }; have_pic_shared
=yes
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27667 $as_echo "no" >&6; }; have_pic_shared
=no
27669 rm -f core conftest.err conftest.
$ac_objext \
27670 conftest
$ac_exeext conftest.
$ac_ext
27671 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27675 LDFLAGS
="$saved_LDFLAGS"
27676 CFLAGS
="$saved_CFLAGS"
27678 # If plugin support had been requested but not available, fail.
27679 if test x
"$enable_plugin" = x
"no" ; then
27680 if test x
"$default_plugin" != x
"yes"; then
27682 Building GCC with plugin support requires a host that supports
27683 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27690 if test x
"$enable_plugin" = x
"yes"; then
27692 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27697 # Check whether --enable-libquadmath-support was given.
27698 if test "${enable_libquadmath_support+set}" = set; then :
27699 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27701 ENABLE_LIBQUADMATH_SUPPORT
=yes
27704 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27706 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27711 # Specify what hash style to use by default.
27713 # Check whether --with-linker-hash-style was given.
27714 if test "${with_linker_hash_style+set}" = set; then :
27715 withval
=$with_linker_hash_style; case x
"$withval" in
27717 LINKER_HASH_STYLE
=sysv
27720 LINKER_HASH_STYLE
=gnu
27723 LINKER_HASH_STYLE
=both
27726 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27730 LINKER_HASH_STYLE
=''
27733 if test x
"${LINKER_HASH_STYLE}" != x
; then
27735 cat >>confdefs.h
<<_ACEOF
27736 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27741 # Configure the subdirectories
27742 # AC_CONFIG_SUBDIRS($subdirs)
27744 # Create the Makefile
27745 # and configure language subdirectories
27746 ac_config_files
="$ac_config_files $all_outputs"
27749 ac_config_commands
="$ac_config_commands default"
27751 cat >confcache
<<\_ACEOF
27752 # This file is a shell script that caches the results of configure
27753 # tests run on this system so they can be shared between configure
27754 # scripts and configure runs, see configure's option --config-cache.
27755 # It is not useful on other systems. If it contains results you don't
27756 # want to keep, you may remove or edit it.
27758 # config.status only pays attention to the cache file if you give it
27759 # the --recheck option to rerun configure.
27761 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27762 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27763 # following values.
27767 # The following way of writing the cache mishandles newlines in values,
27768 # but we know of no workaround that is simple, portable, and efficient.
27769 # So, we kill variables containing newlines.
27770 # Ultrix sh set writes to stderr and can't be redirected directly,
27771 # and sets the high bit in the cache file unless we assign to the vars.
27773 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27774 eval ac_val
=\$
$ac_var
27778 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27782 _ | IFS | as_nl
) ;; #(
27783 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27784 *) { eval $ac_var=; unset $ac_var;} ;;
27790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27791 *${as_nl}ac_space
=\
*)
27792 # `set' does not quote correctly, so add quotes: double-quote
27793 # substitution turns \\\\ into \\, and sed turns \\ into \.
27796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27799 # `set' quotes correctly as required by POSIX, so do not add quotes.
27800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27813 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27814 if test -w "$cache_file"; then
27815 test "x$cache_file" != "x/dev/null" &&
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27817 $as_echo "$as_me: updating cache $cache_file" >&6;}
27818 cat confcache
>$cache_file
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27821 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27826 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27827 # Let make expand exec_prefix.
27828 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27830 DEFS
=-DHAVE_CONFIG_H
27834 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27835 # 1. Remove the extension, and $U if already installed.
27836 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27837 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27839 # will be set to the directory where LIBOBJS objects are built.
27840 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27841 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27843 LIBOBJS
=$ac_libobjs
27845 LTLIBOBJS
=$ac_ltlibobjs
27850 : ${CONFIG_STATUS=./config.status}
27852 ac_clean_files_save
=$ac_clean_files
27853 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27855 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27857 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27859 # Generated by $as_me.
27860 # Run this file to recreate the current configuration.
27861 # Compiler output produced by configure, useful for debugging
27862 # configure, is in config.log if it exists.
27865 ac_cs_recheck=false
27868 SHELL=\${CONFIG_SHELL-$SHELL}
27871 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27872 ## -------------------- ##
27873 ## M4sh Initialization. ##
27874 ## -------------------- ##
27876 # Be more Bourne compatible
27877 DUALCASE
=1; export DUALCASE
# for MKS sh
27878 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27882 # is contrary to our usage. Disable this feature.
27883 alias -g '${1+"$@"}'='"$@"'
27884 setopt NO_GLOB_SUBST
27886 case `(set -o) 2>/dev/null` in #(
27898 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27899 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27902 # Prefer a ksh shell builtin over an external printf program on Solaris,
27903 # but without wasting forks for bash or zsh.
27904 if test -z "$BASH_VERSION$ZSH_VERSION" \
27905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27906 as_echo='print
-r --'
27907 as_echo_n='print
-rn --'
27908 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27909 as_echo='printf %s
\n'
27910 as_echo_n='printf %s
'
27912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27913 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27914 as_echo_n='/usr
/ucb
/echo -n'
27916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27917 as_echo_n_body='eval
27921 expr "X$arg" : "X\\(.*\\)$as_nl";
27922 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27924 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27926 export as_echo_n_body
27927 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27929 export as_echo_body
27930 as_echo='sh
-c $as_echo_body as_echo
'
27933 # The user is always right.
27934 if test "${PATH_SEPARATOR+set}" != set; then
27936 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27937 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27944 # We need space, tab and new line, in precisely that order. Quoting is
27945 # there to prevent editors from complaining about space-tab.
27946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27947 # splitting by setting IFS to empty value.)
27950 # Find who we are. Look in the path if we contain no directory separator.
27952 *[\\/]* ) as_myself=$0 ;;
27953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27954 for as_dir in $PATH
27957 test -z "$as_dir" && as_dir=.
27958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27964 # We did not find ourselves, most probably we were run as `sh COMMAND'
27965 # in which case we are not to be found in the path.
27966 if test "x$as_myself" = x
; then
27969 if test ! -f "$as_myself"; then
27970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27974 # Unset variables that we do not need and which cause bugs (e.g. in
27975 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27976 # suppresses any "Segmentation fault" message there. '((' could
27977 # trigger a bug in pdksh 5.2.14.
27978 for as_var
in BASH_ENV ENV MAIL MAILPATH
27979 do eval test x\
${$as_var+set} = xset \
27980 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27993 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27996 # as_fn_error ERROR [LINENO LOG_FD]
27997 # ---------------------------------
27998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28000 # script with status $?, using 1 if that was 0.
28003 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28005 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28008 $as_echo "$as_me: error: $1" >&2
28009 as_fn_exit
$as_status
28013 # as_fn_set_status STATUS
28014 # -----------------------
28015 # Set $? to STATUS, without forking.
28016 as_fn_set_status
()
28019 } # as_fn_set_status
28021 # as_fn_exit STATUS
28022 # -----------------
28023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28027 as_fn_set_status
$1
28033 # Portably unset VAR.
28036 { eval $1=; unset $1;}
28038 as_unset
=as_fn_unset
28039 # as_fn_append VAR VALUE
28040 # ----------------------
28041 # Append the text in VALUE to the end of the definition contained in VAR. Take
28042 # advantage of any shell optimizations that allow amortized linear growth over
28043 # repeated appends, instead of the typical quadratic growth present in naive
28045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28046 eval 'as_fn_append ()
28057 # as_fn_arith ARG...
28058 # ------------------
28059 # Perform arithmetic evaluation on the ARGs, and store the result in the
28060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28061 # must be portable across $(()) and expr.
28062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28063 eval 'as_fn_arith ()
28070 as_val
=`expr "$@" || test $? -eq 1`
28075 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28076 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28082 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28083 as_basename
=basename
28088 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28094 as_me
=`$as_basename -- "$0" ||
28095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28096 X"$0" : 'X\(//\)$' \| \
28097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28099 sed '/^.*\/\([^/][^/]*\)\/*$/{
28113 # Avoid depending upon Character Ranges.
28114 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28115 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28116 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28117 as_cr_digits
='0123456789'
28118 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28120 ECHO_C
= ECHO_N
= ECHO_T
=
28121 case `echo -n x` in #(((((
28123 case `echo 'xy\c'` in
28124 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28126 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28133 rm -f conf$$ conf$$.exe conf$$.
file
28134 if test -d conf$$.dir
; then
28135 rm -f conf$$.dir
/conf$$.
file
28138 mkdir conf$$.dir
2>/dev
/null
28140 if (echo >conf$$.
file) 2>/dev
/null
; then
28141 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28143 # ... but there are two gotchas:
28144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28146 # In both cases, we have to default to `cp -p'.
28147 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28149 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28157 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28158 rmdir conf$$.dir
2>/dev
/null
28163 # Create "$as_dir" as a directory, including parents if necessary.
28168 -*) as_dir
=.
/$as_dir;;
28170 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28174 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28175 *) as_qdir
=$as_dir;;
28177 as_dirs
="'$as_qdir' $as_dirs"
28178 as_dir
=`$as_dirname -- "$as_dir" ||
28179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28180 X"$as_dir" : 'X\(//\)[^/]' \| \
28181 X"$as_dir" : 'X\(//\)$' \| \
28182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28183 $as_echo X"$as_dir" |
28184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28188 /^X\(\/\/\)[^/].*/{
28201 test -d "$as_dir" && break
28203 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28204 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28208 if mkdir
-p .
2>/dev
/null
; then
28209 as_mkdir_p
='mkdir -p "$as_dir"'
28211 test -d .
/-p && rmdir .
/-p
28215 if test -x / >/dev
/null
2>&1; then
28216 as_test_x
='test -x'
28218 if ls -dL / >/dev
/null
2>&1; then
28225 if test -d "$1"; then
28231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28232 ???[sx]*):;;*)false;;esac;fi
28236 as_executable_p
=$as_test_x
28238 # Sed expression to map a string onto a valid CPP name.
28239 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28241 # Sed expression to map a string onto a valid variable name.
28242 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28246 ## ----------------------------------- ##
28247 ## Main body of $CONFIG_STATUS script. ##
28248 ## ----------------------------------- ##
28250 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28253 # Save the log message, to keep $0 and so on meaningful, and to
28254 # report actual input values of CONFIG_FILES etc. instead of their
28255 # values after options handling.
28257 This file was extended by $as_me, which was
28258 generated by GNU Autoconf 2.64. Invocation command line was
28260 CONFIG_FILES = $CONFIG_FILES
28261 CONFIG_HEADERS = $CONFIG_HEADERS
28262 CONFIG_LINKS = $CONFIG_LINKS
28263 CONFIG_COMMANDS = $CONFIG_COMMANDS
28266 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28271 case $ac_config_files in *"
28272 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28275 case $ac_config_headers in *"
28276 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28281 # Files that config.status was made for.
28282 config_files="$ac_config_files"
28283 config_headers="$ac_config_headers"
28284 config_commands="$ac_config_commands"
28288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28290 \`$as_me' instantiates files and other configuration actions
28291 from templates according to the current configuration. Unless the files
28292 and actions are specified as TAGs, all are instantiated by default.
28294 Usage: $0 [OPTION]... [TAG]...
28296 -h, --help print this help, then exit
28297 -V, --version print version number and configuration settings, then exit
28298 -q, --quiet, --silent
28299 do not print progress messages
28300 -d, --debug don't remove temporary files
28301 --recheck update $as_me by reconfiguring in the same conditions
28302 --file=FILE[:TEMPLATE]
28303 instantiate the configuration file FILE
28304 --header=FILE[:TEMPLATE]
28305 instantiate the configuration header FILE
28307 Configuration files:
28310 Configuration headers:
28313 Configuration commands:
28316 Report bugs to the package provider."
28319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28322 configured by $0, generated by GNU Autoconf 2.64,
28323 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28325 Copyright (C) 2009 Free Software Foundation, Inc.
28326 This config.status script is free software; the Free Software Foundation
28327 gives unlimited permission to copy, distribute and modify it."
28332 test -n "\$AWK" || AWK=awk
28335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28336 # The default lists apply if the user does not specify any file.
28342 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28343 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28354 # Handling of the options.
28355 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28357 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28358 $as_echo "$ac_cs_version"; exit ;;
28359 --debug |
--debu |
--deb |
--de |
--d |
-d )
28361 --file |
--fil |
--fi |
--f )
28364 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28366 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28367 ac_need_defaults
=false
;;
28368 --header |
--heade |
--head |
--hea )
28371 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28373 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28374 ac_need_defaults
=false
;;
28376 # Conflict between --help and --header
28377 as_fn_error
"ambiguous option: \`$1'
28378 Try \`$0 --help' for more information.";;
28379 --help |
--hel |
-h )
28380 $as_echo "$ac_cs_usage"; exit ;;
28381 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28382 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28385 # This is an error.
28386 -*) as_fn_error
"unrecognized option: \`$1'
28387 Try \`$0 --help' for more information." ;;
28389 *) as_fn_append ac_config_targets
" $1"
28390 ac_need_defaults
=false
;;
28396 ac_configure_extra_args
=
28398 if $ac_cs_silent; then
28400 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28405 if \$ac_cs_recheck; then
28406 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28409 CONFIG_SHELL='$SHELL'
28410 export CONFIG_SHELL
28415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28420 ## Running $as_me. ##
28426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28430 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28431 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28438 # Handling of arguments.
28439 for ac_config_target
in $ac_config_targets
28441 case $ac_config_target in
28442 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28443 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28444 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28445 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28446 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28447 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28448 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28449 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28451 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28456 # If the user did not use the arguments to specify the items to instantiate,
28457 # then the envvar interface is used. Set only those that are not.
28458 # We use the long form for the default assignment because of an extremely
28459 # bizarre bug on SunOS 4.1.3.
28460 if $ac_need_defaults; then
28461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28466 # Have a temporary directory for convenience. Make it in the build tree
28467 # simply because there is no reason against having it here, and in addition,
28468 # creating and moving files from /tmp can sometimes cause problems.
28469 # Hook for its removal unless debugging.
28470 # Note that there is a small window in which the directory will not be cleaned:
28471 # after its creation but before its name has been assigned to `$tmp'.
28475 trap 'exit_status=$?
28476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28478 trap 'as_fn_exit 1' 1 2 13 15
28480 # Create a (secure) tmp directory for tmp files.
28483 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28484 test -n "$tmp" && test -d "$tmp"
28487 tmp
=.
/conf$$
-$RANDOM
28488 (umask 077 && mkdir
"$tmp")
28489 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28491 # Set up the scripts for CONFIG_FILES section.
28492 # No need to generate them if there are no CONFIG_FILES.
28493 # This happens for instance with `./config.status config.h'.
28494 if test -n "$CONFIG_FILES"; then
28496 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28497 ac_cs_awk_getline
=:
28498 ac_cs_awk_pipe_init
=
28499 ac_cs_awk_read_file
='
28500 while ((getline aline < (F[key])) > 0)
28503 ac_cs_awk_pipe_fini
=
28505 ac_cs_awk_getline
=false
28506 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28507 ac_cs_awk_read_file
='
28509 print "cat " F[key] " &&"
28510 '$ac_cs_awk_pipe_init
28511 # The final `:' finishes the AND list.
28512 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28514 ac_cr
=`echo X | tr X '\015'`
28515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28516 # But we know of no other shell where ac_cr would be empty at this
28517 # point, so we can use a bashism as a fallback.
28518 if test "x$ac_cr" = x
; then
28519 eval ac_cr
=\$
\'\\r
\'
28521 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28525 ac_cs_awk_cr
=$ac_cr
28528 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28531 # Create commands to substitute file output variables.
28533 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28534 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28535 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28538 } >conf$
$files.sh
&&
28539 . .
/conf$
$files.sh ||
28540 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28541 rm -f conf$
$files.sh
28544 echo "cat >conf$$subs.awk <<_ACEOF" &&
28545 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28547 } >conf$$subs.sh ||
28548 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28549 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28551 for ac_last_try in false false false false false :; do
28552 . ./conf$$subs.sh ||
28553 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28555 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28556 if test $ac_delim_n = $ac_delim_num; then
28558 elif $ac_last_try; then
28559 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28561 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28564 rm -f conf$$subs.sh
28566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28567 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28571 s/^/S["/; s
/!.
*/"]=/
28581 s/\(.\{148\}\).*/\1/
28583 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28588 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28595 s/\(.\{148\}\).*/\1/
28597 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28601 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28606 ' <conf$$subs.awk | sed '
28611 ' >>$CONFIG_STATUS || ac_write_fail=1
28612 rm -f conf$$subs.awk
28613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28615 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28616 for (key in S) S_is_set[key] = 1
28618 \$ac_cs_awk_pipe_init
28622 nfields = split(line, field, "@
")
28624 len = length(field[1])
28625 for (i = 2; i < nfields; i++) {
28627 keylen = length(key)
28628 if (S_is_set[key]) {
28630 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28631 len += length(value) + length(field[++i])
28636 if (nfields == 3 && !substed) {
28638 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28639 \$ac_cs_awk_read_file
28645 \$ac_cs_awk_pipe_fini
28648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28649 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28650 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28653 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28654 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28657 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28658 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28659 # trailing colons and then remove the whole line if VPATH becomes empty
28660 # (actually we leave an empty line to preserve line numbers).
28661 if test "x
$srcdir" = x.; then
28662 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28663 s/:*\$(srcdir):*/:/
28664 s/:*\${srcdir}:*/:/
28666 s/^\([^=]*=[ ]*\):*/\1/
28672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28673 fi # test -n "$CONFIG_FILES"
28675 # Set up the scripts for CONFIG_HEADERS section.
28676 # No need to generate them if there are no CONFIG_HEADERS.
28677 # This happens for instance with `./config.status Makefile'.
28678 if test -n "$CONFIG_HEADERS"; then
28679 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28683 # Transform confdefs.h into an awk script `defines.awk', embedded as
28684 # here-document in config.status, that substitutes the proper values into
28685 # config.h.in to produce config.h.
28687 # Create a delimiter string that does not exist in confdefs.h, to ease
28688 # handling of long lines.
28690 for ac_last_try in false false :; do
28691 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28692 if test -z "$ac_t"; then
28694 elif $ac_last_try; then
28695 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28697 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28701 # For the awk script, D is an array of macro values keyed by name,
28702 # likewise P contains macro parameters if any. Preserve backslash
28703 # newline sequences.
28705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28707 s/.\{148\}/&'"$ac_delim"'/g
28710 s/^[ ]*#[ ]*define[ ][ ]*/ /
28717 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28719 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28724 D["\
1"]=" \
3\\\\\\n
"\\/p
28726 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28731 s/.\{148\}/&'"$ac_delim"'/g
28736 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28739 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28741 ' <confdefs.h | sed '
28742 s/'"$ac_delim"'/"\\\
28743 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28746 for (key in D) D_is_set[key] = 1
28749 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28751 split(line, arg, " ")
28752 if (arg[1] == "#") {
28756 defundef
= substr
(arg
[1], 2)
28759 split(mac1
, mac2
, "(") #)
28761 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28762 if (D_is_set
[macro
]) {
28763 # Preserve the white space surrounding the "#".
28764 print prefix
"define", macro P
[macro
] D
[macro
]
28767 # Replace #undef with comments. This is necessary, for example,
28768 # in the case of _POSIX_SOURCE, which is predefined and required
28769 # on some systems where configure will not decide to define it.
28770 if (defundef
== "undef") {
28771 print
"/*", prefix defundef
, macro
, "*/"
28779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28780 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28781 fi # test -n "$CONFIG_HEADERS"
28784 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28789 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28791 case $ac_mode$ac_tag in
28793 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28794 :[FH
]-) ac_tag
=-:-;;
28795 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28812 -) ac_f
="$tmp/stdin";;
28813 *) # Look for the file first in the build tree, then in the source tree
28814 # (if the path is not absolute). The absolute path cannot be DOS-style,
28815 # because $ac_f cannot contain `:'.
28819 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28821 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28823 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28824 as_fn_append ac_file_inputs
" '$ac_f'"
28827 # Let's still pretend it is `configure' which instantiates (i.e., don't
28828 # use $as_me), people would be surprised to read:
28829 # /* config.h. Generated by config.status. */
28830 configure_input
='Generated from '`
28831 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28833 if test x
"$ac_file" != x-
; then
28834 configure_input
="$ac_file. $configure_input"
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28836 $as_echo "$as_me: creating $ac_file" >&6;}
28838 # Neutralize special characters interpreted by sed in replacement strings.
28839 case $configure_input in #(
28840 *\
&* |
*\|
* |
*\\* )
28841 ac_sed_conf_input
=`$as_echo "$configure_input" |
28842 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28843 *) ac_sed_conf_input
=$configure_input;;
28847 *:-:* |
*:-) cat >"$tmp/stdin" \
28848 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28853 ac_dir
=`$as_dirname -- "$ac_file" ||
28854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28855 X"$ac_file" : 'X\(//\)[^/]' \| \
28856 X"$ac_file" : 'X\(//\)$' \| \
28857 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28858 $as_echo X"$ac_file" |
28859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28863 /^X\(\/\/\)[^/].*/{
28876 as_dir
="$ac_dir"; as_fn_mkdir_p
28880 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28882 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28883 # A ".." for each directory in $ac_dir_suffix.
28884 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28885 case $ac_top_builddir_sub in
28886 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28887 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28890 ac_abs_top_builddir
=$ac_pwd
28891 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28892 # for backward compatibility:
28893 ac_top_builddir
=$ac_top_build_prefix
28896 .
) # We are building in place.
28898 ac_top_srcdir
=$ac_top_builddir_sub
28899 ac_abs_top_srcdir
=$ac_pwd ;;
28900 [\\/]* | ?
:[\\/]* ) # Absolute name.
28901 ac_srcdir
=$srcdir$ac_dir_suffix;
28902 ac_top_srcdir
=$srcdir
28903 ac_abs_top_srcdir
=$srcdir ;;
28904 *) # Relative name.
28905 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28906 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28907 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28909 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28921 # If the template does not know about datarootdir, expand it.
28922 # FIXME: This hack should be removed a few years after 2.60.
28923 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28934 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28935 *datarootdir
*) ac_datarootdir_seen
=yes;;
28936 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28938 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28941 ac_datarootdir_hack='
28942 s&@datadir@&$datadir&g
28943 s&@docdir@&$docdir&g
28944 s&@infodir@&$infodir&g
28945 s&@localedir@&$localedir&g
28946 s&@mandir@&$mandir&g
28947 s&\\\${datarootdir}&$datarootdir&g' ;;
28951 # Neutralize VPATH when `$srcdir' = `.'.
28952 # Shell code in configure.ac might set extrasub.
28953 # FIXME: do we really want to maintain this feature?
28954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28955 ac_sed_extra="$ac_vpsub
28958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28960 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28961 s|@configure_input@|
$ac_sed_conf_input|
;t t
28962 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28963 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28964 s
&@srcdir@
&$ac_srcdir&;t t
28965 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28966 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28967 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28968 s
&@builddir@
&$ac_builddir&;t t
28969 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28970 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28971 $ac_datarootdir_hack
28973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28974 if $ac_cs_awk_getline; then
28975 $AWK -f "$tmp/subs.
awk"
28977 $AWK -f "$tmp/subs.
awk" | $SHELL
28979 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28982 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28985 which seems to be undefined. Please make sure it is defined." >&5
28986 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28987 which seems to be undefined. Please make sure it is defined." >&2;}
28991 -) cat "$tmp/out" && rm -f "$tmp/out";;
28992 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28994 || as_fn_error "could not create $ac_file" "$LINENO" 5
29000 if test x"$ac_file" != x-; then
29002 $as_echo "/* $configure_input */" \
29003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29004 } >"$tmp/config.h" \
29005 || as_fn_error "could not create $ac_file" "$LINENO" 5
29006 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29008 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29011 mv "$tmp/config.h" "$ac_file" \
29012 || as_fn_error "could not create $ac_file" "$LINENO" 5
29015 $as_echo "/* $configure_input */" \
29016 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29017 || as_fn_error "could not create -" "$LINENO" 5
29021 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29022 $as_echo "$as_me: executing $ac_file commands" >&6;}
29027 case $ac_file$ac_mode in
29028 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29030 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29031 for lang in $subdirs c-family common
29033 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29035 "as":F) chmod +x as ;;
29036 "collect-ld":F) chmod +x collect-ld ;;
29037 "nm":F) chmod +x nm ;;
29039 case ${CONFIG_HEADERS} in
29040 *auto-host.h:config.in*)
29043 # Make sure all the subdirs exist.
29044 for d in $subdirs doc build common c-family
29046 test -d $d || mkdir $d
29056 ac_clean_files=$ac_clean_files_save
29058 test $ac_write_fail = 0 ||
29059 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29062 # configure is writing to config.log, and then calls config.status.
29063 # config.status does its own redirection, appending to config.log.
29064 # Unfortunately, on DOS this fails, as config.log is still kept open
29065 # by configure, so config.status won't be able to
write to it
; its
29066 # output is simply discarded. So we exec the FD to /dev/null,
29067 # effectively closing config.log, so it can be properly (re)opened and
29068 # appended to by config.status. When coming back to configure, we
29069 # need to make the FD available again.
29070 if test "$no_create" != yes; then
29072 ac_config_status_args
=
29073 test "$silent" = yes &&
29074 ac_config_status_args
="$ac_config_status_args --quiet"
29076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29079 # would make configure fail if this is the last instruction.
29080 $ac_cs_success || as_fn_exit $?
29082 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29084 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}