2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
730 NATIVE_SYSTEM_HEADER_DIR
766 CROSS_SYSTEM_HEADER_DIR
767 TARGET_SYSTEM_ROOT_DEFINE
769 SYSROOT_CFLAGS_FOR_TARGET
779 valgrind_path_defines
852 program_transform_name
863 ac_subst_files
='option_includes
866 enable_option_checking
871 enable_generated_files_in_srcdir
878 enable_build_format_warnings
882 enable_gather_detailed_mem_stats
894 with_native_system_header_dir
904 enable_sjlj_exceptions
906 enable_leading_mingw64_underscores
909 enable_win32_registry
915 enable_gnu_indirect_function
916 enable_initfini_array
919 enable_gnu_unique_object
920 enable_linker_build_id
924 enable_maintainer_mode
926 enable_version_specific_runtime_libs
929 enable_libquadmath_support
930 with_linker_hash_style
932 ac_precious_vars
='build_alias
953 # Initialize some variables set by options.
955 ac_init_version
=false
956 ac_unrecognized_opts
=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
967 program_transform_name
=s
,x
,x
,
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir
='${exec_prefix}/bin'
982 sbindir
='${exec_prefix}/sbin'
983 libexecdir
='${exec_prefix}/libexec'
984 datarootdir
='${prefix}/share'
985 datadir
='${datarootdir}'
986 sysconfdir
='${prefix}/etc'
987 sharedstatedir
='${prefix}/com'
988 localstatedir
='${prefix}/var'
989 includedir
='${prefix}/include'
990 oldincludedir
='/usr/include'
991 docdir
='${datarootdir}/doc/${PACKAGE}'
992 infodir
='${datarootdir}/info'
997 libdir
='${exec_prefix}/lib'
998 localedir
='${datarootdir}/locale'
999 mandir
='${datarootdir}/man'
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\
$ac_option
1013 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1023 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1025 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1026 bindir
=$ac_optarg ;;
1028 -build |
--build |
--buil |
--bui |
--bu)
1029 ac_prev
=build_alias
;;
1030 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1031 build_alias
=$ac_optarg ;;
1033 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1034 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1035 ac_prev
=cache_file
;;
1036 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1037 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1038 cache_file
=$ac_optarg ;;
1040 --config-cache |
-C)
1041 cache_file
=config.cache
;;
1043 -datadir |
--datadir |
--datadi |
--datad)
1045 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1046 datadir
=$ac_optarg ;;
1048 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1049 |
--dataroo |
--dataro |
--datar)
1050 ac_prev
=datarootdir
;;
1051 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1052 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1053 datarootdir
=$ac_optarg ;;
1055 -disable-* |
--disable-*)
1056 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error
"invalid feature name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_
$ac_useropt"
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval enable_
$ac_useropt=no
;;
1071 -docdir |
--docdir |
--docdi |
--doc |
--do)
1073 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1074 docdir
=$ac_optarg ;;
1076 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1078 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1079 dvidir
=$ac_optarg ;;
1081 -enable-* |
--enable-*)
1082 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1085 as_fn_error
"invalid feature name: $ac_useropt"
1086 ac_useropt_orig
=$ac_useropt
1087 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_
$ac_useropt"
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval enable_
$ac_useropt=\
$ac_optarg ;;
1097 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1098 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1099 |
--exec |
--exe |
--ex)
1100 ac_prev
=exec_prefix
;;
1101 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1102 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1103 |
--exec=* |
--exe=* |
--ex=*)
1104 exec_prefix
=$ac_optarg ;;
1106 -gas |
--gas |
--ga |
--g)
1107 # Obsolete; use --with-gas.
1110 -help |
--help |
--hel |
--he |
-h)
1111 ac_init_help
=long
;;
1112 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1113 ac_init_help
=recursive
;;
1114 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1115 ac_init_help
=short
;;
1117 -host |
--host |
--hos |
--ho)
1118 ac_prev
=host_alias
;;
1119 -host=* |
--host=* |
--hos=* |
--ho=*)
1120 host_alias
=$ac_optarg ;;
1122 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1124 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1126 htmldir
=$ac_optarg ;;
1128 -includedir |
--includedir |
--includedi |
--included |
--include \
1129 |
--includ |
--inclu |
--incl |
--inc)
1130 ac_prev
=includedir
;;
1131 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1132 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1133 includedir
=$ac_optarg ;;
1135 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1137 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1138 infodir
=$ac_optarg ;;
1140 -libdir |
--libdir |
--libdi |
--libd)
1142 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1143 libdir
=$ac_optarg ;;
1145 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1146 |
--libexe |
--libex |
--libe)
1147 ac_prev
=libexecdir
;;
1148 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1149 |
--libexe=* |
--libex=* |
--libe=*)
1150 libexecdir
=$ac_optarg ;;
1152 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1153 ac_prev
=localedir
;;
1154 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1155 localedir
=$ac_optarg ;;
1157 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1158 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1159 ac_prev
=localstatedir
;;
1160 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1161 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1162 localstatedir
=$ac_optarg ;;
1164 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1166 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1167 mandir
=$ac_optarg ;;
1169 -nfp |
--nfp |
--nf)
1170 # Obsolete; use --without-fp.
1173 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1174 |
--no-cr |
--no-c |
-n)
1177 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1178 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1181 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1182 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1183 |
--oldin |
--oldi |
--old |
--ol |
--o)
1184 ac_prev
=oldincludedir
;;
1185 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1186 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1187 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1188 oldincludedir
=$ac_optarg ;;
1190 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1192 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1193 prefix
=$ac_optarg ;;
1195 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1196 |
--program-pre |
--program-pr |
--program-p)
1197 ac_prev
=program_prefix
;;
1198 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1199 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1200 program_prefix
=$ac_optarg ;;
1202 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1203 |
--program-suf |
--program-su |
--program-s)
1204 ac_prev
=program_suffix
;;
1205 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1206 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1207 program_suffix
=$ac_optarg ;;
1209 -program-transform-name |
--program-transform-name \
1210 |
--program-transform-nam |
--program-transform-na \
1211 |
--program-transform-n |
--program-transform- \
1212 |
--program-transform |
--program-transfor \
1213 |
--program-transfo |
--program-transf \
1214 |
--program-trans |
--program-tran \
1215 |
--progr-tra |
--program-tr |
--program-t)
1216 ac_prev
=program_transform_name
;;
1217 -program-transform-name=* |
--program-transform-name=* \
1218 |
--program-transform-nam=* |
--program-transform-na=* \
1219 |
--program-transform-n=* |
--program-transform-=* \
1220 |
--program-transform=* |
--program-transfor=* \
1221 |
--program-transfo=* |
--program-transf=* \
1222 |
--program-trans=* |
--program-tran=* \
1223 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1224 program_transform_name
=$ac_optarg ;;
1226 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1228 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1229 pdfdir
=$ac_optarg ;;
1231 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1233 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1236 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1237 |
-silent |
--silent |
--silen |
--sile |
--sil)
1240 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1242 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1244 sbindir
=$ac_optarg ;;
1246 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1247 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1248 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1250 ac_prev
=sharedstatedir
;;
1251 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1252 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1253 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1255 sharedstatedir
=$ac_optarg ;;
1257 -site |
--site |
--sit)
1259 -site=* |
--site=* |
--sit=*)
1262 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1264 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1265 srcdir
=$ac_optarg ;;
1267 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1268 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1269 ac_prev
=sysconfdir
;;
1270 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1271 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1272 sysconfdir
=$ac_optarg ;;
1274 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1275 ac_prev
=target_alias
;;
1276 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1277 target_alias
=$ac_optarg ;;
1279 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1282 -version |
--version |
--versio |
--versi |
--vers |
-V)
1283 ac_init_version
=: ;;
1286 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=\
$ac_optarg ;;
1301 -without-* |
--without-*)
1302 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1305 as_fn_error
"invalid package name: $ac_useropt"
1306 ac_useropt_orig
=$ac_useropt
1307 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep
=', ';;
1315 eval with_
$ac_useropt=no
;;
1318 # Obsolete; use --with-x.
1321 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1322 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1323 ac_prev
=x_includes
;;
1324 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1325 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1326 x_includes
=$ac_optarg ;;
1328 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1329 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1330 ac_prev
=x_libraries
;;
1331 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1332 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1333 x_libraries
=$ac_optarg ;;
1335 -*) as_fn_error
"unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1340 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1344 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1346 eval $ac_envvar=\
$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360 if test -n "$ac_prev"; then
1361 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error
"missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1368 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 # Check all directory arguments for consistency.
1374 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val
=\$
$ac_var
1380 # Remove trailing slashes.
1383 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\
$ac_val;;
1386 # Be sure to have absolute directory names.
1388 [\\/$
]* | ?
:[\\/]* ) continue;;
1389 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1391 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1399 target
=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x
; then
1403 if test "x$build_alias" = x
; then
1404 cross_compiling
=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1413 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1415 test "$silent" = yes && exec 6>/dev
/null
1418 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di
=`ls -di .` &&
1420 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error
"working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error
"pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted
=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir
=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1458 ac_srcdir_defaulted
=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1462 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1476 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 for ac_var
in $ac_precious_vars; do
1479 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1481 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1492 \`configure' configures this package to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1555 --build=BUILD configure
for building on BUILD
[guessed
]
1556 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1557 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1561 if test -n "$ac_init_help"; then
1566 --disable-option-checking ignore unrecognized
--enable/--with options
1567 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1568 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1569 --enable-generated-files-in-srcdir
1570 put copies of generated files
in source dir intended
1571 for creating
source tarballs
for users without
1572 texinfo bison or flex
1573 --disable-largefile omit support
for large files
1574 --disable-build-format-warnings
1575 don
't use -Wformat while building GCC
1576 --enable-werror-always enable -Werror despite compiler version
1577 --enable-checking[=LIST]
1578 enable expensive run-time checks. With LIST, enable
1579 only specific categories of checks. Categories are:
1580 yes,no,all,none,release. Flags are:
1581 assert,df,fold,gc,gcac,gimple,misc,
1582 rtlflag,rtl,runtime,tree,valgrind,types
1583 --enable-coverage[=LEVEL]
1584 enable compiler's code coverage collection. Use to
1585 measure compiler performance and
locate unused parts
1586 of the compiler. With LEVEL
, specify optimization.
1587 Values are opt
, noopt
, default is noopt
1588 --enable-gather-detailed-mem-stats
1589 enable detailed memory allocation stats gathering
1590 --enable-multilib enable library support
for multiple ABIs
1591 --enable-multiarch enable support
for multiarch paths
1592 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1593 --enable-decimal-float={no
,yes,bid
,dpd
}
1594 enable decimal float extension to C. Selecting
'bid'
1595 or
'dpd' choses
which decimal floating point format
1597 --enable-fixed-point enable fixed-point arithmetic extension to C
1598 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1600 --enable-tls enable or disable generation of tls code overriding
1601 the assembler check
for tls support
1602 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1603 GNU Objective-C runtime
1604 --disable-shared don't provide a shared libgcc
1605 --enable-languages=LIST specify
which front-ends to build
1606 --disable-rpath do not hardcode runtime library paths
1607 --enable-sjlj-exceptions
1608 arrange to use setjmp
/longjmp exception handling
1609 --enable-secureplt enable -msecure-plt by default
for PowerPC
1610 --enable-leading-mingw64-underscores
1611 enable leading underscores on
64 bit mingw targets
1612 --enable-cld enable -mcld by default
for 32bit x86
1613 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1615 --disable-win32-registry
1616 disable lookup of installation paths
in the Registry
1618 --enable-win32-registry enable registry lookup
(default
)
1619 --enable-win32-registry=KEY
1620 use KEY instead of GCC version as the last portion
1622 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1623 --enable-static[=PKGS
] build static libraries
[default
=yes]
1624 --enable-fast-install[=PKGS
]
1625 optimize
for fast installation
[default
=yes]
1626 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1627 --enable-gnu-indirect-function
1628 enable the use of the @gnu_indirect_function to
1630 --enable-initfini-array use .init_array
/.fini_array sections
1631 --enable-comdat enable COMDAT group support
1632 --enable-gnu-unique-object
1633 enable the use of the @gnu_unique_object ELF
1634 extension on glibc systems
1635 --enable-linker-build-id
1636 compiler will always pass
--build-id to linker
1637 --enable-maintainer-mode
1638 enable make rules and dependencies not useful
(and
1639 sometimes confusing
) to the casual installer
1640 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1641 thrashing on the build machine
1642 --enable-version-specific-runtime-libs
1643 specify that runtime libraries should be installed
1644 in a compiler-specific directory
1645 --enable-plugin enable plugin support
1646 --enable-host-shared build
host code as shared libraries
1647 --disable-libquadmath-support
1648 disable libquadmath support
for Fortran
1651 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1652 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1653 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1654 --with-local-prefix=DIR specifies directory to put
local include
1655 --with-gxx-include-dir=DIR
1656 specifies directory to put g
++ header files
1657 --with-cpp-install-dir=DIR
1658 install the user visible C preprocessor
in DIR
1659 (relative to PREFIX
) as well as PREFIX
/bin
1660 --with-gnu-ld arrange to work with GNU ld
1661 --with-ld arrange to use the specified ld
(full pathname
)
1662 --with-demangler-in-ld try to use demangler
in GNU ld
1663 --with-gnu-as arrange to work with GNU as
1664 --with-as arrange to use the specified as
(full pathname
)
1665 --with-stabs arrange to use stabs instead of
host debug format
1666 --with-dwarf2 force the default debug format to be DWARF
2
1667 --with-native-system-header-dir=dir
1668 use dir as the directory to
look for standard
1669 system header files
in. Defaults to
/usr
/include.
1670 --with-build-sysroot=sysroot
1671 use sysroot as the system root during the build
1672 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1673 --with-specs=SPECS add SPECS to driver command-line processing
1674 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1675 --with-bugurl=URL Direct users to URL to report a bug
1676 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1677 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1678 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1679 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1680 --with-pic try to use only PIC/non-PIC objects [default=use
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-plugin-ld=[ARG] specify the plugin linker
1684 --with-glibc-version=M.N
1685 assume GCC used with glibc version M.N or later
1686 --with-long-double-128 use 128-bit long double by default
1687 --with-gc={page,zone} this option is not supported anymore. It used to
1688 choose the garbage collection mechanism to use with
1690 --with-system-zlib use installed libz
1691 --with-linker-hash-style={sysv,gnu,both}
1692 specify the linker hash style
1694 Some influential environment variables:
1695 CC C compiler command
1696 CFLAGS C compiler flags
1697 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1698 nonstandard directory <lib dir>
1699 LIBS libraries to pass to the linker, e.g. -l<library>
1700 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1701 you have headers in a nonstandard directory <include dir>
1702 CXX C++ compiler command
1703 CXXFLAGS C++ compiler flags
1705 CXXCPP C++ preprocessor
1706 GMPLIBS How to link GMP
1707 GMPINC How to find GMP include files
1708 ISLLIBS How to link ISL
1709 ISLINC How to find ISL include files
1710 CLOOGLIBS How to link CLOOG
1711 CLOOGINC How to find CLOOG include files
1713 Use these variables to override the choices made by `configure' or to
help
1714 it to
find libraries and programs with nonstandard names
/locations.
1716 Report bugs to the package provider.
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1730 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1732 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1737 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1740 ac_abs_top_builddir
=$ac_pwd
1741 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir
=$ac_top_build_prefix
1746 .
) # We are building in place.
1748 ac_top_srcdir
=$ac_top_builddir_sub
1749 ac_abs_top_srcdir
=$ac_pwd ;;
1750 [\\/]* | ?
:[\\/]* ) # Absolute name.
1751 ac_srcdir
=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir
=$srcdir
1753 ac_abs_top_srcdir
=$srcdir ;;
1755 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1759 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1780 generated by GNU Autoconf
2.64
1782 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1783 This configure
script is free software
; the Free Software Foundation
1784 gives unlimited permission to copy
, distribute and modify it.
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile
()
1798 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1799 rm -f conftest.
$ac_objext
1800 if { { ac_try
="$ac_compile"
1802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1841 *) ac_try_echo
=$ac_try;;
1843 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1847 if test -s conftest.err
; then
1848 grep -v '^ *+' conftest.err
>conftest.er1
1849 cat conftest.er1
>&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.
$ac_objext; then :
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.
$ac_ext >&5
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1875 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } >/dev/null && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1983 eval "$3=\$ac_header_compiler"
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
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_link") 2>&5
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2071 ac_fn_c_compute_int ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2089 if ac_fn_c_try_compile "$LINENO"; then :
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) < 0)];
2131 if ac_fn_c_try_compile "$LINENO"; then :
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2204 FILE *f = fopen ("conftest.val", "w");
2209 long int i = longval ();
2212 fprintf (f, "%ld", i);
2216 unsigned long int i = ulongval ();
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 } # ac_fn_c_compute_int
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2282 if ac_fn_c_try_compile "$LINENO"; then :
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296 } # ac_fn_c_check_type
2298 # ac_fn_c_find_intX_t LINENO BITS VAR
2299 # -----------------------------------
2300 # Finds a signed integer type with width BITS, setting cache variable VAR
2302 ac_fn_c_find_intX_t ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2306 $as_echo_n "checking for int$2_t... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2311 for ac_type in int$2_t 'int' 'long int' \
2312 'long long int' 'short int' 'signed char'; do
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $ac_includes_default
2319 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329 $ac_includes_default
2333 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2334 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2341 if ac_fn_c_try_compile "$LINENO"; then :
2348 eval "$3=\$ac_type" ;;
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 if test "x$as_val" = x""no; then :
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2367 } # ac_fn_c_find_intX_t
2369 # ac_fn_c_try_link LINENO
2370 # -----------------------
2371 # Try to link conftest.$ac_ext, and return whether this succeeded.
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext conftest$ac_exeext
2376 if { { ac_try="$ac_link"
2378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2379 *) ac_try_echo
=$ac_try;;
2381 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_link") 2>conftest.err
2385 if test -s conftest.err
; then
2386 grep -v '^ *+' conftest.err
>conftest.er1
2387 cat conftest.er1
>&5
2388 mv -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_c_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest
$ac_exeext && {
2395 test "$cross_compiling" = yes ||
2396 $as_test_x conftest
$ac_exeext
2400 $as_echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.
$ac_ext >&5
2405 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2406 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2407 # interfere with the next link command; also delete a directory that is
2408 # left behind by Apple's compiler. We do this before executing the actions.
2409 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2413 } # ac_fn_c_try_link
2415 # ac_fn_c_find_uintX_t LINENO BITS VAR
2416 # ------------------------------------
2417 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2419 ac_fn_c_find_uintX_t
()
2421 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2423 $as_echo_n "checking for uint$2_t... " >&6; }
2424 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2428 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2429 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $ac_includes_default
2436 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2443 if ac_fn_c_try_compile
"$LINENO"; then :
2448 eval "$3=\$ac_type" ;;
2451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2453 if test "x$as_val" = x
""no
; then :
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2465 } # ac_fn_c_find_uintX_t
2467 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2468 # ----------------------------------------------
2469 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2470 ac_fn_c_check_header_preproc
()
2472 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2482 if ac_fn_c_try_cpp
"$LINENO"; then :
2487 rm -f conftest.err conftest.
$ac_ext
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2494 } # ac_fn_c_check_header_preproc
2496 # ac_fn_cxx_try_cpp LINENO
2497 # ------------------------
2498 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2499 ac_fn_cxx_try_cpp
()
2501 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2502 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2511 if test -s conftest.err; then
2512 grep -v '^ *+' conftest.err >conftest.er1
2513 cat conftest.er1 >&5
2514 mv -f conftest.er1 conftest.err
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; } >/dev/null && {
2518 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2519 test ! -s conftest.err
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 } # ac_fn_cxx_try_cpp
2533 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2534 # ------------------------------------------------
2535 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2536 ac_fn_cxx_check_header_preproc ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2542 $as_echo_n "(cached) " >&6
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2548 if ac_fn_cxx_try_cpp "$LINENO"; then :
2553 rm -f conftest.err conftest.$ac_ext
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560 } # ac_fn_cxx_check_header_preproc
2562 # ac_fn_c_check_func LINENO FUNC VAR
2563 # ----------------------------------
2564 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2565 ac_fn_c_check_func ()
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2577 #define $2 innocuous_$2
2579 /* System header to define __stub macros and hopefully few prototypes,
2580 which can conflict with char $2 (); below.
2581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582 <limits.h> exists even on freestanding compilers. */
2585 # include <limits.h>
2587 # include <assert.h>
2592 /* Override any GCC internal prototype to avoid an error.
2593 Use char because int might match the return type of a GCC
2594 builtin and then its argument prototype would still apply. */
2599 /* The GNU C library defines this for functions which it implements
2600 to always fail with ENOSYS. Some functions are actually named
2601 something starting with __ and the normal name is an alias. */
2602 #if defined __stub_$2 || defined __stub___$2
2614 if ac_fn_c_try_link "$LINENO"; then :
2619 rm -f core conftest.err conftest.$ac_objext \
2620 conftest$ac_exeext conftest.$ac_ext
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2627 } # ac_fn_c_check_func
2629 # ac_fn_cxx_try_link LINENO
2630 # -------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded.
2632 ac_fn_cxx_try_link ()
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext conftest$ac_exeext
2636 if { { ac_try="$ac_link"
2638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2639 *) ac_try_echo
=$ac_try;;
2641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>conftest.err
2645 if test -s conftest.err
; then
2646 grep -v '^ *+' conftest.err
>conftest.er1
2647 cat conftest.er1
>&5
2648 mv -f conftest.er1 conftest.err
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_cxx_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest
$ac_exeext && {
2655 test "$cross_compiling" = yes ||
2656 $as_test_x conftest
$ac_exeext
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.
$ac_ext >&5
2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667 # interfere with the next link command; also delete a directory that is
2668 # left behind by Apple's compiler. We do this before executing the actions.
2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2673 } # ac_fn_cxx_try_link
2674 cat >config.log
<<_ACEOF
2675 This file contains any messages produced by compilers while
2676 running configure, to aid debugging if configure makes a mistake.
2678 It was created by $as_me, which was
2679 generated by GNU Autoconf 2.64. Invocation command line was
2691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 $as_echo "PATH: $as_dir"
2731 # Keep a trace of the command line.
2732 # Strip out --no-create and --no-recursion so they do not pile up.
2733 # Strip out --silent because we don't want to record it for future runs.
2734 # Also quote any args containing shell meta-characters.
2735 # Make two passes to allow for proper duplicate-argument suppression.
2739 ac_must_keep_next
=false
2745 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2746 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2747 |
-silent |
--silent |
--silen |
--sile |
--sil)
2750 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2753 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2755 as_fn_append ac_configure_args1
" '$ac_arg'"
2756 if test $ac_must_keep_next = true
; then
2757 ac_must_keep_next
=false
# Got value, back to normal.
2760 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2761 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2762 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2763 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2764 case "$ac_configure_args0 " in
2765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2768 -* ) ac_must_keep_next
=true
;;
2771 as_fn_append ac_configure_args
" '$ac_arg'"
2776 { ac_configure_args0
=; unset ac_configure_args0
;}
2777 { ac_configure_args1
=; unset ac_configure_args1
;}
2779 # When interrupted or exit'd, cleanup temporary files, and complete
2780 # config.log. We remove comments because anyway the quotes in there
2781 # would cause problems or look ugly.
2782 # WARNING: Use '\'' to represent an apostrophe within the trap.
2783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2784 trap 'exit_status=$?
2785 # Save into config.log some information that might help in debugging.
2790 ## ---------------- ##
2791 ## Cache variables. ##
2792 ## ---------------- ##
2795 # The following way of writing the cache mishandles newlines in values,
2797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2798 eval ac_val=\$$ac_var
2802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2806 _ | IFS | as_nl) ;; #(
2807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2808 *) { eval $ac_var=; unset $ac_var;} ;;
2813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2814 *${as_nl}ac_space=\ *)
2816 "s/'\''/'\''\\\\'\'''\''/g;
2817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2828 ## ----------------- ##
2829 ## Output variables. ##
2830 ## ----------------- ##
2833 for ac_var in $ac_subst_vars
2835 eval ac_val=\$$ac_var
2837 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 $as_echo "$ac_var='\''$ac_val'\''"
2843 if test -n "$ac_subst_files"; then
2845 ## ------------------- ##
2846 ## File substitutions. ##
2847 ## ------------------- ##
2850 for ac_var
in $ac_subst_files
2852 eval ac_val
=\$
$ac_var
2854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2856 $as_echo "$ac_var='\''$ac_val'\''"
2861 if test -s confdefs.h; then
2871 test "$ac_signal" != 0 &&
2872 $as_echo "$as_me: caught signal $ac_signal"
2873 $as_echo "$as_me: exit $exit_status"
2875 rm -f core *.core core.conftest.* &&
2876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2879 for ac_signal
in 1 2 13 15; do
2880 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2885 rm -f -r conftest
* confdefs.h
2887 $as_echo "/* confdefs.h */" > confdefs.h
2889 # Predefined preprocessor variables.
2891 cat >>confdefs.h
<<_ACEOF
2892 #define PACKAGE_NAME "$PACKAGE_NAME"
2895 cat >>confdefs.h
<<_ACEOF
2896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2899 cat >>confdefs.h
<<_ACEOF
2900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2903 cat >>confdefs.h
<<_ACEOF
2904 #define PACKAGE_STRING "$PACKAGE_STRING"
2907 cat >>confdefs.h
<<_ACEOF
2908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2911 cat >>confdefs.h
<<_ACEOF
2912 #define PACKAGE_URL "$PACKAGE_URL"
2916 # Let the site file select an alternate cache file if it wants to.
2917 # Prefer an explicitly selected file to automatically selected ones.
2920 if test -n "$CONFIG_SITE"; then
2921 ac_site_file1
=$CONFIG_SITE
2922 elif test "x$prefix" != xNONE
; then
2923 ac_site_file1
=$prefix/share
/config.site
2924 ac_site_file2
=$prefix/etc
/config.site
2926 ac_site_file1
=$ac_default_prefix/share
/config.site
2927 ac_site_file2
=$ac_default_prefix/etc
/config.site
2929 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2931 test "x$ac_site_file" = xNONE
&& continue
2932 if test -r "$ac_site_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2934 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2935 sed 's/^/| /' "$ac_site_file" >&5
2940 if test -r "$cache_file"; then
2941 # Some versions of bash will fail to source /dev/null (special
2942 # files actually), so we avoid doing that.
2943 if test -f "$cache_file"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2945 $as_echo "$as_me: loading cache $cache_file" >&6;}
2947 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2948 *) .
"./$cache_file";;
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2953 $as_echo "$as_me: creating cache $cache_file" >&6;}
2957 # Check that the precious variables saved in the cache have kept the same
2959 ac_cache_corrupted
=false
2960 for ac_var
in $ac_precious_vars; do
2961 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2962 eval ac_new_set
=\
$ac_env_${ac_var}_set
2963 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2964 eval ac_new_val
=\
$ac_env_${ac_var}_value
2965 case $ac_old_set,$ac_new_set in
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2968 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2969 ac_cache_corrupted
=: ;;
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2972 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2973 ac_cache_corrupted
=: ;;
2976 if test "x$ac_old_val" != "x$ac_new_val"; then
2977 # differences in whitespace do not lead to failure.
2978 ac_old_val_w
=`echo x $ac_old_val`
2979 ac_new_val_w
=`echo x $ac_new_val`
2980 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2982 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2983 ac_cache_corrupted
=:
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2986 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2987 eval $ac_var=\
$ac_old_val
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2990 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2992 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2995 # Pass precious variables to config.status.
2996 if test "$ac_new_set" = set; then
2998 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2999 *) ac_arg
=$ac_var=$ac_new_val ;;
3001 case " $ac_configure_args " in
3002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3003 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3007 if $ac_cache_corrupted; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3011 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3012 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3014 ## -------------------- ##
3015 ## Main body of script. ##
3016 ## -------------------- ##
3019 ac_cpp
='$CPP $CPPFLAGS'
3020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3029 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3032 gcc_version
=`cat $srcdir/BASE-VER`
3034 # Determine the host, build, and target systems
3036 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3037 for ac_t
in install-sh
install.sh shtool
; do
3038 if test -f "$ac_dir/$ac_t"; then
3040 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3045 if test -z "$ac_aux_dir"; then
3046 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3049 # These three variables are undocumented and unsupported,
3050 # and are intended to be withdrawn in a future Autoconf release.
3051 # They can cause serious problems if a builder's source tree is in a directory
3052 # whose full name contains unusual characters.
3053 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3054 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3055 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3058 # Make sure we can run config.sub.
3059 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3060 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3063 $as_echo_n "checking build system type... " >&6; }
3064 if test "${ac_cv_build+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3067 ac_build_alias
=$build_alias
3068 test "x$ac_build_alias" = x
&&
3069 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3070 test "x$ac_build_alias" = x
&&
3071 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3072 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3073 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3077 $as_echo "$ac_cv_build" >&6; }
3078 case $ac_cv_build in
3080 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3083 ac_save_IFS
=$IFS; IFS
='-'
3089 # Remember, the first character of IFS is used to create $*,
3090 # except with old shells:
3093 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3097 $as_echo_n "checking host system type... " >&6; }
3098 if test "${ac_cv_host+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test "x$host_alias" = x
; then
3102 ac_cv_host
=$ac_cv_build
3104 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3105 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3110 $as_echo "$ac_cv_host" >&6; }
3113 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3116 ac_save_IFS
=$IFS; IFS
='-'
3122 # Remember, the first character of IFS is used to create $*,
3123 # except with old shells:
3126 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3130 $as_echo_n "checking target system type... " >&6; }
3131 if test "${ac_cv_target+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3134 if test "x$target_alias" = x
; then
3135 ac_cv_target
=$ac_cv_host
3137 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3138 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3143 $as_echo "$ac_cv_target" >&6; }
3144 case $ac_cv_target in
3146 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3148 target
=$ac_cv_target
3149 ac_save_IFS
=$IFS; IFS
='-'
3155 # Remember, the first character of IFS is used to create $*,
3156 # except with old shells:
3159 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3162 # The aliases save the names the user supplied, while $host etc.
3163 # will get canonicalized.
3164 test -n "$target_alias" &&
3165 test "$program_prefix$program_suffix$program_transform_name" = \
3167 program_prefix
=${target_alias}-
3169 # Determine the noncanonical target name, for directory use.
3170 case ${build_alias} in
3171 "") build_noncanonical
=${build} ;;
3172 *) build_noncanonical
=${build_alias} ;;
3175 case ${host_alias} in
3176 "") host_noncanonical
=${build_noncanonical} ;;
3177 *) host_noncanonical
=${host_alias} ;;
3180 case ${target_alias} in
3181 "") target_noncanonical
=${host_noncanonical} ;;
3182 *) target_noncanonical
=${target_alias} ;;
3188 # Determine the target- and build-specific subdirectories
3190 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3191 # have matching libraries, they should use host libraries: Makefile.tpl
3192 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3193 # However, they still use the build modules, because the corresponding
3194 # host modules (e.g. bison) are only built for the host when bootstrap
3196 # - build_subdir is where we find build modules, and never changes.
3197 # - build_libsubdir is where we find build libraries, and can be overridden.
3199 # Prefix 'build-' so this never conflicts with target_subdir.
3200 build_subdir
="build-${build_noncanonical}"
3202 # Check whether --with-build-libsubdir was given.
3203 if test "${with_build_libsubdir+set}" = set; then :
3204 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3206 build_libsubdir
="$build_subdir"
3209 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3210 if ( test $srcdir = .
&& test -d gcc
) \
3211 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3212 host_subdir
="host-${host_noncanonical}"
3217 target_subdir
=${target_noncanonical}
3220 # Set program_transform_name
3221 test "$program_prefix" != NONE
&&
3222 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3223 # Use a double $ so make ignores it.
3224 test "$program_suffix" != NONE
&&
3225 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3226 # Double any \ or $.
3227 # By default was `s,x,x', remove it if useless.
3228 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3229 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3232 # Check for bogus environment variables.
3233 # Test if LIBRARY_PATH contains the notation for the current directory
3234 # since this would lead to problems installing/building glibc.
3235 # LIBRARY_PATH contains the current directory if one of the following
3237 # - one of the terminals (":" and ";") is the first or last sign
3238 # - two terminals occur directly after each other
3239 # - the path contains an element with a dot in it
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3241 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3242 case ${LIBRARY_PATH} in
3243 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3244 library_path_setting
="contains current directory"
3247 library_path_setting
="ok"
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3251 $as_echo "$library_path_setting" >&6; }
3252 if test "$library_path_setting" != "ok"; then
3254 *** LIBRARY_PATH shouldn't contain the current directory when
3255 *** building gcc. Please change the environment variable
3256 *** and run configure again." "$LINENO" 5
3259 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # GCC_EXEC_PREFIX contains the current directory if one of the following
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3267 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3268 case ${GCC_EXEC_PREFIX} in
3269 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3270 gcc_exec_prefix_setting
="contains current directory"
3273 gcc_exec_prefix_setting
="ok"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3277 $as_echo "$gcc_exec_prefix_setting" >&6; }
3278 if test "$gcc_exec_prefix_setting" != "ok"; then
3280 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3289 # Specify the local prefix
3292 # Check whether --with-local-prefix was given.
3293 if test "${with_local_prefix+set}" = set; then :
3294 withval
=$with_local_prefix; case "${withval}" in
3295 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3297 *) local_prefix
=$with_local_prefix ;;
3302 # Default local prefix if it is empty
3303 if test x
$local_prefix = x
; then
3304 local_prefix
=/usr
/local
3307 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3308 # passed in by the toplevel make and thus we'd get different behavior
3309 # depending on where we built the sources.
3310 gcc_gxx_include_dir
=
3311 # Specify the g++ header file directory
3313 # Check whether --with-gxx-include-dir was given.
3314 if test "${with_gxx_include_dir+set}" = set; then :
3315 withval
=$with_gxx_include_dir; case "${withval}" in
3316 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3318 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3323 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3324 if test x
${gcc_gxx_include_dir} = x
; then
3325 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3326 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3328 libstdcxx_incdir
='include/c++/$(version)'
3329 if test x
$host != x
$target; then
3330 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3332 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3336 gcc_gxx_include_dir_add_sysroot
=0
3337 if test "${with_sysroot+set}" = set; then
3338 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3339 if test "${gcc_gxx_without_sysroot}"; then
3340 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3341 gcc_gxx_include_dir_add_sysroot
=1
3346 # Check whether --with-cpp_install_dir was given.
3347 if test "${with_cpp_install_dir+set}" = set; then :
3348 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3349 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3350 elif test x
$withval != xno
; then
3351 cpp_install_dir
=$withval
3356 # We would like to our source tree to be readonly. However when releases or
3357 # pre-releases are generated, the flex/bison generated files as well as the
3358 # various formats of manuals need to be included along with the rest of the
3359 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3363 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3364 # Check whether --enable-generated-files-in-srcdir was given.
3365 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3366 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3368 generated_files_in_srcdir
=no
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3373 $as_echo "$generated_files_in_srcdir" >&6; }
3375 if test "$generated_files_in_srcdir" = "yes"; then
3382 # -------------------
3383 # Find default linker
3384 # -------------------
3388 # Check whether --with-gnu-ld was given.
3389 if test "${with_gnu_ld+set}" = set; then :
3390 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3396 # With pre-defined ld
3398 # Check whether --with-ld was given.
3399 if test "${with_ld+set}" = set; then :
3400 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3403 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3404 if test ! -x "$DEFAULT_LINKER"; then
3405 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3406 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3410 cat >>confdefs.h
<<_ACEOF
3411 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3417 $as_echo_n "checking whether a default linker was specified... " >&6; }
3418 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3419 if test x
"$gnu_ld_flag" = x
"no"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3424 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3431 # With demangler in GNU ld
3433 # Check whether --with-demangler-in-ld was given.
3434 if test "${with_demangler_in_ld+set}" = set; then :
3435 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3441 # ----------------------
3442 # Find default assembler
3443 # ----------------------
3447 # Check whether --with-gnu-as was given.
3448 if test "${with_gnu_as+set}" = set; then :
3449 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3456 # Check whether --with-as was given.
3457 if test "${with_as+set}" = set; then :
3458 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3461 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3462 if test ! -x "$DEFAULT_ASSEMBLER"; then
3463 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3464 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3468 cat >>confdefs.h
<<_ACEOF
3469 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3475 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3476 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3477 if test x
"$gas_flag" = x
"no"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3482 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3493 # If a non-executable a.out is present (e.g. created by GNU as above even if
3494 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3495 # file, even when creating an executable, so an execution test fails.
3496 # Remove possible default executable files to avoid this.
3498 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3499 # Autoconf includes it.
3500 rm -f a.out a.exe b.out
3502 # Find the native compiler
3504 ac_cpp
='$CPP $CPPFLAGS'
3505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3510 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC
="$CC" # Let the user override the test.
3519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir
=.
3524 for ac_exec_ext
in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3547 if test -z "$ac_cv_prog_CC"; then
3549 # Extract the first word of "gcc", so it can be a program name with args.
3550 set dummy gcc
; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$ac_ct_CC"; then
3557 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_ac_ct_CC
="gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 $as_echo "$ac_ct_CC" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3585 if test "x$ac_ct_CC" = x
; then
3588 case $cross_compiling:$ac_tool_warned in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned
=yes ;;
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3603 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC
="$CC" # Let the user override the test.
3612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir
=.
3617 for ac_exec_ext
in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3641 if test -z "$CC"; then
3642 # Extract the first word of "cc", so it can be a program name with args.
3643 set dummy cc
; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC
="$CC" # Let the user override the test.
3653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir
=.
3658 for ac_exec_ext
in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3661 ac_prog_rejected
=yes
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test $ac_prog_rejected = yes; then
3673 # We found a bogon in the path, so make sure we never use it.
3674 set dummy
$ac_cv_prog_CC
3676 if test $# != 0; then
3677 # We chose a different compiler from the bogus one.
3678 # However, it has the same basename, so the bogon will be chosen
3679 # first if we set CC to just the basename; use the full file name.
3681 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3687 if test -n "$CC"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3689 $as_echo "$CC" >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3697 if test -z "$CC"; then
3698 if test -n "$ac_tool_prefix"; then
3699 for ac_prog
in cl.exe
3701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC
="$CC" # Let the user override the test.
3711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir
=.
3716 for ac_exec_ext
in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3738 test -n "$CC" && break
3741 if test -z "$CC"; then
3743 for ac_prog
in cl.exe
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy
$ac_prog; ac_word
=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 if test -n "$ac_ct_CC"; then
3753 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir
=.
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_ac_ct_CC
="$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3773 if test -n "$ac_ct_CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3775 $as_echo "$ac_ct_CC" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$ac_ct_CC" && break
3785 if test "x$ac_ct_CC" = x
; then
3788 case $cross_compiling:$ac_tool_warned in
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3792 ac_tool_warned
=yes ;;
3801 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error
"no acceptable C compiler found in \$PATH
3804 See \`config.log' for more details." "$LINENO" 5; }
3806 # Provide some information about the compiler.
3807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3810 for ac_option
in --version -v -V -qversion; do
3811 { { ac_try
="$ac_compiler $ac_option >&5"
3813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3820 if test -s conftest.err; then
3822 ... rest of stderr output deleted ...
3823 10q' conftest.err >conftest.er1
3824 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3842 ac_clean_files_save=$ac_clean_files
3843 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3844 # Try to create an executable without -o first, disregard a.out.
3845 # It will help us diagnose broken compilers, and finding out an intuition
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3848 $as_echo_n "checking for C compiler default output file name... " >&6; }
3849 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3851 # The possible output files:
3852 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3855 for ac_file in $ac_files
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3864 if { { ac_try="$ac_link_default"
3866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3867 *) ac_try_echo
=$ac_try;;
3869 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_link_default") 2>&5
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3876 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3877 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3878 # so that the user can short-circuit this test for compilers unknown to
3880 for ac_file
in $ac_files ''
3882 test -f "$ac_file" ||
continue
3884 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3887 # We found the default executable, but exeext='' is most
3891 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3893 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895 # We set ac_cv_exeext here because the later test for it is not
3896 # safe: cross compilers may not add the suffix if given an `-o'
3897 # argument, so we may need to know it at that point already.
3898 # Even if this section looks crufty: it has the advantage of
3905 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3911 $as_echo "$ac_file" >&6; }
3912 if test -z "$ac_file"; then :
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.
$ac_ext >&5
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 { as_fn_set_status
77
3919 as_fn_error
"C compiler cannot create executables
3920 See \`config.log' for more details." "$LINENO" 5; }; }
3922 ac_exeext
=$ac_cv_exeext
3924 # Check that the compiler produces executables we can run. If not, either
3925 # the compiler is broken, or we cross compile.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3927 $as_echo_n "checking whether the C compiler works... " >&6; }
3928 # If not cross compiling, check that we can run a simple program.
3929 if test "$cross_compiling" != yes; then
3930 if { ac_try
='./$ac_file'
3931 { { case "(($ac_try" in
3932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_try") 2>&5
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; }; then
3943 if test "$cross_compiling" = maybe; then
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "cannot run C compiled programs.
3949 If you meant to cross compile
, use \
`--host'.
3950 See \`config.log
' for more details." "$LINENO" 5; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3958 ac_clean_files=$ac_clean_files_save
3959 # Check that the compiler produces executables we can run. If not, either
3960 # the compiler is broken, or we cross compile.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3962 $as_echo_n "checking whether we are cross compiling... " >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3964 $as_echo "$cross_compiling" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3967 $as_echo_n "checking for suffix of executables... " >&6; }
3968 if { { ac_try="$ac_link"
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_link") 2>&5
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; then :
3979 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3980 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3981 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3983 for ac_file
in conftest.exe conftest conftest.
*; do
3984 test -f "$ac_file" ||
continue
3986 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3987 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3996 See \`config.log' for more details." "$LINENO" 5; }
3998 rm -f conftest
$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4000 $as_echo "$ac_cv_exeext" >&6; }
4002 rm -f conftest.
$ac_ext
4003 EXEEXT
=$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4006 $as_echo_n "checking for suffix of object files... " >&6; }
4007 if test "${ac_cv_objext+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 rm -f conftest.o conftest.obj
4022 if { { ac_try
="$ac_compile"
4024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_compile") 2>&5
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }; then :
4033 for ac_file in conftest.o conftest.obj conftest.*; do
4034 test -f "$ac_file" || continue;
4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error "cannot compute suffix of object files
: cannot compile
4048 See \
`config.log' for more details." "$LINENO" 5; }
4050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4053 $as_echo "$ac_cv_objext" >&6; }
4054 OBJEXT=$ac_cv_objext
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4058 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4075 if ac_fn_c_try_compile "$LINENO"; then :
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4085 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4086 if test $ac_compiler_gnu = yes; then
4091 ac_test_CFLAGS=${CFLAGS+set}
4092 ac_save_CFLAGS=$CFLAGS
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4094 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4095 if test "${ac_cv_prog_cc_g+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4098 ac_save_c_werror_flag=$ac_c_werror_flag
4099 ac_c_werror_flag=yes
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4144 if ac_fn_c_try_compile "$LINENO"; then :
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_c_werror_flag=$ac_save_c_werror_flag
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4155 $as_echo "$ac_cv_prog_cc_g" >&6; }
4156 if test "$ac_test_CFLAGS" = set; then
4157 CFLAGS=$ac_save_CFLAGS
4158 elif test $ac_cv_prog_cc_g = yes; then
4159 if test "$GCC" = yes; then
4165 if test "$GCC" = yes; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4173 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4176 ac_cv_prog_cc_c89=no
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4182 #include <sys/types.h>
4183 #include <sys/stat.h>
4184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4185 struct buf { int x; };
4186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4187 static char *e (p, i)
4193 static char *f (char * (*g) (char **, int), char **p, ...)
4198 s = g (p, va_arg (v,int));
4203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4204 function prototypes and stuff, but not '\xHH' hex character constants.
4205 These don't provoke an error unfortunately, instead are silently treated
4206 as 'x'. The following induces an error, until -std is added to get
4207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4208 array size at least. It's necessary to write '\x00'==0 to get something
4209 that's true only with -std. */
4210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4213 inside strings and character constants. */
4215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4217 int test (int i, double x);
4218 struct s1 {int (*f) (int a);};
4219 struct s2 {int (*f) (double a);};
4220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_c89=$ac_arg
4238 rm -f core conftest.err conftest.$ac_objext
4239 test "x$ac_cv_prog_cc_c89" != "xno" && break
4241 rm -f conftest.$ac_ext
4246 case "x$ac_cv_prog_cc_c89" in
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249 $as_echo "none needed" >&6; } ;;
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 $as_echo "unsupported" >&6; } ;;
4254 CC="$CC $ac_cv_prog_cc_c89"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4258 if test "x$ac_cv_prog_cc_c89" != xno; then :
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 ac_cpp='$CXXCPP $CPPFLAGS'
4270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4273 if test -z "$CXX"; then
4274 if test -n "$CCC"; then
4277 if test -n "$ac_tool_prefix"; then
4278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_CXX+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4287 if test -n "$CXX"; then
4288 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 if test -n "$CXX"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4310 $as_echo "$CXX" >&6; }
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4317 test -n "$CXX" && break
4320 if test -z "$CXX"; then
4322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy $ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -n "$ac_ct_CXX"; then
4332 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ac_ct_CXX="$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4352 if test -n "$ac_ct_CXX"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4354 $as_echo "$ac_ct_CXX" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 test -n "$ac_ct_CXX" && break
4364 if test "x$ac_ct_CXX" = x; then
4367 case $cross_compiling:$ac_tool_warned in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4379 # Provide some information about the compiler.
4380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4383 for ac_option in --version -v -V -qversion; do
4384 { { ac_try="$ac_compiler $ac_option >&5"
4386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4387 *) ac_try_echo
=$ac_try;;
4389 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4393 if test -s conftest.err
; then
4395 ... rest of stderr output deleted ...
4396 10q' conftest.err
>conftest.er1
4397 cat conftest.er1
>&5
4398 rm -f conftest.er1 conftest.err
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4405 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4423 if ac_fn_cxx_try_compile
"$LINENO"; then :
4428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4429 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4433 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4434 if test $ac_compiler_gnu = yes; then
4439 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4440 ac_save_CXXFLAGS
=$CXXFLAGS
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4442 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4443 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4447 ac_cxx_werror_flag
=yes
4450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4461 if ac_fn_cxx_try_compile
"$LINENO"; then :
4462 ac_cv_prog_cxx_g
=yes
4465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4476 if ac_fn_cxx_try_compile
"$LINENO"; then :
4479 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4492 if ac_fn_cxx_try_compile
"$LINENO"; then :
4493 ac_cv_prog_cxx_g
=yes
4495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4500 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4503 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4504 if test "$ac_test_CXXFLAGS" = set; then
4505 CXXFLAGS
=$ac_save_CXXFLAGS
4506 elif test $ac_cv_prog_cxx_g = yes; then
4507 if test "$GXX" = yes; then
4513 if test "$GXX" = yes; then
4520 ac_cpp
='$CPP $CPPFLAGS'
4521 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4530 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4536 if test -n "$GNATBIND"; then
4537 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir
=.
4544 for ac_exec_ext
in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 GNATBIND
=$ac_cv_prog_GNATBIND
4557 if test -n "$GNATBIND"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4559 $as_echo "$GNATBIND" >&6; }
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4567 if test -z "$ac_cv_prog_GNATBIND"; then
4568 ac_ct_GNATBIND
=$GNATBIND
4569 # Extract the first word of "gnatbind", so it can be a program name with args.
4570 set dummy gnatbind
; ac_word
=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 if test -n "$ac_ct_GNATBIND"; then
4577 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir
=.
4584 for ac_exec_ext
in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4597 if test -n "$ac_ct_GNATBIND"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4599 $as_echo "$ac_ct_GNATBIND" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4605 if test "x$ac_ct_GNATBIND" = x
; then
4608 case $cross_compiling:$ac_tool_warned in
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612 ac_tool_warned
=yes ;;
4614 GNATBIND
=$ac_ct_GNATBIND
4617 GNATBIND
="$ac_cv_prog_GNATBIND"
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4622 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 if test -n "$GNATMAKE"; then
4629 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir
=.
4636 for ac_exec_ext
in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 GNATMAKE
=$ac_cv_prog_GNATMAKE
4649 if test -n "$GNATMAKE"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4651 $as_echo "$GNATMAKE" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4659 if test -z "$ac_cv_prog_GNATMAKE"; then
4660 ac_ct_GNATMAKE
=$GNATMAKE
4661 # Extract the first word of "gnatmake", so it can be a program name with args.
4662 set dummy gnatmake
; ac_word
=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$ac_ct_GNATMAKE"; then
4669 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir
=.
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4689 if test -n "$ac_ct_GNATMAKE"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4691 $as_echo "$ac_ct_GNATMAKE" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4697 if test "x$ac_ct_GNATMAKE" = x
; then
4700 case $cross_compiling:$ac_tool_warned in
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned
=yes ;;
4706 GNATMAKE
=$ac_ct_GNATMAKE
4709 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4713 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4714 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4717 cat >conftest.adb
<<EOF
4718 procedure conftest is begin null; end conftest;
4720 acx_cv_cc_gcc_supports_ada
=no
4721 # There is a bug in old released versions of GCC which causes the
4722 # driver to exit successfully when the appropriate language module
4723 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4724 # Therefore we must check for the error message as well as an
4725 # unsuccessful exit.
4726 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4727 # given a .adb file, but produce no object file. So we must check
4728 # if an object file was really produced to guard against this.
4729 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4730 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4731 acx_cv_cc_gcc_supports_ada
=yes
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4736 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4738 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4745 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4746 # optimizations to be activated explicitly by the toplevel.
4748 */prev-gcc
/xgcc
*) ;;
4749 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4750 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4755 # Determine PICFLAG for target gnatlib.
4761 # PIC is the default on some targets or must not be used.
4763 # PIC is the default on this platform
4764 # Common symbols not allowed in MH_DYLIB files
4765 PICFLAG_FOR_TARGET
=-fno-common
4768 # PIC is the default.
4771 # PIC is the default for 64-bit PA HP-UX.
4773 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4775 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4777 i
[34567]86-*-interix[3-9]*)
4778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4779 # Instead, we relocate shared libraries at runtime.
4781 i
[34567]86-*-nto-qnx*)
4782 # QNX uses GNU C++, but need to define -shared option too, otherwise
4784 PICFLAG_FOR_TARGET
='-fPIC -shared'
4786 i
[34567]86-pc-msdosdjgpp*)
4787 # DJGPP does not support shared libraries at all.
4790 # On IA64 HP-UX, PIC is the default but the pic flag
4791 # sets the default TLS model and affects inlining.
4792 PICFLAG_FOR_TARGET
=-fPIC
4795 # PIC is the default.
4797 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4798 # All AIX code is PIC.
4801 # Some targets support both -fPIC and -fpic, but prefer the latter.
4803 i
[34567]86-*-* | x86_64-
*-*)
4804 PICFLAG_FOR_TARGET
=-fpic
4807 PICFLAG_FOR_TARGET
=-fpic
4809 # FIXME: Override -fPIC default in libgcc only?
4810 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4811 PICFLAG_FOR_TARGET
=-fpic
4813 # FIXME: Simplify to sh*-*-netbsd*?
4814 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4815 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4816 PICFLAG_FOR_TARGET
=-fpic
4818 # Default to -fPIC unless specified otherwise.
4820 PICFLAG_FOR_TARGET
=-fPIC
4824 # If the user explicitly uses -fpic/-fPIC, keep that.
4825 case "${CFLAGS_FOR_TARGET}" in
4827 PICFLAG_FOR_TARGET
=-fpic
4830 PICFLAG_FOR_TARGET
=-fPIC
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4842 ac_cpp
='$CPP $CPPFLAGS'
4843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4852 if test -z "$CPP"; then
4853 if test "${ac_cv_prog_CPP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 # Double quotes because CPP needs to be expanded
4857 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4860 for ac_c_preproc_warn_flag
in '' yes
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4871 # include <limits.h>
4873 # include <assert.h>
4877 if ac_fn_c_try_cpp
"$LINENO"; then :
4880 # Broken: fails on valid input.
4883 rm -f conftest.err conftest.
$ac_ext
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4891 if ac_fn_c_try_cpp
"$LINENO"; then :
4892 # Broken: success on invalid input.
4895 # Passes both tests.
4899 rm -f conftest.err conftest.
$ac_ext
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.
$ac_ext
4904 if $ac_preproc_ok; then :
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4919 for ac_c_preproc_warn_flag
in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4930 # include <limits.h>
4932 # include <assert.h>
4936 if ac_fn_c_try_cpp
"$LINENO"; then :
4939 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.
$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4950 if ac_fn_c_try_cpp
"$LINENO"; then :
4951 # Broken: success on invalid input.
4954 # Passes both tests.
4958 rm -f conftest.err conftest.
$ac_ext
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.
$ac_ext
4963 if $ac_preproc_ok; then :
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4973 ac_cpp
='$CPP $CPPFLAGS'
4974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 if test -z "$GREP"; then
4985 ac_path_GREP_found
=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4988 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4991 test -z "$as_dir" && as_dir
=.
4992 for ac_prog
in grep ggrep
; do
4993 for ac_exec_ext
in '' $ac_executable_extensions; do
4994 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997 # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
5000 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5003 $as_echo_n 0123456789 >"conftest.in"
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'GREP' >> "conftest.nl"
5010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5011 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5012 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_GREP
="$ac_path_GREP"
5016 ac_path_GREP_max
=$ac_count
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5021 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5024 $ac_path_GREP_found && break 3
5029 if test -z "$ac_cv_path_GREP"; then
5030 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033 ac_cv_path_GREP
=$GREP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039 GREP
="$ac_cv_path_GREP"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5048 then ac_cv_path_EGREP
="$GREP -E"
5050 if test -z "$EGREP"; then
5051 ac_path_EGREP_found
=false
5052 # Loop through the user's path and test for each of PROGNAME-LIST
5053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5057 test -z "$as_dir" && as_dir
=.
5058 for ac_prog
in egrep; do
5059 for ac_exec_ext
in '' $ac_executable_extensions; do
5060 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063 # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5066 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5069 $as_echo_n 0123456789 >"conftest.in"
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 $as_echo 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5078 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP
="$ac_path_EGREP"
5082 ac_path_EGREP_max
=$ac_count
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5090 $ac_path_EGREP_found && break 3
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 ac_cv_path_EGREP
=$EGREP
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106 EGREP
="$ac_cv_path_EGREP"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5129 if ac_fn_c_try_compile
"$LINENO"; then :
5130 ac_cv_header_stdc
=yes
5132 ac_cv_header_stdc
=no
5134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev
/null
2>&1; then :
5147 ac_cv_header_stdc
=no
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev
/null
2>&1; then :
5164 ac_cv_header_stdc
=no
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5202 if ac_fn_c_try_run
"$LINENO"; then :
5205 ac_cv_header_stdc
=no
5207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5223 inttypes.h stdint.h unistd.h
5225 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5228 eval as_val
=\$
$as_ac_Header
5229 if test "x$as_val" = x
""yes; then :
5230 cat >>confdefs.h
<<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5248 if test "$MINIX" = yes; then
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5269 # define __EXTENSIONS__ 1
5270 $ac_includes_default
5279 if ac_fn_c_try_compile
"$LINENO"; then :
5280 ac_cv_safe_to_define___extensions__
=yes
5282 ac_cv_safe_to_define___extensions__
=no
5284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288 test $ac_cv_safe_to_define___extensions__ = yes &&
5289 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5291 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5297 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5301 ac_cpp
='$CPP $CPPFLAGS'
5302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5311 if test -z "$CPP"; then
5312 if test "${ac_cv_prog_CPP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5315 # Double quotes because CPP needs to be expanded
5316 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5319 for ac_c_preproc_warn_flag
in '' yes
5321 # Use a header file that comes with gcc, so configuring glibc
5322 # with a fresh cross-compiler works.
5323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324 # <limits.h> exists even on freestanding compilers.
5325 # On the NeXT, cc -E runs the code through the compiler's parser,
5326 # not just through cpp. "Syntax error" is here to catch this case.
5327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5330 # include <limits.h>
5332 # include <assert.h>
5336 if ac_fn_c_try_cpp
"$LINENO"; then :
5339 # Broken: fails on valid input.
5342 rm -f conftest.err conftest.
$ac_ext
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <ac_nonexistent.h>
5350 if ac_fn_c_try_cpp
"$LINENO"; then :
5351 # Broken: success on invalid input.
5354 # Passes both tests.
5358 rm -f conftest.err conftest.
$ac_ext
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.
$ac_ext
5363 if $ac_preproc_ok; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5378 for ac_c_preproc_warn_flag
in '' yes
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # include <limits.h>
5391 # include <assert.h>
5395 if ac_fn_c_try_cpp
"$LINENO"; then :
5398 # Broken: fails on valid input.
5401 rm -f conftest.err conftest.
$ac_ext
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if ac_fn_c_try_cpp
"$LINENO"; then :
5410 # Broken: success on invalid input.
5413 # Passes both tests.
5417 rm -f conftest.err conftest.
$ac_ext
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.
$ac_ext
5422 if $ac_preproc_ok; then :
5425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5432 ac_cpp
='$CPP $CPPFLAGS'
5433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5443 for ac_kw
in inline __inline__ __inline
; do
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5453 if ac_fn_c_try_compile
"$LINENO"; then :
5454 ac_cv_c_inline
=$ac_kw
5456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5457 test "$ac_cv_c_inline" != no
&& break
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5464 case $ac_cv_c_inline in
5467 case $ac_cv_c_inline in
5469 *) ac_val
=$ac_cv_c_inline;;
5471 cat >>confdefs.h
<<_ACEOF
5473 #define inline $ac_val
5480 # Check whether --enable-largefile was given.
5481 if test "${enable_largefile+set}" = set; then :
5482 enableval
=$enable_largefile;
5485 if test "$enable_largefile" != no
; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5488 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5489 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 ac_cv_sys_largefile_CC
=no
5493 if test "$GCC" != yes; then
5496 # IRIX 6.2 and later do not support large files by default,
5497 # so use the C compiler's -n32 option if that helps.
5498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5517 if ac_fn_c_try_compile
"$LINENO"; then :
5520 rm -f core conftest.err conftest.
$ac_objext
5522 if ac_fn_c_try_compile
"$LINENO"; then :
5523 ac_cv_sys_largefile_CC
=' -n32'; break
5525 rm -f core conftest.err conftest.
$ac_objext
5529 rm -f conftest.
$ac_ext
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5533 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5534 if test "$ac_cv_sys_largefile_CC" != no
; then
5535 CC
=$CC$ac_cv_sys_largefile_CC
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5563 if ac_fn_c_try_compile
"$LINENO"; then :
5564 ac_cv_sys_file_offset_bits
=no
; break
5566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #define _FILE_OFFSET_BITS 64
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5587 if ac_fn_c_try_compile
"$LINENO"; then :
5588 ac_cv_sys_file_offset_bits
=64; break
5590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 ac_cv_sys_file_offset_bits
=unknown
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5596 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5597 case $ac_cv_sys_file_offset_bits in #(
5600 cat >>confdefs.h
<<_ACEOF
5601 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5606 if test $ac_cv_sys_file_offset_bits = unknown
; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5608 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_large_files+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 /* Check that off_t can represent 2**63 - 1 correctly.
5617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618 since some C++ compilers masquerading as C compilers
5619 incorrectly reject 9223372036854775807. */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622 && LARGE_OFF_T % 2147483647 == 1)
5632 if ac_fn_c_try_compile
"$LINENO"; then :
5633 ac_cv_sys_large_files
=no
; break
5635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #define _LARGE_FILES 1
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5656 if ac_fn_c_try_compile
"$LINENO"; then :
5657 ac_cv_sys_large_files
=1; break
5659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5660 ac_cv_sys_large_files
=unknown
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5665 $as_echo "$ac_cv_sys_large_files" >&6; }
5666 case $ac_cv_sys_large_files in #(
5669 cat >>confdefs.h
<<_ACEOF
5670 #define _LARGE_FILES $ac_cv_sys_large_files
5679 # sizeof(char) is 1 by definition.
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5685 $as_echo_n "checking size of void *... " >&6; }
5686 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5692 if test "$ac_cv_type_void_p" = yes; then
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status
77
5696 as_fn_error
"cannot compute sizeof (void *)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5699 ac_cv_sizeof_void_p
=0
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5705 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5709 cat >>confdefs.h
<<_ACEOF
5710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5719 $as_echo_n "checking size of short... " >&6; }
5720 if test "${ac_cv_sizeof_short+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5726 if test "$ac_cv_type_short" = yes; then
5727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status
77
5730 as_fn_error
"cannot compute sizeof (short)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5733 ac_cv_sizeof_short
=0
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5739 $as_echo "$ac_cv_sizeof_short" >&6; }
5743 cat >>confdefs.h
<<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 # The cast to long int works around a bug in the HP C Compiler
5749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5751 # This bug is HP SR number 8606223364.
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5753 $as_echo_n "checking size of int... " >&6; }
5754 if test "${ac_cv_sizeof_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5760 if test "$ac_cv_type_int" = yes; then
5761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5763 { as_fn_set_status
77
5764 as_fn_error
"cannot compute sizeof (int)
5765 See \`config.log' for more details." "$LINENO" 5; }; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5773 $as_echo "$ac_cv_sizeof_int" >&6; }
5777 cat >>confdefs.h
<<_ACEOF
5778 #define SIZEOF_INT $ac_cv_sizeof_int
5782 # The cast to long int works around a bug in the HP C Compiler
5783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5785 # This bug is HP SR number 8606223364.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5787 $as_echo_n "checking size of long... " >&6; }
5788 if test "${ac_cv_sizeof_long+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5791 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5794 if test "$ac_cv_type_long" = yes; then
5795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5797 { as_fn_set_status
77
5798 as_fn_error
"cannot compute sizeof (long)
5799 See \`config.log' for more details." "$LINENO" 5; }; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5807 $as_echo "$ac_cv_sizeof_long" >&6; }
5811 cat >>confdefs.h
<<_ACEOF
5812 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5817 if test "x$ac_cv_type_long_long" = x
""yes; then :
5819 cat >>confdefs.h
<<_ACEOF
5820 #define HAVE_LONG_LONG 1
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5828 $as_echo_n "checking size of long long... " >&6; }
5829 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5835 if test "$ac_cv_type_long_long" = yes; then
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status
77
5839 as_fn_error
"cannot compute sizeof (long long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5842 ac_cv_sizeof_long_long
=0
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5848 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5852 cat >>confdefs.h
<<_ACEOF
5853 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5859 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5860 if test "x$ac_cv_type___int64" = x
""yes; then :
5862 cat >>confdefs.h
<<_ACEOF
5863 #define HAVE___INT64 1
5866 # The cast to long int works around a bug in the HP C Compiler
5867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869 # This bug is HP SR number 8606223364.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5871 $as_echo_n "checking size of __int64... " >&6; }
5872 if test "${ac_cv_sizeof___int64+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5878 if test "$ac_cv_type___int64" = yes; then
5879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 { as_fn_set_status
77
5882 as_fn_error
"cannot compute sizeof (__int64)
5883 See \`config.log' for more details." "$LINENO" 5; }; }
5885 ac_cv_sizeof___int64
=0
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5891 $as_echo "$ac_cv_sizeof___int64" >&6; }
5895 cat >>confdefs.h
<<_ACEOF
5896 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5902 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5903 case $ac_cv_c_int8_t in #(
5907 cat >>confdefs.h
<<_ACEOF
5908 #define int8_t $ac_cv_c_int8_t
5913 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5914 case $ac_cv_c_int16_t in #(
5918 cat >>confdefs.h
<<_ACEOF
5919 #define int16_t $ac_cv_c_int16_t
5924 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5925 case $ac_cv_c_int32_t in #(
5929 cat >>confdefs.h
<<_ACEOF
5930 #define int32_t $ac_cv_c_int32_t
5935 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5936 case $ac_cv_c_int64_t in #(
5940 cat >>confdefs.h
<<_ACEOF
5941 #define int64_t $ac_cv_c_int64_t
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5948 $as_echo_n "checking for long long int... " >&6; }
5949 if test "${ac_cv_type_long_long_int+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 /* For now, do not test the preprocessor; as of 2007 there are too many
5956 implementations with broken preprocessors. Perhaps this can
5957 be revisited in 2012. In the meantime, code should not expect
5958 #if to work with literals wider than 32 bits. */
5959 /* Test literals. */
5960 long long int ll = 9223372036854775807ll;
5961 long long int nll = -9223372036854775807LL;
5962 unsigned long long int ull = 18446744073709551615ULL;
5963 /* Test constant expressions. */
5964 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5966 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5972 /* Test availability of runtime routines for shift and division. */
5973 long long int llmax = 9223372036854775807ll;
5974 unsigned long long int ullmax = 18446744073709551615ull;
5975 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976 | (llmax / ll) | (llmax % ll)
5977 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978 | (ullmax / ull) | (ullmax % ull));
5984 if ac_fn_c_try_link
"$LINENO"; then :
5985 if test "$cross_compiling" = yes; then :
5986 ac_cv_type_long_long_int
=yes
5988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5993 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5994 # define LLONG_MAX (HALF - 1 + HALF)
5999 long long int n = 1;
6003 long long int m = n << i;
6006 if (LLONG_MAX / 2 < m)
6014 if ac_fn_c_try_run
"$LINENO"; then :
6015 ac_cv_type_long_long_int
=yes
6017 ac_cv_type_long_long_int
=no
6019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6024 ac_cv_type_long_long_int
=no
6026 rm -f core conftest.err conftest.
$ac_objext \
6027 conftest
$ac_exeext conftest.
$ac_ext
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6030 $as_echo "$ac_cv_type_long_long_int" >&6; }
6031 if test $ac_cv_type_long_long_int = yes; then
6033 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6039 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6040 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6042 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6045 test $ac_cv_type_long_long_int = yes \
6046 && ac_type
='long long int' \
6047 || ac_type
='long int'
6049 cat >>confdefs.h
<<_ACEOF
6050 #define intmax_t $ac_type
6057 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6058 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6060 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6063 for ac_type
in 'int' 'long int' 'long long int'; do
6064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 $ac_includes_default
6070 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6077 if ac_fn_c_try_compile
"$LINENO"; then :
6079 cat >>confdefs.h
<<_ACEOF
6080 #define intptr_t $ac_type
6085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6086 test -z "$ac_type" && break
6091 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6092 case $ac_cv_c_uint8_t in #(
6096 $as_echo "#define _UINT8_T 1" >>confdefs.h
6099 cat >>confdefs.h
<<_ACEOF
6100 #define uint8_t $ac_cv_c_uint8_t
6105 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6106 case $ac_cv_c_uint16_t in #(
6111 cat >>confdefs.h
<<_ACEOF
6112 #define uint16_t $ac_cv_c_uint16_t
6117 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6118 case $ac_cv_c_uint32_t in #(
6122 $as_echo "#define _UINT32_T 1" >>confdefs.h
6125 cat >>confdefs.h
<<_ACEOF
6126 #define uint32_t $ac_cv_c_uint32_t
6131 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6132 case $ac_cv_c_uint64_t in #(
6136 $as_echo "#define _UINT64_T 1" >>confdefs.h
6139 cat >>confdefs.h
<<_ACEOF
6140 #define uint64_t $ac_cv_c_uint64_t
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6147 $as_echo_n "checking for unsigned long long int... " >&6; }
6148 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6154 /* For now, do not test the preprocessor; as of 2007 there are too many
6155 implementations with broken preprocessors. Perhaps this can
6156 be revisited in 2012. In the meantime, code should not expect
6157 #if to work with literals wider than 32 bits. */
6158 /* Test literals. */
6159 long long int ll = 9223372036854775807ll;
6160 long long int nll = -9223372036854775807LL;
6161 unsigned long long int ull = 18446744073709551615ULL;
6162 /* Test constant expressions. */
6163 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6165 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6171 /* Test availability of runtime routines for shift and division. */
6172 long long int llmax = 9223372036854775807ll;
6173 unsigned long long int ullmax = 18446744073709551615ull;
6174 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6175 | (llmax / ll) | (llmax % ll)
6176 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6177 | (ullmax / ull) | (ullmax % ull));
6183 if ac_fn_c_try_link
"$LINENO"; then :
6184 ac_cv_type_unsigned_long_long_int
=yes
6186 ac_cv_type_unsigned_long_long_int
=no
6188 rm -f core conftest.err conftest.
$ac_objext \
6189 conftest
$ac_exeext conftest.
$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6192 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6193 if test $ac_cv_type_unsigned_long_long_int = yes; then
6195 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6201 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6202 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6207 test $ac_cv_type_unsigned_long_long_int = yes \
6208 && ac_type
='unsigned long long int' \
6209 || ac_type
='unsigned long int'
6211 cat >>confdefs.h
<<_ACEOF
6212 #define uintmax_t $ac_type
6219 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6220 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6222 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6225 for ac_type
in 'unsigned int' 'unsigned long int' \
6226 'unsigned long long int'; do
6227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 $ac_includes_default
6233 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6240 if ac_fn_c_try_compile
"$LINENO"; then :
6242 cat >>confdefs.h
<<_ACEOF
6243 #define uintptr_t $ac_type
6248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6249 test -z "$ac_type" && break
6267 # ---------------------
6268 # Warnings and checking
6269 # ---------------------
6271 # Check $CC warning features (if it's GCC).
6272 # We want to use -pedantic, but we don't want warnings about
6275 # * overlong strings
6276 # * C++11 narrowing conversions in { }
6277 # So, we only use -pedantic if we can disable those warnings.
6279 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6280 # Check whether --enable-build-format-warnings was given.
6281 if test "${enable_build_format_warnings+set}" = set; then :
6282 enableval
=$enable_build_format_warnings;
6284 enable_build_format_warnings
=yes
6287 if test $enable_build_format_warnings = no
; then :
6293 save_CFLAGS
="$CFLAGS"
6294 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6295 # Do the check with the no- prefix removed since gcc silently
6296 # accepts any -Wno-* option on purpose
6297 case $real_option in
6298 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6299 *) option
=$real_option ;;
6301 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6304 $as_echo_n "checking whether $CC supports $option... " >&6; }
6305 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6306 $as_echo_n "(cached) " >&6
6309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6320 if ac_fn_c_try_compile
"$LINENO"; then :
6321 eval "$as_acx_Woption=yes"
6323 eval "$as_acx_Woption=no"
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6328 eval ac_res
=\$
$as_acx_Woption
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6330 $as_echo "$ac_res" >&6; }
6331 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6332 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6335 CFLAGS
="$save_CFLAGS"
6338 save_CFLAGS
="$CFLAGS"
6339 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6340 # Do the check with the no- prefix removed since gcc silently
6341 # accepts any -Wno-* option on purpose
6342 case $real_option in
6343 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6344 *) option
=$real_option ;;
6346 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6349 $as_echo_n "checking whether $CC supports $option... " >&6; }
6350 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6351 $as_echo_n "(cached) " >&6
6354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6365 if ac_fn_c_try_compile
"$LINENO"; then :
6366 eval "$as_acx_Woption=yes"
6368 eval "$as_acx_Woption=no"
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6373 eval ac_res
=\$
$as_acx_Woption
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6375 $as_echo "$ac_res" >&6; }
6376 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6377 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6380 CFLAGS
="$save_CFLAGS"
6383 save_CFLAGS
="$CFLAGS"
6384 for real_option
in -Wmissing-format-attribute; do
6385 # Do the check with the no- prefix removed since gcc silently
6386 # accepts any -Wno-* option on purpose
6387 case $real_option in
6388 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6389 *) option
=$real_option ;;
6391 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6394 $as_echo_n "checking whether $CC supports $option... " >&6; }
6395 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6396 $as_echo_n "(cached) " >&6
6399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6410 if ac_fn_c_try_compile
"$LINENO"; then :
6411 eval "$as_acx_Woption=yes"
6413 eval "$as_acx_Woption=no"
6415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6418 eval ac_res
=\$
$as_acx_Woption
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6420 $as_echo "$ac_res" >&6; }
6421 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6422 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6425 CFLAGS
="$save_CFLAGS"
6428 save_CFLAGS
="$CFLAGS"
6429 for real_option
in -Wold-style-definition -Wc++-compat; do
6430 # Do the check with the no- prefix removed since gcc silently
6431 # accepts any -Wno-* option on purpose
6432 case $real_option in
6433 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6434 *) option
=$real_option ;;
6436 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6439 $as_echo_n "checking whether $CC supports $option... " >&6; }
6440 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6441 $as_echo_n "(cached) " >&6
6444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6455 if ac_fn_c_try_compile
"$LINENO"; then :
6456 eval "$as_acx_Woption=yes"
6458 eval "$as_acx_Woption=no"
6460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6463 eval ac_res
=\$
$as_acx_Woption
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6465 $as_echo "$ac_res" >&6; }
6466 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6467 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6470 CFLAGS
="$save_CFLAGS"
6472 # Do the check with the no- prefix removed from the warning options
6473 # since gcc silently accepts any -Wno-* option on purpose
6474 if test "$GCC" = yes; then :
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6476 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6477 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6480 save_CFLAGS
="$CFLAGS"
6481 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6493 if ac_fn_c_try_compile
"$LINENO"; then :
6494 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6496 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 CFLAGS
="$save_CFLAGS"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6502 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6503 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6504 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6509 # Check whether --enable-werror-always was given.
6510 if test "${enable_werror_always+set}" = set; then :
6511 enableval
=$enable_werror_always;
6513 enable_werror_always
=no
6516 if test $enable_werror_always = yes; then :
6517 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6522 # The above macros do nothing if the compiler is not GCC. However, the
6523 # Makefile has more goo to add other flags, so these variables are used
6524 # to enable warnings only for GCC.
6527 if test "x$GCC" = "xyes"; then
6528 warn_cflags
='$(GCC_WARN_CFLAGS)'
6529 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6534 # Disable exceptions and RTTI if building with g++
6536 save_CFLAGS
="$CFLAGS"
6537 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option
=$real_option ;;
6544 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6563 if ac_fn_c_try_compile
"$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6571 eval ac_res
=\$
$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6578 CFLAGS
="$save_CFLAGS"
6581 # Enable expensive internal checks
6583 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6587 # Check whether --enable-checking was given.
6588 if test "${enable_checking+set}" = set; then :
6589 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6592 # Determine the default checks.
6593 if test x
$is_release = x
; then
6594 ac_checking_flags
=yes
6596 ac_checking_flags
=release
6600 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6601 for check
in release
$ac_checking_flags
6604 # these set all the flags to specific states
6605 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6606 ac_fold_checking
= ; ac_gc_checking
=1 ;
6607 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6608 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6609 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6610 ac_types_checking
=1 ;;
6611 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6612 ac_fold_checking
= ; ac_gc_checking
= ;
6613 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6614 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6615 ac_tree_checking
= ; ac_valgrind_checking
= ;
6616 ac_types_checking
= ;;
6617 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6618 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6619 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6620 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6621 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6622 ac_types_checking
=1 ;;
6623 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6624 ac_fold_checking
= ; ac_gc_checking
= ;
6625 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6626 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6627 ac_tree_checking
= ; ac_valgrind_checking
= ;
6628 ac_types_checking
= ;;
6629 # these enable particular checks
6630 assert
) ac_assert_checking
=1 ;;
6631 df
) ac_df_checking
=1 ;;
6632 fold) ac_fold_checking
=1 ;;
6633 gc
) ac_gc_checking
=1 ;;
6634 gcac
) ac_gc_always_collect
=1 ;;
6635 gimple
) ac_gimple_checking
=1 ;;
6636 misc
) ac_checking
=1 ;;
6637 rtl
) ac_rtl_checking
=1 ;;
6638 rtlflag
) ac_rtlflag_checking
=1 ;;
6639 runtime
) ac_runtime_checking
=1 ;;
6640 tree
) ac_tree_checking
=1 ;;
6641 types
) ac_types_checking
=1 ;;
6642 valgrind
) ac_valgrind_checking
=1 ;;
6643 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6649 if test x
$ac_checking != x
; then
6651 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6653 nocommon_flag
=-fno-common
6656 if test x
$ac_df_checking != x
; then
6658 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6661 if test x
$ac_assert_checking != x
; then
6663 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6666 if test x
$ac_gimple_checking != x
; then
6668 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6672 if test x
$ac_runtime_checking != x
; then
6674 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6677 if test x
$ac_tree_checking != x
; then
6679 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6681 TREEBROWSER
=tree-browser.o
6684 if test x
$ac_types_checking != x
; then
6686 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6691 if test x
$ac_rtl_checking != x
; then
6693 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6696 if test x
$ac_rtlflag_checking != x
; then
6698 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6701 if test x
$ac_gc_checking != x
; then
6703 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6706 if test x
$ac_gc_always_collect != x
; then
6708 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6711 if test x
$ac_fold_checking != x
; then
6713 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6716 valgrind_path_defines
=
6719 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6720 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6728 if test x
$ac_valgrind_checking != x
; then
6729 # It is certainly possible that there's valgrind but no valgrind.h.
6730 # GCC relies on making annotations so we must have both.
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6732 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <valgrind/memcheck.h>
6736 #ifndef VALGRIND_DISCARD
6737 #error VALGRIND_DISCARD not defined
6740 if ac_fn_c_try_cpp
"$LINENO"; then :
6741 gcc_cv_header_valgrind_memcheck_h
=yes
6743 gcc_cv_header_valgrind_memcheck_h
=no
6745 rm -f conftest.err conftest.
$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6747 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6749 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 #include <memcheck.h>
6753 #ifndef VALGRIND_DISCARD
6754 #error VALGRIND_DISCARD not defined
6757 if ac_fn_c_try_cpp
"$LINENO"; then :
6758 gcc_cv_header_memcheck_h
=yes
6760 gcc_cv_header_memcheck_h
=no
6762 rm -f conftest.err conftest.
$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6764 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6766 # Prepare PATH_SEPARATOR.
6767 # The user is always right.
6768 if test "${PATH_SEPARATOR+set}" != set; then
6769 echo "#! /bin/sh" >conf$$.sh
6770 echo "exit 0" >>conf$$.sh
6772 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6780 # Find out how to test for executable files. Don't use a zero-byte file,
6781 # as systems may use methods other than mode bits to determine executability.
6782 cat >conf$$.
file <<_ASEOF
6786 chmod +x conf$$.
file
6787 if test -x conf$$.
file >/dev
/null
2>&1; then
6788 ac_executable_p
="test -x"
6790 ac_executable_p
="test -f"
6794 # Extract the first word of "valgrind", so it can be a program name with args.
6795 set dummy valgrind
; ac_word
=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6801 case "$valgrind_path" in
6803 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6806 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6807 for ac_dir
in $PATH; do
6809 test -z "$ac_dir" && ac_dir
=.
6810 for ac_exec_ext
in '' $ac_executable_extensions; do
6811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6812 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6813 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6823 valgrind_path
="$ac_cv_path_valgrind_path"
6824 if test -n "$valgrind_path"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6826 $as_echo "$valgrind_path" >&6; }
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6832 if test "x$valgrind_path" = "x" \
6833 ||
(test $have_valgrind_h = no \
6834 && test $gcc_cv_header_memcheck_h = no \
6835 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6836 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6838 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6839 valgrind_command
="$valgrind_path -q"
6841 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6843 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6845 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6848 if test $gcc_cv_header_memcheck_h = yes; then
6850 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6857 # Enable code coverage collection
6858 # Check whether --enable-coverage was given.
6859 if test "${enable_coverage+set}" = set; then :
6860 enableval
=$enable_coverage; case "${enableval}" in
6862 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6865 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6868 # a.k.a. --disable-coverage
6872 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6881 # Check whether --enable-gather-detailed-mem-stats was given.
6882 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6883 enableval
=$enable_gather_detailed_mem_stats;
6885 enable_gather_detailed_mem_stats
=no
6888 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6890 cat >>confdefs.h
<<_ACEOF
6891 #define GATHER_STATISTICS $gather_stats
6895 # -------------------------------
6896 # Miscenalleous configure options
6897 # -------------------------------
6901 # Check whether --with-stabs was given.
6902 if test "${with_stabs+set}" = set; then :
6903 withval
=$with_stabs; stabs
="$with_stabs"
6909 # Determine whether or not multilibs are enabled.
6910 # Check whether --enable-multilib was given.
6911 if test "${enable_multilib+set}" = set; then :
6912 enableval
=$enable_multilib;
6919 # Determine whether or not multiarch is enabled.
6920 # Check whether --enable-multiarch was given.
6921 if test "${enable_multiarch+set}" = set; then :
6922 enableval
=$enable_multiarch; case "${enableval}" in
6923 yes|no|auto
) enable_multiarch
=$enableval;;
6924 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6927 enable_multiarch
=auto
6930 if test x
${enable_multiarch} = xauto
; then
6931 if test x
${with_native_system_header_dir} != x
; then
6932 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6935 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6936 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6941 $as_echo_n "checking for multiarch configuration... " >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6944 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6946 # needed for setting the multiarch name for soft-float/hard-float ABIs
6950 # Enable __cxa_atexit for C++.
6951 # Check whether --enable-__cxa_atexit was given.
6952 if test "${enable___cxa_atexit+set}" = set; then :
6953 enableval
=$enable___cxa_atexit;
6957 # Enable C extension for decimal float if target supports it.
6959 # Check whether --enable-decimal-float was given.
6960 if test "${enable_decimal_float+set}" = set; then :
6961 enableval
=$enable_decimal_float;
6962 case $enable_decimal_float in
6963 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6964 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6965 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6971 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6973 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6974 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
6975 enable_decimal_float
=yes
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6979 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6980 enable_decimal_float
=no
6987 # x86's use BID format instead of DPD
6988 case x
$enable_decimal_float in
6991 i?
86*-*-* | x86_64
*-*-*)
6992 enable_decimal_float
=bid
6995 enable_decimal_float
=dpd
6998 default_decimal_float
=$enable_decimal_float
7001 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7002 # dependency on libdecnumber.
7003 default_decimal_float
=dpd
7010 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7012 cat >>confdefs.h
<<_ACEOF
7013 #define ENABLE_DECIMAL_FLOAT $dfp
7017 # Use default_decimal_float for dependency.
7018 enable_decimal_float
=$default_decimal_float
7020 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7022 cat >>confdefs.h
<<_ACEOF
7023 #define ENABLE_DECIMAL_BID_FORMAT $bid
7027 # Enable C extension for fixed-point arithmetic.
7028 # Check whether --enable-fixed-point was given.
7029 if test "${enable_fixed_point+set}" = set; then :
7030 enableval
=$enable_fixed_point;
7035 enable_fixed_point
=yes
7039 enable_fixed_point
=yes
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7043 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7044 enable_fixed_point
=no
7052 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7054 cat >>confdefs.h
<<_ACEOF
7055 #define ENABLE_FIXED_POINT $fixedpoint
7060 # Pass with no value to take the default
7061 # Pass with a value to specify a thread package
7062 # Check whether --enable-threads was given.
7063 if test "${enable_threads+set}" = set; then :
7064 enableval
=$enable_threads;
7070 # Check whether --enable-tls was given.
7071 if test "${enable_tls+set}" = set; then :
7072 enableval
=$enable_tls;
7075 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7076 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7084 # Check whether --enable-objc-gc was given.
7085 if test "${enable_objc_gc+set}" = set; then :
7086 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7097 # Check whether --with-dwarf2 was given.
7098 if test "${with_dwarf2+set}" = set; then :
7099 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7105 # Check whether --enable-shared was given.
7106 if test "${enable_shared+set}" = set; then :
7107 enableval
=$enable_shared;
7108 case $enable_shared in
7112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7113 for pkg
in $enableval; do
7114 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7129 # Check whether --with-native-system-header-dir was given.
7130 if test "${with_native_system_header_dir+set}" = set; then :
7131 withval
=$with_native_system_header_dir;
7132 case ${with_native_system_header_dir} in
7133 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7134 /* |
[A-Za-z
]:[\\/]*) ;;
7135 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7137 configured_native_system_header_dir
="${withval}"
7140 configured_native_system_header_dir
=
7145 # Check whether --with-build-sysroot was given.
7146 if test "${with_build_sysroot+set}" = set; then :
7147 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7148 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7151 SYSROOT_CFLAGS_FOR_TARGET
=
7156 if test "x$prefix" = xNONE
; then
7157 test_prefix
=/usr
/local
7161 if test "x$exec_prefix" = xNONE
; then
7162 test_exec_prefix
=$test_prefix
7164 test_exec_prefix
=$exec_prefix
7168 # Check whether --with-sysroot was given.
7169 if test "${with_sysroot+set}" = set; then :
7170 withval
=$with_sysroot;
7171 case ${with_sysroot} in
7172 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7173 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7176 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7177 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7179 case ${TARGET_SYSTEM_ROOT} in
7180 "${test_prefix}"|
"${test_prefix}/"*|\
7181 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7182 '${prefix}'|
'${prefix}/'*|\
7183 '${exec_prefix}'|
'${exec_prefix}/'*)
7184 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7185 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7192 TARGET_SYSTEM_ROOT_DEFINE
=
7193 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7202 # Check whether --with-specs was given.
7203 if test "${with_specs+set}" = set; then :
7204 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7214 # Check whether --with-pkgversion was given.
7215 if test "${with_pkgversion+set}" = set; then :
7216 withval
=$with_pkgversion; case "$withval" in
7217 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7219 *) PKGVERSION
="($withval) " ;;
7230 # Check whether --with-bugurl was given.
7231 if test "${with_bugurl+set}" = set; then :
7232 withval
=$with_bugurl; case "$withval" in
7233 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7236 *) BUGURL
="$withval"
7240 BUGURL
="http://gcc.gnu.org/bugs.html"
7250 REPORT_BUGS_TO
="<$BUGURL>"
7251 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7258 # Sanity check enable_languages in case someone does not run the toplevel
7259 # configure # script.
7260 # Check whether --enable-languages was given.
7261 if test "${enable_languages+set}" = set; then :
7262 enableval
=$enable_languages; case ,${enable_languages}, in
7264 # go safe -- we cannot be much sure without the toplevel
7266 # analysis of which target libs are present and usable
7270 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7275 enable_languages
=c
,${enable_languages}
7284 # Check whether --with-multilib-list was given.
7285 if test "${with_multilib_list+set}" = set; then :
7286 withval
=$with_multilib_list; :
7288 with_multilib_list
=default
7292 # -------------------------
7293 # Checks for other programs
7294 # -------------------------
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7297 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7299 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7300 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7301 $as_echo_n "(cached) " >&6
7303 cat >conftest.
make <<\_ACEOF
7306 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7308 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7311 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7313 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7317 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7319 $as_echo "yes" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 SET_MAKE
="MAKE=${MAKE-make}"
7328 # Find some useful tools
7329 for ac_prog
in gawk mawk nawk
awk
7331 # Extract the first word of "$ac_prog", so it can be a program name with args.
7332 set dummy
$ac_prog; ac_word
=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_AWK+set}" = set; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$AWK"; then
7339 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir
=.
7346 for ac_exec_ext
in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_AWK
="$ac_prog"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 if test -n "$AWK"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7361 $as_echo "$AWK" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7368 test -n "$AWK" && break
7371 # We need awk to create options.c and options.h.
7372 # Bail out if it's missing.
7374 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7378 $as_echo_n "checking whether ln -s works... " >&6; }
7379 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7380 $as_echo_n "(cached) " >&6
7382 rm -f conftestdata_t
7383 echo >conftestdata_f
7384 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7386 gcc_cv_prog_LN_S
="ln -s"
7388 if ln conftestdata_f conftestdata_t
2>/dev
/null
7392 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7394 gcc_cv_prog_LN_S
="cp -p"
7400 rm -f conftestdata_f conftestdata_t
7403 LN_S
="$gcc_cv_prog_LN_S"
7404 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7408 if test "$gcc_cv_prog_LN_S" = "ln"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7410 $as_echo "no, using ln" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7413 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7418 $as_echo_n "checking whether ln works... " >&6; }
7419 if test "${acx_cv_prog_LN+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7422 rm -f conftestdata_t
7423 echo >conftestdata_f
7424 if ln conftestdata_f conftestdata_t
2>/dev
/null
7430 rm -f conftestdata_f conftestdata_t
7433 if test $acx_cv_prog_LN = no
; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7436 $as_echo "no, using $LN" >&6; }
7438 LN
="$acx_cv_prog_LN"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7440 $as_echo "yes" >&6; }
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7445 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7451 if test -n "$RANLIB"; then
7452 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir
=.
7459 for ac_exec_ext
in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 RANLIB
=$ac_cv_prog_RANLIB
7472 if test -n "$RANLIB"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7474 $as_echo "$RANLIB" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7482 if test -z "$ac_cv_prog_RANLIB"; then
7483 ac_ct_RANLIB
=$RANLIB
7484 # Extract the first word of "ranlib", so it can be a program name with args.
7485 set dummy ranlib
; ac_word
=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$ac_ct_RANLIB"; then
7492 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir
=.
7499 for ac_exec_ext
in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7512 if test -n "$ac_ct_RANLIB"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7514 $as_echo "$ac_ct_RANLIB" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7520 if test "x$ac_ct_RANLIB" = x
; then
7523 case $cross_compiling:$ac_tool_warned in
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned
=yes ;;
7529 RANLIB
=$ac_ct_RANLIB
7532 RANLIB
="$ac_cv_prog_RANLIB"
7538 # Find a good install program. We prefer a C program (faster),
7539 # so one script is as good as another. But avoid the broken or
7540 # incompatible versions:
7541 # SysV /etc/install, /usr/sbin/install
7542 # SunOS /usr/etc/install
7543 # IRIX /sbin/install
7545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7547 # ./install, which can be erroneously created by make from ./install.sh.
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7549 $as_echo_n "checking for a BSD compatible install... " >&6; }
7550 if test -z "$INSTALL"; then
7551 if test "${ac_cv_path_install+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7554 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7555 for ac_dir
in $PATH; do
7556 # Account for people who put trailing slashes in PATH elements.
7558 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7560 # OSF1 and SCO ODT 3.0 have their own names for install.
7561 for ac_prog
in ginstall scoinst
install; do
7562 if test -f $ac_dir/$ac_prog; then
7563 if test $ac_prog = install &&
7564 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7565 # AIX install. It has an incompatible calling convention.
7566 # OSF/1 installbsd also uses dspmsg, but is usable.
7569 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7580 if test "${ac_cv_path_install+set}" = set; then
7581 INSTALL
="$ac_cv_path_install"
7583 # As a last resort, use the slow shell script. We don't cache a
7584 # path for INSTALL within a source directory, because that will
7585 # break other packages using the cache if that directory is
7586 # removed, or if the path is relative.
7587 INSTALL
="$ac_install_sh"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7591 $as_echo "$INSTALL" >&6; }
7593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7594 # It thinks the first close brace ends the variable substitution.
7595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7597 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7600 # See if cmp has --ignore-initial.
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7602 $as_echo_n "checking for cmp's capabilities... " >&6; }
7603 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7608 gcc_cv_prog_cmp_skip
=slowcompare
7609 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7610 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7613 gcc_cv_prog_cmp_skip
=gnucompare
7616 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7617 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7618 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7621 gcc_cv_prog_cmp_skip
=fastcompare
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7629 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7630 make_compare_target
=$gcc_cv_prog_cmp_skip
7634 # See if we have the mktemp command.
7635 # Extract the first word of "mktemp", so it can be a program name with args.
7636 set dummy mktemp
; ac_word
=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$have_mktemp_command"; then
7643 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir
=.
7650 for ac_exec_ext
in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_have_mktemp_command
="yes"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7663 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7664 if test -n "$have_mktemp_command"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7666 $as_echo "$have_mktemp_command" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7674 # See if makeinfo has been installed and is modern enough
7675 # that we can use it.
7677 # Extract the first word of "makeinfo", so it can be a program name with args.
7678 set dummy makeinfo
; ac_word
=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7684 if test -n "$MAKEINFO"; then
7685 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir
=.
7692 for ac_exec_ext
in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_prog_MAKEINFO
="makeinfo"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 MAKEINFO
=$ac_cv_prog_MAKEINFO
7705 if test -n "$MAKEINFO"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7707 $as_echo "$MAKEINFO" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7714 if test -n "$MAKEINFO"; then
7715 # Found it, now check the version.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7717 $as_echo_n "checking for modern makeinfo... " >&6; }
7718 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7721 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7722 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7724 case $ac_prog_version in
7725 '') gcc_cv_prog_makeinfo_modern
=no
;;
7726 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7727 *) gcc_cv_prog_makeinfo_modern
=no
;;
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7732 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7734 gcc_cv_prog_makeinfo_modern
=no
7736 if test $gcc_cv_prog_makeinfo_modern = no
; then
7737 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7740 if test $gcc_cv_prog_makeinfo_modern = no
; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7742 *** Makeinfo is missing or too old.
7743 *** Info documentation will not be built." >&5
7744 $as_echo "$as_me: WARNING:
7745 *** Makeinfo is missing or too old.
7746 *** Info documentation will not be built." >&2;}
7753 # Is pod2man recent enough to regenerate manpages?
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7755 $as_echo_n "checking for recent Pod::Man... " >&6; }
7756 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7758 $as_echo "yes" >&6; }
7759 GENERATED_MANPAGES
=generated-manpages
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7767 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy
$ac_prog; ac_word
=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_FLEX+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$FLEX"; then
7780 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir
=.
7787 for ac_exec_ext
in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_FLEX
="$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 FLEX
=$ac_cv_prog_FLEX
7800 if test -n "$FLEX"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7802 $as_echo "$FLEX" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 test -n "$FLEX" && break
7811 test -n "$FLEX" || FLEX
="$MISSING flex"
7815 for ac_prog
in bison
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy
$ac_prog; ac_word
=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_BISON+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$BISON"; then
7825 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_BISON
="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 BISON
=$ac_cv_prog_BISON
7845 if test -n "$BISON"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7847 $as_echo "$BISON" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 test -n "$BISON" && break
7856 test -n "$BISON" || BISON
="$MISSING bison"
7859 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7860 # check for build == host before using them.
7863 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7864 && test -d ..
/binutils
; then
7865 NM
='${objdir}/../binutils/nm-new'
7867 # Extract the first word of "nm", so it can be a program name with args.
7868 set dummy nm
; ac_word
=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_NM+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7874 if test -n "$NM"; then
7875 ac_cv_prog_NM
="$NM" # Let the user override the test.
7877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7881 test -z "$as_dir" && as_dir
=.
7882 for ac_exec_ext
in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7896 if test -n "$NM"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7898 $as_echo "$NM" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7908 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7909 && test -d ..
/binutils
; then
7910 AR
='${objdir}/../binutils/ar'
7912 # Extract the first word of "ar", so it can be a program name with args.
7913 set dummy
ar; ac_word
=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7919 if test -n "$AR"; then
7920 ac_cv_prog_AR
="$AR" # Let the user override the test.
7922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir
=.
7927 for ac_exec_ext
in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7941 if test -n "$AR"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7943 $as_echo "$AR" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7953 # --------------------
7954 # Checks for C headers
7955 # --------------------
7957 # Need to reject headers which give warnings, so that the -Werror bootstrap
7958 # works later. *sigh* This needs to come before all header checks.
7960 ac_c_preproc_warn_flag
=yes
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7963 $as_echo_n "checking for ANSI C header files... " >&6; }
7964 if test "${ac_cv_header_stdc+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7982 if ac_fn_c_try_compile
"$LINENO"; then :
7983 ac_cv_header_stdc
=yes
7985 ac_cv_header_stdc
=no
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7989 if test $ac_cv_header_stdc = yes; then
7990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7997 $EGREP "memchr" >/dev
/null
2>&1; then :
8000 ac_cv_header_stdc
=no
8006 if test $ac_cv_header_stdc = yes; then
8007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev
/null
2>&1; then :
8017 ac_cv_header_stdc
=no
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then :
8028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8032 #if ((' ' & 0x0FF) == 0x020)
8033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8036 # define ISLOWER(c) \
8037 (('a' <= (c) && (c) <= 'i') \
8038 || ('j' <= (c) && (c) <= 'r') \
8039 || ('s' <= (c) && (c) <= 'z'))
8040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8048 for (i = 0; i < 256; i++)
8049 if (XOR (islower (i), ISLOWER (i))
8050 || toupper (i) != TOUPPER (i))
8055 if ac_fn_c_try_run
"$LINENO"; then :
8058 ac_cv_header_stdc
=no
8060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8067 $as_echo "$ac_cv_header_stdc" >&6; }
8068 if test $ac_cv_header_stdc = yes; then
8070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8075 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8076 if test "${ac_cv_header_time+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #include <sys/types.h>
8082 #include <sys/time.h>
8088 if ((struct tm *) 0)
8094 if ac_fn_c_try_compile
"$LINENO"; then :
8095 ac_cv_header_time
=yes
8097 ac_cv_header_time
=no
8099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8102 $as_echo "$ac_cv_header_time" >&6; }
8103 if test $ac_cv_header_time = yes; then
8105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8110 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8111 if test "${gcc_cv_header_string+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8117 #include <strings.h>
8126 if ac_fn_c_try_compile
"$LINENO"; then :
8127 gcc_cv_header_string
=yes
8129 gcc_cv_header_string
=no
8131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8134 $as_echo "$gcc_cv_header_string" >&6; }
8135 if test $gcc_cv_header_string = yes; then
8137 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8142 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8143 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 #include <sys/types.h>
8149 #include <sys/wait.h>
8151 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8154 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8167 if ac_fn_c_try_compile
"$LINENO"; then :
8168 ac_cv_header_sys_wait_h
=yes
8170 ac_cv_header_sys_wait_h
=no
8172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8175 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8176 if test $ac_cv_header_sys_wait_h = yes; then
8178 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8183 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8184 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <termios.h>
8196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8197 $EGREP "yes" >/dev
/null
2>&1; then :
8198 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8200 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8206 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8208 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8210 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8211 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/ioctl.h>
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "yes" >/dev
/null
2>&1; then :
8225 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8227 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8233 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8235 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8237 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8242 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8243 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8244 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8245 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8247 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8248 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8249 eval as_val
=\$
$as_ac_Header
8250 if test "x$as_val" = x
""yes; then :
8251 cat >>confdefs.h
<<_ACEOF
8252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259 # Check for thread headers.
8260 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8261 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8267 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8268 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8275 # These tests can't be done till we know if we have limits.h.
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8277 $as_echo_n "checking for CHAR_BIT... " >&6; }
8278 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 #ifdef HAVE_LIMITS_H
8290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8291 $EGREP "found" >/dev
/null
2>&1; then :
8292 gcc_cv_decl_char_bit
=yes
8294 gcc_cv_decl_char_bit
=no
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8301 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8302 if test $gcc_cv_decl_char_bit = no
; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8304 $as_echo_n "checking number of bits in a byte... " >&6; }
8305 if test "${gcc_cv_c_nbby+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8310 while test $i -lt 65; do
8311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8318 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8319 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8325 if ac_fn_c_try_compile
"$LINENO"; then :
8326 gcc_cv_c_nbby
=$i; break
8328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8331 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8335 $as_echo "$gcc_cv_c_nbby" >&6; }
8336 if test $gcc_cv_c_nbby = failed
; then
8337 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8340 cat >>confdefs.h
<<_ACEOF
8341 #define CHAR_BIT $gcc_cv_c_nbby
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8347 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8348 if test "${ac_cv_c_bigendian+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8351 ac_cv_c_bigendian
=unknown
8352 # See if we're dealing with a universal compiler.
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #ifndef __APPLE_CC__
8356 not a universal capable compiler
8361 if ac_fn_c_try_compile
"$LINENO"; then :
8363 # Check for potential -arch flags. It is not universal unless
8364 # there are at least two -arch flags with different values.
8367 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8368 if test -n "$ac_prev"; then
8370 i?
86 | x86_64 | ppc | ppc64
)
8371 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8374 ac_cv_c_bigendian
=universal
8380 elif test "x$ac_word" = "x-arch"; then
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8386 if test $ac_cv_c_bigendian = unknown
; then
8387 # See if sys/param.h defines the BYTE_ORDER macro.
8388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/param.h>
8396 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8406 if ac_fn_c_try_compile
"$LINENO"; then :
8407 # It does; now see whether it defined to BIG_ENDIAN or not.
8408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <sys/types.h>
8411 #include <sys/param.h>
8416 #if BYTE_ORDER != BIG_ENDIAN
8424 if ac_fn_c_try_compile
"$LINENO"; then :
8425 ac_cv_c_bigendian
=yes
8427 ac_cv_c_bigendian
=no
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 if test $ac_cv_c_bigendian = unknown
; then
8434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8442 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8450 if ac_fn_c_try_compile
"$LINENO"; then :
8451 # It does; now see whether it defined to _BIG_ENDIAN or not.
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8467 if ac_fn_c_try_compile
"$LINENO"; then :
8468 ac_cv_c_bigendian
=yes
8470 ac_cv_c_bigendian
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 if test $ac_cv_c_bigendian = unknown
; then
8477 # Compile a test program.
8478 if test "$cross_compiling" = yes; then :
8479 # Try to guess by grepping values from an object file.
8480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 short int ascii_mm[] =
8483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8484 short int ascii_ii[] =
8485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8486 int use_ascii (int i) {
8487 return ascii_mm[i] + ascii_ii[i];
8489 short int ebcdic_ii[] =
8490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short int ebcdic_mm[] =
8492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 int use_ebcdic (int i) {
8494 return ebcdic_mm[i] + ebcdic_ii[i];
8501 return use_ascii (foo) == use_ebcdic (foo);
8506 if ac_fn_c_try_compile
"$LINENO"; then :
8507 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8508 ac_cv_c_bigendian
=yes
8510 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8511 if test "$ac_cv_c_bigendian" = unknown
; then
8512 ac_cv_c_bigendian
=no
8514 # finding both strings is unlikely to happen, but who knows?
8515 ac_cv_c_bigendian
=unknown
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 $ac_includes_default
8528 /* Are we little or big endian? From Harbison&Steele. */
8532 char c[sizeof (long int)];
8535 return u.c[sizeof (long int) - 1] == 1;
8541 if ac_fn_c_try_run
"$LINENO"; then :
8542 ac_cv_c_bigendian
=no
8544 ac_cv_c_bigendian
=yes
8546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8553 $as_echo "$ac_cv_c_bigendian" >&6; }
8554 case $ac_cv_c_bigendian in #(
8556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8562 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8566 as_fn_error
"unknown endianness
8567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8571 # ----------------------
8572 # Checks for C++ headers
8573 # ----------------------
8576 ac_cpp
='$CXXCPP $CPPFLAGS'
8577 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8581 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8582 if test -z "$CXXCPP"; then
8583 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8586 # Double quotes because CXXCPP needs to be expanded
8587 for CXXCPP
in "$CXX -E" "/lib/cpp"
8590 for ac_cxx_preproc_warn_flag
in '' yes
8592 # Use a header file that comes with gcc, so configuring glibc
8593 # with a fresh cross-compiler works.
8594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595 # <limits.h> exists even on freestanding compilers.
8596 # On the NeXT, cc -E runs the code through the compiler's parser,
8597 # not just through cpp. "Syntax error" is here to catch this case.
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8601 # include <limits.h>
8603 # include <assert.h>
8607 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8610 # Broken: fails on valid input.
8613 rm -f conftest.err conftest.
$ac_ext
8615 # OK, works on sane cases. Now check whether nonexistent headers
8616 # can be detected and how.
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <ac_nonexistent.h>
8621 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8622 # Broken: success on invalid input.
8625 # Passes both tests.
8629 rm -f conftest.err conftest.
$ac_ext
8632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8633 rm -f conftest.err conftest.
$ac_ext
8634 if $ac_preproc_ok; then :
8639 ac_cv_prog_CXXCPP
=$CXXCPP
8642 CXXCPP
=$ac_cv_prog_CXXCPP
8644 ac_cv_prog_CXXCPP
=$CXXCPP
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8647 $as_echo "$CXXCPP" >&6; }
8649 for ac_cxx_preproc_warn_flag
in '' yes
8651 # Use a header file that comes with gcc, so configuring glibc
8652 # with a fresh cross-compiler works.
8653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 # <limits.h> exists even on freestanding compilers.
8655 # On the NeXT, cc -E runs the code through the compiler's parser,
8656 # not just through cpp. "Syntax error" is here to catch this case.
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8660 # include <limits.h>
8662 # include <assert.h>
8666 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8669 # Broken: fails on valid input.
8672 rm -f conftest.err conftest.
$ac_ext
8674 # OK, works on sane cases. Now check whether nonexistent headers
8675 # can be detected and how.
8676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 #include <ac_nonexistent.h>
8680 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8681 # Broken: success on invalid input.
8684 # Passes both tests.
8688 rm -f conftest.err conftest.
$ac_ext
8691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8692 rm -f conftest.err conftest.
$ac_ext
8693 if $ac_preproc_ok; then :
8696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8699 See \`config.log' for more details." >&5
8700 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8701 See \`config.log' for more details." >&2;}; }
8705 ac_cpp
='$CPP $CPPFLAGS'
8706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8712 ac_cpp
='$CXXCPP $CPPFLAGS'
8713 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8720 for ac_header
in unordered_map
8722 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8723 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8724 cat >>confdefs.h
<<_ACEOF
8725 #define HAVE_UNORDERED_MAP 1
8731 for ac_header
in tr1/unordered_map
8733 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8734 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8735 cat >>confdefs.h
<<_ACEOF
8736 #define HAVE_TR1_UNORDERED_MAP 1
8742 for ac_header
in ext
/hash_map
8744 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8745 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8746 cat >>confdefs.h
<<_ACEOF
8747 #define HAVE_EXT_HASH_MAP 1
8755 ac_cpp
='$CPP $CPPFLAGS'
8756 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8762 # Dependency checking.
8766 ac_cpp
='$CXXCPP $CPPFLAGS'
8767 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8768 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8769 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8771 rm -rf .tst
2>/dev
/null
8772 mkdir .tst
2>/dev
/null
8773 if test -d .tst
; then
8778 rmdir .tst
2>/dev
/null
8780 DEPDIR
="${am__leading_dot}deps"
8782 ac_config_commands
="$ac_config_commands depdir"
8785 ac_config_commands
="$ac_config_commands gccdepdir"
8788 depcc
="$CXX" am_compiler_list
=
8790 am_depcomp
=$ac_aux_dir/depcomp
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8792 $as_echo_n "checking dependency style of $depcc... " >&6; }
8793 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8796 if test -f "$am_depcomp"; then
8797 # We make a subdir and do the tests there. Otherwise we can end up
8798 # making bogus files that we don't know about and never remove. For
8799 # instance it was reported that on HP-UX the gcc test will end up
8800 # making a dummy file named `D' -- because `-MD' means `put the output
8803 # Copy depcomp to subdir because otherwise we won't find it if we're
8804 # using a relative directory.
8805 cp "$am_depcomp" conftest.dir
8807 # We will build objects and dependencies in a subdirectory because
8808 # it helps to detect inapplicable dependency modes. For instance
8809 # both Tru64's cc and ICC support -MD to output dependencies as a
8810 # side effect of compilation, but ICC will put the dependencies in
8811 # the current directory while Tru64 will put them in the object
8815 am_cv_CXX_dependencies_compiler_type
=none
8816 if test "$am_compiler_list" = ""; then
8817 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8819 for depmode
in $am_compiler_list; do
8820 if test $depmode = none
; then break; fi
8822 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8823 # Setup a source with many dependencies, because some compilers
8824 # like to wrap large dependency lists on column 80 (with \), and
8825 # we should not choose a depcomp mode which is confused by this.
8827 # We need to recreate these files for each test, as the compiler may
8828 # overwrite some of them when testing with obscure command lines.
8829 # This happens at least with the AIX C compiler.
8831 for i
in 1 2 3 4 5 6; do
8832 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8834 # Solaris 8's {/usr,}/bin/sh.
8835 touch sub
/conftst
$i.h
8837 echo "include sub/conftest.Po" > confmf
8839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8840 # mode. It turns out that the SunPro C++ compiler does not properly
8841 # handle `-M -o', and we need to detect this.
8842 depcmd
="depmode=$depmode \
8843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8846 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8847 if env
$depcmd > conftest.err
2>&1 &&
8848 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8849 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8850 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8851 # icc doesn't choke on unknown options, it will just issue warnings
8852 # or remarks (even with -Werror). So we grep stderr for any message
8853 # that says an option was ignored or not supported.
8854 # When given -MP, icc 7.0 and 7.1 complain thusly:
8855 # icc: Command line warning: ignoring option '-M'; no argument required
8856 # The diagnosis changed in icc 8.0:
8857 # icc: Command line remark: option '-MP' not supported
8858 if (grep 'ignoring option' conftest.err ||
8859 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8860 am_cv_CXX_dependencies_compiler_type
=$depmode
8861 $as_echo "$as_me:$LINENO: success" >&5
8865 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8866 sed -e 's/^/| /' < conftest.err
>&5
8872 am_cv_CXX_dependencies_compiler_type
=none
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8877 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8878 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8879 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8880 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8885 ac_cpp
='$CPP $CPPFLAGS'
8886 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8896 # These libraries may be used by collect2.
8897 # We may need a special search path to get them linked.
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8899 $as_echo_n "checking for collect2 libraries... " >&6; }
8900 if test "${gcc_cv_collect2_libs+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8904 for libs
in '' -lld -lmld \
8905 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8906 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8927 if ac_fn_c_try_link
"$LINENO"; then :
8928 gcc_cv_collect2_libs
="$libs"; break
8930 rm -f core conftest.err conftest.
$ac_objext \
8931 conftest
$ac_exeext conftest.
$ac_ext
8934 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8937 $as_echo "$gcc_cv_collect2_libs" >&6; }
8938 case $gcc_cv_collect2_libs in
8940 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8944 # When building Ada code on Alpha, we need exc_resume which is usually in
8945 # -lexc. So test for it.
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8949 $as_echo_n "checking for library containing exc_resume... " >&6; }
8950 if test "${ac_cv_search_exc_resume+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8953 ac_func_search_save_LIBS
=$LIBS
8954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8967 return exc_resume ();
8972 for ac_lib
in '' exc
; do
8973 if test -z "$ac_lib"; then
8974 ac_res
="none required"
8977 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8979 if ac_fn_c_try_link
"$LINENO"; then :
8980 ac_cv_search_exc_resume
=$ac_res
8982 rm -f core conftest.err conftest.
$ac_objext \
8984 if test "${ac_cv_search_exc_resume+set}" = set; then :
8988 if test "${ac_cv_search_exc_resume+set}" = set; then :
8991 ac_cv_search_exc_resume
=no
8994 LIBS
=$ac_func_search_save_LIBS
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8997 $as_echo "$ac_cv_search_exc_resume" >&6; }
8998 ac_res
=$ac_cv_search_exc_resume
8999 if test "$ac_res" != no
; then :
9000 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9008 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9012 $as_echo_n "checking for library containing kstat_open... " >&6; }
9013 if test "${ac_cv_search_kstat_open+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9016 ac_func_search_save_LIBS
=$LIBS
9017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9030 return kstat_open ();
9035 for ac_lib
in '' kstat
; do
9036 if test -z "$ac_lib"; then
9037 ac_res
="none required"
9040 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9042 if ac_fn_c_try_link
"$LINENO"; then :
9043 ac_cv_search_kstat_open
=$ac_res
9045 rm -f core conftest.err conftest.
$ac_objext \
9047 if test "${ac_cv_search_kstat_open+set}" = set; then :
9051 if test "${ac_cv_search_kstat_open+set}" = set; then :
9054 ac_cv_search_kstat_open
=no
9057 LIBS
=$ac_func_search_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9060 $as_echo "$ac_cv_search_kstat_open" >&6; }
9061 ac_res
=$ac_cv_search_kstat_open
9062 if test "$ac_res" != no
; then :
9063 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9067 EXTRA_GCC_LIBS
="$LIBS"
9071 # Some systems put ldexp and frexp in libm instead of libc; assume
9072 # they're both in the same place. jcf-dump needs them.
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9076 $as_echo_n "checking for library containing ldexp... " >&6; }
9077 if test "${ac_cv_search_ldexp+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9080 ac_func_search_save_LIBS
=$LIBS
9081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9099 for ac_lib
in '' m
; do
9100 if test -z "$ac_lib"; then
9101 ac_res
="none required"
9104 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9106 if ac_fn_c_try_link
"$LINENO"; then :
9107 ac_cv_search_ldexp
=$ac_res
9109 rm -f core conftest.err conftest.
$ac_objext \
9111 if test "${ac_cv_search_ldexp+set}" = set; then :
9115 if test "${ac_cv_search_ldexp+set}" = set; then :
9118 ac_cv_search_ldexp
=no
9121 LIBS
=$ac_func_search_save_LIBS
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9124 $as_echo "$ac_cv_search_ldexp" >&6; }
9125 ac_res
=$ac_cv_search_ldexp
9126 if test "$ac_res" != no
; then :
9127 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9135 # Use <inttypes.h> only if it exists,
9136 # doesn't clash with <sys/types.h>, and declares intmax_t.
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9138 $as_echo_n "checking for inttypes.h... " >&6; }
9139 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 #include <sys/types.h>
9145 #include <inttypes.h>
9154 if ac_fn_c_try_compile
"$LINENO"; then :
9155 gcc_cv_header_inttypes_h
=yes
9157 gcc_cv_header_inttypes_h
=no
9159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9163 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9164 if test $gcc_cv_header_inttypes_h = yes; then
9166 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9172 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9173 sysconf strsignal getrusage nl_langinfo \
9174 gettimeofday mbstowcs wcswidth mmap setlocale \
9175 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
9177 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9178 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9179 eval as_val
=\$
$as_ac_var
9180 if test "x$as_val" = x
""yes; then :
9181 cat >>confdefs.h
<<_ACEOF
9182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9189 if test x
$ac_cv_func_mbstowcs = xyes
; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9191 $as_echo_n "checking whether mbstowcs works... " >&6; }
9192 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9195 if test "$cross_compiling" = yes; then :
9196 gcc_cv_func_mbstowcs_works
=yes
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9207 if ac_fn_c_try_run
"$LINENO"; then :
9208 gcc_cv_func_mbstowcs_works
=yes
9210 gcc_cv_func_mbstowcs_works
=no
9212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9218 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9219 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9221 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9226 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9227 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9231 cat >>confdefs.h
<<_ACEOF
9237 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9238 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9242 cat >>confdefs.h
<<_ACEOF
9243 #define caddr_t char *
9250 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9251 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9252 gcc_header_sys_mman_h
=yes
9254 gcc_header_sys_mman_h
=no
9257 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9258 if test "x$ac_cv_func_mmap" = x
""yes; then :
9264 if test "$gcc_header_sys_mman_h" != yes \
9265 ||
test "$gcc_func_mmap" != yes; then
9266 gcc_cv_func_mmap_file
=no
9267 gcc_cv_func_mmap_dev_zero
=no
9268 gcc_cv_func_mmap_anon
=no
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9271 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9272 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9275 # Add a system to this blacklist if
9276 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9277 # memory area containing the same data that you'd get if you applied
9278 # read() to the same fd. The only system known to have a problem here
9279 # is VMS, where text files have record structure.
9282 gcc_cv_func_mmap_file
=no
;;
9284 gcc_cv_func_mmap_file
=yes;;
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9288 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9290 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9291 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9294 # Add a system to this blacklist if it has mmap() but /dev/zero
9295 # does not exist, or if mmapping /dev/zero does not give anonymous
9296 # zeroed pages with both the following properties:
9297 # 1. If you map N consecutive pages in with one call, and then
9298 # unmap any subset of those pages, the pages that were not
9299 # explicitly unmapped remain accessible.
9300 # 2. If you map two adjacent blocks of memory and then unmap them
9301 # both at once, they must both go away.
9302 # Systems known to be in this category are Windows (all variants),
9305 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9306 gcc_cv_func_mmap_dev_zero
=no
;;
9308 gcc_cv_func_mmap_dev_zero
=yes;;
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9312 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9314 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9316 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9317 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <sys/types.h>
9323 #include <sys/mman.h>
9326 #ifndef MAP_ANONYMOUS
9327 #define MAP_ANONYMOUS MAP_ANON
9333 int n = MAP_ANONYMOUS;
9338 if ac_fn_c_try_compile
"$LINENO"; then :
9339 gcc_cv_decl_map_anon
=yes
9341 gcc_cv_decl_map_anon
=no
9343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9346 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9348 if test $gcc_cv_decl_map_anon = no
; then
9349 gcc_cv_func_mmap_anon
=no
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9352 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9353 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9356 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9357 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9358 # doesn't give anonymous zeroed pages with the same properties listed
9359 # above for use of /dev/zero.
9360 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9362 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9363 gcc_cv_func_mmap_anon
=no
;;
9365 gcc_cv_func_mmap_anon
=yes;;
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9369 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9373 if test $gcc_cv_func_mmap_file = yes; then
9375 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9378 if test $gcc_cv_func_mmap_dev_zero = yes; then
9380 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9383 if test $gcc_cv_func_mmap_anon = yes; then
9385 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9392 # Under VMS, vfork works very differently than on Unix. The standard test
9393 # won't work, and it isn't easily adaptable. It makes more sense to
9395 ac_cv_func_vfork_works
=yes
9398 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9399 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9403 cat >>confdefs.h
<<_ACEOF
9409 for ac_header
in vfork.h
9411 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9412 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9413 cat >>confdefs.h
<<_ACEOF
9414 #define HAVE_VFORK_H 1
9420 for ac_func
in fork vfork
9422 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9423 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9424 eval as_val
=\$
$as_ac_var
9425 if test "x$as_val" = x
""yes; then :
9426 cat >>confdefs.h
<<_ACEOF
9427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9433 if test "x$ac_cv_func_fork" = xyes
; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9435 $as_echo_n "checking for working fork... " >&6; }
9436 if test "${ac_cv_func_fork_works+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_fork_works
=cross
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 $ac_includes_default
9449 /* By Ruediger Kuhlmann. */
9456 if ac_fn_c_try_run
"$LINENO"; then :
9457 ac_cv_func_fork_works
=yes
9459 ac_cv_func_fork_works
=no
9461 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9462 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9467 $as_echo "$ac_cv_func_fork_works" >&6; }
9470 ac_cv_func_fork_works
=$ac_cv_func_fork
9472 if test "x$ac_cv_func_fork_works" = xcross
; then
9474 *-*-amigaos* |
*-*-msdosdjgpp*)
9475 # Override, as these systems have only a dummy fork() stub
9476 ac_cv_func_fork_works
=no
9479 ac_cv_func_fork_works
=yes
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9483 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9485 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9486 if test "x$ac_cv_func_vfork" = xyes
; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9488 $as_echo_n "checking for working vfork... " >&6; }
9489 if test "${ac_cv_func_vfork_works+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9492 if test "$cross_compiling" = yes; then :
9493 ac_cv_func_vfork_works
=cross
9495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 /* Thanks to Paul Eggert for this test. */
9498 $ac_includes_default
9499 #include <sys/wait.h>
9503 /* On some sparc systems, changes by the child to local and incoming
9504 argument registers are propagated back to the parent. The compiler
9505 is told about this with #include <vfork.h>, but some compilers
9506 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9507 static variable whose address is put into a register that is
9508 clobbered by the vfork. */
9511 sparc_address_test (int arg)
9513 sparc_address_test (arg) int arg;
9534 pid_t parent = getpid ();
9537 sparc_address_test (0);
9542 /* Here is another test for sparc vfork register problems. This
9543 test uses lots of local variables, at least as many local
9544 variables as main has allocated so far including compiler
9545 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9546 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9547 reuse the register of parent for one of the local variables,
9548 since it will think that parent can't possibly be used any more
9549 in this routine. Assigning to the local variable will thus
9550 munge parent in the parent process. */
9552 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9553 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9554 /* Convince the compiler that p..p7 are live; otherwise, it might
9555 use the same hardware register for all 8 local variables. */
9556 if (p != p1 || p != p2 || p != p3 || p != p4
9557 || p != p5 || p != p6 || p != p7)
9560 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9561 from child file descriptors. If the child closes a descriptor
9562 before it execs or exits, this munges the parent's descriptor
9563 as well. Test for this by closing stdout in the child. */
9564 _exit(close(fileno(stdout)) != 0);
9569 while (wait(&status) != child)
9572 /* Was there some problem with vforking? */
9575 /* Did the child fail? (This shouldn't happen.) */
9578 /* Did the vfork/compiler bug occur? */
9579 || parent != getpid()
9581 /* Did the file descriptor bug occur? */
9582 || fstat(fileno(stdout), &st) != 0
9587 if ac_fn_c_try_run
"$LINENO"; then :
9588 ac_cv_func_vfork_works
=yes
9590 ac_cv_func_vfork_works
=no
9592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9598 $as_echo "$ac_cv_func_vfork_works" >&6; }
9601 if test "x$ac_cv_func_fork_works" = xcross
; then
9602 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9604 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9607 if test "x$ac_cv_func_vfork_works" = xyes
; then
9609 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9613 $as_echo "#define vfork fork" >>confdefs.h
9616 if test "x$ac_cv_func_fork_works" = xyes
; then
9618 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9623 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9624 # iconv() prototype.
9626 ac_cpp
='$CXXCPP $CPPFLAGS'
9627 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9628 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9629 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9632 if test "X$prefix" = "XNONE"; then
9633 acl_final_prefix
="$ac_default_prefix"
9635 acl_final_prefix
="$prefix"
9637 if test "X$exec_prefix" = "XNONE"; then
9638 acl_final_exec_prefix
='${prefix}'
9640 acl_final_exec_prefix
="$exec_prefix"
9642 acl_save_prefix
="$prefix"
9643 prefix
="$acl_final_prefix"
9644 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9645 prefix
="$acl_save_prefix"
9648 # Check whether --with-gnu-ld was given.
9649 if test "${with_gnu_ld+set}" = set; then :
9650 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9655 # Prepare PATH_SEPARATOR.
9656 # The user is always right.
9657 if test "${PATH_SEPARATOR+set}" != set; then
9658 echo "#! /bin/sh" >conf$$.sh
9659 echo "exit 0" >>conf$$.sh
9661 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9669 if test "$GCC" = yes; then
9670 # Check if gcc -print-prog-name=ld gives a path.
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9672 $as_echo_n "checking for ld used by GCC... " >&6; }
9675 # gcc leaves a trailing carriage return which upsets mingw
9676 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9678 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9681 # Accept absolute paths.
9682 [\\/]* |
[A-Za-z
]:[\\/]*)
9683 re_direlt
='/[^/][^/]*/\.\./'
9684 # Canonicalize the path of ld
9685 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9686 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9687 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9689 test -z "$LD" && LD
="$ac_prog"
9692 # If it fails, then pretend we aren't using GCC.
9696 # If it is relative, then search for the first ld in PATH.
9700 elif test "$with_gnu_ld" = yes; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9702 $as_echo_n "checking for GNU ld... " >&6; }
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9705 $as_echo_n "checking for non-GNU ld... " >&6; }
9707 if test "${acl_cv_path_LD+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9710 if test -z "$LD"; then
9711 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9712 for ac_dir
in $PATH; do
9713 test -z "$ac_dir" && ac_dir
=.
9714 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9715 acl_cv_path_LD
="$ac_dir/$ac_prog"
9716 # Check to see if the program is GNU ld. I'd rather use --version,
9717 # but apparently some GNU ld's only accept -v.
9718 # Break only if it was the GNU/non-GNU ld that we prefer.
9719 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9720 test "$with_gnu_ld" != no
&& break
9722 test "$with_gnu_ld" != yes && break
9728 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9732 LD
="$acl_cv_path_LD"
9733 if test -n "$LD"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9735 $as_echo "$LD" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9740 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9743 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9746 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9747 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9748 acl_cv_prog_gnu_ld
=yes
9750 acl_cv_prog_gnu_ld
=no
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9754 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9755 with_gnu_ld
=$acl_cv_prog_gnu_ld
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9760 $as_echo_n "checking for shared library run path origin... " >&6; }
9761 if test "${acl_cv_rpath+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9765 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9766 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9773 $as_echo "$acl_cv_rpath" >&6; }
9775 libext
="$acl_cv_libext"
9776 shlibext
="$acl_cv_shlibext"
9777 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9778 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9779 hardcode_direct
="$acl_cv_hardcode_direct"
9780 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9781 # Check whether --enable-rpath was given.
9782 if test "${enable_rpath+set}" = set; then :
9783 enableval
=$enable_rpath; :
9797 acl_save_prefix
="$prefix"
9798 prefix
="$acl_final_prefix"
9799 acl_save_exec_prefix
="$exec_prefix"
9800 exec_prefix
="$acl_final_exec_prefix"
9802 eval additional_includedir
=\"$includedir\"
9803 eval additional_libdir
=\"$libdir\"
9805 exec_prefix
="$acl_save_exec_prefix"
9806 prefix
="$acl_save_prefix"
9809 # Check whether --with-libiconv-prefix was given.
9810 if test "${with_libiconv_prefix+set}" = set; then :
9811 withval
=$with_libiconv_prefix;
9812 if test "X$withval" = "Xno"; then
9815 if test "X$withval" = "X"; then
9817 acl_save_prefix
="$prefix"
9818 prefix
="$acl_final_prefix"
9819 acl_save_exec_prefix
="$exec_prefix"
9820 exec_prefix
="$acl_final_exec_prefix"
9822 eval additional_includedir
=\"$includedir\"
9823 eval additional_libdir
=\"$libdir\"
9825 exec_prefix
="$acl_save_exec_prefix"
9826 prefix
="$acl_save_prefix"
9829 additional_includedir
="$withval/include"
9830 additional_libdir
="$withval/lib"
9841 names_already_handled
=
9842 names_next_round
='iconv '
9843 while test -n "$names_next_round"; do
9844 names_this_round
="$names_next_round"
9846 for name
in $names_this_round; do
9848 for n
in $names_already_handled; do
9849 if test "$n" = "$name"; then
9854 if test -z "$already_handled"; then
9855 names_already_handled
="$names_already_handled $name"
9856 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9857 eval value
=\"\
$HAVE_LIB$uppername\"
9858 if test -n "$value"; then
9859 if test "$value" = yes; then
9860 eval value
=\"\
$LIB$uppername\"
9861 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9862 eval value
=\"\
$LTLIB$uppername\"
9863 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9872 if test $use_additional = yes; then
9873 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9874 found_dir
="$additional_libdir"
9875 found_so
="$additional_libdir/lib$name.$shlibext"
9876 if test -f "$additional_libdir/lib$name.la"; then
9877 found_la
="$additional_libdir/lib$name.la"
9880 if test -f "$additional_libdir/lib$name.$libext"; then
9881 found_dir
="$additional_libdir"
9882 found_a
="$additional_libdir/lib$name.$libext"
9883 if test -f "$additional_libdir/lib$name.la"; then
9884 found_la
="$additional_libdir/lib$name.la"
9889 if test "X$found_dir" = "X"; then
9890 for x
in $LDFLAGS $LTLIBICONV; do
9892 acl_save_prefix
="$prefix"
9893 prefix
="$acl_final_prefix"
9894 acl_save_exec_prefix
="$exec_prefix"
9895 exec_prefix
="$acl_final_exec_prefix"
9897 exec_prefix
="$acl_save_exec_prefix"
9898 prefix
="$acl_save_prefix"
9902 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9903 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9905 found_so
="$dir/lib$name.$shlibext"
9906 if test -f "$dir/lib$name.la"; then
9907 found_la
="$dir/lib$name.la"
9910 if test -f "$dir/lib$name.$libext"; then
9912 found_a
="$dir/lib$name.$libext"
9913 if test -f "$dir/lib$name.la"; then
9914 found_la
="$dir/lib$name.la"
9920 if test "X$found_dir" != "X"; then
9925 if test "X$found_dir" != "X"; then
9926 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9927 if test "X$found_so" != "X"; then
9928 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9929 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9932 for x
in $ltrpathdirs; do
9933 if test "X$x" = "X$found_dir"; then
9938 if test -z "$haveit"; then
9939 ltrpathdirs
="$ltrpathdirs $found_dir"
9941 if test "$hardcode_direct" = yes; then
9942 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9944 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9945 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9947 for x
in $rpathdirs; do
9948 if test "X$x" = "X$found_dir"; then
9953 if test -z "$haveit"; then
9954 rpathdirs
="$rpathdirs $found_dir"
9958 for x
in $LDFLAGS $LIBICONV; do
9960 acl_save_prefix
="$prefix"
9961 prefix
="$acl_final_prefix"
9962 acl_save_exec_prefix
="$exec_prefix"
9963 exec_prefix
="$acl_final_exec_prefix"
9965 exec_prefix
="$acl_save_exec_prefix"
9966 prefix
="$acl_save_prefix"
9968 if test "X$x" = "X-L$found_dir"; then
9973 if test -z "$haveit"; then
9974 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9976 if test "$hardcode_minus_L" != no
; then
9977 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9979 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9985 if test "X$found_a" != "X"; then
9986 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9988 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9991 additional_includedir
=
9992 case "$found_dir" in
9994 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9995 additional_includedir
="$basedir/include"
9998 if test "X$additional_includedir" != "X"; then
9999 if test "X$additional_includedir" != "X/usr/include"; then
10001 if test "X$additional_includedir" = "X/usr/local/include"; then
10002 if test -n "$GCC"; then
10004 linux
*) haveit
=yes;;
10008 if test -z "$haveit"; then
10009 for x
in $CPPFLAGS $INCICONV; do
10011 acl_save_prefix
="$prefix"
10012 prefix
="$acl_final_prefix"
10013 acl_save_exec_prefix
="$exec_prefix"
10014 exec_prefix
="$acl_final_exec_prefix"
10016 exec_prefix
="$acl_save_exec_prefix"
10017 prefix
="$acl_save_prefix"
10019 if test "X$x" = "X-I$additional_includedir"; then
10024 if test -z "$haveit"; then
10025 if test -d "$additional_includedir"; then
10026 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10032 if test -n "$found_la"; then
10033 save_libdir
="$libdir"
10034 case "$found_la" in
10035 */* |
*\\*) .
"$found_la" ;;
10036 *) .
"./$found_la" ;;
10038 libdir
="$save_libdir"
10039 for dep
in $dependency_libs; do
10042 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10043 if test "X$additional_libdir" != "X/usr/lib"; then
10045 if test "X$additional_libdir" = "X/usr/local/lib"; then
10046 if test -n "$GCC"; then
10048 linux
*) haveit
=yes;;
10052 if test -z "$haveit"; then
10054 for x
in $LDFLAGS $LIBICONV; do
10056 acl_save_prefix
="$prefix"
10057 prefix
="$acl_final_prefix"
10058 acl_save_exec_prefix
="$exec_prefix"
10059 exec_prefix
="$acl_final_exec_prefix"
10061 exec_prefix
="$acl_save_exec_prefix"
10062 prefix
="$acl_save_prefix"
10064 if test "X$x" = "X-L$additional_libdir"; then
10069 if test -z "$haveit"; then
10070 if test -d "$additional_libdir"; then
10071 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10075 for x
in $LDFLAGS $LTLIBICONV; do
10077 acl_save_prefix
="$prefix"
10078 prefix
="$acl_final_prefix"
10079 acl_save_exec_prefix
="$exec_prefix"
10080 exec_prefix
="$acl_final_exec_prefix"
10082 exec_prefix
="$acl_save_exec_prefix"
10083 prefix
="$acl_save_prefix"
10085 if test "X$x" = "X-L$additional_libdir"; then
10090 if test -z "$haveit"; then
10091 if test -d "$additional_libdir"; then
10092 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10099 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10100 if test "$enable_rpath" != no
; then
10102 for x
in $rpathdirs; do
10103 if test "X$x" = "X$dir"; then
10108 if test -z "$haveit"; then
10109 rpathdirs
="$rpathdirs $dir"
10112 for x
in $ltrpathdirs; do
10113 if test "X$x" = "X$dir"; then
10118 if test -z "$haveit"; then
10119 ltrpathdirs
="$ltrpathdirs $dir"
10124 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10127 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10130 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10131 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10137 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10138 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10144 if test "X$rpathdirs" != "X"; then
10145 if test -n "$hardcode_libdir_separator"; then
10147 for found_dir
in $rpathdirs; do
10148 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10150 acl_save_libdir
="$libdir"
10152 eval flag
=\"$hardcode_libdir_flag_spec\"
10153 libdir
="$acl_save_libdir"
10154 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10156 for found_dir
in $rpathdirs; do
10157 acl_save_libdir
="$libdir"
10158 libdir
="$found_dir"
10159 eval flag
=\"$hardcode_libdir_flag_spec\"
10160 libdir
="$acl_save_libdir"
10161 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10165 if test "X$ltrpathdirs" != "X"; then
10166 for found_dir
in $ltrpathdirs; do
10167 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10177 am_save_CPPFLAGS
="$CPPFLAGS"
10179 for element
in $INCICONV; do
10181 for x
in $CPPFLAGS; do
10183 acl_save_prefix
="$prefix"
10184 prefix
="$acl_final_prefix"
10185 acl_save_exec_prefix
="$exec_prefix"
10186 exec_prefix
="$acl_final_exec_prefix"
10188 exec_prefix
="$acl_save_exec_prefix"
10189 prefix
="$acl_save_prefix"
10191 if test "X$x" = "X$element"; then
10196 if test -z "$haveit"; then
10197 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10203 $as_echo_n "checking for iconv... " >&6; }
10204 if test "${am_cv_func_iconv+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10208 am_cv_func_iconv
="no, consider installing GNU libiconv"
10210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 #include <stdlib.h>
10217 iconv_t cd = iconv_open("","");
10218 iconv(cd,NULL,NULL,NULL,NULL);
10224 if ac_fn_cxx_try_link
"$LINENO"; then :
10225 am_cv_func_iconv
=yes
10227 rm -f core conftest.err conftest.
$ac_objext \
10228 conftest
$ac_exeext conftest.
$ac_ext
10229 if test "$am_cv_func_iconv" != yes; then
10230 am_save_LIBS
="$LIBS"
10231 LIBS
="$LIBS $LIBICONV"
10232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 #include <stdlib.h>
10239 iconv_t cd = iconv_open("","");
10240 iconv(cd,NULL,NULL,NULL,NULL);
10246 if ac_fn_cxx_try_link
"$LINENO"; then :
10247 am_cv_lib_iconv
=yes
10248 am_cv_func_iconv
=yes
10250 rm -f core conftest.err conftest.
$ac_objext \
10251 conftest
$ac_exeext conftest.
$ac_ext
10252 LIBS
="$am_save_LIBS"
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10257 $as_echo "$am_cv_func_iconv" >&6; }
10258 if test "$am_cv_func_iconv" = yes; then
10260 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10263 if test "$am_cv_lib_iconv" = yes; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10265 $as_echo_n "checking how to link with libiconv... " >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10267 $as_echo "$LIBICONV" >&6; }
10269 CPPFLAGS
="$am_save_CPPFLAGS"
10276 if test "$am_cv_func_iconv" = yes; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10278 $as_echo_n "checking for iconv declaration... " >&6; }
10279 if test "${am_cv_proto_iconv+set}" = set; then :
10280 $as_echo_n "(cached) " >&6
10283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10286 #include <stdlib.h>
10292 #if defined(__STDC__) || defined(__cplusplus)
10293 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10306 if ac_fn_cxx_try_compile
"$LINENO"; then :
10307 am_cv_proto_iconv_arg1
=""
10309 am_cv_proto_iconv_arg1
="const"
10311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10312 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);"
10315 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10317 }$am_cv_proto_iconv" >&5
10319 }$am_cv_proto_iconv" >&6; }
10321 cat >>confdefs.h
<<_ACEOF
10322 #define ICONV_CONST $am_cv_proto_iconv_arg1
10328 ac_cpp
='$CPP $CPPFLAGS'
10329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10334 # Until we have in-tree GNU iconv:
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10340 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10341 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #include <locale.h>
10355 if ac_fn_c_try_link
"$LINENO"; then :
10356 am_cv_val_LC_MESSAGES
=yes
10358 am_cv_val_LC_MESSAGES
=no
10360 rm -f core conftest.err conftest.
$ac_objext \
10361 conftest
$ac_exeext conftest.
$ac_ext
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10364 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10365 if test $am_cv_val_LC_MESSAGES = yes; then
10367 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10375 if test "${am_cv_langinfo_codeset+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 #include <langinfo.h>
10384 char* cs = nl_langinfo(CODESET);
10389 if ac_fn_c_try_link
"$LINENO"; then :
10390 am_cv_langinfo_codeset
=yes
10392 am_cv_langinfo_codeset
=no
10394 rm -f core conftest.err conftest.
$ac_objext \
10395 conftest
$ac_exeext conftest.
$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10399 $as_echo "$am_cv_langinfo_codeset" >&6; }
10400 if test $am_cv_langinfo_codeset = yes; then
10402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10407 # We will need to find libiberty.h and ansidecl.h
10408 saved_CFLAGS
="$CFLAGS"
10409 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10410 saved_CXXFLAGS
="$CXXFLAGS"
10411 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10412 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10413 strsignal strstr stpcpy strverscmp \
10414 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10415 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
10417 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10419 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10420 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10421 $as_echo_n "(cached) " >&6
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10426 #define $ac_tr_decl 1
10428 #include "ansidecl.h"
10429 #include "system.h"
10435 char *(*pfn) = (char *(*)) $ac_func ;
10441 if ac_fn_c_try_compile
"$LINENO"; then :
10442 eval "gcc_cv_have_decl_$ac_func=yes"
10444 eval "gcc_cv_have_decl_$ac_func=no"
10446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10449 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10452 #define $ac_tr_decl 1
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10458 #define $ac_tr_decl 0
10466 for ac_func
in getrlimit setrlimit getrusage
10468 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 #define $ac_tr_decl 1
10479 #include "ansidecl.h"
10480 #include "system.h"
10481 #ifdef HAVE_SYS_RESOURCE_H
10482 #include <sys/resource.h>
10490 char *(*pfn) = (char *(*)) $ac_func ;
10496 if ac_fn_c_try_compile
"$LINENO"; then :
10497 eval "gcc_cv_have_decl_$ac_func=yes"
10499 eval "gcc_cv_have_decl_$ac_func=no"
10501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10507 #define $ac_tr_decl 1
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10513 #define $ac_tr_decl 0
10521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 #include "ansidecl.h"
10525 #include "system.h"
10526 #ifdef HAVE_SYS_RESOURCE_H
10527 #include <sys/resource.h>
10538 if ac_fn_c_try_compile
"$LINENO"; then :
10542 $as_echo "#define rlim_t long" >>confdefs.h
10545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10547 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10548 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10549 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10550 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10551 for ac_func
in ldgetname
10553 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10556 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10557 $as_echo_n "(cached) " >&6
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 #define $ac_tr_decl 1
10564 #include "ansidecl.h"
10565 #include "system.h"
10566 #ifdef HAVE_LDFCN_H
10577 char *(*pfn) = (char *(*)) $ac_func ;
10583 if ac_fn_c_try_compile
"$LINENO"; then :
10584 eval "gcc_cv_have_decl_$ac_func=yes"
10586 eval "gcc_cv_have_decl_$ac_func=no"
10588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10591 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10594 #define $ac_tr_decl 1
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10600 #define $ac_tr_decl 0
10608 for ac_func
in times
10610 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10612 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10613 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10614 $as_echo_n "(cached) " >&6
10616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10619 #define $ac_tr_decl 1
10621 #include "ansidecl.h"
10622 #include "system.h"
10623 #ifdef HAVE_SYS_TIMES_H
10624 #include <sys/times.h>
10632 char *(*pfn) = (char *(*)) $ac_func ;
10638 if ac_fn_c_try_compile
"$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10641 eval "gcc_cv_have_decl_$ac_func=no"
10643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10649 #define $ac_tr_decl 1
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10655 #define $ac_tr_decl 0
10663 for ac_func
in sigaltstack
10665 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10667 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10668 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10669 $as_echo_n "(cached) " >&6
10671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10674 #define $ac_tr_decl 1
10676 #include "ansidecl.h"
10677 #include "system.h"
10678 #include <signal.h>
10685 char *(*pfn) = (char *(*)) $ac_func ;
10691 if ac_fn_c_try_compile
"$LINENO"; then :
10692 eval "gcc_cv_have_decl_$ac_func=yes"
10694 eval "gcc_cv_have_decl_$ac_func=no"
10696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10701 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10702 #define $ac_tr_decl 1
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10708 #define $ac_tr_decl 0
10716 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10719 ac_cpp
='$CXXCPP $CPPFLAGS'
10720 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10721 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10722 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10724 for ac_func
in madvise
10726 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10728 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10729 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10730 $as_echo_n "(cached) " >&6
10732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10735 #define $ac_tr_decl 1
10737 #include "ansidecl.h"
10738 #include "system.h"
10745 char *(*pfn) = (char *(*)) $ac_func ;
10751 if ac_fn_cxx_try_compile
"$LINENO"; then :
10752 eval "gcc_cv_have_decl_$ac_func=yes"
10754 eval "gcc_cv_have_decl_$ac_func=no"
10756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10759 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10761 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10762 #define $ac_tr_decl 1
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10768 #define $ac_tr_decl 0
10776 ac_cpp
='$CPP $CPPFLAGS'
10777 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10782 # More time-related stuff.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10784 $as_echo_n "checking for struct tms... " >&6; }
10785 if test "${ac_cv_struct_tms+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 #include "ansidecl.h"
10793 #include "system.h"
10794 #ifdef HAVE_SYS_TIMES_H
10795 #include <sys/times.h>
10806 if ac_fn_c_try_compile
"$LINENO"; then :
10807 ac_cv_struct_tms
=yes
10809 ac_cv_struct_tms
=no
10811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10814 $as_echo "$ac_cv_struct_tms" >&6; }
10815 if test $ac_cv_struct_tms = yes; then
10817 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10821 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10822 # revisit after autoconf 2.50.
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10824 $as_echo_n "checking for clock_t... " >&6; }
10825 if test "${gcc_cv_type_clock_t+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 #include "ansidecl.h"
10833 #include "system.h"
10843 if ac_fn_c_try_compile
"$LINENO"; then :
10844 gcc_cv_type_clock_t
=yes
10846 gcc_cv_type_clock_t
=no
10848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10851 $as_echo "$gcc_cv_type_clock_t" >&6; }
10852 if test $gcc_cv_type_clock_t = yes; then
10854 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10858 # Check if F_SETLKW is supported by fcntl.
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10860 $as_echo_n "checking for F_SETLKW... " >&6; }
10861 if test "${ac_cv_f_setlkw+set}" = set; then :
10862 $as_echo_n "(cached) " >&6
10865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10878 return fcntl (1, F_SETLKW, &fl);
10883 if ac_fn_c_try_compile
"$LINENO"; then :
10888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10891 $as_echo "$ac_cv_f_setlkw" >&6; }
10892 if test $ac_cv_f_setlkw = yes; then
10894 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10898 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10899 CFLAGS
="$saved_CFLAGS"
10900 CXXFLAGS
="$saved_CXXFLAGS"
10902 # mkdir takes a single argument on some systems.
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10904 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10905 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
10908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 #include <sys/types.h>
10912 #ifdef HAVE_SYS_STAT_H
10913 # include <sys/stat.h>
10915 #ifdef HAVE_UNISTD_H
10916 # include <unistd.h>
10918 #ifdef HAVE_DIRECT_H
10919 # include <direct.h>
10929 if ac_fn_c_try_compile
"$LINENO"; then :
10930 gcc_cv_mkdir_takes_one_arg
=no
10932 gcc_cv_mkdir_takes_one_arg
=yes
10934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10937 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10938 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10940 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10951 # With Setjmp/Longjmp based exception handling.
10952 # Check whether --enable-sjlj-exceptions was given.
10953 if test "${enable_sjlj_exceptions+set}" = set; then :
10954 enableval
=$enable_sjlj_exceptions; case $target in
10956 if test $enableval != yes; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10958 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10963 force_sjlj_exceptions
=yes
10967 force_sjlj_exceptions
=yes
10971 force_sjlj_exceptions
=no
10976 if test $force_sjlj_exceptions = yes; then
10977 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10979 cat >>confdefs.h
<<_ACEOF
10980 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10985 # --------------------------------------------------------
10986 # Build, host, and target specific configuration fragments
10987 # --------------------------------------------------------
10989 # Collect build-machine-specific information.
10990 .
${srcdir}/config.build
10992 # Collect host-machine-specific information.
10993 .
${srcdir}/config.
host
10997 # Collect target-machine-specific information.
10998 .
${srcdir}/config.gcc
11000 extra_objs
="${host_extra_objs} ${extra_objs}"
11001 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11003 # Default the target-machine variables that were not explicitly set.
11004 if test x
"$tm_file" = x
11005 then tm_file
=$cpu_type/$cpu_type.h
; fi
11007 if test x
"$extra_headers" = x
11008 then extra_headers
=; fi
11010 if test x
$md_file = x
11011 then md_file
=$cpu_type/$cpu_type.md
; fi
11013 if test x
$out_file = x
11014 then out_file
=$cpu_type/$cpu_type.c
; fi
11016 if test x
"$tmake_file" = x
11017 then tmake_file
=$cpu_type/t-
$cpu_type
11020 # Support --enable-initfini-array.
11021 if test x
$enable_initfini_array != xno
; then
11022 tm_file
="${tm_file} initfini-array.h"
11025 if test x
"$dwarf2" = xyes
11026 then tm_file
="$tm_file tm-dwarf2.h"
11029 # Say what files are being used for the output code and MD file.
11030 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11031 echo "Using \`$srcdir/config/$md_file' as machine description file."
11033 # If any of the xm_file variables contain nonexistent files, warn
11034 # about them and drop them.
11037 for x
in $build_xm_file; do
11038 if test -f $srcdir/config
/$x
11040 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11041 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11044 build_xm_file
="$bx"
11047 for x
in $host_xm_file; do
11048 if test -f $srcdir/config
/$x
11050 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11051 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11057 for x
in $xm_file; do
11058 if test -f $srcdir/config
/$x
11060 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11061 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11067 for f
in $tm_file; do
11070 if test $count = ax
; then
11071 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11073 echo "Using the following target machine macro files:"
11074 for f
in $tm_file; do
11075 echo " $srcdir/config/$f"
11079 if test x
$need_64bit_hwint = xyes
; then
11081 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11085 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11087 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11091 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11093 cat >>confdefs.h
<<_ACEOF
11094 #define HAVE_GNU_LD $gnu_ld_bool
11098 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11100 cat >>confdefs.h
<<_ACEOF
11101 #define HAVE_GNU_AS $gnu_as_bool
11106 for f
in $host_xm_file; do
11109 if test $count = a
; then
11111 elif test $count = ax
; then
11112 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11114 echo "Using the following host machine macro files:"
11115 for f
in $host_xm_file; do
11116 echo " $srcdir/config/$f"
11119 echo "Using ${out_host_hook_obj} for host machine hooks."
11121 if test "$host_xm_file" != "$build_xm_file"; then
11123 for f
in $build_xm_file; do
11126 if test $count = a
; then
11128 elif test $count = ax
; then
11129 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11131 echo "Using the following build machine macro files:"
11132 for f
in $build_xm_file; do
11133 echo " $srcdir/config/$f"
11138 if test -n "$configured_native_system_header_dir"; then
11139 native_system_header_dir
=$configured_native_system_header_dir
11141 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11145 powerpc
*-*-darwin*)
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11147 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11148 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11154 #include <sys/cdefs.h>
11155 #include <sys/signal.h>
11156 #include <ucontext.h>
11157 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11160 if ac_fn_c_try_compile
"$LINENO"; then :
11161 gcc_cv_mcontext_underscores
=no
11163 gcc_cv_mcontext_underscores
=yes
11165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11168 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11169 if test $gcc_cv_mcontext_underscores = yes; then
11171 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11181 # Check if a valid thread package
11182 case ${enable_threads} in
11185 target_thread_file
='single'
11189 target_thread_file
='single'
11191 aix | dce | lynx | mipssde | posix | rtems | \
11192 single | tpf | vxworks | win32
)
11193 target_thread_file
=${enable_threads}
11196 echo "${enable_threads} is an unknown thread package" 1>&2
11201 if test x
${thread_file} = x
; then
11202 # No thread file set by target-specific clauses in config.gcc,
11203 # so use file chosen by default logic above
11204 thread_file
=${target_thread_file}
11212 if test x
$enable___cxa_atexit = xyes || \
11213 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11214 if test x
$host = x
$target; then
11216 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11217 # keyed to flag_use_cxa_atexit
11225 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11226 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11229 echo "__cxa_atexit can't be enabled on this target"
11235 # We can't check for __cxa_atexit when building a cross, so assume
11239 if test x
$use_cxa_atexit = xyes
; then
11241 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11246 # Look for a file containing extra machine modes.
11247 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11248 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11251 cat >>confdefs.h
<<_ACEOF
11252 #define EXTRA_MODES_FILE "config/$extra_modes"
11257 # Convert extra_options into a form suitable for Makefile use.
11260 for f
in $extra_options; do
11261 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11262 all_opt_files
="$all_opt_files $srcdir/config/$f"
11266 # auto-host.h is the file containing items generated by autoconf and is
11267 # the first file included by config.h.
11268 # If host=build, it is correct to have bconfig include auto-host.h
11269 # as well. If host!=build, we are in error and need to do more
11270 # work to find out the build config parameters.
11271 if test x
$host = x
$build
11273 build_auto
=auto-host.h
11275 # We create a subdir, then run autoconf in the subdir.
11276 # To prevent recursion we set host and build for the new
11277 # invocation of configure to the build for this invocation
11284 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11285 *) realsrcdir
=..
/${srcdir};;
11287 saved_CFLAGS
="${CFLAGS}"
11288 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11289 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11290 ${realsrcdir}/configure \
11291 --enable-languages=${enable_languages-all} \
11292 --target=$target_alias --host=$build_alias --build=$build_alias
11293 CFLAGS
="${saved_CFLAGS}"
11295 # We just finished tests for the build machine, so rename
11296 # the file auto-build.h in the gcc directory.
11297 mv auto-host.h ..
/auto-build.h
11300 build_auto
=auto-build.h
11304 tm_file
="${tm_file} defaults.h"
11305 tm_p_file
="${tm_p_file} tm-preds.h"
11306 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11307 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11308 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11309 # put this back in temporarily.
11310 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11316 # Compile in configure arguments.
11317 if test -f configargs.h
; then
11318 # Being re-configured.
11319 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11320 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11322 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11325 # Double all backslashes and backslash all quotes to turn
11326 # gcc_config_arguments into a C string.
11327 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11328 $gcc_config_arguments
11330 gcc_config_arguments_str
=`cat conftest.out`
11333 cat > configargs.h
<<EOF
11334 /* Generated automatically. */
11335 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11336 static const char thread_model[] = "$thread_file";
11338 static const struct {
11339 const char *name, *value;
11340 } configure_default_options[] = $configure_default_options;
11343 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11344 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11345 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11346 if test -f $srcdir/REVISION
; then
11347 gcc_REVISION
=`cat $srcdir/REVISION`
11351 cat > plugin-version.h
<<EOF
11352 #include "configargs.h"
11354 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11355 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11356 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11357 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11359 static char basever[] = "$gcc_BASEVER";
11360 static char datestamp[] = "$gcc_DATESTAMP";
11361 static char devphase[] = "$gcc_DEVPHASE";
11362 static char revision[] = "$gcc_REVISION";
11364 /* FIXME plugins: We should make the version information more precise.
11365 One way to do is to add a checksum. */
11367 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11368 devphase, revision,
11369 configuration_arguments};
11372 # Internationalization
11373 # If we haven't got the data from the intl directory,
11374 # assume NLS is disabled.
11383 if test -f ..
/intl
/config.intl
; then
11384 . ..
/intl
/config.intl
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11387 $as_echo_n "checking whether NLS is requested... " >&6; }
11388 if test x
"$USE_NLS" != xyes
; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393 $as_echo "yes" >&6; }
11395 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11399 $as_echo_n "checking for catalogs to be installed... " >&6; }
11400 # Look for .po and .gmo files in the source directory.
11403 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11404 # If there aren't any .gmo files the shell will give us the
11405 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11407 case "$cat" in *\
**)
11410 # The quadruple backslash is collapsed to a double backslash
11411 # by the backticks, then collapsed again by the double quotes,
11412 # leaving us with one backslash in the sed expression (right
11413 # before the dot that mustn't act as a wildcard).
11414 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11415 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11416 # The user is allowed to set LINGUAS to a list of languages to
11417 # install catalogs for. If it's empty that means "all of them."
11418 if test "x$LINGUAS" = x
; then
11419 CATALOGS
="$CATALOGS $cat"
11420 XLINGUAS
="$XLINGUAS $lang"
11422 case "$LINGUAS" in *$lang*)
11423 CATALOGS
="$CATALOGS $cat"
11424 XLINGUAS
="$XLINGUAS $lang"
11429 LINGUAS
="$XLINGUAS"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11431 $as_echo "$LINGUAS" >&6; }
11444 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11445 # -liconv on the link line twice.
11446 case "$LIBINTL" in *$LIBICONV*)
11450 # Check whether --enable-secureplt was given.
11451 if test "${enable_secureplt+set}" = set; then :
11452 enableval
=$enable_secureplt;
11456 # Check whether --enable-leading-mingw64-underscores was given.
11457 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11458 enableval
=$enable_leading_mingw64_underscores;
11461 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11463 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11467 # Check whether --enable-cld was given.
11468 if test "${enable_cld+set}" = set; then :
11469 enableval
=$enable_cld;
11475 # Check whether --enable-frame-pointer was given.
11476 if test "${enable_frame_pointer+set}" = set; then :
11477 enableval
=$enable_frame_pointer;
11481 linux
* | darwin
[8912]*)
11482 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11484 enable_frame_pointer
=no
11487 enable_frame_pointer
=yes
11494 # Windows32 Registry support for specifying GCC installation paths.
11495 # Check whether --enable-win32-registry was given.
11496 if test "${enable_win32_registry+set}" = set; then :
11497 enableval
=$enable_win32_registry;
11502 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11503 if test "x$enable_win32_registry" != xno
; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11505 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11506 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11509 ac_func_search_save_LIBS
=$LIBS
11510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11519 char RegOpenKeyExA ();
11523 return RegOpenKeyExA ();
11528 for ac_lib
in '' advapi32
; do
11529 if test -z "$ac_lib"; then
11530 ac_res
="none required"
11533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11535 if ac_fn_c_try_link
"$LINENO"; then :
11536 ac_cv_search_RegOpenKeyExA
=$ac_res
11538 rm -f core conftest.err conftest.
$ac_objext \
11540 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11544 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11547 ac_cv_search_RegOpenKeyExA
=no
11549 rm conftest.
$ac_ext
11550 LIBS
=$ac_func_search_save_LIBS
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11553 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11554 ac_res
=$ac_cv_search_RegOpenKeyExA
11555 if test "$ac_res" != no
; then :
11556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11559 enable_win32_registry
=no
11564 if test "x$enable_win32_registry" != xno
; then
11566 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11569 if test "x$enable_win32_registry" != xyes \
11570 && test "x$enable_win32_registry" != x
; then
11572 cat >>confdefs.h
<<_ACEOF
11573 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11581 # Get an absolute path to the GCC top-level source directory
11582 holddir
=`${PWDCMD-pwd}`
11584 topdir
=`${PWDCMD-pwd}`
11587 # Conditionalize the makefile for this host machine.
11589 for f
in ${host_xmake_file}
11591 if test -f ${srcdir}/config
/$f
11593 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11597 # Conditionalize the makefile for this target machine.
11599 for f
in ${tmake_file}
11601 if test -f ${srcdir}/config
/$f
11603 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11606 tmake_file
="${tmake_file_}"
11608 out_object_file
=`basename $out_file .c`.o
11609 common_out_object_file
=`basename $common_out_file .c`.o
11611 tm_file_list
="options.h"
11612 tm_include_list
="options.h insn-constants.h"
11613 for f
in $tm_file; do
11616 f
=`echo $f | sed 's/^..//'`
11617 tm_file_list
="${tm_file_list} $f"
11618 tm_include_list
="${tm_include_list} $f"
11621 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11622 tm_include_list
="${tm_include_list} $f"
11625 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11626 tm_include_list
="${tm_include_list} config/$f"
11633 for f
in $tm_p_file; do
11636 tm_p_file_list
="${tm_p_file_list} $f"
11637 tm_p_include_list
="${tm_p_include_list} $f"
11640 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11641 tm_p_include_list
="${tm_p_include_list} config/$f"
11647 for f
in $xm_file; do
11650 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11651 xm_include_list
="${xm_include_list} $f"
11654 xm_file_list
="${xm_file_list} $f"
11655 xm_include_list
="${xm_include_list} $f"
11658 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11659 xm_include_list
="${xm_include_list} config/$f"
11665 host_xm_include_list
=
11666 for f
in $host_xm_file; do
11669 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11670 host_xm_include_list
="${host_xm_include_list} $f"
11673 host_xm_file_list
="${host_xm_file_list} $f"
11674 host_xm_include_list
="${host_xm_include_list} $f"
11677 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11678 host_xm_include_list
="${host_xm_include_list} config/$f"
11683 build_xm_file_list
=
11684 for f
in $build_xm_file; do
11687 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11688 build_xm_include_list
="${build_xm_include_list} $f"
11690 auto-build.h | auto-host.h
)
11691 build_xm_file_list
="${build_xm_file_list} $f"
11692 build_xm_include_list
="${build_xm_include_list} $f"
11695 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11696 build_xm_include_list
="${build_xm_include_list} config/$f"
11701 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11702 # cross-compiler which does not use the native headers and libraries.
11703 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11706 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11708 if test "x$with_build_sysroot" != x
; then
11709 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11711 # This value is used, even on a native system, because
11712 # CROSS_SYSTEM_HEADER_DIR is just
11713 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11714 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11717 if test x
$host != x
$target
11719 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11721 SYSTEM_HEADER_DIR
=$build_system_header_dir
11722 case "$host","$target" in
11723 # Darwin crosses can use the host system's libraries and headers,
11724 # because of the fat library support. Of course, it must be the
11725 # same version of Darwin on both sides. Allow the user to
11726 # just say --target=foo-darwin without a version number to mean
11727 # "the version on this system".
11728 *-*-darwin*,*-*-darwin*)
11729 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11730 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11731 if test $hostos = $targetos -o $targetos = darwin
; then
11733 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11738 i?
86-*-*,x86_64-
*-* \
11739 | powerpc
*-*-*,powerpc64
*-*-*)
11740 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11745 if test "x$with_headers" = x
; then
11752 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11753 SYSTEM_HEADER_DIR
=$build_system_header_dir
11756 # If this is a cross-compiler that does not
11757 # have its own set of headers then define
11760 # If this is using newlib, without having the headers available now,
11761 # then define inhibit_libc in LIBGCC2_CFLAGS.
11762 # This prevents libgcc2 from containing any code which requires libc
11764 : ${inhibit_libc=false}
11765 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11766 test x
$with_newlib = xyes
; } &&
11767 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11772 # When building gcc with a cross-compiler, we need to adjust things so
11773 # that the generator programs are still built with the native compiler.
11774 # Also, we cannot run fixincludes.
11776 # These are the normal (build=host) settings:
11777 CC_FOR_BUILD
='$(CC)'
11778 CXX_FOR_BUILD
='$(CXX)'
11779 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11780 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11781 BUILD_LDFLAGS
='$(LDFLAGS)'
11782 STMP_FIXINC
=stmp-fixinc
11784 # And these apply if build != host, or we are generating coverage data
11785 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11787 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11788 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11791 # Expand extra_headers to include complete path.
11792 # This substitutes for lots of t-* files.
11793 extra_headers_list
=
11794 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11795 for file in ${extra_headers} ; do
11796 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11799 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11800 if test x
"$use_gcc_tgmath" = xyes
11801 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11804 # Define collect2 in Makefile.
11805 case $host_can_use_collect2 in
11807 *) collect2
='collect2$(exeext)' ;;
11811 # Add a definition of USE_COLLECT2 if system wants one.
11812 case $use_collect2 in
11813 no
) use_collect2
= ;;
11816 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11817 xm_defines
="${xm_defines} USE_COLLECT2"
11818 case $host_can_use_collect2 in
11820 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11827 cat >>confdefs.h
<<_ACEOF
11828 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11832 # ---------------------------
11833 # Assembler & linker features
11834 # ---------------------------
11836 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11837 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11838 # However when ld-new is first executed from the build tree, libtool will
11839 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11840 # to the build tree. While doing this we need to use the previous-stage
11841 # linker, or we have an infinite loop. The presence of a shell script as
11842 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11843 # the gcc/collect-ld script. So we need to know how libtool works, or
11844 # exec-tool will fail.
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11855 macro_version
='2.2.7a'
11856 macro_revision
='1.3134'
11870 ltmain
="$ac_aux_dir/ltmain.sh"
11872 # Backslashify metacharacters that are still active within
11873 # double-quoted strings.
11874 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11876 # Same as above, but do not quote variable references.
11877 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11879 # Sed substitution to delay expansion of an escaped shell variable in a
11880 # double_quote_subst'ed string.
11881 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11883 # Sed substitution to delay expansion of an escaped single quote.
11884 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11886 # Sed substitution to avoid accidental globbing in evaled expressions
11887 no_glob_subst
='s/\*/\\\*/g'
11889 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11890 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11894 $as_echo_n "checking how to print strings... " >&6; }
11895 # Test print first, because it will be a builtin if present.
11896 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11897 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11899 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11902 # Use this function as a fallback that always works.
11903 func_fallback_echo ()
11905 eval 'cat <<_LTECHO_EOF
11909 ECHO='func_fallback_echo
'
11912 # func_echo_all arg...
11913 # Invoke $ECHO with all args, space-separated.
11920 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11921 $as_echo "printf" >&6; } ;;
11922 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11923 $as_echo "print -r" >&6; } ;;
11924 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11925 $as_echo "cat" >&6; } ;;
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11942 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11943 if test "${ac_cv_path_SED+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11947 for ac_i in 1 2 3 4 5 6 7; do
11948 ac_script="$ac_script$as_nl$ac_script"
11950 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11951 { ac_script=; unset ac_script;}
11952 if test -z "$SED"; then
11953 ac_path_SED_found=false
11954 # Loop through the user's path and
test for each of PROGNAME-LIST
11955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11956 for as_dir
in $PATH
11959 test -z "$as_dir" && as_dir
=.
11960 for ac_prog
in sed gsed
; do
11961 for ac_exec_ext
in '' $ac_executable_extensions; do
11962 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11963 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11964 # Check for GNU ac_path_SED and select it if it is found.
11965 # Check for GNU $ac_path_SED
11966 case `"$ac_path_SED" --version 2>&1` in
11968 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11971 $as_echo_n 0123456789 >"conftest.in"
11974 cat "conftest.in" "conftest.in" >"conftest.tmp"
11975 mv "conftest.tmp" "conftest.in"
11976 cp "conftest.in" "conftest.nl"
11977 $as_echo '' >> "conftest.nl"
11978 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11979 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11980 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11981 if test $ac_count -gt ${ac_path_SED_max-0}; then
11982 # Best one so far, save it but keep looking for a better one
11983 ac_cv_path_SED
="$ac_path_SED"
11984 ac_path_SED_max
=$ac_count
11986 # 10*(2^10) chars as input seems more than enough
11987 test $ac_count -gt 10 && break
11989 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11992 $ac_path_SED_found && break 3
11997 if test -z "$ac_cv_path_SED"; then
11998 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12001 ac_cv_path_SED
=$SED
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12006 $as_echo "$ac_cv_path_SED" >&6; }
12007 SED
="$ac_cv_path_SED"
12010 test -z "$SED" && SED
=sed
12011 Xsed
="$SED -e 1s/^X//"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12024 $as_echo_n "checking for fgrep... " >&6; }
12025 if test "${ac_cv_path_FGREP+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12028 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12029 then ac_cv_path_FGREP
="$GREP -F"
12031 if test -z "$FGREP"; then
12032 ac_path_FGREP_found
=false
12033 # Loop through the user's path and test for each of PROGNAME-LIST
12034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12035 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12038 test -z "$as_dir" && as_dir
=.
12039 for ac_prog
in fgrep
; do
12040 for ac_exec_ext
in '' $ac_executable_extensions; do
12041 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12042 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12043 # Check for GNU ac_path_FGREP and select it if it is found.
12044 # Check for GNU $ac_path_FGREP
12045 case `"$ac_path_FGREP" --version 2>&1` in
12047 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12050 $as_echo_n 0123456789 >"conftest.in"
12053 cat "conftest.in" "conftest.in" >"conftest.tmp"
12054 mv "conftest.tmp" "conftest.in"
12055 cp "conftest.in" "conftest.nl"
12056 $as_echo 'FGREP' >> "conftest.nl"
12057 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12058 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12059 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12060 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12061 # Best one so far, save it but keep looking for a better one
12062 ac_cv_path_FGREP
="$ac_path_FGREP"
12063 ac_path_FGREP_max
=$ac_count
12065 # 10*(2^10) chars as input seems more than enough
12066 test $ac_count -gt 10 && break
12068 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12071 $ac_path_FGREP_found && break 3
12076 if test -z "$ac_cv_path_FGREP"; then
12077 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12080 ac_cv_path_FGREP
=$FGREP
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12086 $as_echo "$ac_cv_path_FGREP" >&6; }
12087 FGREP
="$ac_cv_path_FGREP"
12090 test -z "$GREP" && GREP
=grep
12110 # Check whether --with-gnu-ld was given.
12111 if test "${with_gnu_ld+set}" = set; then :
12112 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12118 if test "$GCC" = yes; then
12119 # Check if gcc -print-prog-name=ld gives a path.
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12121 $as_echo_n "checking for ld used by $CC... " >&6; }
12124 # gcc leaves a trailing carriage return which upsets mingw
12125 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12127 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12130 # Accept absolute paths.
12132 re_direlt
='/[^/][^/]*/\.\./'
12133 # Canonicalize the pathname of ld
12134 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12135 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12136 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12138 test -z "$LD" && LD
="$ac_prog"
12141 # If it fails, then pretend we aren't using GCC.
12145 # If it is relative, then search for the first ld in PATH.
12146 with_gnu_ld
=unknown
12149 elif test "$with_gnu_ld" = yes; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12151 $as_echo_n "checking for GNU ld... " >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12154 $as_echo_n "checking for non-GNU ld... " >&6; }
12156 if test "${lt_cv_path_LD+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12159 if test -z "$LD"; then
12160 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12161 for ac_dir
in $PATH; do
12163 test -z "$ac_dir" && ac_dir
=.
12164 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12165 lt_cv_path_LD
="$ac_dir/$ac_prog"
12166 # Check to see if the program is GNU ld. I'd rather use --version,
12167 # but apparently some variants of GNU ld only accept -v.
12168 # Break only if it was the GNU/non-GNU ld that we prefer.
12169 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12170 *GNU
* |
*'with BFD'*)
12171 test "$with_gnu_ld" != no
&& break
12174 test "$with_gnu_ld" != yes && break
12181 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12185 LD
="$lt_cv_path_LD"
12186 if test -n "$LD"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12188 $as_echo "$LD" >&6; }
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12193 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12195 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12196 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12200 case `$LD -v 2>&1 </dev/null` in
12201 *GNU
* |
*'with BFD'*)
12202 lt_cv_prog_gnu_ld
=yes
12205 lt_cv_prog_gnu_ld
=no
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12210 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12211 with_gnu_ld
=$lt_cv_prog_gnu_ld
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12222 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12223 if test "${lt_cv_path_NM+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12226 if test -n "$NM"; then
12227 # Let the user override the test.
12228 lt_cv_path_NM
="$NM"
12230 lt_nm_to_check
="${ac_tool_prefix}nm"
12231 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12232 lt_nm_to_check
="$lt_nm_to_check nm"
12234 for lt_tmp_nm
in $lt_nm_to_check; do
12235 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12236 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12238 test -z "$ac_dir" && ac_dir
=.
12239 tmp_nm
="$ac_dir/$lt_tmp_nm"
12240 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12241 # Check to see if the nm accepts a BSD-compat flag.
12242 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12243 # nm: unknown option "B" ignored
12244 # Tru64's nm complains that /dev/null is an invalid object file
12245 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12246 */dev
/null
* |
*'Invalid file or object type'*)
12247 lt_cv_path_NM
="$tmp_nm -B"
12251 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12253 lt_cv_path_NM
="$tmp_nm -p"
12257 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12258 continue # so that we can try to find one that supports BSD flags
12267 : ${lt_cv_path_NM=no}
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12271 $as_echo "$lt_cv_path_NM" >&6; }
12272 if test "$lt_cv_path_NM" != "no"; then
12273 NM
="$lt_cv_path_NM"
12275 # Didn't find any BSD compatible name lister, look for dumpbin.
12276 if test -n "$DUMPBIN"; then :
12277 # Let the user override the test.
12279 if test -n "$ac_tool_prefix"; then
12280 for ac_prog
in dumpbin
"link -dump"
12282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12283 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12289 if test -n "$DUMPBIN"; then
12290 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12293 for as_dir
in $PATH
12296 test -z "$as_dir" && as_dir
=.
12297 for ac_exec_ext
in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 DUMPBIN
=$ac_cv_prog_DUMPBIN
12310 if test -n "$DUMPBIN"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12312 $as_echo "$DUMPBIN" >&6; }
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12319 test -n "$DUMPBIN" && break
12322 if test -z "$DUMPBIN"; then
12323 ac_ct_DUMPBIN
=$DUMPBIN
12324 for ac_prog
in dumpbin
"link -dump"
12326 # Extract the first word of "$ac_prog", so it can be a program name with args.
12327 set dummy
$ac_prog; ac_word
=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12331 $as_echo_n "(cached) " >&6
12333 if test -n "$ac_ct_DUMPBIN"; then
12334 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12337 for as_dir
in $PATH
12340 test -z "$as_dir" && as_dir
=.
12341 for ac_exec_ext
in '' $ac_executable_extensions; do
12342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12354 if test -n "$ac_ct_DUMPBIN"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12356 $as_echo "$ac_ct_DUMPBIN" >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12363 test -n "$ac_ct_DUMPBIN" && break
12366 if test "x$ac_ct_DUMPBIN" = x
; then
12369 case $cross_compiling:$ac_tool_warned in
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12373 ac_tool_warned
=yes ;;
12375 DUMPBIN
=$ac_ct_DUMPBIN
12379 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12381 DUMPBIN
="$DUMPBIN -symbols"
12389 if test "$DUMPBIN" != ":"; then
12393 test -z "$NM" && NM
=nm
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12401 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12402 if test "${lt_cv_nm_interface+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12405 lt_cv_nm_interface
="BSD nm"
12406 echo "int some_variable = 0;" > conftest.
$ac_ext
12407 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12408 (eval "$ac_compile" 2>conftest.err
)
12409 cat conftest.err
>&5
12410 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12411 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12412 cat conftest.err
>&5
12413 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12414 cat conftest.out
>&5
12415 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12416 lt_cv_nm_interface
="MS dumpbin"
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12421 $as_echo "$lt_cv_nm_interface" >&6; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12424 $as_echo_n "checking whether ln -s works... " >&6; }
12426 if test "$LN_S" = "ln -s"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 $as_echo "yes" >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12431 $as_echo "no, using $LN_S" >&6; }
12434 # find the maximum length of command line arguments
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12436 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12437 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12445 # On DJGPP, this test can blow up pretty badly due to problems in libc
12446 # (any single argument exceeding 2000 bytes causes a buffer overrun
12447 # during glob expansion). Even if it were fixed, the result of this
12448 # check would be larger than it should be.
12449 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12453 # Under GNU Hurd, this test is not required because there is
12454 # no limit to the length of command line arguments.
12455 # Libtool will interpret -1 as no limit whatsoever
12456 lt_cv_sys_max_cmd_len
=-1;
12459 cygwin
* | mingw
* | cegcc
*)
12460 # On Win9x/ME, this test blows up -- it succeeds, but takes
12461 # about 5 minutes as the teststring grows exponentially.
12462 # Worse, since 9x/ME are not pre-emptively multitasking,
12463 # you end up with a "frozen" computer, even though with patience
12464 # the test eventually succeeds (with a max line length of 256k).
12465 # Instead, let's just punt: use the minimum linelength reported by
12466 # all of the supported platforms: 8192 (on NT/2K/XP).
12467 lt_cv_sys_max_cmd_len
=8192;
12471 # On MiNT this can take a long time and run out of memory.
12472 lt_cv_sys_max_cmd_len
=8192;
12476 # On AmigaOS with pdksh, this test takes hours, literally.
12477 # So we just punt and use a minimum line length of 8192.
12478 lt_cv_sys_max_cmd_len
=8192;
12481 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12482 # This has been around since 386BSD, at least. Likely further.
12483 if test -x /sbin
/sysctl
; then
12484 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12485 elif test -x /usr
/sbin
/sysctl
; then
12486 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12488 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12490 # And add a safety zone
12491 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12492 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12496 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12497 lt_cv_sys_max_cmd_len
=196608
12501 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12502 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12503 # nice to cause kernel panics so lets avoid the loop below.
12504 # First set a reasonable default.
12505 lt_cv_sys_max_cmd_len
=16384
12507 if test -x /sbin
/sysconfig
; then
12508 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12509 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12514 lt_cv_sys_max_cmd_len
=102400
12516 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12517 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12518 if test -n "$kargmax"; then
12519 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12521 lt_cv_sys_max_cmd_len
=32768
12525 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12526 if test -n "$lt_cv_sys_max_cmd_len"; then
12527 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12528 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12530 # Make teststring a little bigger before we do anything with it.
12531 # a 1K string should be a reasonable start.
12532 for i
in 1 2 3 4 5 6 7 8 ; do
12533 teststring
=$teststring$teststring
12535 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12536 # If test is not a shell built-in, we'll probably end up computing a
12537 # maximum length that is only half of the actual maximum length, but
12539 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12540 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12541 test $i != 17 # 1/2 MB should be enough
12544 teststring
=$teststring$teststring
12546 # Only check the string length outside the loop.
12547 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12549 # Add a significant safety factor because C++ compilers can tack on
12550 # massive amounts of additional arguments before passing them to the
12551 # linker. It appears as though 1/2 is a usable value.
12552 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12559 if test -n $lt_cv_sys_max_cmd_len ; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12561 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12564 $as_echo "none" >&6; }
12566 max_cmd_len
=$lt_cv_sys_max_cmd_len
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12578 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12579 # Try some XSI features
12581 ( _lt_dummy
="a/b/c"
12582 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12584 && eval 'test $(( 1 + 1 )) -eq 2 \
12585 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12588 $as_echo "$xsi_shell" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12592 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12594 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12596 && lt_shell_append=yes
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12598 $as_echo "$lt_shell_append" >&6; }
12601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12611 # test EBCDIC or ASCII
12612 case `echo X|tr X '\101'` in
12613 A) # ASCII based system
12614 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12615 lt_SP2NL='tr \040 \012'
12616 lt_NL2SP='tr \015\012 \040\040'
12618 *) # EBCDIC based system
12619 lt_SP2NL='tr \100 \n'
12620 lt_NL2SP='tr \r\n \100\100'
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12633 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12634 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12635 $as_echo_n "(cached
) " >&6
12637 lt_cv_ld_reload_flag='-r'
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12640 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12641 reload_flag=$lt_cv_ld_reload_flag
12642 case $reload_flag in
12644 *) reload_flag=" $reload_flag" ;;
12646 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12649 if test "$GCC" = yes; then
12650 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12665 if test -n "$ac_tool_prefix"; then
12666 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12667 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12669 $as_echo_n "checking
for $ac_word...
" >&6; }
12670 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12671 $as_echo_n "(cached
) " >&6
12673 if test -n "$OBJDUMP"; then
12674 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12693 OBJDUMP=$ac_cv_prog_OBJDUMP
12694 if test -n "$OBJDUMP"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12696 $as_echo "$OBJDUMP" >&6; }
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12699 $as_echo "no
" >&6; }
12704 if test -z "$ac_cv_prog_OBJDUMP"; then
12705 ac_ct_OBJDUMP=$OBJDUMP
12706 # Extract the first word of "objdump
", so it can be a program name with args.
12707 set dummy objdump; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12709 $as_echo_n "checking
for $ac_word...
" >&6; }
12710 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12711 $as_echo_n "(cached
) " >&6
12713 if test -n "$ac_ct_OBJDUMP"; then
12714 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12733 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12734 if test -n "$ac_ct_OBJDUMP"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12736 $as_echo "$ac_ct_OBJDUMP" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12739 $as_echo "no
" >&6; }
12742 if test "x
$ac_ct_OBJDUMP" = x; then
12745 case $cross_compiling:$ac_tool_warned in
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12748 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12749 ac_tool_warned=yes ;;
12751 OBJDUMP=$ac_ct_OBJDUMP
12754 OBJDUMP="$ac_cv_prog_OBJDUMP"
12757 test -z "$OBJDUMP" && OBJDUMP=objdump
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12768 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12769 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12770 $as_echo_n "(cached
) " >&6
12772 lt_cv_file_magic_cmd='$MAGIC_CMD'
12773 lt_cv_file_magic_test_file=
12774 lt_cv_deplibs_check_method='unknown'
12775 # Need to set the preceding variable on all platforms that support
12776 # interlibrary dependencies.
12777 # 'none' -- dependencies not supported.
12778 # `unknown' -- same as none, but documents that we really don't know.
12779 # 'pass_all' -- all dependencies passed with no checks.
12780 # 'test_compile' -- check by making test program.
12781 # 'file_magic [[regex]]' -- check by looking for files in library path
12782 # which responds to the $file_magic_cmd with a given extended regex.
12783 # If you have `file' or equivalent on your system and you're not sure
12784 # whether `pass_all' will *always* work, you probably want this one.
12788 lt_cv_deplibs_check_method=pass_all
12792 lt_cv_deplibs_check_method=pass_all
12796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12797 lt_cv_file_magic_cmd='/usr/bin/file -L'
12798 lt_cv_file_magic_test_file=/shlib/libc.so
12802 # func_win32_libid is a shell function defined in ltmain.sh
12803 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12804 lt_cv_file_magic_cmd='func_win32_libid'
12808 # Base MSYS/MinGW do not provide the 'file' command needed by
12809 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12810 # unless we find 'file', for example because we are cross-compiling.
12811 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12812 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12814 lt_cv_file_magic_cmd='func_win32_libid'
12816 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12817 lt_cv_file_magic_cmd='$OBJDUMP -f'
12822 # use the weaker test based on 'objdump'. See mingw*.
12823 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12824 lt_cv_file_magic_cmd='$OBJDUMP -f'
12827 darwin* | rhapsody*)
12828 lt_cv_deplibs_check_method=pass_all
12831 freebsd* | dragonfly*)
12832 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12835 # Not sure whether the presence of OpenBSD here was a mistake.
12836 # Let's accept both of them until this is cleared up.
12837 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12838 lt_cv_file_magic_cmd=/usr/bin/file
12839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12843 lt_cv_deplibs_check_method=pass_all
12848 lt_cv_deplibs_check_method=pass_all
12852 lt_cv_deplibs_check_method=pass_all
12855 hpux10.20* | hpux11*)
12856 lt_cv_file_magic_cmd=/usr/bin/file
12859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12863 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]'
12864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12868 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12874 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12878 irix5* | irix6* | nonstopux*)
12880 *-32|*"-32 ") libmagic=32-bit;;
12881 *-n32|*"-n32 ") libmagic=N32;;
12882 *-64|*"-64 ") libmagic=64-bit;;
12883 *) libmagic=never-match;;
12885 lt_cv_deplibs_check_method=pass_all
12888 # This must be Linux ELF.
12889 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12890 lt_cv_deplibs_check_method=pass_all
12894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12903 lt_cv_file_magic_cmd=/usr/bin/file
12904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12908 lt_cv_deplibs_check_method=pass_all
12912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12919 osf3* | osf4* | osf5*)
12920 lt_cv_deplibs_check_method=pass_all
12924 lt_cv_deplibs_check_method=pass_all
12928 lt_cv_deplibs_check_method=pass_all
12931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12932 lt_cv_deplibs_check_method=pass_all
12936 case $host_vendor in
12938 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]'
12939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12942 lt_cv_deplibs_check_method=pass_all
12945 lt_cv_file_magic_cmd='/bin/file'
12946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12949 lt_cv_file_magic_cmd='/bin/file'
12950 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12951 lt_cv_file_magic_test_file=/lib/libc.so
12954 lt_cv_deplibs_check_method=pass_all
12957 lt_cv_deplibs_check_method=pass_all
12963 lt_cv_deplibs_check_method=pass_all
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12969 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12970 file_magic_cmd=$lt_cv_file_magic_cmd
12971 deplibs_check_method=$lt_cv_deplibs_check_method
12972 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12985 if test -n "$ac_tool_prefix"; then
12986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12987 set dummy ${ac_tool_prefix}ar; ac_word=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12989 $as_echo_n "checking
for $ac_word...
" >&6; }
12990 if test "${ac_cv_prog_AR+set}" = set; then :
12991 $as_echo_n "(cached
) " >&6
12993 if test -n "$AR"; then
12994 ac_cv_prog_AR="$AR" # Let the user override the test.
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
13000 test -z "$as_dir" && as_dir=.
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13003 ac_cv_prog_AR="${ac_tool_prefix}ar"
13004 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13014 if test -n "$AR"; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13016 $as_echo "$AR" >&6; }
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13019 $as_echo "no
" >&6; }
13024 if test -z "$ac_cv_prog_AR"; then
13026 # Extract the first word of "ar", so it can be a program name with args.
13027 set dummy ar; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13029 $as_echo_n "checking
for $ac_word...
" >&6; }
13030 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13031 $as_echo_n "(cached
) " >&6
13033 if test -n "$ac_ct_AR"; then
13034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_ac_ct_AR="ar"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13054 if test -n "$ac_ct_AR"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13056 $as_echo "$ac_ct_AR" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13059 $as_echo "no
" >&6; }
13062 if test "x
$ac_ct_AR" = x; then
13065 case $cross_compiling:$ac_tool_warned in
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13068 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13069 ac_tool_warned=yes ;;
13074 AR="$ac_cv_prog_AR"
13077 test -z "$AR" && AR=ar
13078 test -z "$AR_FLAGS" && AR_FLAGS=cru
13090 if test -n "$ac_tool_prefix"; then
13091 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13092 set dummy ${ac_tool_prefix}strip; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13094 $as_echo_n "checking
for $ac_word...
" >&6; }
13095 if test "${ac_cv_prog_STRIP+set}" = set; then :
13096 $as_echo_n "(cached
) " >&6
13098 if test -n "$STRIP"; then
13099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13118 STRIP=$ac_cv_prog_STRIP
13119 if test -n "$STRIP"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13121 $as_echo "$STRIP" >&6; }
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13124 $as_echo "no
" >&6; }
13129 if test -z "$ac_cv_prog_STRIP"; then
13131 # Extract the first word of "strip
", so it can be a program name with args.
13132 set dummy strip; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13134 $as_echo_n "checking
for $ac_word...
" >&6; }
13135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13136 $as_echo_n "(cached
) " >&6
13138 if test -n "$ac_ct_STRIP"; then
13139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148 ac_cv_prog_ac_ct_STRIP="strip
"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13159 if test -n "$ac_ct_STRIP"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13161 $as_echo "$ac_ct_STRIP" >&6; }
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13164 $as_echo "no
" >&6; }
13167 if test "x
$ac_ct_STRIP" = x; then
13170 case $cross_compiling:$ac_tool_warned in
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13173 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13174 ac_tool_warned=yes ;;
13179 STRIP="$ac_cv_prog_STRIP"
13182 test -z "$STRIP" && STRIP=:
13189 if test -n "$ac_tool_prefix"; then
13190 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13193 $as_echo_n "checking
for $ac_word...
" >&6; }
13194 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13195 $as_echo_n "(cached
) " >&6
13197 if test -n "$RANLIB"; then
13198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13217 RANLIB=$ac_cv_prog_RANLIB
13218 if test -n "$RANLIB"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13220 $as_echo "$RANLIB" >&6; }
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13223 $as_echo "no
" >&6; }
13228 if test -z "$ac_cv_prog_RANLIB"; then
13229 ac_ct_RANLIB=$RANLIB
13230 # Extract the first word of "ranlib
", so it can be a program name with args.
13231 set dummy ranlib; ac_word=$2
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13233 $as_echo_n "checking
for $ac_word...
" >&6; }
13234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13235 $as_echo_n "(cached
) " >&6
13237 if test -n "$ac_ct_RANLIB"; then
13238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13244 test -z "$as_dir" && as_dir=.
13245 for ac_exec_ext in '' $ac_executable_extensions; do
13246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13247 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13258 if test -n "$ac_ct_RANLIB"; then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13260 $as_echo "$ac_ct_RANLIB" >&6; }
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13263 $as_echo "no
" >&6; }
13266 if test "x
$ac_ct_RANLIB" = x; then
13269 case $cross_compiling:$ac_tool_warned in
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13272 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13273 ac_tool_warned=yes ;;
13275 RANLIB=$ac_ct_RANLIB
13278 RANLIB="$ac_cv_prog_RANLIB"
13281 test -z "$RANLIB" && RANLIB=:
13288 # Determine commands to create old-style static archives.
13289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13290 old_postinstall_cmds='chmod 644 $oldlib'
13291 old_postuninstall_cmds=
13293 if test -n "$RANLIB"; then
13296 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13299 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13302 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13307 lock_old_archive_extraction=yes ;;
13309 lock_old_archive_extraction=no ;;
13350 # If no C compiler was specified, use CC.
13353 # If no C compiler flags were specified, use CFLAGS.
13354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13356 # Allow CC to be a program name with arguments.
13360 # Check for command to grab the raw symbol name followed by C symbol from nm.
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13362 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13363 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13364 $as_echo_n "(cached
) " >&6
13367 # These are sane defaults that work on at least a few old systems.
13368 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13370 # Character class describing NM global symbol codes.
13371 symcode='[BCDEGRST]'
13373 # Regexp to match symbols that can be accessed directly from C.
13374 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13376 # Define system-specific variables.
13381 cygwin* | mingw* | pw32* | cegcc*)
13382 symcode='[ABCDGISTW]'
13385 if test "$host_cpu" = ia64; then
13386 symcode='[ABCDEGRST]'
13389 irix* | nonstopux*)
13390 symcode='[BCDEGRST]'
13393 symcode='[BCDEGQRST]'
13404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13412 # If we're using GNU nm, then use its standard symbol codes.
13413 case `$NM -V 2>&1` in
13414 *GNU* | *'with BFD'*)
13415 symcode='[ABCDGIRSTW]' ;;
13418 # Transform an extracted symbol line into a proper C declaration.
13419 # Some systems (esp. on ia64) link data and code symbols differently,
13420 # so use this general approach.
13421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13423 # Transform an extracted symbol line into symbol name and symbol address
13424 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13425 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'"
13427 # Handle CRLF in mingw tool chain
13431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13435 # Try without a prefix underscore, then with it.
13436 for ac_symprfx in "" "_
"; do
13438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13439 symxfrm="\\1 $ac_symprfx\\2 \\2"
13441 # Write the raw and C identifiers.
13442 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13443 # Fake it for dumpbin and say T for any non-static function
13444 # and D for any global variable.
13445 # Also find C++ and __fastcall symbols from MSVC++,
13446 # which start with @ or ?.
13447 lt_cv_sys_global_symbol_pipe="$AWK '"\
13448 " {last_section=section; section=\$ 3};"\
13449 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13450 " \$ 0!~/External *\|/{next};"\
13451 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13452 " {if(hide[section]) next};"\
13453 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13454 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13455 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13456 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13457 " ' prfx
=^
$ac_symprfx"
13459 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13462 # Check to see that the pipe works correctly.
13466 cat > conftest.$ac_ext <<_LT_EOF
13471 void nm_test_func(void);
13472 void nm_test_func(void){}
13476 int main(){nm_test_var='a';nm_test_func();return(0);}
13479 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13480 (eval $ac_compile) 2>&5
13482 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13483 test $ac_status = 0; }; then
13484 # Now try to grab the symbols.
13486 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13487 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13490 test $ac_status = 0; } && test -s "$nlist"; then
13491 # Try sorting and uniquifying the output.
13492 if sort "$nlist" | uniq > "$nlist"T; then
13493 mv -f "$nlist"T "$nlist"
13498 # Make sure that we snagged all the symbols we need.
13499 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13500 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13501 cat <<_LT_EOF > conftest.$ac_ext
13507 # Now generate the symbol file.
13508 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13510 cat <<_LT_EOF >> conftest.$ac_ext
13512 /* The mapping between symbol names and symbols. */
13517 lt__PROGRAM__LTX_preloaded_symbols[] =
13519 { "@PROGRAM@
", (void *) 0 },
13521 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13522 cat <<\_LT_EOF >> conftest.$ac_ext
13526 /* This works around a problem in FreeBSD linker */
13527 #ifdef FREEBSD_WORKAROUND
13528 static const void *lt_preloaded_setup() {
13529 return lt__PROGRAM__LTX_preloaded_symbols;
13537 # Now try linking the two files.
13538 mv conftest.$ac_objext conftstm.$ac_objext
13539 lt_save_LIBS="$LIBS"
13540 lt_save_CFLAGS="$CFLAGS"
13541 LIBS="conftstm.
$ac_objext"
13542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13543 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13544 (eval $ac_link) 2>&5
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13547 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13550 LIBS="$lt_save_LIBS"
13551 CFLAGS="$lt_save_CFLAGS"
13553 echo "cannot
find nm_test_func
in $nlist" >&5
13556 echo "cannot
find nm_test_var
in $nlist" >&5
13559 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13562 echo "$progname: failed program was
:" >&5
13563 cat conftest.$ac_ext >&5
13565 rm -rf conftest* conftst*
13567 # Do not use the global_symbol_pipe unless it works.
13568 if test "$pipe_works" = yes; then
13571 lt_cv_sys_global_symbol_pipe=
13577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13578 lt_cv_sys_global_symbol_to_cdecl=
13580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13582 $as_echo "failed
" >&6; }
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13585 $as_echo "ok
" >&6; }
13609 # Check whether --enable-libtool-lock was given.
13610 if test "${enable_libtool_lock+set}" = set; then :
13611 enableval=$enable_libtool_lock;
13614 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13616 # Some flags need to be propagated to the compiler or linker for good
13620 # Find out which ABI we are using.
13621 echo 'int i;' > conftest.$ac_ext
13622 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 case `/usr/bin/file conftest.$ac_objext` in
13629 HPUX_IA64_MODE="32"
13632 HPUX_IA64_MODE="64"
13639 # Find out which ABI we are using.
13640 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13641 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13642 (eval $ac_compile) 2>&5
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13645 test $ac_status = 0; }; then
13646 if test "$lt_cv_prog_gnu_ld" = yes; then
13647 case `/usr/bin/file conftest.$ac_objext` in
13649 LD="${LD-ld} -melf32bsmip"
13652 LD="${LD-ld} -melf32bmipn32"
13655 LD="${LD-ld} -melf64bmip"
13659 case `/usr/bin/file conftest.$ac_objext` in
13675 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13676 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13677 # Find out which ABI we are using.
13678 echo 'int i;' > conftest.$ac_ext
13679 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13680 (eval $ac_compile) 2>&5
13682 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13683 test $ac_status = 0; }; then
13684 case `/usr/bin/file conftest.o` in
13687 x86_64-*kfreebsd*-gnu)
13688 LD="${LD-ld} -m elf_i386_fbsd
"
13691 case `/usr/bin/file conftest.o` in
13693 LD="${LD-ld} -m elf32_x86_64
"
13696 LD="${LD-ld} -m elf_i386
"
13700 powerpc64le-*linux*)
13701 LD="${LD-ld} -m elf32lppclinux
"
13704 LD="${LD-ld} -m elf32ppclinux
"
13707 LD="${LD-ld} -m elf_s390
"
13710 LD="${LD-ld} -m elf32_sparc
"
13716 x86_64-*kfreebsd*-gnu)
13717 LD="${LD-ld} -m elf_x86_64_fbsd
"
13720 LD="${LD-ld} -m elf_x86_64
"
13723 LD="${LD-ld} -m elf64lppc
"
13726 LD="${LD-ld} -m elf64ppc
"
13728 s390*-*linux*|s390*-*tpf*)
13729 LD="${LD-ld} -m elf64_s390
"
13732 LD="${LD-ld} -m elf64_sparc
"
13742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13743 SAVE_CFLAGS="$CFLAGS"
13744 CFLAGS="$CFLAGS -belf"
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13746 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13747 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13748 $as_echo_n "(cached
) " >&6
13751 ac_cpp='$CPP $CPPFLAGS'
13752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 lt_cv_cc_needs_belf=yes
13770 lt_cv_cc_needs_belf=no
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13785 CFLAGS="$SAVE_CFLAGS"
13789 # Find out which ABI we are using.
13790 echo 'int i;' > conftest.$ac_ext
13791 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792 (eval $ac_compile) 2>&5
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 case `/usr/bin/file conftest.o` in
13798 case $lt_cv_prog_gnu_ld in
13799 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13813 need_locks="$enable_libtool_lock"
13817 rhapsody* | darwin*)
13818 if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13822 $as_echo_n "checking
for $ac_word...
" >&6; }
13823 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13824 $as_echo_n "(cached
) " >&6
13826 if test -n "$DSYMUTIL"; then
13827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13847 if test -n "$DSYMUTIL"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13849 $as_echo "$DSYMUTIL" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13852 $as_echo "no
" >&6; }
13857 if test -z "$ac_cv_prog_DSYMUTIL"; then
13858 ac_ct_DSYMUTIL=$DSYMUTIL
13859 # Extract the first word of "dsymutil
", so it can be a program name with args.
13860 set dummy dsymutil; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13862 $as_echo_n "checking
for $ac_word...
" >&6; }
13863 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13864 $as_echo_n "(cached
) " >&6
13866 if test -n "$ac_ct_DSYMUTIL"; then
13867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13887 if test -n "$ac_ct_DSYMUTIL"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13892 $as_echo "no
" >&6; }
13895 if test "x
$ac_ct_DSYMUTIL" = x; then
13898 case $cross_compiling:$ac_tool_warned in
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13902 ac_tool_warned=yes ;;
13904 DSYMUTIL=$ac_ct_DSYMUTIL
13907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13910 if test -n "$ac_tool_prefix"; then
13911 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13914 $as_echo_n "checking
for $ac_word...
" >&6; }
13915 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13916 $as_echo_n "(cached
) " >&6
13918 if test -n "$NMEDIT"; then
13919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13938 NMEDIT=$ac_cv_prog_NMEDIT
13939 if test -n "$NMEDIT"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13941 $as_echo "$NMEDIT" >&6; }
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13944 $as_echo "no
" >&6; }
13949 if test -z "$ac_cv_prog_NMEDIT"; then
13950 ac_ct_NMEDIT=$NMEDIT
13951 # Extract the first word of "nmedit
", so it can be a program name with args.
13952 set dummy nmedit; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13954 $as_echo_n "checking
for $ac_word...
" >&6; }
13955 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13956 $as_echo_n "(cached
) " >&6
13958 if test -n "$ac_ct_NMEDIT"; then
13959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13968 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13979 if test -n "$ac_ct_NMEDIT"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13981 $as_echo "$ac_ct_NMEDIT" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13984 $as_echo "no
" >&6; }
13987 if test "x
$ac_ct_NMEDIT" = x; then
13990 case $cross_compiling:$ac_tool_warned in
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13994 ac_tool_warned=yes ;;
13996 NMEDIT=$ac_ct_NMEDIT
13999 NMEDIT="$ac_cv_prog_NMEDIT"
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14006 $as_echo_n "checking
for $ac_word...
" >&6; }
14007 if test "${ac_cv_prog_LIPO+set}" = set; then :
14008 $as_echo_n "(cached
) " >&6
14010 if test -n "$LIPO"; then
14011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14030 LIPO=$ac_cv_prog_LIPO
14031 if test -n "$LIPO"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14033 $as_echo "$LIPO" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14036 $as_echo "no
" >&6; }
14041 if test -z "$ac_cv_prog_LIPO"; then
14043 # Extract the first word of "lipo
", so it can be a program name with args.
14044 set dummy lipo; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14046 $as_echo_n "checking
for $ac_word...
" >&6; }
14047 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14048 $as_echo_n "(cached
) " >&6
14050 if test -n "$ac_ct_LIPO"; then
14051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_ac_ct_LIPO="lipo
"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14071 if test -n "$ac_ct_LIPO"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14073 $as_echo "$ac_ct_LIPO" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14076 $as_echo "no
" >&6; }
14079 if test "x
$ac_ct_LIPO" = x; then
14082 case $cross_compiling:$ac_tool_warned in
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14086 ac_tool_warned=yes ;;
14091 LIPO="$ac_cv_prog_LIPO"
14094 if test -n "$ac_tool_prefix"; then
14095 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}otool; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14098 $as_echo_n "checking
for $ac_word...
" >&6; }
14099 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14100 $as_echo_n "(cached
) " >&6
14102 if test -n "$OTOOL"; then
14103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14122 OTOOL=$ac_cv_prog_OTOOL
14123 if test -n "$OTOOL"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14125 $as_echo "$OTOOL" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14128 $as_echo "no
" >&6; }
14133 if test -z "$ac_cv_prog_OTOOL"; then
14135 # Extract the first word of "otool
", so it can be a program name with args.
14136 set dummy otool; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14138 $as_echo_n "checking
for $ac_word...
" >&6; }
14139 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14140 $as_echo_n "(cached
) " >&6
14142 if test -n "$ac_ct_OTOOL"; then
14143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_ac_ct_OTOOL="otool
"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14163 if test -n "$ac_ct_OTOOL"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14165 $as_echo "$ac_ct_OTOOL" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14168 $as_echo "no
" >&6; }
14171 if test "x
$ac_ct_OTOOL" = x; then
14174 case $cross_compiling:$ac_tool_warned in
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14178 ac_tool_warned=yes ;;
14183 OTOOL="$ac_cv_prog_OTOOL"
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14190 $as_echo_n "checking
for $ac_word...
" >&6; }
14191 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14192 $as_echo_n "(cached
) " >&6
14194 if test -n "$OTOOL64"; then
14195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14214 OTOOL64=$ac_cv_prog_OTOOL64
14215 if test -n "$OTOOL64"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14217 $as_echo "$OTOOL64" >&6; }
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14220 $as_echo "no
" >&6; }
14225 if test -z "$ac_cv_prog_OTOOL64"; then
14226 ac_ct_OTOOL64=$OTOOL64
14227 # Extract the first word of "otool64
", so it can be a program name with args.
14228 set dummy otool64; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14230 $as_echo_n "checking
for $ac_word...
" >&6; }
14231 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14232 $as_echo_n "(cached
) " >&6
14234 if test -n "$ac_ct_OTOOL64"; then
14235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14255 if test -n "$ac_ct_OTOOL64"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14257 $as_echo "$ac_ct_OTOOL64" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14260 $as_echo "no
" >&6; }
14263 if test "x
$ac_ct_OTOOL64" = x; then
14266 case $cross_compiling:$ac_tool_warned in
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14270 ac_tool_warned=yes ;;
14272 OTOOL64=$ac_ct_OTOOL64
14275 OTOOL64="$ac_cv_prog_OTOOL64"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14305 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14306 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14307 $as_echo_n "(cached
) " >&6
14309 lt_cv_apple_cc_single_mod=no
14310 if test -z "${LT_MULTI_MODULE}"; then
14311 # By default we will add the -single_module flag. You can override
14312 # by either setting the environment variable LT_MULTI_MODULE
14313 # non-empty at configure time, or by adding -multi_module to the
14315 rm -rf libconftest.dylib*
14316 echo "int foo
(void
){return 1;}" > conftest.c
14317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c
" >&5
14319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14323 lt_cv_apple_cc_single_mod=yes
14325 cat conftest.err >&5
14327 rm -rf libconftest.dylib*
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14334 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14335 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14336 $as_echo_n "(cached
) " >&6
14338 lt_cv_ld_exported_symbols_list=no
14339 save_LDFLAGS=$LDFLAGS
14340 echo "_main
" > conftest.sym
14341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 lt_cv_ld_exported_symbols_list=yes
14356 lt_cv_ld_exported_symbols_list=no
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LDFLAGS="$save_LDFLAGS"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14366 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14367 if test "${lt_cv_ld_force_load+set}" = set; then :
14368 $as_echo_n "(cached
) " >&6
14370 lt_cv_ld_force_load=no
14371 cat > conftest.c << _LT_EOF
14372 int forced_loaded() { return 2;}
14374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14376 echo "$AR cru libconftest.a conftest.o
" >&5
14377 $AR cru libconftest.a conftest.o 2>&5
14378 cat > conftest.c << _LT_EOF
14379 int main() { return 0;}
14381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14385 lt_cv_ld_force_load=yes
14387 cat conftest.err >&5
14389 rm -f conftest.err libconftest.a conftest conftest.c
14390 rm -rf conftest.dSYM
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14394 $as_echo "$lt_cv_ld_force_load" >&6; }
14396 rhapsody* | darwin1.[012])
14397 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14400 darwin*) # darwin 5.x on
14401 # if running on 10.5 or later, the deployment target defaults
14402 # to the OS version, if on x86, and 10.4, the deployment
14403 # target defaults to 10.4. Don't you love it?
14404 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14405 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14414 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14415 _lt_dar_single_mod='$single_module'
14417 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14418 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14420 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14422 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14423 _lt_dsymutil='~$DSYMUTIL $lib || :'
14430 for ac_header in dlfcn.h
14432 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14433 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_DLFCN_H 1
14452 enable_win32_dll=no
14455 # Check whether --enable-shared was given.
14456 if test "${enable_shared+set}" = set; then :
14457 enableval=$enable_shared; p=${PACKAGE-default}
14459 yes) enable_shared=yes ;;
14460 no) enable_shared=no ;;
14463 # Look at the argument we got. We use all the common list separators.
14464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14465 for pkg in $enableval; do
14467 if test "X
$pkg" = "X
$p"; then
14486 # Check whether --enable-static was given.
14487 if test "${enable_static+set}" = set; then :
14488 enableval=$enable_static; p=${PACKAGE-default}
14490 yes) enable_static=yes ;;
14491 no) enable_static=no ;;
14494 # Look at the argument we got. We use all the common list separators.
14495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496 for pkg in $enableval; do
14498 if test "X
$pkg" = "X
$p"; then
14518 # Check whether --with-pic was given.
14519 if test "${with_pic+set}" = set; then :
14520 withval=$with_pic; pic_mode="$withval"
14526 test -z "$pic_mode" && pic_mode=default
14534 # Check whether --enable-fast-install was given.
14535 if test "${enable_fast_install+set}" = set; then :
14536 enableval=$enable_fast_install; p=${PACKAGE-default}
14538 yes) enable_fast_install=yes ;;
14539 no) enable_fast_install=no ;;
14541 enable_fast_install=no
14542 # Look at the argument we got. We use all the common list separators.
14543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14544 for pkg in $enableval; do
14546 if test "X
$pkg" = "X
$p"; then
14547 enable_fast_install=yes
14554 enable_fast_install=yes
14567 # This can be used to rebuild libtool when needed
14568 LIBTOOL_DEPS="$ltmain"
14570 # Always use our own libtool.
14571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14598 test -z "$LN_S" && LN_S="ln -s"
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14618 $as_echo_n "checking
for objdir...
" >&6; }
14619 if test "${lt_cv_objdir+set}" = set; then :
14620 $as_echo_n "(cached
) " >&6
14622 rm -f .libs 2>/dev/null
14623 mkdir .libs 2>/dev/null
14624 if test -d .libs; then
14627 # MS-DOS does not allow filenames that begin with a dot.
14630 rmdir .libs 2>/dev/null
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14633 $as_echo "$lt_cv_objdir" >&6; }
14634 objdir=$lt_cv_objdir
14640 cat >>confdefs.h <<_ACEOF
14641 #define LT_OBJDIR "$lt_cv_objdir/"
14649 # AIX sometimes has problems with the GCC collect2 program. For some
14650 # reason, if we set the COLLECT_NAMES environment variable, the problems
14651 # vanish in a puff of smoke.
14652 if test "X
${COLLECT_NAMES+set}" != Xset; then
14654 export COLLECT_NAMES
14659 # Global variables:
14661 can_build_shared=yes
14663 # All known linkers require a `.a' archive for static linking (except MSVC,
14664 # which needs '.lib').
14667 with_gnu_ld="$lt_cv_prog_gnu_ld"
14670 old_CFLAGS="$CFLAGS"
14672 # Set sane defaults for various variables
14673 test -z "$CC" && CC=cc
14674 test -z "$LTCC" && LTCC=$CC
14675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14676 test -z "$LD" && LD=ld
14677 test -z "$ac_objext" && ac_objext=o
14679 for cc_temp in $compiler""; do
14681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14687 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14690 # Only perform the check for file, if the check method requires it
14691 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14692 case $deplibs_check_method in
14694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14696 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14698 $as_echo_n "(cached
) " >&6
14702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705 lt_save_MAGIC_CMD="$MAGIC_CMD"
14706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14707 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14708 for ac_dir in $ac_dummy; do
14710 test -z "$ac_dir" && ac_dir=.
14711 if test -f $ac_dir/${ac_tool_prefix}file; then
14712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14713 if test -n "$file_magic_test_file"; then
14714 case $deplibs_check_method in
14716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14719 $EGREP "$file_magic_regex" > /dev/null; then
14724 *** Warning: the command libtool uses to detect shared libraries,
14725 *** $file_magic_cmd, produces output that libtool cannot recognize.
14726 *** The result is that libtool may fail to recognize shared libraries
14727 *** as such. This will affect the creation of libtool libraries that
14728 *** depend on shared libraries, but programs linked with such libtool
14729 *** libraries will work regardless of this problem. Nevertheless, you
14730 *** may want to report the problem to your system manager and/or to
14731 *** bug-libtool@gnu.org
14741 MAGIC_CMD="$lt_save_MAGIC_CMD"
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if test -n "$MAGIC_CMD"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14749 $as_echo "$MAGIC_CMD" >&6; }
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14752 $as_echo "no
" >&6; }
14759 if test -z "$lt_cv_path_MAGIC_CMD"; then
14760 if test -n "$ac_tool_prefix"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14762 $as_echo_n "checking
for file...
" >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14764 $as_echo_n "(cached
) " >&6
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such. This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem. Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14815 $as_echo "$MAGIC_CMD" >&6; }
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14818 $as_echo "no
" >&6; }
14831 # Use C for the default configuration in the libtool script
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14841 # Source file extension for C test sources.
14844 # Object file extension for compiled C test sources.
14848 # Code to be used in simple compile tests
14849 lt_simple_compile_test_code="int some_variable
= 0;"
14851 # Code to be used in simple link tests
14852 lt_simple_link_test_code='int main(){return(0);}'
14860 # If no C compiler was specified, use CC.
14863 # If no C compiler flags were specified, use CFLAGS.
14864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14866 # Allow CC to be a program name with arguments.
14869 # Save the default compiler, since it gets overwritten when the other
14870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14871 compiler_DEFAULT=$CC
14873 # save warnings/boilerplate of simple test code
14874 ac_outfile=conftest.$ac_objext
14875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14877 _lt_compiler_boilerplate=`cat conftest.err`
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_linker_boilerplate=`cat conftest.err`
14888 ## There is no encapsulation within the following macros, do not change
14889 ## the running order or otherwise move them around unless you know exactly
14890 ## what you are doing...
14891 if test -n "$compiler"; then
14893 lt_prog_compiler_no_builtin_flag=
14895 if test "$GCC" = yes; then
14896 case $cc_basename in
14898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14904 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14906 $as_echo_n "(cached
) " >&6
14908 lt_cv_prog_compiler_rtti_exceptions=no
14909 ac_outfile=conftest.$ac_objext
14910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14911 lt_compiler_flag="-fno-rtti -fno-exceptions"
14912 # Insert the option either (1) after the last *FLAGS variable, or
14913 # (2) before a word containing "conftest.
", or (3) at the end.
14914 # Note that $ac_compile itself does not contain backslashes and begins
14915 # with a dollar sign (not a hyphen), so the echo should work correctly.
14916 # The option is referenced via a variable to avoid confusing sed.
14917 lt_compile=`echo "$ac_compile" | $SED \
14918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14920 -e 's:$: $lt_compiler_flag:'`
14921 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14922 (eval "$lt_compile" 2>conftest.err)
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14926 if (exit $ac_status) && test -s "$ac_outfile"; then
14927 # The compiler can only warn and ignore the option if not recognized
14928 # So say no if there are warnings other than the usual output.
14929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14932 lt_cv_prog_compiler_rtti_exceptions=yes
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14939 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14954 lt_prog_compiler_wl=
14955 lt_prog_compiler_pic=
14956 lt_prog_compiler_static=
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14959 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14961 if test "$GCC" = yes; then
14962 lt_prog_compiler_wl='-Wl,'
14963 lt_prog_compiler_static='-static'
14967 # All AIX code is PIC.
14968 if test "$host_cpu" = ia64; then
14969 # AIX 5 now supports IA64 processor
14970 lt_prog_compiler_static='-Bstatic'
14972 lt_prog_compiler_pic='-fPIC'
14978 # see comment about AmigaOS4 .so support
14979 lt_prog_compiler_pic='-fPIC'
14982 # FIXME: we need at least 68020 code to build shared libraries, but
14983 # adding the `-m68020' flag to GCC prevents building anything better,
14985 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14991 # PIC is the default for these OSes.
14994 mingw* | cygwin* | pw32* | os2* | cegcc*)
14995 # This hack is so that the source file can tell whether it is being
14996 # built for inclusion in a dll (and should export symbols for example).
14997 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14998 # (--disable-auto-import) libraries
14999 lt_prog_compiler_pic='-DDLL_EXPORT'
15002 darwin* | rhapsody*)
15003 # PIC is the default on this platform
15004 # Common symbols not allowed in MH_DYLIB files
15005 lt_prog_compiler_pic='-fno-common'
15009 # PIC is the default for Haiku.
15010 # The "-static" flag exists, but is broken.
15011 lt_prog_compiler_static=
15015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15017 # sets the default TLS model and affects inlining.
15023 lt_prog_compiler_pic='-fPIC'
15029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15030 # Instead, we relocate shared libraries at runtime.
15034 # Just because we use GCC doesn't mean we suddenly get shared libraries
15035 # on systems that don't support them.
15036 lt_prog_compiler_can_build_shared=no
15041 # QNX uses GNU C++, but need to define -shared option too, otherwise
15042 # it will coredump.
15043 lt_prog_compiler_pic='-fPIC -shared'
15047 if test -d /usr/nec; then
15048 lt_prog_compiler_pic=-Kconform_pic
15053 lt_prog_compiler_pic='-fPIC'
15057 case $cc_basename in
15058 nvcc*) # Cuda Compiler Driver 2.2
15059 lt_prog_compiler_wl='-Xlinker '
15060 lt_prog_compiler_pic='-Xcompiler -fPIC'
15064 # PORTME Check for flag to pass linker flags through the system compiler.
15067 lt_prog_compiler_wl='-Wl,'
15068 if test "$host_cpu" = ia64; then
15069 # AIX 5 now supports IA64 processor
15070 lt_prog_compiler_static='-Bstatic'
15072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15076 mingw* | cygwin* | pw32* | os2* | cegcc*)
15077 # This hack is so that the source file can tell whether it is being
15078 # built for inclusion in a dll (and should export symbols for example).
15079 lt_prog_compiler_pic='-DDLL_EXPORT'
15082 hpux9* | hpux10* | hpux11*)
15083 lt_prog_compiler_wl='-Wl,'
15084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15085 # not for PA HP-UX.
15091 lt_prog_compiler_pic='+Z'
15094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15095 lt_prog_compiler_static='${wl}-a ${wl}archive'
15098 irix5* | irix6* | nonstopux*)
15099 lt_prog_compiler_wl='-Wl,'
15100 # PIC (with -KPIC) is the default.
15101 lt_prog_compiler_static='-non_shared'
15104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15105 case $cc_basename in
15106 # old Intel for x86_64 which still supported -KPIC.
15108 lt_prog_compiler_wl='-Wl,'
15109 lt_prog_compiler_pic='-KPIC'
15110 lt_prog_compiler_static='-static'
15112 # icc used to be incompatible with GCC.
15113 # ICC 10 doesn't accept -KPIC any more.
15115 lt_prog_compiler_wl='-Wl,'
15116 lt_prog_compiler_pic='-fPIC'
15117 lt_prog_compiler_static='-static'
15119 # Lahey Fortran 8.1.
15121 lt_prog_compiler_wl='-Wl,'
15122 lt_prog_compiler_pic='--shared'
15123 lt_prog_compiler_static='--static'
15125 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15126 # Portland Group compilers (*not* the Pentium gcc compiler,
15127 # which looks to be a dead project)
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_pic='-fpic'
15130 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_wl='-Wl,'
15134 # All Alpha code is PIC.
15135 lt_prog_compiler_static='-non_shared'
15137 xl* | bgxl* | bgf* | mpixl*)
15138 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15139 lt_prog_compiler_wl='-Wl,'
15140 lt_prog_compiler_pic='-qpic'
15141 lt_prog_compiler_static='-qstaticlink'
15144 case `$CC -V 2>&1 | sed 5q` in
15145 *Sun\ F* | *Sun*Fortran*)
15146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15147 lt_prog_compiler_pic='-KPIC'
15148 lt_prog_compiler_static='-Bstatic'
15149 lt_prog_compiler_wl=''
15153 lt_prog_compiler_pic='-KPIC'
15154 lt_prog_compiler_static='-Bstatic'
15155 lt_prog_compiler_wl='-Wl,'
15163 lt_prog_compiler_pic='-KPIC'
15164 lt_prog_compiler_static='-Bstatic'
15168 # QNX uses GNU C++, but need to define -shared option too, otherwise
15169 # it will coredump.
15170 lt_prog_compiler_pic='-fPIC -shared'
15173 osf3* | osf4* | osf5*)
15174 lt_prog_compiler_wl='-Wl,'
15175 # All OSF/1 code is PIC.
15176 lt_prog_compiler_static='-non_shared'
15180 lt_prog_compiler_static='-non_shared'
15184 lt_prog_compiler_pic='-KPIC'
15185 lt_prog_compiler_static='-Bstatic'
15186 case $cc_basename in
15187 f77* | f90* | f95*)
15188 lt_prog_compiler_wl='-Qoption ld ';;
15190 lt_prog_compiler_wl='-Wl,';;
15195 lt_prog_compiler_wl='-Qoption ld '
15196 lt_prog_compiler_pic='-PIC'
15197 lt_prog_compiler_static='-Bstatic'
15200 sysv4 | sysv4.2uw2* | sysv4.3*)
15201 lt_prog_compiler_wl='-Wl,'
15202 lt_prog_compiler_pic='-KPIC'
15203 lt_prog_compiler_static='-Bstatic'
15207 if test -d /usr/nec ;then
15208 lt_prog_compiler_pic='-Kconform_pic'
15209 lt_prog_compiler_static='-Bstatic'
15213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15214 lt_prog_compiler_wl='-Wl,'
15215 lt_prog_compiler_pic='-KPIC'
15216 lt_prog_compiler_static='-Bstatic'
15220 lt_prog_compiler_wl='-Wl,'
15221 lt_prog_compiler_can_build_shared=no
15225 lt_prog_compiler_pic='-pic'
15226 lt_prog_compiler_static='-Bstatic'
15230 lt_prog_compiler_can_build_shared=no
15236 # For platforms which do not support PIC, -DPIC is meaningless:
15238 lt_prog_compiler_pic=
15241 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15245 $as_echo "$lt_prog_compiler_pic" >&6; }
15253 # Check to make sure the PIC flag actually works.
15255 if test -n "$lt_prog_compiler_pic"; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15257 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15258 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15259 $as_echo_n "(cached
) " >&6
15261 lt_cv_prog_compiler_pic_works=no
15262 ac_outfile=conftest.$ac_objext
15263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15265 # Insert the option either (1) after the last *FLAGS variable, or
15266 # (2) before a word containing "conftest.
", or (3) at the end.
15267 # Note that $ac_compile itself does not contain backslashes and begins
15268 # with a dollar sign (not a hyphen), so the echo should work correctly.
15269 # The option is referenced via a variable to avoid confusing sed.
15270 lt_compile=`echo "$ac_compile" | $SED \
15271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15273 -e 's:$: $lt_compiler_flag:'`
15274 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15275 (eval "$lt_compile" 2>conftest.err)
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15279 if (exit $ac_status) && test -s "$ac_outfile"; then
15280 # The compiler can only warn and ignore the option if not recognized
15281 # So say no if there are warnings other than the usual output.
15282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15285 lt_cv_prog_compiler_pic_works=yes
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15294 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15295 case $lt_prog_compiler_pic in
15297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15300 lt_prog_compiler_pic=
15301 lt_prog_compiler_can_build_shared=no
15312 # Check to make sure the static flag actually works.
15314 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15316 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15317 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15318 $as_echo_n "(cached
) " >&6
15320 lt_cv_prog_compiler_static_works=no
15321 save_LDFLAGS="$LDFLAGS"
15322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15325 # The linker can only warn and ignore the option if not recognized
15326 # So say no if there are warnings
15327 if test -s conftest.err; then
15328 # Append any errors to the config.log.
15329 cat conftest.err 1>&5
15330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15332 if diff conftest.exp conftest.er2 >/dev/null; then
15333 lt_cv_prog_compiler_static_works=yes
15336 lt_cv_prog_compiler_static_works=yes
15340 LDFLAGS="$save_LDFLAGS"
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15344 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15346 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15349 lt_prog_compiler_static=
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15359 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15360 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15361 $as_echo_n "(cached
) " >&6
15363 lt_cv_prog_compiler_c_o=no
15364 $RM -r conftest 2>/dev/null
15368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15370 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15371 # Insert the option either (1) after the last *FLAGS variable, or
15372 # (2) before a word containing "conftest.
", or (3) at the end.
15373 # Note that $ac_compile itself does not contain backslashes and begins
15374 # with a dollar sign (not a hyphen), so the echo should work correctly.
15375 lt_compile=`echo "$ac_compile" | $SED \
15376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378 -e 's:$: $lt_compiler_flag:'`
15379 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15380 (eval "$lt_compile" 2>out/conftest.err)
15382 cat out/conftest.err >&5
15383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15386 # The compiler can only warn and ignore the option if not recognized
15387 # So say no if there are warnings
15388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15391 lt_cv_prog_compiler_c_o=yes
15396 # SGI C++ compiler will create directory out/ii_files/ for
15397 # template instantiation
15398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15399 $RM out/* && rmdir out
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15406 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15414 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15416 $as_echo_n "(cached
) " >&6
15418 lt_cv_prog_compiler_c_o=no
15419 $RM -r conftest 2>/dev/null
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.
", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>out/conftest.err)
15437 cat out/conftest.err >&5
15438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_c_o=yes
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15454 $RM out/* && rmdir out
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15466 hard_links="nottested
"
15467 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15468 # do not overwrite the value of need_locks provided by the user
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15470 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15475 ln conftest.a conftest.b 2>&5 || hard_links=no
15476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15478 $as_echo "$hard_links" >&6; }
15479 if test "$hard_links" = no; then
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15481 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15494 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15497 allow_undefined_flag=
15498 always_export_symbols=no
15500 archive_expsym_cmds=
15501 compiler_needs_object=no
15502 enable_shared_with_static_runtimes=no
15503 export_dynamic_flag_spec=
15504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15505 hardcode_automatic=no
15507 hardcode_direct_absolute=no
15508 hardcode_libdir_flag_spec=
15509 hardcode_libdir_flag_spec_ld=
15510 hardcode_libdir_separator=
15511 hardcode_minus_L=no
15512 hardcode_shlibpath_var=unsupported
15514 link_all_deplibs=unknown
15516 module_expsym_cmds=
15517 old_archive_from_new_cmds=
15518 old_archive_from_expsyms_cmds=
15519 thread_safe_flag_spec=
15520 whole_archive_flag_spec=
15521 # include_expsyms should be a list of space-separated symbols to be *always*
15522 # included in the symbol list
15524 # exclude_expsyms can be an extended regexp of symbols to exclude
15525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15527 # as well as any symbol that contains `d'.
15528 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15530 # platforms (ab)use it in PIC code, but their linkers get confused if
15531 # the symbol is explicitly referenced. Since portable code cannot
15532 # rely on this symbol name, it's probably fine to never include it in
15533 # preloaded symbol tables.
15534 # Exclude shared library initialization/finalization symbols.
15535 extract_expsyms_cmds=
15538 cygwin* | mingw* | pw32* | cegcc*)
15539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15540 # When not using gcc, we currently assume that we are using
15541 # Microsoft Visual C++.
15542 if test "$GCC" != yes; then
15547 # we just hope/assume this is gcc and not c89 (= MSVC++)
15557 # On some targets, GNU ld is compatible enough with the native linker
15558 # that we're better off using the native interface for both.
15559 lt_use_gnu_ld_interface=no
15560 if test "$with_gnu_ld" = yes; then
15563 # The AIX port of GNU ld has always aspired to compatibility
15564 # with the native linker. However, as the warning in the GNU ld
15565 # block says, versions before 2.19.5* couldn't really create working
15566 # shared libraries, regardless of the interface used.
15567 case `$LD -v 2>&1` in
15568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15570 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15572 lt_use_gnu_ld_interface=yes
15577 lt_use_gnu_ld_interface=yes
15582 if test "$lt_use_gnu_ld_interface" = yes; then
15583 # If archive_cmds runs LD, not CC, wlarc should be empty
15586 # Set some defaults for GNU ld with shared library support. These
15587 # are reset later if shared libraries are not supported. Putting them
15588 # here allows them to be overridden if necessary.
15589 runpath_var=LD_RUN_PATH
15590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15591 export_dynamic_flag_spec='${wl}--export-dynamic'
15592 # ancient GNU ld didn't support --whole-archive et. al.
15593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15594 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15596 whole_archive_flag_spec=
15598 supports_anon_versioning=no
15599 case `$LD -v 2>&1` in
15600 *GNU\ gold*) supports_anon_versioning=yes ;;
15601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15604 *\ 2.11.*) ;; # other 2.11 versions
15605 *) supports_anon_versioning=yes ;;
15608 # See if GNU ld supports shared libraries.
15611 # On AIX/PPC, the GNU linker is very broken
15612 if test "$host_cpu" != ia64; then
15616 *** Warning: the GNU linker, at least up to release 2.19, is reported
15617 *** to be unable to reliably create shared libraries on AIX.
15618 *** Therefore, libtool is disabling shared libraries support. If you
15619 *** really care for shared libraries, you may want to install binutils
15620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15621 *** You will then need to restart the configuration process.
15630 # see comment about AmigaOS4 .so support
15631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 archive_expsym_cmds=''
15635 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)'
15636 hardcode_libdir_flag_spec
='-L$libdir'
15637 hardcode_minus_L
=yes
15643 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15644 allow_undefined_flag
=unsupported
15645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15646 # support --undefined. This deserves some investigation. FIXME
15647 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653 cygwin
* | mingw
* | pw32
* | cegcc
*)
15654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15655 # as there is no search path for DLLs.
15656 hardcode_libdir_flag_spec
='-L$libdir'
15657 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15658 allow_undefined_flag
=unsupported
15659 always_export_symbols
=no
15660 enable_shared_with_static_runtimes
=yes
15661 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15663 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15664 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15665 # If the export-symbols file already is a .def file (1st line
15666 # is EXPORTS), use it as is; otherwise, prepend...
15667 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15668 cp $export_symbols $output_objdir/$soname.def;
15670 echo EXPORTS > $output_objdir/$soname.def;
15671 cat $export_symbols >> $output_objdir/$soname.def;
15673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15680 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15681 link_all_deplibs
=yes
15686 hardcode_shlibpath_var
=no
15687 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15688 export_dynamic_flag_spec
='${wl}-E'
15689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15690 # Instead, shared libraries are loaded at an image base (0x10000000 by
15691 # default) and relocated if they conflict, which is a slow very memory
15692 # consuming and fragmenting process. To avoid this, we pick a random,
15693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15694 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15695 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15696 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'
15699 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15701 if test "$host_os" = linux-dietlibc
; then
15702 case $cc_basename in
15703 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15706 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15707 && test "$tmp_diet" = no
15710 tmp_sharedflag
='-shared'
15711 case $cc_basename,$host_cpu in
15712 pgcc
*) # Portland Group C compiler
15713 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'
15714 tmp_addflag
=' $pic_flag'
15716 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15717 # Portland Group f77 and f90 compilers
15718 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'
15719 tmp_addflag
=' $pic_flag -Mnomain' ;;
15720 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15721 tmp_addflag
=' -i_dynamic' ;;
15722 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15723 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15724 ifc
* | ifort
*) # Intel Fortran compiler
15725 tmp_addflag
=' -nofor_main' ;;
15726 lf95
*) # Lahey Fortran 8.1
15727 whole_archive_flag_spec
=
15728 tmp_sharedflag
='--shared' ;;
15729 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15730 tmp_sharedflag
='-qmkshrobj'
15732 nvcc
*) # Cuda Compiler Driver 2.2
15733 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'
15734 compiler_needs_object
=yes
15737 case `$CC -V 2>&1 | sed 5q` in
15738 *Sun\ C
*) # Sun C 5.9
15739 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'
15740 compiler_needs_object
=yes
15741 tmp_sharedflag
='-G' ;;
15742 *Sun\ F
*) # Sun Fortran 8.3
15743 tmp_sharedflag
='-G' ;;
15745 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15747 if test "x$supports_anon_versioning" = xyes
; then
15748 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15750 echo "local: *; };" >> $output_objdir/$libname.ver~
15751 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15754 case $cc_basename in
15755 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15756 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15757 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15758 hardcode_libdir_flag_spec
=
15759 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15760 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15761 if test "x$supports_anon_versioning" = xyes
; then
15762 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15764 echo "local: *; };" >> $output_objdir/$libname.ver~
15765 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15775 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15776 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15779 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15780 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15785 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15790 *** create shared libraries on Solaris systems. Therefore, libtool
15791 *** is disabling shared libraries support. We urge you to upgrade GNU
15792 *** binutils to release 2.9.1 or newer. Another option is to modify
15793 *** your PATH or compiler configuration so that the native linker is
15794 *** used, and then restart.
15797 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15798 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15805 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15806 case `$LD -v 2>&1` in
15807 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15812 *** reliably create shared libraries on SCO systems. Therefore, libtool
15813 *** is disabling shared libraries support. We urge you to upgrade GNU
15814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15815 *** your PATH or compiler configuration so that the native linker is
15816 *** used, and then restart.
15821 # For security reasons, it is highly recommended that you always
15822 # use absolute paths for naming shared libraries, and exclude the
15823 # DT_RUNPATH tag from executables and libraries. But doing so
15824 # requires that you compile everything twice, which is a pain.
15825 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15826 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15827 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15837 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_direct
=yes
15840 hardcode_shlibpath_var
=no
15844 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15845 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15853 if test "$ld_shlibs" = no
; then
15855 hardcode_libdir_flag_spec
=
15856 export_dynamic_flag_spec
=
15857 whole_archive_flag_spec
=
15860 # PORTME fill in a description of your system's linker (not GNU ld)
15863 allow_undefined_flag
=unsupported
15864 always_export_symbols
=yes
15865 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'
15866 # Note: this linker hardcodes the directories in LIBPATH if there
15867 # are no directories specified by -L.
15868 hardcode_minus_L
=yes
15869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15870 # Neither direct hardcoding nor static linking is supported with a
15872 hardcode_direct
=unsupported
15877 if test "$host_cpu" = ia64
; then
15878 # On IA64, the linker does run time linking by default, so we don't
15879 # have to do anything special.
15880 aix_use_runtimelinking
=no
15881 exp_sym_flag
='-Bexport'
15884 # If we're using GNU nm, then we don't want the "-C" option.
15885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15886 # Also, AIX nm treats weak defined symbols like other global
15887 # defined symbols, whereas GNU nm marks them as "W".
15888 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15889 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'
15891 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'
15893 aix_use_runtimelinking
=no
15895 # Test if we are trying to use run time linking or normal
15896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15897 # need to do runtime linking.
15898 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15899 for ld_flag
in $LDFLAGS; do
15900 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15901 aix_use_runtimelinking
=yes
15908 exp_sym_flag
='-bexport'
15909 no_entry_flag
='-bnoentry'
15912 # When large executables or shared objects are built, AIX ld can
15913 # have problems creating the table of contents. If linking a library
15914 # or program results in "error TOC overflow" add -mminimal-toc to
15915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15919 hardcode_direct
=yes
15920 hardcode_direct_absolute
=yes
15921 hardcode_libdir_separator
=':'
15922 link_all_deplibs
=yes
15923 file_list_spec
='${wl}-f,'
15925 if test "$GCC" = yes; then
15926 case $host_os in aix4.
[012]|aix4.
[012].
*)
15927 # We only want to do this on AIX 4.2 and lower, the check
15928 # below for broken collect2 doesn't work under 4.3+
15929 collect2name
=`${CC} -print-prog-name=collect2`
15930 if test -f "$collect2name" &&
15931 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15933 # We have reworked collect2
15936 # We have old collect2
15937 hardcode_direct
=unsupported
15938 # It fails to find uninstalled libraries when the uninstalled
15939 # path is not listed in the libpath. Setting hardcode_minus_L
15940 # to unsupported forces relinking
15941 hardcode_minus_L
=yes
15942 hardcode_libdir_flag_spec
='-L$libdir'
15943 hardcode_libdir_separator
=
15947 shared_flag
='-shared'
15948 if test "$aix_use_runtimelinking" = yes; then
15949 shared_flag
="$shared_flag "'${wl}-G'
15953 if test "$host_cpu" = ia64
; then
15954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15955 # chokes on -Wl,-G. The following line is correct:
15958 if test "$aix_use_runtimelinking" = yes; then
15959 shared_flag
='${wl}-G'
15961 shared_flag
='${wl}-bM:SRE'
15966 export_dynamic_flag_spec
='${wl}-bexpall'
15967 # It seems that -bexpall does not export symbols beginning with
15968 # underscore (_), so it is better to generate a list of symbols to export.
15969 always_export_symbols
=yes
15970 if test "$aix_use_runtimelinking" = yes; then
15971 # Warning - without using the other runtime loading flags (-brtl),
15972 # -berok will link without error, but may produce a broken library.
15973 allow_undefined_flag
='-berok'
15974 # Determine the default libpath from the value encoded in an
15975 # empty executable.
15976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15987 if ac_fn_c_try_link
"$LINENO"; then :
15989 lt_aix_libpath_sed
='
15990 /Import File Strings/,/^$/ {
15996 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15997 # Check for a 64-bit object if we didn't find anything.
15998 if test -z "$aix_libpath"; then
15999 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16002 rm -f core conftest.err conftest.
$ac_objext \
16003 conftest
$ac_exeext conftest.
$ac_ext
16004 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16006 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16007 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"
16009 if test "$host_cpu" = ia64
; then
16010 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16011 allow_undefined_flag
="-z nodefs"
16012 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"
16014 # Determine the default libpath from the value encoded in an
16015 # empty executable.
16016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16027 if ac_fn_c_try_link
"$LINENO"; then :
16029 lt_aix_libpath_sed
='
16030 /Import File Strings/,/^$/ {
16036 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16037 # Check for a 64-bit object if we didn't find anything.
16038 if test -z "$aix_libpath"; then
16039 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16042 rm -f core conftest.err conftest.
$ac_objext \
16043 conftest
$ac_exeext conftest.
$ac_ext
16044 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16046 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16047 # Warning - without using the other run time loading flags,
16048 # -berok will link without error, but may produce a broken library.
16049 no_undefined_flag
=' ${wl}-bernotok'
16050 allow_undefined_flag
=' ${wl}-berok'
16051 if test "$with_gnu_ld" = yes; then
16052 # We only use this code for GNU lds that support --whole-archive.
16053 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16055 # Exported symbols can be pulled into shared objects from archives
16056 whole_archive_flag_spec
='$convenience'
16058 archive_cmds_need_lc
=yes
16059 # This is similar to how AIX traditionally builds its shared libraries.
16060 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'
16068 # see comment about AmigaOS4 .so support
16069 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16070 archive_expsym_cmds
=''
16073 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)'
16074 hardcode_libdir_flag_spec
='-L$libdir'
16075 hardcode_minus_L
=yes
16081 export_dynamic_flag_spec
=-rdynamic
16084 cygwin
* | mingw
* | pw32
* | cegcc
*)
16085 # When not using gcc, we currently assume that we are using
16086 # Microsoft Visual C++.
16087 # hardcode_libdir_flag_spec is actually meaningless, as there is
16088 # no search path for DLLs.
16089 hardcode_libdir_flag_spec
=' '
16090 allow_undefined_flag
=unsupported
16091 # Tell ltmain to make .lib files, not .a files.
16093 # Tell ltmain to make .dll files, not .so files.
16095 # FIXME: Setting linknames here is a bad hack.
16096 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16097 # The linker will automatically build a .lib file if we build a DLL.
16098 old_archive_from_new_cmds
='true'
16099 # FIXME: Should let the user specify the lib program.
16100 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16101 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16102 enable_shared_with_static_runtimes
=yes
16105 darwin
* | rhapsody
*)
16108 archive_cmds_need_lc
=no
16110 hardcode_automatic
=yes
16111 hardcode_shlibpath_var
=unsupported
16112 if test "$lt_cv_ld_force_load" = "yes"; then
16113 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\"`'
16115 whole_archive_flag_spec
=''
16117 link_all_deplibs
=yes
16118 allow_undefined_flag
="$_lt_dar_allow_undefined"
16119 case $cc_basename in
16120 ifort
*) _lt_dar_can_shared
=yes ;;
16121 *) _lt_dar_can_shared
=$GCC ;;
16123 if test "$_lt_dar_can_shared" = "yes"; then
16124 output_verbose_link_cmd
=func_echo_all
16125 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16126 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16127 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}"
16128 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}"
16137 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_libdir_flag_spec
='-L$libdir'
16139 hardcode_shlibpath_var
=no
16142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16143 # support. Future versions do this automatically, but an explicit c++rt0.o
16144 # does not break anything, and helps significantly (at the cost of a little
16147 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16148 hardcode_libdir_flag_spec
='-R$libdir'
16149 hardcode_direct
=yes
16150 hardcode_shlibpath_var
=no
16153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16155 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16156 hardcode_direct
=yes
16157 hardcode_minus_L
=yes
16158 hardcode_shlibpath_var
=no
16161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16162 freebsd
* | dragonfly
*)
16163 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16164 hardcode_libdir_flag_spec
='-R$libdir'
16165 hardcode_direct
=yes
16166 hardcode_shlibpath_var
=no
16170 if test "$GCC" = yes; then
16171 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'
16173 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'
16175 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16176 hardcode_libdir_separator
=:
16177 hardcode_direct
=yes
16179 # hardcode_minus_L: Not really in the search PATH,
16180 # but as the default location of the library.
16181 hardcode_minus_L
=yes
16182 export_dynamic_flag_spec
='${wl}-E'
16186 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16187 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16189 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16191 if test "$with_gnu_ld" = no
; then
16192 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16193 hardcode_libdir_flag_spec_ld
='+b $libdir'
16194 hardcode_libdir_separator
=:
16195 hardcode_direct
=yes
16196 hardcode_direct_absolute
=yes
16197 export_dynamic_flag_spec
='${wl}-E'
16198 # hardcode_minus_L: Not really in the search PATH,
16199 # but as the default location of the library.
16200 hardcode_minus_L
=yes
16205 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16208 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16211 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16214 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16227 # Older versions of the 11.00 compiler do not understand -b yet
16228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16230 $as_echo_n "checking if $CC understands -b... " >&6; }
16231 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16232 $as_echo_n "(cached) " >&6
16234 lt_cv_prog_compiler__b
=no
16235 save_LDFLAGS
="$LDFLAGS"
16236 LDFLAGS
="$LDFLAGS -b"
16237 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16238 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16239 # The linker can only warn and ignore the option if not recognized
16240 # So say no if there are warnings
16241 if test -s conftest.err
; then
16242 # Append any errors to the config.log.
16243 cat conftest.err
1>&5
16244 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16245 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16246 if diff conftest.exp conftest.er2
>/dev
/null
; then
16247 lt_cv_prog_compiler__b
=yes
16250 lt_cv_prog_compiler__b
=yes
16254 LDFLAGS
="$save_LDFLAGS"
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16258 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16260 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16261 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16263 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16269 if test "$with_gnu_ld" = no
; then
16270 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16271 hardcode_libdir_separator
=:
16276 hardcode_shlibpath_var
=no
16279 hardcode_direct
=yes
16280 hardcode_direct_absolute
=yes
16281 export_dynamic_flag_spec
='${wl}-E'
16283 # hardcode_minus_L: Not really in the search PATH,
16284 # but as the default location of the library.
16285 hardcode_minus_L
=yes
16291 irix5
* | irix6
* | nonstopux
*)
16292 if test "$GCC" = yes; then
16293 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'
16294 # Try to use the -exported_symbol ld option, if it does not
16295 # work, assume that -exports_file does not work either and
16296 # implicitly export all symbols.
16297 save_LDFLAGS
="$LDFLAGS"
16298 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16303 if ac_fn_c_try_link
"$LINENO"; then :
16304 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'
16307 rm -f core conftest.err conftest.
$ac_objext \
16308 conftest
$ac_exeext conftest.
$ac_ext
16309 LDFLAGS
="$save_LDFLAGS"
16311 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'
16312 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'
16314 archive_cmds_need_lc
='no'
16315 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16316 hardcode_libdir_separator
=:
16318 link_all_deplibs
=yes
16322 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16323 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16325 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16327 hardcode_libdir_flag_spec
='-R$libdir'
16328 hardcode_direct
=yes
16329 hardcode_shlibpath_var
=no
16333 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_direct
=yes
16335 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16336 hardcode_libdir_separator
=:
16337 hardcode_shlibpath_var
=no
16344 if test -f /usr
/libexec
/ld.so
; then
16345 hardcode_direct
=yes
16346 hardcode_shlibpath_var
=no
16347 hardcode_direct_absolute
=yes
16348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16349 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16351 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16352 export_dynamic_flag_spec
='${wl}-E'
16355 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16356 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16357 hardcode_libdir_flag_spec
='-R$libdir'
16360 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16361 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16371 hardcode_libdir_flag_spec
='-L$libdir'
16372 hardcode_minus_L
=yes
16373 allow_undefined_flag
=unsupported
16374 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'
16375 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16379 if test "$GCC" = yes; then
16380 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16381 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'
16383 allow_undefined_flag
=' -expect_unresolved \*'
16384 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'
16386 archive_cmds_need_lc
='no'
16387 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16388 hardcode_libdir_separator
=:
16391 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16392 if test "$GCC" = yes; then
16393 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16394 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'
16395 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16397 allow_undefined_flag
=' -expect_unresolved \*'
16398 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'
16399 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~
16400 $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'
16402 # Both c and cxx compiler support -rpath directly
16403 hardcode_libdir_flag_spec
='-rpath $libdir'
16405 archive_cmds_need_lc
='no'
16406 hardcode_libdir_separator
=:
16410 no_undefined_flag
=' -z defs'
16411 if test "$GCC" = yes; then
16413 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16414 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16415 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16417 case `$CC -V 2>&1` in
16420 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16421 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16426 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16427 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16428 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16432 hardcode_libdir_flag_spec
='-R$libdir'
16433 hardcode_shlibpath_var
=no
16435 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16437 # The compiler driver will combine and reorder linker options,
16438 # but understands `-z linker_flag'. GCC discards it without `$wl',
16439 # but is careful enough not to reorder.
16440 # Supported since Solaris 2.6 (maybe 2.5.1?)
16441 if test "$GCC" = yes; then
16442 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16444 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16448 link_all_deplibs
=yes
16452 if test "x$host_vendor" = xsequent
; then
16453 # Use $CC to link under sequent, because it throws in some extra .o
16454 # files that make .init and .fini sections work.
16455 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16457 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16459 hardcode_libdir_flag_spec
='-L$libdir'
16460 hardcode_direct
=yes
16461 hardcode_minus_L
=yes
16462 hardcode_shlibpath_var
=no
16466 case $host_vendor in
16468 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 hardcode_direct
=yes # is this really true???
16472 ## LD is ld it makes a PLAMLIB
16473 ## CC just makes a GrossModule.
16474 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16475 reload_cmds
='$CC -r -o $output$reload_objs'
16479 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16483 runpath_var
='LD_RUN_PATH'
16484 hardcode_shlibpath_var
=no
16488 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489 hardcode_shlibpath_var
=no
16490 export_dynamic_flag_spec
='-Bexport'
16494 if test -d /usr
/nec
; then
16495 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496 hardcode_shlibpath_var
=no
16497 runpath_var
=LD_RUN_PATH
16498 hardcode_runpath_var
=yes
16503 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16504 no_undefined_flag
='${wl}-z,text'
16505 archive_cmds_need_lc
=no
16506 hardcode_shlibpath_var
=no
16507 runpath_var
='LD_RUN_PATH'
16509 if test "$GCC" = yes; then
16510 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 sysv5
* | sco3.2v5
* | sco5v6
*)
16519 # Note: We can NOT use -z defs as we might desire, because we do not
16520 # link with -lc, and that would cause any symbols used from libc to
16521 # always be unresolved, which means just about no library would
16522 # ever link correctly. If we're not using GNU ld we use -z text
16523 # though, which does catch some bad symbols but isn't as heavy-handed
16525 no_undefined_flag
='${wl}-z,text'
16526 allow_undefined_flag
='${wl}-z,nodefs'
16527 archive_cmds_need_lc
=no
16528 hardcode_shlibpath_var
=no
16529 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16530 hardcode_libdir_separator
=':'
16531 link_all_deplibs
=yes
16532 export_dynamic_flag_spec
='${wl}-Bexport'
16533 runpath_var
='LD_RUN_PATH'
16535 if test "$GCC" = yes; then
16536 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_libdir_flag_spec
='-L$libdir'
16547 hardcode_shlibpath_var
=no
16555 if test x
$host_vendor = xsni
; then
16557 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16558 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16565 $as_echo "$ld_shlibs" >&6; }
16566 test "$ld_shlibs" = no
&& can_build_shared
=no
16568 with_gnu_ld
=$with_gnu_ld
16585 # Do we need to explicitly link libc?
16587 case "x$archive_cmds_need_lc" in
16589 # Assume -lc should be added
16590 archive_cmds_need_lc
=yes
16592 if test "$enable_shared" = yes && test "$GCC" = yes; then
16593 case $archive_cmds in
16595 # FIXME: we may have to deal with multi-command sequences.
16598 # Test whether the compiler implicitly links with -lc since on some
16599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16600 # to ld, don't add -lc before -lgcc.
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16603 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16604 $as_echo_n "(cached) " >&6
16607 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16610 (eval $ac_compile) 2>&5
16612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16613 test $ac_status = 0; } 2>conftest.err
; then
16616 libobjs
=conftest.
$ac_objext
16618 wl
=$lt_prog_compiler_wl
16619 pic_flag
=$lt_prog_compiler_pic
16625 lt_save_allow_undefined_flag
=$allow_undefined_flag
16626 allow_undefined_flag
=
16627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16628 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16631 test $ac_status = 0; }
16633 lt_cv_archive_cmds_need_lc
=no
16635 lt_cv_archive_cmds_need_lc
=yes
16637 allow_undefined_flag
=$lt_save_allow_undefined_flag
16639 cat conftest.err
1>&5
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16646 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16812 if test "$GCC" = yes; then
16814 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16815 *) lt_awk_arg
="/^libraries:/" ;;
16818 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16819 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16821 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16822 case $lt_search_path_spec in
16824 # if the path contains ";" then we assume it to be the separator
16825 # otherwise default to the standard path separator (i.e. ":") - it is
16826 # assumed that no part of a normal pathname contains ";" but that should
16827 # okay in the real world where ";" in dirpaths is itself problematic.
16828 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16831 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16834 # Ok, now we have the path, separated by spaces, we can step through it
16835 # and add multilib dir if necessary.
16836 lt_tmp_lt_search_path_spec
=
16837 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16838 for lt_sys_path
in $lt_search_path_spec; do
16839 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16840 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16842 test -d "$lt_sys_path" && \
16843 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16846 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16847 BEGIN {RS=" "; FS="/|\n";} {
16850 for (lt_i = NF; lt_i > 0; lt_i--) {
16851 if ($lt_i != "" && $lt_i != ".") {
16852 if ($lt_i == "..") {
16855 if (lt_count == 0) {
16856 lt_foo="/" $lt_i lt_foo;
16863 if (lt_foo != "") { lt_freq[lt_foo]++; }
16864 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16866 # AWK program above erroneously prepends '/' to C:/dos/paths
16869 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16870 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16872 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16874 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16876 library_names_spec
=
16877 libname_spec
='lib$name'
16881 postuninstall_cmds
=
16885 shlibpath_overrides_runpath
=unknown
16887 dynamic_linker
="$host_os ld.so"
16888 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16889 need_lib_prefix
=unknown
16890 hardcode_into_libs
=no
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version
=unknown
16899 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16900 shlibpath_var
=LIBPATH
16902 # AIX 3 has no versioning support, so we append a major version to the name.
16903 soname_spec
='${libname}${release}${shared_ext}$major'
16910 hardcode_into_libs
=yes
16911 if test "$host_cpu" = ia64
; then
16912 # AIX 5 supports IA64
16913 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914 shlibpath_var
=LD_LIBRARY_PATH
16916 # With GCC up to 2.95.x, collect2 would create an import file
16917 # for dependence libraries. The import file would start with
16918 # the line `#! .'. This would cause the generated library to
16919 # depend on `.', always an invalid library. This was fixed in
16920 # development snapshots of GCC prior to 3.0.
16922 aix4 | aix4.
[01] | aix4.
[01].
*)
16923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16925 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16928 can_build_shared
=no
16932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933 # soname into executable. Probably we can add versioning support to
16934 # collect2, so additional links can be useful in future.
16935 if test "$aix_use_runtimelinking" = yes; then
16936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937 # instead of lib<name>.a to let people know that these are not
16938 # typical AIX shared libraries.
16939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 # We preserve .a as extension for shared libraries through AIX4.2
16942 # and later when we are not doing run time linking.
16943 library_names_spec
='${libname}${release}.a $libname.a'
16944 soname_spec
='${libname}${release}${shared_ext}$major'
16946 shlibpath_var
=LIBPATH
16953 # Since July 2007 AmigaOS4 officially supports .so libraries.
16954 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958 library_names_spec
='$libname.ixlibrary $libname.a'
16959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16960 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'
16966 library_names_spec
='${libname}${shared_ext}'
16967 dynamic_linker
="$host_os ld.so"
16968 shlibpath_var
=LIBRARY_PATH
16974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975 soname_spec
='${libname}${release}${shared_ext}$major'
16976 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16977 shlibpath_var
=LD_LIBRARY_PATH
16978 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16979 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16980 # the default ld.so.conf also contains /usr/contrib/lib and
16981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16982 # libtool to hard-code these into programs
16985 cygwin
* | mingw
* | pw32
* | cegcc
*)
16986 version_type
=windows
16991 case $GCC,$host_os in
16992 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16993 library_names_spec
='$libname.dll.a'
16994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16995 postinstall_cmds
='base_file=`basename \${file}`~
16996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16997 dldir=$destdir/`dirname \$dlpath`~
16998 test -d \$dldir || mkdir -p \$dldir~
16999 $install_prog $dir/$dlname \$dldir/$dlname~
17000 chmod a+x \$dldir/$dlname~
17001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17004 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17005 dlpath=$dir/\$dldll~
17007 shlibpath_overrides_runpath
=yes
17011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17012 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17014 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17017 # MinGW DLLs use traditional 'lib' prefix
17018 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021 # pw32 DLLs use 'pw' prefix rather than 'lib'
17022 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17028 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17031 dynamic_linker
='Win32 ld.exe'
17032 # FIXME: first we should search . and the directory the executable is in
17036 darwin
* | rhapsody
*)
17037 dynamic_linker
="$host_os dyld"
17038 version_type
=darwin
17041 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17042 soname_spec
='${libname}${release}${major}$shared_ext'
17043 shlibpath_overrides_runpath
=yes
17044 shlibpath_var
=DYLD_LIBRARY_PATH
17045 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17047 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17048 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17056 soname_spec
='${libname}${release}${shared_ext}$major'
17057 shlibpath_var
=LD_LIBRARY_PATH
17060 freebsd
* | dragonfly
*)
17061 # DragonFly does not have aout. When/if they implement a new
17062 # versioning mechanism, adjust this.
17063 if test -x /usr
/bin
/objformat
; then
17064 objformat
=`/usr/bin/objformat`
17067 freebsd
[23].
*) objformat
=aout
;;
17068 *) objformat
=elf
;;
17071 version_type
=freebsd-
$objformat
17072 case $version_type in
17074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17079 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17083 shlibpath_var
=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath
=yes
17088 freebsd3.
[01]* | freebsdelf3.
[01]*)
17089 shlibpath_overrides_runpath
=yes
17090 hardcode_into_libs
=yes
17092 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17093 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17094 shlibpath_overrides_runpath
=no
17095 hardcode_into_libs
=yes
17097 *) # from 4.6 on, and DragonFly
17098 shlibpath_overrides_runpath
=yes
17099 hardcode_into_libs
=yes
17108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109 soname_spec
='${libname}${release}${shared_ext}$major'
17110 shlibpath_var
=LD_LIBRARY_PATH
17111 hardcode_into_libs
=yes
17118 dynamic_linker
="$host_os runtime_loader"
17119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17120 soname_spec
='${libname}${release}${shared_ext}$major'
17121 shlibpath_var
=LIBRARY_PATH
17122 shlibpath_overrides_runpath
=yes
17123 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17124 hardcode_into_libs
=yes
17127 hpux9
* | hpux10
* | hpux11
*)
17128 # Give a soname corresponding to the major version so that dld.sl refuses to
17129 # link against other versions.
17136 hardcode_into_libs
=yes
17137 dynamic_linker
="$host_os dld.so"
17138 shlibpath_var
=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec
='${libname}${release}${shared_ext}$major'
17142 if test "X$HPUX_IA64_MODE" = X32
; then
17143 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17145 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17147 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17151 hardcode_into_libs
=yes
17152 dynamic_linker
="$host_os dld.sl"
17153 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17154 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec
='${libname}${release}${shared_ext}$major'
17157 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17158 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17162 dynamic_linker
="$host_os dld.sl"
17163 shlibpath_var
=SHLIB_PATH
17164 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 soname_spec
='${libname}${release}${shared_ext}$major'
17169 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17170 postinstall_cmds
='chmod 555 $lib'
17171 # or fails outright, so override atomically:
17172 install_override_mode
=555
17179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17180 soname_spec
='${libname}${release}${shared_ext}$major'
17181 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17182 shlibpath_var
=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath
=no
17184 hardcode_into_libs
=yes
17187 irix5
* | irix6
* | nonstopux
*)
17189 nonstopux
*) version_type
=nonstopux
;;
17191 if test "$lt_cv_prog_gnu_ld" = yes; then
17199 soname_spec
='${libname}${release}${shared_ext}$major'
17200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17202 irix5
* | nonstopux
*)
17203 libsuff
= shlibsuff
=
17206 case $LD in # libtool.m4 will add one of these switches to LD
17207 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17208 libsuff
= shlibsuff
= libmagic
=32-bit;;
17209 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17210 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17211 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17212 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17213 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17217 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17218 shlibpath_overrides_runpath
=no
17219 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17220 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17221 hardcode_into_libs
=yes
17224 # No shared lib support for Linux oldld, aout, or coff.
17225 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17229 # This must be Linux ELF.
17230 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 soname_spec
='${libname}${release}${shared_ext}$major'
17236 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17237 shlibpath_var
=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath
=no
17240 # Some binutils ld are patched to set DT_RUNPATH
17241 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17244 lt_cv_shlibpath_overrides_runpath
=no
17245 save_LDFLAGS
=$LDFLAGS
17246 save_libdir
=$libdir
17247 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17248 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17260 if ac_fn_c_try_link
"$LINENO"; then :
17261 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17262 lt_cv_shlibpath_overrides_runpath
=yes
17265 rm -f core conftest.err conftest.
$ac_objext \
17266 conftest
$ac_exeext conftest.
$ac_ext
17267 LDFLAGS
=$save_LDFLAGS
17268 libdir
=$save_libdir
17272 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17274 # This implies no fast_install, which is unacceptable.
17275 # Some rework will be needed to allow for fast_install
17276 # before this can be enabled.
17277 hardcode_into_libs
=yes
17279 # Append ld.so.conf contents to the search path
17280 if test -f /etc
/ld.so.conf
; then
17281 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' ' '`
17282 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17285 # We used to test for /lib/ld.so.1 and disable shared libraries on
17286 # powerpc, because MkLinux only supported shared libraries with the
17287 # GNU dynamic linker. Since this was broken with cross compilers,
17288 # most powerpc-linux boxes support dynamic linking these days and
17289 # people can always --disable-shared, the test was removed, and we
17290 # assume the GNU/Linux dynamic linker is in use.
17291 dynamic_linker
='GNU/Linux ld.so'
17298 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17301 dynamic_linker
='NetBSD (a.out) ld.so'
17303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17304 soname_spec
='${libname}${release}${shared_ext}$major'
17305 dynamic_linker
='NetBSD ld.elf_so'
17307 shlibpath_var
=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath
=yes
17309 hardcode_into_libs
=yes
17314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 shlibpath_var
=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath
=yes
17323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324 soname_spec
='${libname}${release}${shared_ext}$major'
17325 shlibpath_var
=LD_LIBRARY_PATH
17326 shlibpath_overrides_runpath
=no
17327 hardcode_into_libs
=yes
17328 dynamic_linker
='ldqnx.so'
17333 sys_lib_dlsearch_path_spec
="/usr/lib"
17335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17337 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17338 *) need_version
=no
;;
17340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17342 shlibpath_var
=LD_LIBRARY_PATH
17343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17345 openbsd2.
[89] | openbsd2.
[89].
*)
17346 shlibpath_overrides_runpath
=no
17349 shlibpath_overrides_runpath
=yes
17353 shlibpath_overrides_runpath
=yes
17358 libname_spec
='$name'
17361 library_names_spec
='$libname${shared_ext} $libname.a'
17362 dynamic_linker
='OS/2 ld.exe'
17363 shlibpath_var
=LIBPATH
17366 osf3
* | osf4
* | osf5
*)
17370 soname_spec
='${libname}${release}${shared_ext}$major'
17371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var
=LD_LIBRARY_PATH
17373 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17374 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_overrides_runpath
=yes
17389 hardcode_into_libs
=yes
17390 # ldd complains unless libraries are executable
17391 postinstall_cmds
='chmod +x $lib'
17396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17397 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17398 shlibpath_var
=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath
=yes
17400 if test "$with_gnu_ld" = yes; then
17408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec
='${libname}${release}${shared_ext}$major'
17410 shlibpath_var
=LD_LIBRARY_PATH
17411 case $host_vendor in
17413 shlibpath_overrides_runpath
=no
17415 runpath_var
=LD_RUN_PATH
17423 shlibpath_overrides_runpath
=no
17424 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17430 if test -d /usr
/nec
;then
17432 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17433 soname_spec
='$libname${shared_ext}.$major'
17434 shlibpath_var
=LD_LIBRARY_PATH
17438 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17439 version_type
=freebsd-elf
17442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17443 soname_spec
='${libname}${release}${shared_ext}$major'
17444 shlibpath_var
=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath
=yes
17446 hardcode_into_libs
=yes
17447 if test "$with_gnu_ld" = yes; then
17448 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17450 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17453 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17457 sys_lib_dlsearch_path_spec
='/usr/lib'
17461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 shlibpath_var
=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath
=no
17468 hardcode_into_libs
=yes
17473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17474 soname_spec
='${libname}${release}${shared_ext}$major'
17475 shlibpath_var
=LD_LIBRARY_PATH
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17483 $as_echo "$dynamic_linker" >&6; }
17484 test "$dynamic_linker" = no
&& can_build_shared
=no
17486 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17487 if test "$GCC" = yes; then
17488 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17492 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17495 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17590 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17592 if test -n "$hardcode_libdir_flag_spec" ||
17593 test -n "$runpath_var" ||
17594 test "X$hardcode_automatic" = "Xyes" ; then
17596 # We can hardcode non-existent directories.
17597 if test "$hardcode_direct" != no
&&
17598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17599 # have to relink, otherwise we might link with an installed library
17600 # when we should be linking with a yet-to-be-installed one
17601 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17602 test "$hardcode_minus_L" != no
; then
17603 # Linking always hardcodes the temporary library directory.
17604 hardcode_action
=relink
17606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17607 hardcode_action
=immediate
17610 # We cannot hardcode anything, or else we can only hardcode existing
17612 hardcode_action
=unsupported
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17615 $as_echo "$hardcode_action" >&6; }
17617 if test "$hardcode_action" = relink ||
17618 test "$inherit_rpath" = yes; then
17619 # Fast installation is not supported
17620 enable_fast_install
=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622 test "$enable_shared" = no
; then
17623 # Fast installation is not necessary
17624 enable_fast_install
=needless
17632 if test "x$enable_dlopen" != xyes
; then
17633 enable_dlopen
=unknown
17634 enable_dlopen_self
=unknown
17635 enable_dlopen_self_static
=unknown
17642 lt_cv_dlopen
="load_add_on"
17644 lt_cv_dlopen_self
=yes
17647 mingw
* | pw32
* | cegcc
*)
17648 lt_cv_dlopen
="LoadLibrary"
17653 lt_cv_dlopen
="dlopen"
17658 # if libdl is installed we need to link against it
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17660 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17664 ac_check_lib_save_LIBS
=$LIBS
17666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17684 if ac_fn_c_try_link
"$LINENO"; then :
17685 ac_cv_lib_dl_dlopen
=yes
17687 ac_cv_lib_dl_dlopen
=no
17689 rm -f core conftest.err conftest.
$ac_objext \
17690 conftest
$ac_exeext conftest.
$ac_ext
17691 LIBS
=$ac_check_lib_save_LIBS
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17694 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17695 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17696 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17699 lt_cv_dlopen
="dyld"
17701 lt_cv_dlopen_self
=yes
17708 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17709 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17710 lt_cv_dlopen
="shl_load"
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17713 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17714 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17717 ac_check_lib_save_LIBS
=$LIBS
17719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17732 return shl_load ();
17737 if ac_fn_c_try_link
"$LINENO"; then :
17738 ac_cv_lib_dld_shl_load
=yes
17740 ac_cv_lib_dld_shl_load
=no
17742 rm -f core conftest.err conftest.
$ac_objext \
17743 conftest
$ac_exeext conftest.
$ac_ext
17744 LIBS
=$ac_check_lib_save_LIBS
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17747 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17748 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17749 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17751 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17752 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17753 lt_cv_dlopen
="dlopen"
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17760 ac_check_lib_save_LIBS
=$LIBS
17762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17765 /* Override any GCC internal prototype to avoid an error.
17766 Use char because int might match the return type of a GCC
17767 builtin and then its argument prototype would still apply. */
17780 if ac_fn_c_try_link
"$LINENO"; then :
17781 ac_cv_lib_dl_dlopen
=yes
17783 ac_cv_lib_dl_dlopen
=no
17785 rm -f core conftest.err conftest.
$ac_objext \
17786 conftest
$ac_exeext conftest.
$ac_ext
17787 LIBS
=$ac_check_lib_save_LIBS
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17791 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17792 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17797 $as_echo_n "(cached) " >&6
17799 ac_check_lib_save_LIBS
=$LIBS
17800 LIBS
="-lsvld $LIBS"
17801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h. */
17804 /* Override any GCC internal prototype to avoid an error.
17805 Use char because int might match the return type of a GCC
17806 builtin and then its argument prototype would still apply. */
17819 if ac_fn_c_try_link
"$LINENO"; then :
17820 ac_cv_lib_svld_dlopen
=yes
17822 ac_cv_lib_svld_dlopen
=no
17824 rm -f core conftest.err conftest.
$ac_objext \
17825 conftest
$ac_exeext conftest.
$ac_ext
17826 LIBS
=$ac_check_lib_save_LIBS
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17829 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17830 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17831 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17834 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17835 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17838 ac_check_lib_save_LIBS
=$LIBS
17840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17853 return dld_link ();
17858 if ac_fn_c_try_link
"$LINENO"; then :
17859 ac_cv_lib_dld_dld_link
=yes
17861 ac_cv_lib_dld_dld_link
=no
17863 rm -f core conftest.err conftest.
$ac_objext \
17864 conftest
$ac_exeext conftest.
$ac_ext
17865 LIBS
=$ac_check_lib_save_LIBS
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17868 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17869 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17870 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17891 if test "x$lt_cv_dlopen" != xno
; then
17897 case $lt_cv_dlopen in
17899 save_CPPFLAGS
="$CPPFLAGS"
17900 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17902 save_LDFLAGS
="$LDFLAGS"
17903 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17906 LIBS
="$lt_cv_dlopen_libs $LIBS"
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17909 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17910 if test "${lt_cv_dlopen_self+set}" = set; then :
17911 $as_echo_n "(cached) " >&6
17913 if test "$cross_compiling" = yes; then :
17914 lt_cv_dlopen_self
=cross
17916 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17917 lt_status
=$lt_dlunknown
17918 cat > conftest.
$ac_ext <<_LT_EOF
17919 #line 17919 "configure"
17920 #include "confdefs.h"
17929 # define LT_DLGLOBAL RTLD_GLOBAL
17932 # define LT_DLGLOBAL DL_GLOBAL
17934 # define LT_DLGLOBAL 0
17938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17939 find out it does not work in some platform. */
17940 #ifndef LT_DLLAZY_OR_NOW
17942 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17945 # define LT_DLLAZY_OR_NOW DL_LAZY
17948 # define LT_DLLAZY_OR_NOW RTLD_NOW
17951 # define LT_DLLAZY_OR_NOW DL_NOW
17953 # define LT_DLLAZY_OR_NOW 0
17960 /* When -fvisbility=hidden is used, assume the code has been annotated
17961 correspondingly for the symbols needed. */
17962 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17963 void fnord () __attribute__((visibility("default")));
17966 void fnord () { int i=42; }
17969 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17970 int status = $lt_dlunknown;
17974 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17977 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978 else puts (dlerror ());
17980 /* dlclose (self); */
17988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17989 (eval $ac_link) 2>&5
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17993 (.
/conftest
; exit; ) >&5 2>/dev
/null
17995 case x
$lt_status in
17996 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17997 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17998 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18001 # compilation failed
18002 lt_cv_dlopen_self
=no
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18010 $as_echo "$lt_cv_dlopen_self" >&6; }
18012 if test "x$lt_cv_dlopen_self" = xyes
; then
18013 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18015 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18016 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18017 $as_echo_n "(cached) " >&6
18019 if test "$cross_compiling" = yes; then :
18020 lt_cv_dlopen_self_static
=cross
18022 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18023 lt_status
=$lt_dlunknown
18024 cat > conftest.
$ac_ext <<_LT_EOF
18025 #line 18025 "configure"
18026 #include "confdefs.h"
18035 # define LT_DLGLOBAL RTLD_GLOBAL
18038 # define LT_DLGLOBAL DL_GLOBAL
18040 # define LT_DLGLOBAL 0
18044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18045 find out it does not work in some platform. */
18046 #ifndef LT_DLLAZY_OR_NOW
18048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18051 # define LT_DLLAZY_OR_NOW DL_LAZY
18054 # define LT_DLLAZY_OR_NOW RTLD_NOW
18057 # define LT_DLLAZY_OR_NOW DL_NOW
18059 # define LT_DLLAZY_OR_NOW 0
18066 /* When -fvisbility=hidden is used, assume the code has been annotated
18067 correspondingly for the symbols needed. */
18068 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18069 void fnord () __attribute__((visibility("default")));
18072 void fnord () { int i=42; }
18075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18076 int status = $lt_dlunknown;
18080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18084 else puts (dlerror ());
18086 /* dlclose (self); */
18094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18095 (eval $ac_link) 2>&5
18097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18098 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18099 (.
/conftest
; exit; ) >&5 2>/dev
/null
18101 case x
$lt_status in
18102 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18103 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18104 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18107 # compilation failed
18108 lt_cv_dlopen_self_static
=no
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18116 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18119 CPPFLAGS
="$save_CPPFLAGS"
18120 LDFLAGS
="$save_LDFLAGS"
18125 case $lt_cv_dlopen_self in
18126 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18127 *) enable_dlopen_self
=unknown
;;
18130 case $lt_cv_dlopen_self_static in
18131 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18132 *) enable_dlopen_self_static
=unknown
;;
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18155 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18156 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18157 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18158 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18160 $as_echo "yes" >&6; }
18162 # FIXME - insert some real tests, host_os isn't really good enough
18165 if test -n "$STRIP" ; then
18166 striplib
="$STRIP -x"
18167 old_striplib
="$STRIP -S"
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18169 $as_echo "yes" >&6; }
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172 $as_echo "no" >&6; }
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18193 # Report which library types will actually be built
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18195 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18197 $as_echo "$can_build_shared" >&6; }
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18200 $as_echo_n "checking whether to build shared libraries... " >&6; }
18201 test "$can_build_shared" = "no" && enable_shared
=no
18203 # On AIX, shared libraries and static libraries use the same namespace, and
18204 # are all built from PIC.
18207 test "$enable_shared" = yes && enable_static
=no
18208 if test -n "$RANLIB"; then
18209 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18210 postinstall_cmds
='$RANLIB $lib'
18215 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18216 test "$enable_shared" = yes && enable_static
=no
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18221 $as_echo "$enable_shared" >&6; }
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18224 $as_echo_n "checking whether to build static libraries... " >&6; }
18225 # Make sure either enable_shared or enable_static is yes.
18226 test "$enable_shared" = yes || enable_static
=yes
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18228 $as_echo "$enable_static" >&6; }
18235 ac_cpp
='$CPP $CPPFLAGS'
18236 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18237 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18238 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18242 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18243 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18244 (test "X$CXX" != "Xg++"))) ; then
18246 ac_cpp
='$CXXCPP $CPPFLAGS'
18247 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18251 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18252 if test -z "$CXXCPP"; then
18253 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18254 $as_echo_n "(cached) " >&6
18256 # Double quotes because CXXCPP needs to be expanded
18257 for CXXCPP
in "$CXX -E" "/lib/cpp"
18259 ac_preproc_ok
=false
18260 for ac_cxx_preproc_warn_flag
in '' yes
18262 # Use a header file that comes with gcc, so configuring glibc
18263 # with a fresh cross-compiler works.
18264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18265 # <limits.h> exists even on freestanding compilers.
18266 # On the NeXT, cc -E runs the code through the compiler's parser,
18267 # not just through cpp. "Syntax error" is here to catch this case.
18268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 # include <limits.h>
18273 # include <assert.h>
18277 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18280 # Broken: fails on valid input.
18283 rm -f conftest.err conftest.
$ac_ext
18285 # OK, works on sane cases. Now check whether nonexistent headers
18286 # can be detected and how.
18287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 #include <ac_nonexistent.h>
18291 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18292 # Broken: success on invalid input.
18295 # Passes both tests.
18299 rm -f conftest.err conftest.
$ac_ext
18302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18303 rm -f conftest.err conftest.
$ac_ext
18304 if $ac_preproc_ok; then :
18309 ac_cv_prog_CXXCPP
=$CXXCPP
18312 CXXCPP
=$ac_cv_prog_CXXCPP
18314 ac_cv_prog_CXXCPP
=$CXXCPP
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18317 $as_echo "$CXXCPP" >&6; }
18318 ac_preproc_ok
=false
18319 for ac_cxx_preproc_warn_flag
in '' yes
18321 # Use a header file that comes with gcc, so configuring glibc
18322 # with a fresh cross-compiler works.
18323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 # <limits.h> exists even on freestanding compilers.
18325 # On the NeXT, cc -E runs the code through the compiler's parser,
18326 # not just through cpp. "Syntax error" is here to catch this case.
18327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18330 # include <limits.h>
18332 # include <assert.h>
18336 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18339 # Broken: fails on valid input.
18342 rm -f conftest.err conftest.
$ac_ext
18344 # OK, works on sane cases. Now check whether nonexistent headers
18345 # can be detected and how.
18346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 #include <ac_nonexistent.h>
18350 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18351 # Broken: success on invalid input.
18354 # Passes both tests.
18358 rm -f conftest.err conftest.
$ac_ext
18361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18362 rm -f conftest.err conftest.
$ac_ext
18363 if $ac_preproc_ok; then :
18366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18368 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18369 See \`config.log' for more details." "$LINENO" 5; }
18373 ac_cpp
='$CPP $CPPFLAGS'
18374 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18379 _lt_caught_CXX_error
=yes
18383 ac_cpp
='$CXXCPP $CPPFLAGS'
18384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18388 archive_cmds_need_lc_CXX
=no
18389 allow_undefined_flag_CXX
=
18390 always_export_symbols_CXX
=no
18391 archive_expsym_cmds_CXX
=
18392 compiler_needs_object_CXX
=no
18393 export_dynamic_flag_spec_CXX
=
18394 hardcode_direct_CXX
=no
18395 hardcode_direct_absolute_CXX
=no
18396 hardcode_libdir_flag_spec_CXX
=
18397 hardcode_libdir_flag_spec_ld_CXX
=
18398 hardcode_libdir_separator_CXX
=
18399 hardcode_minus_L_CXX
=no
18400 hardcode_shlibpath_var_CXX
=unsupported
18401 hardcode_automatic_CXX
=no
18402 inherit_rpath_CXX
=no
18404 module_expsym_cmds_CXX
=
18405 link_all_deplibs_CXX
=unknown
18406 old_archive_cmds_CXX
=$old_archive_cmds
18407 reload_flag_CXX
=$reload_flag
18408 reload_cmds_CXX
=$reload_cmds
18409 no_undefined_flag_CXX
=
18410 whole_archive_flag_spec_CXX
=
18411 enable_shared_with_static_runtimes_CXX
=no
18413 # Source file extension for C++ test sources.
18416 # Object file extension for compiled C++ test sources.
18420 # No sense in running all these tests if we already determined that
18421 # the CXX compiler isn't working. Some variables (like enable_shared)
18422 # are currently assumed to apply to all compilers on this platform,
18423 # and will be corrupted by setting them based on a non-working compiler.
18424 if test "$_lt_caught_CXX_error" != yes; then
18425 # Code to be used in simple compile tests
18426 lt_simple_compile_test_code
="int some_variable = 0;"
18428 # Code to be used in simple link tests
18429 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18438 # If no C compiler was specified, use CC.
18441 # If no C compiler flags were specified, use CFLAGS.
18442 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18444 # Allow CC to be a program name with arguments.
18448 # save warnings/boilerplate of simple test code
18449 ac_outfile
=conftest.
$ac_objext
18450 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18451 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18452 _lt_compiler_boilerplate
=`cat conftest.err`
18455 ac_outfile
=conftest.
$ac_objext
18456 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18457 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18458 _lt_linker_boilerplate
=`cat conftest.err`
18462 # Allow CC to be a program name with arguments.
18467 lt_save_with_gnu_ld
=$with_gnu_ld
18468 lt_save_path_LD
=$lt_cv_path_LD
18469 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18470 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18472 $as_unset lt_cv_prog_gnu_ld
18474 if test -n "${lt_cv_path_LDCXX+set}"; then
18475 lt_cv_path_LD
=$lt_cv_path_LDCXX
18477 $as_unset lt_cv_path_LD
18479 test -z "${LDCXX+set}" || LD
=$LDCXX
18483 for cc_temp
in $compiler""; do
18485 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18486 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18491 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18494 if test -n "$compiler"; then
18495 # We don't want -fno-exception when compiling C++ code, so set the
18496 # no_builtin_flag separately
18497 if test "$GXX" = yes; then
18498 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18500 lt_prog_compiler_no_builtin_flag_CXX
=
18503 if test "$GXX" = yes; then
18504 # Set up default GNU C++ configuration
18508 # Check whether --with-gnu-ld was given.
18509 if test "${with_gnu_ld+set}" = set; then :
18510 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18516 if test "$GCC" = yes; then
18517 # Check if gcc -print-prog-name=ld gives a path.
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18519 $as_echo_n "checking for ld used by $CC... " >&6; }
18522 # gcc leaves a trailing carriage return which upsets mingw
18523 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18525 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18528 # Accept absolute paths.
18530 re_direlt
='/[^/][^/]*/\.\./'
18531 # Canonicalize the pathname of ld
18532 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18533 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18534 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18536 test -z "$LD" && LD
="$ac_prog"
18539 # If it fails, then pretend we aren't using GCC.
18543 # If it is relative, then search for the first ld in PATH.
18544 with_gnu_ld
=unknown
18547 elif test "$with_gnu_ld" = yes; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18549 $as_echo_n "checking for GNU ld... " >&6; }
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18552 $as_echo_n "checking for non-GNU ld... " >&6; }
18554 if test "${lt_cv_path_LD+set}" = set; then :
18555 $as_echo_n "(cached) " >&6
18557 if test -z "$LD"; then
18558 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18559 for ac_dir
in $PATH; do
18561 test -z "$ac_dir" && ac_dir
=.
18562 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18563 lt_cv_path_LD
="$ac_dir/$ac_prog"
18564 # Check to see if the program is GNU ld. I'd rather use --version,
18565 # but apparently some variants of GNU ld only accept -v.
18566 # Break only if it was the GNU/non-GNU ld that we prefer.
18567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18568 *GNU
* |
*'with BFD'*)
18569 test "$with_gnu_ld" != no
&& break
18572 test "$with_gnu_ld" != yes && break
18579 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18583 LD
="$lt_cv_path_LD"
18584 if test -n "$LD"; then
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18586 $as_echo "$LD" >&6; }
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18589 $as_echo "no" >&6; }
18591 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18594 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18595 $as_echo_n "(cached) " >&6
18597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18598 case `$LD -v 2>&1 </dev/null` in
18599 *GNU
* |
*'with BFD'*)
18600 lt_cv_prog_gnu_ld
=yes
18603 lt_cv_prog_gnu_ld
=no
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18608 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18609 with_gnu_ld
=$lt_cv_prog_gnu_ld
18617 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18618 # archiving commands below assume that GNU ld is being used.
18619 if test "$with_gnu_ld" = yes; then
18620 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18621 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'
18623 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18624 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18626 # If archive_cmds runs LD, not CC, wlarc should be empty
18627 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18628 # investigate it a little bit more. (MM)
18631 # ancient GNU ld didn't support --whole-archive et. al.
18632 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18633 $GREP 'no-whole-archive' > /dev
/null
; then
18634 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18636 whole_archive_flag_spec_CXX
=
18642 # A generic and very simple default shared library creation
18643 # command for GNU C++ for the case where it uses the native
18644 # linker, instead of GNU ld. If possible, this setting should
18645 # overridden to take advantage of the native linker features on
18646 # the platform it is being used on.
18647 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18650 # Commands to make compiler produce verbose output that lists
18651 # what "hidden" libraries, object files and flags are used when
18652 # linking a shared library.
18653 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18661 # PORTME: fill in a description of your system's C++ link characteristics
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18663 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18667 # FIXME: insert proper C++ library support
18671 if test "$host_cpu" = ia64
; then
18672 # On IA64, the linker does run time linking by default, so we don't
18673 # have to do anything special.
18674 aix_use_runtimelinking
=no
18675 exp_sym_flag
='-Bexport'
18678 aix_use_runtimelinking
=no
18680 # Test if we are trying to use run time linking or normal
18681 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18682 # need to do runtime linking.
18683 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18684 for ld_flag
in $LDFLAGS; do
18687 aix_use_runtimelinking
=yes
18695 exp_sym_flag
='-bexport'
18696 no_entry_flag
='-bnoentry'
18699 # When large executables or shared objects are built, AIX ld can
18700 # have problems creating the table of contents. If linking a library
18701 # or program results in "error TOC overflow" add -mminimal-toc to
18702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18705 archive_cmds_CXX
=''
18706 hardcode_direct_CXX
=yes
18707 hardcode_direct_absolute_CXX
=yes
18708 hardcode_libdir_separator_CXX
=':'
18709 link_all_deplibs_CXX
=yes
18710 file_list_spec_CXX
='${wl}-f,'
18712 if test "$GXX" = yes; then
18713 case $host_os in aix4.
[012]|aix4.
[012].
*)
18714 # We only want to do this on AIX 4.2 and lower, the check
18715 # below for broken collect2 doesn't work under 4.3+
18716 collect2name
=`${CC} -print-prog-name=collect2`
18717 if test -f "$collect2name" &&
18718 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18720 # We have reworked collect2
18723 # We have old collect2
18724 hardcode_direct_CXX
=unsupported
18725 # It fails to find uninstalled libraries when the uninstalled
18726 # path is not listed in the libpath. Setting hardcode_minus_L
18727 # to unsupported forces relinking
18728 hardcode_minus_L_CXX
=yes
18729 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18730 hardcode_libdir_separator_CXX
=
18733 shared_flag
='-shared'
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag
="$shared_flag "'${wl}-G'
18739 if test "$host_cpu" = ia64
; then
18740 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18741 # chokes on -Wl,-G. The following line is correct:
18744 if test "$aix_use_runtimelinking" = yes; then
18745 shared_flag
='${wl}-G'
18747 shared_flag
='${wl}-bM:SRE'
18752 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18753 # It seems that -bexpall does not export symbols beginning with
18754 # underscore (_), so it is better to generate a list of symbols to
18756 always_export_symbols_CXX
=yes
18757 if test "$aix_use_runtimelinking" = yes; then
18758 # Warning - without using the other runtime loading flags (-brtl),
18759 # -berok will link without error, but may produce a broken library.
18760 allow_undefined_flag_CXX
='-berok'
18761 # Determine the default libpath from the value encoded in an empty
18763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18774 if ac_fn_cxx_try_link
"$LINENO"; then :
18776 lt_aix_libpath_sed
='
18777 /Import File Strings/,/^$/ {
18783 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18784 # Check for a 64-bit object if we didn't find anything.
18785 if test -z "$aix_libpath"; then
18786 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18789 rm -f core conftest.err conftest.
$ac_objext \
18790 conftest
$ac_exeext conftest.
$ac_ext
18791 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18793 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18795 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"
18797 if test "$host_cpu" = ia64
; then
18798 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18799 allow_undefined_flag_CXX
="-z nodefs"
18800 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"
18802 # Determine the default libpath from the value encoded in an
18803 # empty executable.
18804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18815 if ac_fn_cxx_try_link
"$LINENO"; then :
18817 lt_aix_libpath_sed
='
18818 /Import File Strings/,/^$/ {
18824 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18825 # Check for a 64-bit object if we didn't find anything.
18826 if test -z "$aix_libpath"; then
18827 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18830 rm -f core conftest.err conftest.
$ac_objext \
18831 conftest
$ac_exeext conftest.
$ac_ext
18832 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18834 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18835 # Warning - without using the other run time loading flags,
18836 # -berok will link without error, but may produce a broken library.
18837 no_undefined_flag_CXX
=' ${wl}-bernotok'
18838 allow_undefined_flag_CXX
=' ${wl}-berok'
18839 if test "$with_gnu_ld" = yes; then
18840 # We only use this code for GNU lds that support --whole-archive.
18841 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18843 # Exported symbols can be pulled into shared objects from archives
18844 whole_archive_flag_spec_CXX
='$convenience'
18846 archive_cmds_need_lc_CXX
=yes
18847 # This is similar to how AIX traditionally builds its shared
18849 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'
18855 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18856 allow_undefined_flag_CXX
=unsupported
18857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18858 # support --undefined. This deserves some investigation. FIXME
18859 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18866 case $cc_basename in
18868 # FIXME: insert proper C++ library support
18874 cygwin
* | mingw
* | pw32
* | cegcc
*)
18875 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18876 # as there is no search path for DLLs.
18877 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18878 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18879 allow_undefined_flag_CXX
=unsupported
18880 always_export_symbols_CXX
=no
18881 enable_shared_with_static_runtimes_CXX
=yes
18883 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18884 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'
18885 # If the export-symbols file already is a .def file (1st line
18886 # is EXPORTS), use it as is; otherwise, prepend...
18887 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18888 cp $export_symbols $output_objdir/$soname.def;
18890 echo EXPORTS > $output_objdir/$soname.def;
18891 cat $export_symbols >> $output_objdir/$soname.def;
18893 $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'
18898 darwin
* | rhapsody
*)
18901 archive_cmds_need_lc_CXX
=no
18902 hardcode_direct_CXX
=no
18903 hardcode_automatic_CXX
=yes
18904 hardcode_shlibpath_var_CXX
=unsupported
18905 if test "$lt_cv_ld_force_load" = "yes"; then
18906 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\"`'
18908 whole_archive_flag_spec_CXX
=''
18910 link_all_deplibs_CXX
=yes
18911 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18912 case $cc_basename in
18913 ifort
*) _lt_dar_can_shared
=yes ;;
18914 *) _lt_dar_can_shared
=$GCC ;;
18916 if test "$_lt_dar_can_shared" = "yes"; then
18917 output_verbose_link_cmd
=func_echo_all
18918 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}"
18919 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18920 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}"
18921 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}"
18922 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18923 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}"
18924 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}"
18934 case $cc_basename in
18936 # FIXME: insert proper C++ library support
18940 # Green Hills C++ Compiler
18941 # FIXME: insert proper C++ library support
18945 # FIXME: insert proper C++ library support
18952 # C++ shared libraries reported to be fairly broken before
18958 archive_cmds_need_lc_CXX
=no
18961 freebsd
* | dragonfly
*)
18962 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18971 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18972 link_all_deplibs_CXX
=yes
18976 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18977 hardcode_libdir_separator_CXX
=:
18978 export_dynamic_flag_spec_CXX
='${wl}-E'
18979 hardcode_direct_CXX
=yes
18980 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18981 # but as the default
18982 # location of the library.
18984 case $cc_basename in
18986 # FIXME: insert proper C++ library support
18990 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'
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18995 # There doesn't appear to be a way to prevent this compiler from
18996 # explicitly linking system object files so we need to strip them
18997 # from the output so that they don't get included in the library
18999 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"'
19002 if test "$GXX" = yes; then
19003 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'
19005 # FIXME: insert proper C++ library support
19013 if test $with_gnu_ld = no
; then
19014 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19015 hardcode_libdir_separator_CXX
=:
19021 export_dynamic_flag_spec_CXX
='${wl}-E'
19027 hardcode_direct_CXX
=no
19028 hardcode_shlibpath_var_CXX
=no
19031 hardcode_direct_CXX
=yes
19032 hardcode_direct_absolute_CXX
=yes
19033 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19034 # but as the default
19035 # location of the library.
19039 case $cc_basename in
19041 # FIXME: insert proper C++ library support
19047 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19056 # Commands to make compiler produce verbose output that lists
19057 # what "hidden" libraries, object files and flags are used when
19058 # linking a shared library.
19060 # There doesn't appear to be a way to prevent this compiler from
19061 # explicitly linking system object files so we need to strip them
19062 # from the output so that they don't get included in the library
19064 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"'
19067 if test "$GXX" = yes; then
19068 if test $with_gnu_ld = no
; then
19071 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19077 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'
19082 # FIXME: insert proper C++ library support
19090 hardcode_direct_CXX
=no
19091 hardcode_shlibpath_var_CXX
=no
19092 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19093 export_dynamic_flag_spec_CXX
='${wl}-E'
19094 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19095 # Instead, shared libraries are loaded at an image base (0x10000000 by
19096 # default) and relocated if they conflict, which is a slow very memory
19097 # consuming and fragmenting process. To avoid this, we pick a random,
19098 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19099 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19100 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'
19101 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'
19104 case $cc_basename in
19107 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'
19109 # Archives containing C++ object files must be created using
19110 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19111 # necessary to make sure instantiated templates are included
19113 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19116 if test "$GXX" = yes; then
19117 if test "$with_gnu_ld" = no
; then
19118 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'
19120 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'
19123 link_all_deplibs_CXX
=yes
19126 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19127 hardcode_libdir_separator_CXX
=:
19128 inherit_rpath_CXX
=yes
19131 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19132 case $cc_basename in
19134 # Kuck and Associates, Inc. (KAI) C++ Compiler
19136 # KCC will only create a shared library if the output file
19137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19138 # to its proper name (with version) after linking.
19139 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'
19140 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'
19141 # Commands to make compiler produce verbose output that lists
19142 # what "hidden" libraries, object files and flags are used when
19143 # linking a shared library.
19145 # There doesn't appear to be a way to prevent this compiler from
19146 # explicitly linking system object files so we need to strip them
19147 # from the output so that they don't get included in the library
19149 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"'
19151 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19152 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19154 # Archives containing C++ object files must be created using
19155 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19156 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19161 # version 8.0 and above of icpc choke on multiply defined symbols
19162 # if we add $predep_objects and $postdep_objects, however 7.1 and
19163 # earlier do not add the objects themselves.
19164 case `$CC -V 2>&1` in
19166 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19167 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'
19169 *) # Version 8.0 or newer
19172 ia64
*) tmp_idyn
=' -i_dynamic';;
19174 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 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'
19178 archive_cmds_need_lc_CXX
=no
19179 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19180 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19181 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19184 # Portland Group C++ compiler
19186 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19187 prelink_cmds_CXX
='tpldir=Template.dir~
19189 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19190 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19191 old_archive_cmds_CXX
='tpldir=Template.dir~
19193 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19194 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19196 archive_cmds_CXX
='tpldir=Template.dir~
19198 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19199 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19200 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19202 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19203 $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'
19205 *) # Version 6 and above use weak symbols
19206 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19207 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'
19211 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19212 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19213 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'
19217 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 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'
19220 runpath_var
=LD_RUN_PATH
19221 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19222 hardcode_libdir_separator_CXX
=:
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19228 # There doesn't appear to be a way to prevent this compiler from
19229 # explicitly linking system object files so we need to strip them
19230 # from the output so that they don't get included in the library
19232 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'
19234 xl
* | mpixl
* | bgxl
*)
19235 # IBM XL 8.0 on PPC, with GNU ld
19236 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19237 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19238 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 if test "x$supports_anon_versioning" = xyes
; then
19240 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242 echo "local: *; };" >> $output_objdir/$libname.ver~
19243 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19247 case `$CC -V 2>&1 | sed 5q` in
19250 no_undefined_flag_CXX
=' -zdefs'
19251 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252 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'
19253 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19254 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'
19255 compiler_needs_object_CXX
=yes
19257 # Not sure whether something based on
19258 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19260 output_verbose_link_cmd
='func_echo_all'
19262 # Archives containing C++ object files must be created using
19263 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19264 # necessary to make sure instantiated templates are included
19266 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19274 # FIXME: insert proper C++ library support
19279 # FIXME: insert proper C++ library support
19284 case $cc_basename in
19286 # FIXME: insert proper C++ library support
19290 # FIXME: insert proper C++ library support
19297 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19298 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19300 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19301 hardcode_direct_CXX
=yes
19302 hardcode_shlibpath_var_CXX
=no
19304 # Workaround some broken pre-1.5 toolchains
19305 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19313 # C++ shared libraries are fairly broken
19318 if test -f /usr
/libexec
/ld.so
; then
19319 hardcode_direct_CXX
=yes
19320 hardcode_shlibpath_var_CXX
=no
19321 hardcode_direct_absolute_CXX
=yes
19322 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19323 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19325 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19326 export_dynamic_flag_spec_CXX
='${wl}-E'
19327 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19329 output_verbose_link_cmd
=func_echo_all
19335 osf3
* | osf4
* | osf5
*)
19336 case $cc_basename in
19338 # Kuck and Associates, Inc. (KAI) C++ Compiler
19340 # KCC will only create a shared library if the output file
19341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342 # to its proper name (with version) after linking.
19343 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'
19345 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19346 hardcode_libdir_separator_CXX
=:
19348 # Archives containing C++ object files must be created using
19349 # the KAI C++ compiler.
19351 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19352 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19356 # Rational C++ 2.4.1
19357 # FIXME: insert proper C++ library support
19363 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19364 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'
19365 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19368 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19369 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'
19370 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19371 echo "-hidden">> $lib.exp~
19372 $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~
19374 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19378 hardcode_libdir_separator_CXX
=:
19380 # Commands to make compiler produce verbose output that lists
19381 # what "hidden" libraries, object files and flags are used when
19382 # linking a shared library.
19384 # There doesn't appear to be a way to prevent this compiler from
19385 # explicitly linking system object files so we need to strip them
19386 # from the output so that they don't get included in the library
19388 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"'
19391 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19392 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19395 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'
19398 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'
19402 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19403 hardcode_libdir_separator_CXX
=:
19405 # Commands to make compiler produce verbose output that lists
19406 # what "hidden" libraries, object files and flags are used when
19407 # linking a shared library.
19408 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19411 # FIXME: insert proper C++ library support
19419 # FIXME: insert proper C++ library support
19424 case $cc_basename in
19427 # FIXME: insert proper C++ library support
19432 # FIXME: insert proper C++ library support
19436 # FIXME: insert proper C++ library support
19443 case $cc_basename in
19445 # Sun C++ 4.2, 5.x and Centerline C++
19446 archive_cmds_need_lc_CXX
=yes
19447 no_undefined_flag_CXX
=' -zdefs'
19448 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19449 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19450 $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'
19452 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19453 hardcode_shlibpath_var_CXX
=no
19455 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19457 # The compiler driver will combine and reorder linker options,
19458 # but understands `-z linker_flag'.
19459 # Supported since Solaris 2.6 (maybe 2.5.1?)
19460 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19463 link_all_deplibs_CXX
=yes
19465 output_verbose_link_cmd
='func_echo_all'
19467 # Archives containing C++ object files must be created using
19468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19469 # necessary to make sure instantiated templates are included
19471 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19474 # Green Hills C++ Compiler
19475 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19477 # The C++ compiler must be used to create the archive.
19478 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19481 # GNU C++ compiler with Solaris linker
19482 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19483 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19484 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19485 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19486 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19487 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19489 # Commands to make compiler produce verbose output that lists
19490 # what "hidden" libraries, object files and flags are used when
19491 # linking a shared library.
19492 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19494 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19496 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19497 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19498 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19500 # Commands to make compiler produce verbose output that lists
19501 # what "hidden" libraries, object files and flags are used when
19502 # linking a shared library.
19503 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19506 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19508 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19510 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19518 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19519 no_undefined_flag_CXX
='${wl}-z,text'
19520 archive_cmds_need_lc_CXX
=no
19521 hardcode_shlibpath_var_CXX
=no
19522 runpath_var
='LD_RUN_PATH'
19524 case $cc_basename in
19526 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19530 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19536 sysv5
* | sco3.2v5
* | sco5v6
*)
19537 # Note: We can NOT use -z defs as we might desire, because we do not
19538 # link with -lc, and that would cause any symbols used from libc to
19539 # always be unresolved, which means just about no library would
19540 # ever link correctly. If we're not using GNU ld we use -z text
19541 # though, which does catch some bad symbols but isn't as heavy-handed
19543 no_undefined_flag_CXX
='${wl}-z,text'
19544 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19545 archive_cmds_need_lc_CXX
=no
19546 hardcode_shlibpath_var_CXX
=no
19547 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19548 hardcode_libdir_separator_CXX
=':'
19549 link_all_deplibs_CXX
=yes
19550 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19551 runpath_var
='LD_RUN_PATH'
19553 case $cc_basename in
19555 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19558 '"$old_archive_cmds_CXX"
19559 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19560 '"$reload_cmds_CXX"
19563 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19570 case $cc_basename in
19572 # NonStop-UX NCC 3.20
19573 # FIXME: insert proper C++ library support
19577 # FIXME: insert proper C++ library support
19584 # FIXME: insert proper C++ library support
19589 # FIXME: insert proper C++ library support
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19595 $as_echo "$ld_shlibs_CXX" >&6; }
19596 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19602 ## There is no encapsulation within the following macros, do not change
19603 ## the running order or otherwise move them around unless you know exactly
19604 ## what you are doing...
19605 # Dependencies to place before and after the object being linked:
19606 predep_objects_CXX
=
19607 postdep_objects_CXX
=
19610 compiler_lib_search_path_CXX
=
19612 cat > conftest.
$ac_ext <<_LT_EOF
19616 Foo (void) { a = 0; }
19622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19623 (eval $ac_compile) 2>&5
19625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19626 test $ac_status = 0; }; then
19627 # Parse the compiler output and extract the necessary
19628 # objects, libraries and library flags.
19630 # Sentinel used to keep track of whether or not we are before
19631 # the conftest object file.
19632 pre_test_object_deps_done
=no
19634 for p
in `eval "$output_verbose_link_cmd"`; do
19638 # Some compilers place space between "-{L,R}" and the path.
19639 # Remove the space.
19640 if test $p = "-L" ||
19641 test $p = "-R"; then
19648 if test "$pre_test_object_deps_done" = no
; then
19651 # Internal compiler library paths should come after those
19652 # provided the user. The postdeps already come after the
19653 # user supplied libs so there is no need to process them.
19654 if test -z "$compiler_lib_search_path_CXX"; then
19655 compiler_lib_search_path_CXX
="${prev}${p}"
19657 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19660 # The "-l" case would never come before the object being
19661 # linked, so don't bother handling this case.
19664 if test -z "$postdeps_CXX"; then
19665 postdeps_CXX
="${prev}${p}"
19667 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19673 # This assumes that the test object file only shows up
19674 # once in the compiler output.
19675 if test "$p" = "conftest.$objext"; then
19676 pre_test_object_deps_done
=yes
19680 if test "$pre_test_object_deps_done" = no
; then
19681 if test -z "$predep_objects_CXX"; then
19682 predep_objects_CXX
="$p"
19684 predep_objects_CXX
="$predep_objects_CXX $p"
19687 if test -z "$postdep_objects_CXX"; then
19688 postdep_objects_CXX
="$p"
19690 postdep_objects_CXX
="$postdep_objects_CXX $p"
19695 *) ;; # Ignore the rest.
19703 echo "libtool.m4: error: problem compiling CXX test program"
19706 $RM -f confest.
$objext
19708 # PORTME: override above test on systems where it is broken
19711 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19712 # hack all around it, let's just trust "g++" to DTRT.
19713 predep_objects_CXX
=
19714 postdep_objects_CXX
=
19719 case `$CC -V 2>&1 | sed 5q` in
19723 # The more standards-conforming stlport4 library is
19724 # incompatible with the Cstd library. Avoid specifying
19725 # it if it's in CXXFLAGS. Ignore libCrun as
19726 # -library=stlport4 depends on it.
19727 case " $CXX $CXXFLAGS " in
19728 *" -library=stlport4 "*)
19729 solaris_use_stlport4
=yes
19733 if test "$solaris_use_stlport4" != yes; then
19734 postdeps_CXX
='-library=Cstd -library=Crun'
19741 case $cc_basename in
19743 # The more standards-conforming stlport4 library is
19744 # incompatible with the Cstd library. Avoid specifying
19745 # it if it's in CXXFLAGS. Ignore libCrun as
19746 # -library=stlport4 depends on it.
19747 case " $CXX $CXXFLAGS " in
19748 *" -library=stlport4 "*)
19749 solaris_use_stlport4
=yes
19753 # Adding this requires a known-good setup of shared libraries for
19754 # Sun compiler versions before 5.6, else PIC objects from an old
19755 # archive will be linked into the output, leading to subtle bugs.
19756 if test "$solaris_use_stlport4" != yes; then
19757 postdeps_CXX
='-library=Cstd -library=Crun'
19765 case " $postdeps_CXX " in
19766 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19768 compiler_lib_search_dirs_CXX
=
19769 if test -n "${compiler_lib_search_path_CXX}"; then
19770 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19803 lt_prog_compiler_wl_CXX
=
19804 lt_prog_compiler_pic_CXX
=
19805 lt_prog_compiler_static_CXX
=
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19808 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19810 # C++ specific cases for pic, static, wl, etc.
19811 if test "$GXX" = yes; then
19812 lt_prog_compiler_wl_CXX
='-Wl,'
19813 lt_prog_compiler_static_CXX
='-static'
19817 # All AIX code is PIC.
19818 if test "$host_cpu" = ia64
; then
19819 # AIX 5 now supports IA64 processor
19820 lt_prog_compiler_static_CXX
='-Bstatic'
19822 lt_prog_compiler_pic_CXX
='-fPIC'
19828 # see comment about AmigaOS4 .so support
19829 lt_prog_compiler_pic_CXX
='-fPIC'
19832 # FIXME: we need at least 68020 code to build shared libraries, but
19833 # adding the `-m68020' flag to GCC prevents building anything better,
19835 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19840 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19841 # PIC is the default for these OSes.
19843 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19844 # This hack is so that the source file can tell whether it is being
19845 # built for inclusion in a dll (and should export symbols for example).
19846 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19847 # (--disable-auto-import) libraries
19848 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19850 darwin
* | rhapsody
*)
19851 # PIC is the default on this platform
19852 # Common symbols not allowed in MH_DYLIB files
19853 lt_prog_compiler_pic_CXX
='-fno-common'
19856 # DJGPP does not support shared libraries at all
19857 lt_prog_compiler_pic_CXX
=
19860 # PIC is the default for Haiku.
19861 # The "-static" flag exists, but is broken.
19862 lt_prog_compiler_static_CXX
=
19865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19866 # Instead, we relocate shared libraries at runtime.
19869 if test -d /usr
/nec
; then
19870 lt_prog_compiler_pic_CXX
=-Kconform_pic
19874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19876 # sets the default TLS model and affects inlining.
19881 lt_prog_compiler_pic_CXX
='-fPIC'
19886 # QNX uses GNU C++, but need to define -shared option too, otherwise
19887 # it will coredump.
19888 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19891 lt_prog_compiler_pic_CXX
='-fPIC'
19897 # All AIX code is PIC.
19898 if test "$host_cpu" = ia64
; then
19899 # AIX 5 now supports IA64 processor
19900 lt_prog_compiler_static_CXX
='-Bstatic'
19902 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19906 case $cc_basename in
19908 # Green Hills C++ Compiler
19909 # _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"
19914 case $cc_basename in
19916 lt_prog_compiler_pic_CXX
='-KPIC'
19919 # Green Hills C++ Compiler
19920 lt_prog_compiler_pic_CXX
='-pic'
19926 freebsd
* | dragonfly
*)
19927 # FreeBSD uses GNU C++
19929 hpux9
* | hpux10
* | hpux11
*)
19930 case $cc_basename in
19932 lt_prog_compiler_wl_CXX
='-Wl,'
19933 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19934 if test "$host_cpu" != ia64
; then
19935 lt_prog_compiler_pic_CXX
='+Z'
19939 lt_prog_compiler_wl_CXX
='-Wl,'
19940 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19946 lt_prog_compiler_pic_CXX
='+Z'
19955 # This is c89, which is MS Visual C++ (no shared libs)
19956 # Anyone wants to do a port?
19958 irix5
* | irix6
* | nonstopux
*)
19959 case $cc_basename in
19961 lt_prog_compiler_wl_CXX
='-Wl,'
19962 lt_prog_compiler_static_CXX
='-non_shared'
19963 # CC pic flag -KPIC is the default.
19969 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19970 case $cc_basename in
19973 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19974 lt_prog_compiler_pic_CXX
='-fPIC'
19977 # old Intel C++ for x86_64 which still supported -KPIC.
19978 lt_prog_compiler_wl_CXX
='-Wl,'
19979 lt_prog_compiler_pic_CXX
='-KPIC'
19980 lt_prog_compiler_static_CXX
='-static'
19983 # Intel C++, used to be incompatible with GCC.
19984 # ICC 10 doesn't accept -KPIC any more.
19985 lt_prog_compiler_wl_CXX
='-Wl,'
19986 lt_prog_compiler_pic_CXX
='-fPIC'
19987 lt_prog_compiler_static_CXX
='-static'
19990 # Portland Group C++ compiler
19991 lt_prog_compiler_wl_CXX
='-Wl,'
19992 lt_prog_compiler_pic_CXX
='-fpic'
19993 lt_prog_compiler_static_CXX
='-Bstatic'
19997 # Make sure the PIC flag is empty. It appears that all Alpha
19998 # Linux and Compaq Tru64 Unix objects are PIC.
19999 lt_prog_compiler_pic_CXX
=
20000 lt_prog_compiler_static_CXX
='-non_shared'
20002 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20003 # IBM XL 8.0, 9.0 on PPC and BlueGene
20004 lt_prog_compiler_wl_CXX
='-Wl,'
20005 lt_prog_compiler_pic_CXX
='-qpic'
20006 lt_prog_compiler_static_CXX
='-qstaticlink'
20009 case `$CC -V 2>&1 | sed 5q` in
20012 lt_prog_compiler_pic_CXX
='-KPIC'
20013 lt_prog_compiler_static_CXX
='-Bstatic'
20014 lt_prog_compiler_wl_CXX
='-Qoption ld '
20025 case $cc_basename in
20027 lt_prog_compiler_pic_CXX
='-W c,exportall'
20036 # QNX uses GNU C++, but need to define -shared option too, otherwise
20037 # it will coredump.
20038 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20040 osf3
* | osf4
* | osf5
*)
20041 case $cc_basename in
20043 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20046 # Rational C++ 2.4.1
20047 lt_prog_compiler_pic_CXX
='-pic'
20050 # Digital/Compaq C++
20051 lt_prog_compiler_wl_CXX
='-Wl,'
20052 # Make sure the PIC flag is empty. It appears that all Alpha
20053 # Linux and Compaq Tru64 Unix objects are PIC.
20054 lt_prog_compiler_pic_CXX
=
20055 lt_prog_compiler_static_CXX
='-non_shared'
20064 case $cc_basename in
20066 # Sun C++ 4.2, 5.x and Centerline C++
20067 lt_prog_compiler_pic_CXX
='-KPIC'
20068 lt_prog_compiler_static_CXX
='-Bstatic'
20069 lt_prog_compiler_wl_CXX
='-Qoption ld '
20072 # Green Hills C++ Compiler
20073 lt_prog_compiler_pic_CXX
='-PIC'
20080 case $cc_basename in
20083 lt_prog_compiler_pic_CXX
='-pic'
20084 lt_prog_compiler_static_CXX
='-Bstatic'
20088 lt_prog_compiler_pic_CXX
='-pic'
20094 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20095 case $cc_basename in
20097 lt_prog_compiler_wl_CXX
='-Wl,'
20098 lt_prog_compiler_pic_CXX
='-KPIC'
20099 lt_prog_compiler_static_CXX
='-Bstatic'
20104 case $cc_basename in
20106 # NonStop-UX NCC 3.20
20107 lt_prog_compiler_pic_CXX
='-KPIC'
20116 lt_prog_compiler_can_build_shared_CXX
=no
20122 # For platforms which do not support PIC, -DPIC is meaningless:
20124 lt_prog_compiler_pic_CXX
=
20127 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20131 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20136 # Check to make sure the PIC flag actually works.
20138 if test -n "$lt_prog_compiler_pic_CXX"; then
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20140 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20141 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20142 $as_echo_n "(cached) " >&6
20144 lt_cv_prog_compiler_pic_works_CXX
=no
20145 ac_outfile
=conftest.
$ac_objext
20146 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20147 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20148 # Insert the option either (1) after the last *FLAGS variable, or
20149 # (2) before a word containing "conftest.", or (3) at the end.
20150 # Note that $ac_compile itself does not contain backslashes and begins
20151 # with a dollar sign (not a hyphen), so the echo should work correctly.
20152 # The option is referenced via a variable to avoid confusing sed.
20153 lt_compile
=`echo "$ac_compile" | $SED \
20154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20156 -e 's:$: $lt_compiler_flag:'`
20157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20158 (eval "$lt_compile" 2>conftest.err
)
20160 cat conftest.err
>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 if (exit $ac_status) && test -s "$ac_outfile"; then
20163 # The compiler can only warn and ignore the option if not recognized
20164 # So say no if there are warnings other than the usual output.
20165 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20166 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20167 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20168 lt_cv_prog_compiler_pic_works_CXX
=yes
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20175 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20177 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20178 case $lt_prog_compiler_pic_CXX in
20180 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20183 lt_prog_compiler_pic_CXX
=
20184 lt_prog_compiler_can_build_shared_CXX
=no
20192 # Check to make sure the static flag actually works.
20194 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20196 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20197 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20198 $as_echo_n "(cached) " >&6
20200 lt_cv_prog_compiler_static_works_CXX
=no
20201 save_LDFLAGS
="$LDFLAGS"
20202 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20203 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20204 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20205 # The linker can only warn and ignore the option if not recognized
20206 # So say no if there are warnings
20207 if test -s conftest.err
; then
20208 # Append any errors to the config.log.
20209 cat conftest.err
1>&5
20210 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20211 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20212 if diff conftest.exp conftest.er2
>/dev
/null
; then
20213 lt_cv_prog_compiler_static_works_CXX
=yes
20216 lt_cv_prog_compiler_static_works_CXX
=yes
20220 LDFLAGS
="$save_LDFLAGS"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20224 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20226 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20229 lt_prog_compiler_static_CXX
=
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20237 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20238 $as_echo_n "(cached) " >&6
20240 lt_cv_prog_compiler_c_o_CXX
=no
20241 $RM -r conftest
2>/dev
/null
20245 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20247 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20248 # Insert the option either (1) after the last *FLAGS variable, or
20249 # (2) before a word containing "conftest.", or (3) at the end.
20250 # Note that $ac_compile itself does not contain backslashes and begins
20251 # with a dollar sign (not a hyphen), so the echo should work correctly.
20252 lt_compile
=`echo "$ac_compile" | $SED \
20253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20255 -e 's:$: $lt_compiler_flag:'`
20256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20257 (eval "$lt_compile" 2>out
/conftest.err
)
20259 cat out
/conftest.err
>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20263 # The compiler can only warn and ignore the option if not recognized
20264 # So say no if there are warnings
20265 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20266 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20267 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20268 lt_cv_prog_compiler_c_o_CXX
=yes
20273 # SGI C++ compiler will create directory out/ii_files/ for
20274 # template instantiation
20275 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20276 $RM out
/* && rmdir out
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20283 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20289 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20292 lt_cv_prog_compiler_c_o_CXX
=no
20293 $RM -r conftest
2>/dev
/null
20297 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20299 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20300 # Insert the option either (1) after the last *FLAGS variable, or
20301 # (2) before a word containing "conftest.", or (3) at the end.
20302 # Note that $ac_compile itself does not contain backslashes and begins
20303 # with a dollar sign (not a hyphen), so the echo should work correctly.
20304 lt_compile
=`echo "$ac_compile" | $SED \
20305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20307 -e 's:$: $lt_compiler_flag:'`
20308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20309 (eval "$lt_compile" 2>out
/conftest.err
)
20311 cat out
/conftest.err
>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20315 # The compiler can only warn and ignore the option if not recognized
20316 # So say no if there are warnings
20317 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20318 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20319 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20320 lt_cv_prog_compiler_c_o_CXX
=yes
20325 # SGI C++ compiler will create directory out/ii_files/ for
20326 # template instantiation
20327 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20328 $RM out
/* && rmdir out
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20340 hard_links
="nottested"
20341 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20342 # do not overwrite the value of need_locks provided by the user
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20344 $as_echo_n "checking if we can lock with hard links... " >&6; }
20347 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20349 ln conftest.a conftest.b
2>&5 || hard_links
=no
20350 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20352 $as_echo "$hard_links" >&6; }
20353 if test "$hard_links" = no
; then
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20355 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20365 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20367 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20370 # If we're using GNU nm, then we don't want the "-C" option.
20371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20372 # Also, AIX nm treats weak defined symbols like other global defined
20373 # symbols, whereas GNU nm marks them as "W".
20374 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20375 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'
20377 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'
20381 export_symbols_cmds_CXX
="$ltdll_cmds"
20383 cygwin
* | mingw
* | cegcc
*)
20384 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'
20387 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20390 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20393 $as_echo "$ld_shlibs_CXX" >&6; }
20394 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20396 with_gnu_ld_CXX
=$with_gnu_ld
20404 # Do we need to explicitly link libc?
20406 case "x$archive_cmds_need_lc_CXX" in
20408 # Assume -lc should be added
20409 archive_cmds_need_lc_CXX
=yes
20411 if test "$enable_shared" = yes && test "$GCC" = yes; then
20412 case $archive_cmds_CXX in
20414 # FIXME: we may have to deal with multi-command sequences.
20417 # Test whether the compiler implicitly links with -lc since on some
20418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20419 # to ld, don't add -lc before -lgcc.
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20421 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20422 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20423 $as_echo_n "(cached) " >&6
20426 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20429 (eval $ac_compile) 2>&5
20431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20432 test $ac_status = 0; } 2>conftest.err
; then
20435 libobjs
=conftest.
$ac_objext
20437 wl
=$lt_prog_compiler_wl_CXX
20438 pic_flag
=$lt_prog_compiler_pic_CXX
20444 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20445 allow_undefined_flag_CXX
=
20446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20447 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20450 test $ac_status = 0; }
20452 lt_cv_archive_cmds_need_lc_CXX
=no
20454 lt_cv_archive_cmds_need_lc_CXX
=yes
20456 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20458 cat conftest.err
1>&5
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20464 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20465 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20536 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20538 library_names_spec
=
20539 libname_spec
='lib$name'
20543 postuninstall_cmds
=
20547 shlibpath_overrides_runpath
=unknown
20549 dynamic_linker
="$host_os ld.so"
20550 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20551 need_lib_prefix
=unknown
20552 hardcode_into_libs
=no
20554 # when you set need_version to no, make sure it does not cause -set_version
20555 # flags to be left without arguments
20556 need_version
=unknown
20561 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20562 shlibpath_var
=LIBPATH
20564 # AIX 3 has no versioning support, so we append a major version to the name.
20565 soname_spec
='${libname}${release}${shared_ext}$major'
20572 hardcode_into_libs
=yes
20573 if test "$host_cpu" = ia64
; then
20574 # AIX 5 supports IA64
20575 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20576 shlibpath_var
=LD_LIBRARY_PATH
20578 # With GCC up to 2.95.x, collect2 would create an import file
20579 # for dependence libraries. The import file would start with
20580 # the line `#! .'. This would cause the generated library to
20581 # depend on `.', always an invalid library. This was fixed in
20582 # development snapshots of GCC prior to 3.0.
20584 aix4 | aix4.
[01] | aix4.
[01].
*)
20585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20587 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20590 can_build_shared
=no
20594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20595 # soname into executable. Probably we can add versioning support to
20596 # collect2, so additional links can be useful in future.
20597 if test "$aix_use_runtimelinking" = yes; then
20598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20599 # instead of lib<name>.a to let people know that these are not
20600 # typical AIX shared libraries.
20601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20603 # We preserve .a as extension for shared libraries through AIX4.2
20604 # and later when we are not doing run time linking.
20605 library_names_spec
='${libname}${release}.a $libname.a'
20606 soname_spec
='${libname}${release}${shared_ext}$major'
20608 shlibpath_var
=LIBPATH
20615 # Since July 2007 AmigaOS4 officially supports .so libraries.
20616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 library_names_spec
='$libname.ixlibrary $libname.a'
20621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20622 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'
20628 library_names_spec
='${libname}${shared_ext}'
20629 dynamic_linker
="$host_os ld.so"
20630 shlibpath_var
=LIBRARY_PATH
20636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20637 soname_spec
='${libname}${release}${shared_ext}$major'
20638 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20639 shlibpath_var
=LD_LIBRARY_PATH
20640 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20641 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20642 # the default ld.so.conf also contains /usr/contrib/lib and
20643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20644 # libtool to hard-code these into programs
20647 cygwin
* | mingw
* | pw32
* | cegcc
*)
20648 version_type
=windows
20653 case $GCC,$host_os in
20654 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20655 library_names_spec
='$libname.dll.a'
20656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20657 postinstall_cmds
='base_file=`basename \${file}`~
20658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20659 dldir=$destdir/`dirname \$dlpath`~
20660 test -d \$dldir || mkdir -p \$dldir~
20661 $install_prog $dir/$dlname \$dldir/$dlname~
20662 chmod a+x \$dldir/$dlname~
20663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20666 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20667 dlpath=$dir/\$dldll~
20669 shlibpath_overrides_runpath
=yes
20673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20674 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20678 # MinGW DLLs use traditional 'lib' prefix
20679 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20682 # pw32 DLLs use 'pw' prefix rather than 'lib'
20683 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20689 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20692 dynamic_linker
='Win32 ld.exe'
20693 # FIXME: first we should search . and the directory the executable is in
20697 darwin
* | rhapsody
*)
20698 dynamic_linker
="$host_os dyld"
20699 version_type
=darwin
20702 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20703 soname_spec
='${libname}${release}${major}$shared_ext'
20704 shlibpath_overrides_runpath
=yes
20705 shlibpath_var
=DYLD_LIBRARY_PATH
20706 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20708 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20716 soname_spec
='${libname}${release}${shared_ext}$major'
20717 shlibpath_var
=LD_LIBRARY_PATH
20720 freebsd
* | dragonfly
*)
20721 # DragonFly does not have aout. When/if they implement a new
20722 # versioning mechanism, adjust this.
20723 if test -x /usr
/bin
/objformat
; then
20724 objformat
=`/usr/bin/objformat`
20727 freebsd
[23].
*) objformat
=aout
;;
20728 *) objformat
=elf
;;
20731 version_type
=freebsd-
$objformat
20732 case $version_type in
20734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20739 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20743 shlibpath_var
=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath
=yes
20748 freebsd3.
[01]* | freebsdelf3.
[01]*)
20749 shlibpath_overrides_runpath
=yes
20750 hardcode_into_libs
=yes
20752 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20753 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20754 shlibpath_overrides_runpath
=no
20755 hardcode_into_libs
=yes
20757 *) # from 4.6 on, and DragonFly
20758 shlibpath_overrides_runpath
=yes
20759 hardcode_into_libs
=yes
20768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20769 soname_spec
='${libname}${release}${shared_ext}$major'
20770 shlibpath_var
=LD_LIBRARY_PATH
20771 hardcode_into_libs
=yes
20778 dynamic_linker
="$host_os runtime_loader"
20779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20780 soname_spec
='${libname}${release}${shared_ext}$major'
20781 shlibpath_var
=LIBRARY_PATH
20782 shlibpath_overrides_runpath
=yes
20783 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20784 hardcode_into_libs
=yes
20787 hpux9
* | hpux10
* | hpux11
*)
20788 # Give a soname corresponding to the major version so that dld.sl refuses to
20789 # link against other versions.
20796 hardcode_into_libs
=yes
20797 dynamic_linker
="$host_os dld.so"
20798 shlibpath_var
=LD_LIBRARY_PATH
20799 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801 soname_spec
='${libname}${release}${shared_ext}$major'
20802 if test "X$HPUX_IA64_MODE" = X32
; then
20803 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20805 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20807 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20811 hardcode_into_libs
=yes
20812 dynamic_linker
="$host_os dld.sl"
20813 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20814 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20816 soname_spec
='${libname}${release}${shared_ext}$major'
20817 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20818 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20822 dynamic_linker
="$host_os dld.sl"
20823 shlibpath_var
=SHLIB_PATH
20824 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec
='${libname}${release}${shared_ext}$major'
20829 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20830 postinstall_cmds
='chmod 555 $lib'
20831 # or fails outright, so override atomically:
20832 install_override_mode
=555
20839 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20840 soname_spec
='${libname}${release}${shared_ext}$major'
20841 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20842 shlibpath_var
=LD_LIBRARY_PATH
20843 shlibpath_overrides_runpath
=no
20844 hardcode_into_libs
=yes
20847 irix5
* | irix6
* | nonstopux
*)
20849 nonstopux
*) version_type
=nonstopux
;;
20851 if test "$lt_cv_prog_gnu_ld" = yes; then
20859 soname_spec
='${libname}${release}${shared_ext}$major'
20860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20862 irix5
* | nonstopux
*)
20863 libsuff
= shlibsuff
=
20866 case $LD in # libtool.m4 will add one of these switches to LD
20867 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20868 libsuff
= shlibsuff
= libmagic
=32-bit;;
20869 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20870 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20871 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20872 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20873 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20877 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20878 shlibpath_overrides_runpath
=no
20879 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20880 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20881 hardcode_into_libs
=yes
20884 # No shared lib support for Linux oldld, aout, or coff.
20885 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20889 # This must be Linux ELF.
20890 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20895 soname_spec
='${libname}${release}${shared_ext}$major'
20896 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20897 shlibpath_var
=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath
=no
20900 # Some binutils ld are patched to set DT_RUNPATH
20901 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20902 $as_echo_n "(cached) " >&6
20904 lt_cv_shlibpath_overrides_runpath
=no
20905 save_LDFLAGS
=$LDFLAGS
20906 save_libdir
=$libdir
20907 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20908 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20920 if ac_fn_cxx_try_link
"$LINENO"; then :
20921 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20922 lt_cv_shlibpath_overrides_runpath
=yes
20925 rm -f core conftest.err conftest.
$ac_objext \
20926 conftest
$ac_exeext conftest.
$ac_ext
20927 LDFLAGS
=$save_LDFLAGS
20928 libdir
=$save_libdir
20932 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20934 # This implies no fast_install, which is unacceptable.
20935 # Some rework will be needed to allow for fast_install
20936 # before this can be enabled.
20937 hardcode_into_libs
=yes
20939 # Append ld.so.conf contents to the search path
20940 if test -f /etc
/ld.so.conf
; then
20941 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' ' '`
20942 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20945 # We used to test for /lib/ld.so.1 and disable shared libraries on
20946 # powerpc, because MkLinux only supported shared libraries with the
20947 # GNU dynamic linker. Since this was broken with cross compilers,
20948 # most powerpc-linux boxes support dynamic linking these days and
20949 # people can always --disable-shared, the test was removed, and we
20950 # assume the GNU/Linux dynamic linker is in use.
20951 dynamic_linker
='GNU/Linux ld.so'
20958 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20960 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20961 dynamic_linker
='NetBSD (a.out) ld.so'
20963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20964 soname_spec
='${libname}${release}${shared_ext}$major'
20965 dynamic_linker
='NetBSD ld.elf_so'
20967 shlibpath_var
=LD_LIBRARY_PATH
20968 shlibpath_overrides_runpath
=yes
20969 hardcode_into_libs
=yes
20974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20975 shlibpath_var
=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath
=yes
20983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20984 soname_spec
='${libname}${release}${shared_ext}$major'
20985 shlibpath_var
=LD_LIBRARY_PATH
20986 shlibpath_overrides_runpath
=no
20987 hardcode_into_libs
=yes
20988 dynamic_linker
='ldqnx.so'
20993 sys_lib_dlsearch_path_spec
="/usr/lib"
20995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20997 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20998 *) need_version
=no
;;
21000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21001 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21002 shlibpath_var
=LD_LIBRARY_PATH
21003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21005 openbsd2.
[89] | openbsd2.
[89].
*)
21006 shlibpath_overrides_runpath
=no
21009 shlibpath_overrides_runpath
=yes
21013 shlibpath_overrides_runpath
=yes
21018 libname_spec
='$name'
21021 library_names_spec
='$libname${shared_ext} $libname.a'
21022 dynamic_linker
='OS/2 ld.exe'
21023 shlibpath_var
=LIBPATH
21026 osf3
* | osf4
* | osf5
*)
21030 soname_spec
='${libname}${release}${shared_ext}$major'
21031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 shlibpath_var
=LD_LIBRARY_PATH
21033 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21034 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_overrides_runpath
=yes
21049 hardcode_into_libs
=yes
21050 # ldd complains unless libraries are executable
21051 postinstall_cmds
='chmod +x $lib'
21056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21057 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21058 shlibpath_var
=LD_LIBRARY_PATH
21059 shlibpath_overrides_runpath
=yes
21060 if test "$with_gnu_ld" = yes; then
21068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21069 soname_spec
='${libname}${release}${shared_ext}$major'
21070 shlibpath_var
=LD_LIBRARY_PATH
21071 case $host_vendor in
21073 shlibpath_overrides_runpath
=no
21075 runpath_var
=LD_RUN_PATH
21083 shlibpath_overrides_runpath
=no
21084 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21090 if test -d /usr
/nec
;then
21092 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21093 soname_spec
='$libname${shared_ext}.$major'
21094 shlibpath_var
=LD_LIBRARY_PATH
21098 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21099 version_type
=freebsd-elf
21102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21103 soname_spec
='${libname}${release}${shared_ext}$major'
21104 shlibpath_var
=LD_LIBRARY_PATH
21105 shlibpath_overrides_runpath
=yes
21106 hardcode_into_libs
=yes
21107 if test "$with_gnu_ld" = yes; then
21108 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21110 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21113 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21117 sys_lib_dlsearch_path_spec
='/usr/lib'
21121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 shlibpath_var
=LD_LIBRARY_PATH
21127 shlibpath_overrides_runpath
=no
21128 hardcode_into_libs
=yes
21133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21134 soname_spec
='${libname}${release}${shared_ext}$major'
21135 shlibpath_var
=LD_LIBRARY_PATH
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21143 $as_echo "$dynamic_linker" >&6; }
21144 test "$dynamic_linker" = no
&& can_build_shared
=no
21146 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21147 if test "$GCC" = yes; then
21148 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21151 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21152 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21154 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21155 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21196 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21197 hardcode_action_CXX
=
21198 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21199 test -n "$runpath_var_CXX" ||
21200 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21202 # We can hardcode non-existent directories.
21203 if test "$hardcode_direct_CXX" != no
&&
21204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21205 # have to relink, otherwise we might link with an installed library
21206 # when we should be linking with a yet-to-be-installed one
21207 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21208 test "$hardcode_minus_L_CXX" != no
; then
21209 # Linking always hardcodes the temporary library directory.
21210 hardcode_action_CXX
=relink
21212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21213 hardcode_action_CXX
=immediate
21216 # We cannot hardcode anything, or else we can only hardcode existing
21218 hardcode_action_CXX
=unsupported
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21221 $as_echo "$hardcode_action_CXX" >&6; }
21223 if test "$hardcode_action_CXX" = relink ||
21224 test "$inherit_rpath_CXX" = yes; then
21225 # Fast installation is not supported
21226 enable_fast_install
=no
21227 elif test "$shlibpath_overrides_runpath" = yes ||
21228 test "$enable_shared" = no
; then
21229 # Fast installation is not necessary
21230 enable_fast_install
=needless
21239 fi # test -n "$compiler"
21245 with_gnu_ld
=$lt_save_with_gnu_ld
21246 lt_cv_path_LDCXX
=$lt_cv_path_LD
21247 lt_cv_path_LD
=$lt_save_path_LD
21248 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21249 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21250 fi # test "$_lt_caught_CXX_error" != yes
21253 ac_cpp
='$CPP $CPPFLAGS'
21254 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21273 # Only expand once:
21279 # Identify the assembler which will work hand-in-glove with the newly
21280 # built GCC, so that we can examine its features. This is the assembler
21281 # which will be driven by the driver program.
21283 # If build != host, and we aren't building gas in-tree, we identify a
21284 # build->target assembler and hope that it will have the same features
21285 # as the host->target assembler we'll be using.
21286 gcc_cv_gas_major_version
=
21287 gcc_cv_gas_minor_version
=
21288 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21290 if test "${gcc_cv_as+set}" = set; then :
21294 if test -x "$DEFAULT_ASSEMBLER"; then
21295 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21296 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21297 && test -f ..
/gas
/Makefile \
21298 && test x
$build = x
$host; then
21299 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21300 elif test -x as
$build_exeext; then
21301 # Build using assembler in the current directory.
21302 gcc_cv_as
=.
/as
$build_exeext
21303 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21304 gcc_cv_as
="$AS_FOR_TARGET"
21306 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21307 set dummy
$AS_FOR_TARGET; ac_word
=$2
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21309 $as_echo_n "checking for $ac_word... " >&6; }
21310 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21311 $as_echo_n "(cached) " >&6
21315 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21319 for as_dir
in $PATH
21322 test -z "$as_dir" && as_dir
=.
21323 for ac_exec_ext
in '' $ac_executable_extensions; do
21324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21325 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21336 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21337 if test -n "$gcc_cv_as"; then
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21339 $as_echo "$gcc_cv_as" >&6; }
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21342 $as_echo "no" >&6; }
21349 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21351 case "$ORIGINAL_AS_FOR_TARGET" in
21352 .
/as | .
/as
$build_exeext) ;;
21353 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21358 $as_echo_n "checking what assembler to use... " >&6; }
21359 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21360 # Single tree build which includes gas. We want to prefer it
21361 # over whatever linker top-level may have detected, since
21362 # we'll use what we're building after installation anyway.
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21364 $as_echo "newly built gas" >&6; }
21366 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21367 for f
in $gcc_cv_as_bfd_srcdir/configure \
21368 $gcc_cv_as_gas_srcdir/configure \
21369 $gcc_cv_as_gas_srcdir/configure.
in \
21370 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21371 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21372 if test x
$gcc_cv_gas_version != x
; then
21376 case $gcc_cv_gas_version in
21378 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21380 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21381 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21382 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21383 case $gcc_cv_gas_patch_version in
21384 "") gcc_cv_gas_patch_version
="0" ;;
21386 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21387 + $gcc_cv_gas_minor_version \) \* 1000 \
21388 + $gcc_cv_gas_patch_version`
21390 in_tree_gas_is_elf
=no
21391 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21392 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21393 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21395 in_tree_gas_is_elf
=yes
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21399 $as_echo "$gcc_cv_as" >&6; }
21403 # Identify the linker which will work hand-in-glove with the newly
21404 # built GCC, so that we can examine its features. This is the linker
21405 # which will be driven by the driver program.
21407 # If build != host, and we aren't building gas in-tree, we identify a
21408 # build->target linker and hope that it will have the same features
21409 # as the host->target linker we'll be using.
21410 gcc_cv_gld_major_version
=
21411 gcc_cv_gld_minor_version
=
21412 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21413 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21415 if test "${gcc_cv_ld+set}" = set; then :
21419 if test -x "$DEFAULT_LINKER"; then
21420 gcc_cv_ld
="$DEFAULT_LINKER"
21421 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21422 && test -f ..
/ld
/Makefile \
21423 && test x
$build = x
$host; then
21424 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21425 elif test -x collect-ld
$build_exeext; then
21426 # Build using linker in the current directory.
21427 gcc_cv_ld
=.
/collect-ld
$build_exeext
21428 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21429 gcc_cv_ld
="$LD_FOR_TARGET"
21431 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21432 set dummy
$LD_FOR_TARGET; ac_word
=$2
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21434 $as_echo_n "checking for $ac_word... " >&6; }
21435 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21436 $as_echo_n "(cached) " >&6
21440 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21444 for as_dir
in $PATH
21447 test -z "$as_dir" && as_dir
=.
21448 for ac_exec_ext
in '' $ac_executable_extensions; do
21449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21461 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21462 if test -n "$gcc_cv_ld"; then
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467 $as_echo "no" >&6; }
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21475 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21476 # if the PLUGIN_LD is set ld-new, just have it as ld
21477 # as that is the installed named.
21478 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21479 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21480 PLUGIN_LD_SUFFIX
=ld
21483 # Check whether --with-plugin-ld was given.
21484 if test "${with_plugin_ld+set}" = set; then :
21485 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21486 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21487 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21493 cat >>confdefs.h
<<_ACEOF
21494 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21498 # Check to see if we are using gold instead of ld
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21500 $as_echo_n "checking whether we are using gold... " >&6; }
21502 if test x
$gcc_cv_ld != x
; then
21503 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21504 |
grep "GNU gold" > /dev
/null
; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21509 $as_echo "$ld_is_gold" >&6; }
21511 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21513 case "$ORIGINAL_LD_FOR_TARGET" in
21514 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21515 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21520 $as_echo_n "checking what linker to use... " >&6; }
21521 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21522 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21523 # Single tree build which includes ld. We want to prefer it
21524 # over whatever linker top-level may have detected, since
21525 # we'll use what we're building after installation anyway.
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21527 $as_echo "newly built ld" >&6; }
21529 in_tree_ld_is_elf
=no
21530 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21531 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21532 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21533 in_tree_ld_is_elf
=yes
21534 elif test "$ld_is_gold" = yes; then
21535 in_tree_ld_is_elf
=yes
21537 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
21539 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21540 if test x
$gcc_cv_gld_version != x
; then
21544 case $gcc_cv_gld_version in
21546 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21548 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21549 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21552 $as_echo "$gcc_cv_ld" >&6; }
21556 # Figure out what nm we will be using.
21557 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21558 if test "${gcc_cv_nm+set}" = set; then :
21562 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21563 && test -f ..
/binutils
/Makefile \
21564 && test x
$build = x
$host; then
21565 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21566 elif test -x nm
$build_exeext; then
21567 gcc_cv_nm
=.
/nm
$build_exeext
21568 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21569 gcc_cv_nm
="$NM_FOR_TARGET"
21571 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21572 set dummy
$NM_FOR_TARGET; ac_word
=$2
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21574 $as_echo_n "checking for $ac_word... " >&6; }
21575 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21576 $as_echo_n "(cached) " >&6
21580 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21584 for as_dir
in $PATH
21587 test -z "$as_dir" && as_dir
=.
21588 for ac_exec_ext
in '' $ac_executable_extensions; do
21589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21590 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21601 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21602 if test -n "$gcc_cv_nm"; then
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21604 $as_echo "$gcc_cv_nm" >&6; }
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21607 $as_echo "no" >&6; }
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21615 $as_echo_n "checking what nm to use... " >&6; }
21616 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21617 # Single tree build which includes binutils.
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21619 $as_echo "newly built nm" >&6; }
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21623 $as_echo "$gcc_cv_nm" >&6; }
21627 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21629 case "$ORIGINAL_NM_FOR_TARGET" in
21630 .
/nm | .
/nm
$build_exeext) ;;
21631 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21636 # Figure out what objdump we will be using.
21637 if test "${gcc_cv_objdump+set}" = set; then :
21641 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21642 && test -f ..
/binutils
/Makefile \
21643 && test x
$build = x
$host; then
21644 # Single tree build which includes binutils.
21645 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21646 elif test -x objdump
$build_exeext; then
21647 gcc_cv_objdump
=.
/objdump
$build_exeext
21648 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21649 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21651 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21652 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21654 $as_echo_n "checking for $ac_word... " >&6; }
21655 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21656 $as_echo_n "(cached) " >&6
21658 case $gcc_cv_objdump in
21660 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21664 for as_dir
in $PATH
21667 test -z "$as_dir" && as_dir
=.
21668 for ac_exec_ext
in '' $ac_executable_extensions; do
21669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21670 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21681 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21682 if test -n "$gcc_cv_objdump"; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21684 $as_echo "$gcc_cv_objdump" >&6; }
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21695 $as_echo_n "checking what objdump to use... " >&6; }
21696 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21697 # Single tree build which includes binutils.
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21699 $as_echo "newly built objdump" >&6; }
21700 elif test x
$gcc_cv_objdump = x
; then
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21702 $as_echo "not found" >&6; }
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21705 $as_echo "$gcc_cv_objdump" >&6; }
21708 # Figure out what readelf we will be using.
21709 if test "${gcc_cv_readelf+set}" = set; then :
21713 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21714 && test -f ..
/binutils
/Makefile \
21715 && test x
$build = x
$host; then
21716 # Single tree build which includes binutils.
21717 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21718 elif test -x readelf
$build_exeext; then
21719 gcc_cv_readelf
=.
/readelf
$build_exeext
21721 # Extract the first word of "readelf", so it can be a program name with args.
21722 set dummy readelf
; ac_word
=$2
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21724 $as_echo_n "checking for $ac_word... " >&6; }
21725 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21728 case $gcc_cv_readelf in
21730 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21734 for as_dir
in $PATH
21737 test -z "$as_dir" && as_dir
=.
21738 for ac_exec_ext
in '' $ac_executable_extensions; do
21739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21740 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21751 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21752 if test -n "$gcc_cv_readelf"; then
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21754 $as_echo "$gcc_cv_readelf" >&6; }
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21757 $as_echo "no" >&6; }
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21765 $as_echo_n "checking what readelf to use... " >&6; }
21766 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21767 # Single tree build which includes binutils.
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21769 $as_echo "newly built readelf" >&6; }
21770 elif test x
$gcc_cv_readelf = x
; then
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21772 $as_echo "not found" >&6; }
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21775 $as_echo "$gcc_cv_readelf" >&6; }
21778 # Figure out what assembler alignment features are present.
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21780 $as_echo_n "checking assembler flags... " >&6; }
21781 if test "${gcc_cv_as_flags+set}" = set; then :
21782 $as_echo_n "(cached) " >&6
21785 i
[34567]86-*-linux*)
21786 gcc_cv_as_flags
=--32
21788 x86_64-
*-linux-gnux32)
21789 gcc_cv_as_flags
=--x32
21792 gcc_cv_as_flags
=--64
21794 powerpc
*-*-darwin*)
21795 gcc_cv_as_flags
="-arch ppc"
21798 gcc_cv_as_flags
=" "
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21803 $as_echo "$gcc_cv_as_flags" >&6; }
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21806 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21807 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21808 $as_echo_n "(cached) " >&6
21810 gcc_cv_as_balign_and_p2align
=no
21811 if test $in_tree_gas = yes; then
21812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21813 then gcc_cv_as_balign_and_p2align
=yes
21815 elif test x
$gcc_cv_as != x
; then
21816 $as_echo '.balign 4
21817 .p2align 2' > conftest.s
21818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21820 (eval $ac_try) 2>&5
21822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21823 test $ac_status = 0; }; }
21825 gcc_cv_as_balign_and_p2align
=yes
21827 echo "configure: failed program was" >&5
21830 rm -f conftest.o conftest.s
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21834 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21835 if test $gcc_cv_as_balign_and_p2align = yes; then
21837 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21842 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21843 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21846 gcc_cv_as_max_skip_p2align
=no
21847 if test $in_tree_gas = yes; then
21848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21849 then gcc_cv_as_max_skip_p2align
=yes
21851 elif test x
$gcc_cv_as != x
; then
21852 $as_echo '.p2align 4,,7' > conftest.s
21853 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21855 (eval $ac_try) 2>&5
21857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21858 test $ac_status = 0; }; }
21860 gcc_cv_as_max_skip_p2align
=yes
21862 echo "configure: failed program was" >&5
21865 rm -f conftest.o conftest.s
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21869 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21870 if test $gcc_cv_as_max_skip_p2align = yes; then
21872 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21877 $as_echo_n "checking assembler for .literal16... " >&6; }
21878 if test "${gcc_cv_as_literal16+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21881 gcc_cv_as_literal16
=no
21882 if test $in_tree_gas = yes; then
21883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21884 then gcc_cv_as_literal16
=yes
21886 elif test x
$gcc_cv_as != x
; then
21887 $as_echo '.literal16' > conftest.s
21888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21895 gcc_cv_as_literal16
=yes
21897 echo "configure: failed program was" >&5
21900 rm -f conftest.o conftest.s
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21904 $as_echo "$gcc_cv_as_literal16" >&6; }
21905 if test $gcc_cv_as_literal16 = yes; then
21907 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21912 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21913 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21916 gcc_cv_as_subsection_m1
=no
21917 if test $in_tree_gas = yes; then
21918 if test $in_tree_gas_is_elf = yes \
21919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21920 then gcc_cv_as_subsection_m1
=yes
21922 elif test x
$gcc_cv_as != x
; then
21923 $as_echo 'conftest_label1: .word 0
21925 conftest_label2: .word 0
21926 .previous' > conftest.s
21927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21929 (eval $ac_try) 2>&5
21931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932 test $ac_status = 0; }; }
21934 if test x
$gcc_cv_nm != x
; then
21935 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21936 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21937 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21939 else gcc_cv_as_subsection_m1
=yes
21941 rm -f conftest.nm1 conftest.nm2
21944 echo "configure: failed program was" >&5
21947 rm -f conftest.o conftest.s
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21951 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21952 if test $gcc_cv_as_subsection_m1 = yes; then
21954 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21959 $as_echo_n "checking assembler for .weak... " >&6; }
21960 if test "${gcc_cv_as_weak+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21964 if test $in_tree_gas = yes; then
21965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21966 then gcc_cv_as_weak
=yes
21968 elif test x
$gcc_cv_as != x
; then
21969 $as_echo ' .weak foobar' > conftest.s
21970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972 (eval $ac_try) 2>&5
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; }
21979 echo "configure: failed program was" >&5
21982 rm -f conftest.o conftest.s
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21986 $as_echo "$gcc_cv_as_weak" >&6; }
21987 if test $gcc_cv_as_weak = yes; then
21989 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21994 $as_echo_n "checking assembler for .weakref... " >&6; }
21995 if test "${gcc_cv_as_weakref+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21998 gcc_cv_as_weakref
=no
21999 if test $in_tree_gas = yes; then
22000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22001 then gcc_cv_as_weakref
=yes
22003 elif test x
$gcc_cv_as != x
; then
22004 $as_echo ' .weakref foobar, barfnot' > conftest.s
22005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22007 (eval $ac_try) 2>&5
22009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22010 test $ac_status = 0; }; }
22012 gcc_cv_as_weakref
=yes
22014 echo "configure: failed program was" >&5
22017 rm -f conftest.o conftest.s
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22021 $as_echo "$gcc_cv_as_weakref" >&6; }
22022 if test $gcc_cv_as_weakref = yes; then
22024 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22029 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22030 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22033 gcc_cv_as_nsubspa_comdat
=no
22034 if test $in_tree_gas = yes; then
22035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22036 then gcc_cv_as_nsubspa_comdat
=yes
22038 elif test x
$gcc_cv_as != x
; then
22039 $as_echo ' .SPACE $TEXT$
22040 .NSUBSPA $CODE$,COMDAT' > conftest.s
22041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22043 (eval $ac_try) 2>&5
22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22046 test $ac_status = 0; }; }
22048 gcc_cv_as_nsubspa_comdat
=yes
22050 echo "configure: failed program was" >&5
22053 rm -f conftest.o conftest.s
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22057 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22058 if test $gcc_cv_as_nsubspa_comdat = yes; then
22060 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22064 # .hidden needs to be supported in both the assembler and the linker,
22065 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22066 # This is irritatingly difficult to feature test for; we have to check the
22067 # date string after the version number. If we've got an in-tree
22068 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22070 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22072 $as_echo_n "checking assembler for .hidden... " >&6; }
22073 if test "${gcc_cv_as_hidden+set}" = set; then :
22074 $as_echo_n "(cached) " >&6
22076 gcc_cv_as_hidden
=no
22077 if test $in_tree_gas = yes; then
22078 if test $in_tree_gas_is_elf = yes \
22079 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22080 then gcc_cv_as_hidden
=yes
22082 elif test x
$gcc_cv_as != x
; then
22083 $as_echo ' .hidden foobar
22084 foobar:' > conftest.s
22085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; }
22093 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22094 # STV_HIDDEN, so disable .hidden support if so.
22095 case "${target}" in
22096 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22097 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22098 cat > conftest.s
<<EOF
22103 .set default,hidden
22105 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22106 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22107 grep '\.hidden default' > /dev
/null
; then
22108 gcc_cv_as_hidden
=no
22110 gcc_cv_as_hidden
=yes
22113 # Assume bug is present if objdump is missing.
22114 gcc_cv_as_hidden
=no
22118 gcc_cv_as_hidden
=yes
22122 echo "configure: failed program was" >&5
22125 rm -f conftest.o conftest.s
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22129 $as_echo "$gcc_cv_as_hidden" >&6; }
22131 case "${target}" in
22133 # Darwin as has some visibility support, though with a different syntax.
22134 gcc_cv_as_hidden
=yes
22138 # gnu_indirect_function type is an extension proposed at
22139 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22140 # selection of function implementation
22141 # Check whether --enable-gnu-indirect-function was given.
22142 if test "${enable_gnu_indirect_function+set}" = set; then :
22143 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22145 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22146 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22149 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22153 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22155 cat >>confdefs.h
<<_ACEOF
22156 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22161 if test $in_tree_ld != yes ; then
22162 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22163 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22164 if test x
"$ld_is_gold" = xyes
; then
22165 # GNU gold --version looks like this:
22167 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22169 # We extract the binutils version which is more familiar and specific
22170 # than the gold version.
22171 ld_vers
=`echo $ld_ver | sed -n \
22172 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22174 # GNU ld --version looks like this:
22176 # GNU ld (GNU Binutils) 2.21.51.20110225
22177 ld_vers
=`echo $ld_ver | sed -n \
22178 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22180 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'`
22181 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22182 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22183 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22185 case "${target}" in
22187 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22190 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22191 # /usr/ccs/bin/ld has been configured.
22192 ld_ver
=`$gcc_cv_ld -V 2>&1`
22193 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22194 ld_vers
=`echo $ld_ver | sed -n \
22195 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22196 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22197 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22205 $as_echo_n "checking linker for .hidden support... " >&6; }
22206 if test "${gcc_cv_ld_hidden+set}" = set; then :
22207 $as_echo_n "(cached) " >&6
22209 if test $in_tree_ld = yes ; then
22210 gcc_cv_ld_hidden
=no
22211 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 \
22212 && test $in_tree_ld_is_elf = yes; then
22213 gcc_cv_ld_hidden
=yes
22216 gcc_cv_ld_hidden
=yes
22217 if test x
"$ld_is_gold" = xyes
; then
22219 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22220 case "${target}" in
22221 mmix-knuth-mmixware
)
22222 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22223 gcc_cv_ld_hidden
=no
22226 if test 0"$ld_date" -lt 20020404; then
22227 if test -n "$ld_date"; then
22228 # If there was date string, but was earlier than 2002-04-04, fail
22229 gcc_cv_ld_hidden
=no
22230 elif test -z "$ld_vers"; then
22231 # If there was no date string nor ld version number, something is wrong
22232 gcc_cv_ld_hidden
=no
22234 test -z "$ld_vers_patch" && ld_vers_patch
=0
22235 if test "$ld_vers_major" -lt 2; then
22236 gcc_cv_ld_hidden
=no
22237 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22238 gcc_cv_ld_hidden
="no"
22239 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22240 gcc_cv_ld_hidden
=no
22245 case "${target}" in
22247 # Darwin ld has some visibility support.
22248 gcc_cv_ld_hidden
=yes
22250 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22251 gcc_cv_ld_hidden
=yes
22253 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22254 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22255 # .symbolic was only added in Solaris 9 12/02.
22256 gcc_cv_ld_hidden
=yes
22259 gcc_cv_ld_hidden
=no
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22266 $as_echo "$gcc_cv_ld_hidden" >&6; }
22267 libgcc_visibility
=no
22270 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22271 libgcc_visibility
=yes
22273 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22278 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22279 gcc_cv_ld_ro_rw_mix
=unknown
22280 if test $in_tree_ld = yes ; then
22281 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 \
22282 && test $in_tree_ld_is_elf = yes; then
22283 gcc_cv_ld_ro_rw_mix
=read-write
22285 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22286 echo '.section myfoosect, "a"' > conftest1.s
22287 echo '.section myfoosect, "aw"' > conftest2.s
22288 echo '.byte 1' >> conftest2.s
22289 echo '.section myfoosect, "a"' > conftest3.s
22290 echo '.byte 0' >> conftest3.s
22291 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22292 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22293 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22294 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22295 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22296 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22297 | sed -e '/myfoosect/!d' -e N`
22298 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22299 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22300 gcc_cv_ld_ro_rw_mix
=read-only
22302 gcc_cv_ld_ro_rw_mix
=read-write
22306 rm -f conftest.
* conftest
[123].
*
22308 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22310 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22314 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22316 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22317 case "${target}" in
22320 # Solaris 2 ld -V output looks like this for a regular version:
22322 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22324 # but test versions add stuff at the end:
22326 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22328 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22329 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22330 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22331 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22332 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22333 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22339 # Check whether --enable-initfini-array was given.
22340 if test "${enable_initfini_array+set}" = set; then :
22341 enableval
=$enable_initfini_array;
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22345 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22346 if test "${gcc_cv_initfini_array+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22349 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22350 case "${target}" in
22352 if test "$cross_compiling" = yes; then :
22353 gcc_cv_initfini_array
=no
22355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22359 #error Not an ELF OS
22361 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22362 if it can be used. */
22364 int main (void) { return x; }
22365 int foo (void) { x = 0; }
22366 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22369 if ac_fn_c_try_run
"$LINENO"; then :
22370 gcc_cv_initfini_array
=yes
22372 gcc_cv_initfini_array
=no
22374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22379 gcc_cv_initfini_array
=no
22380 if test $in_tree_ld = yes ; then
22381 if test "$gcc_cv_gld_major_version" -eq 2 \
22382 -a "$gcc_cv_gld_minor_version" -ge 22 \
22383 -o "$gcc_cv_gld_major_version" -gt 2 \
22384 && test $in_tree_ld_is_elf = yes; then
22385 gcc_cv_initfini_array
=yes
22387 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22388 cat > conftest.s
<<\EOF
22389 .section .dtors
,"a",%progbits
22391 .byte
'A', 'A', 'A', 'A'
22392 .section .ctors
,"a",%progbits
22394 .byte
'B', 'B', 'B', 'B'
22395 .section .fini_array
.65530,"a",%progbits
22397 .byte
'C', 'C', 'C', 'C'
22398 .section .init_array
.65530,"a",%progbits
22400 .byte
'D', 'D', 'D', 'D'
22401 .section .dtors
.64528,"a",%progbits
22403 .byte
'E', 'E', 'E', 'E'
22404 .section .ctors
.64528,"a",%progbits
22406 .byte
'F', 'F', 'F', 'F'
22407 .section .fini_array
.01005,"a",%progbits
22409 .byte
'G', 'G', 'G', 'G'
22410 .section .init_array
.01005,"a",%progbits
22412 .byte
'H', 'H', 'H', 'H'
22417 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22418 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22419 && $gcc_cv_objdump -s -j .init_array conftest \
22420 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22421 && $gcc_cv_objdump -s -j .fini_array conftest \
22422 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22423 gcc_cv_initfini_array
=yes
22425 rm -f conftest conftest.
*
22427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22431 # error Not an ELF OS
22433 #include <stdlib.h>
22434 #if defined __GLIBC_PREREQ
22435 # if __GLIBC_PREREQ (2, 4)
22437 # error GLIBC 2.4 required
22440 # if defined __sun__ && defined __svr4__
22441 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22443 # error The C library not known to support .init_array/.fini_array
22448 if ac_fn_c_try_cpp
"$LINENO"; then :
22451 gcc_cv_initfini_array
=no
22453 rm -f conftest.err conftest.
$ac_ext;;
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22457 $as_echo_n "checking cross compile... guessing... " >&6; }
22458 gcc_cv_initfini_array
=no
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22462 $as_echo "$gcc_cv_initfini_array" >&6; }
22463 enable_initfini_array
=$gcc_cv_initfini_array
22467 if test $enable_initfini_array = yes; then
22469 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22473 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22475 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22476 if test "${gcc_cv_as_leb128+set}" = set; then :
22477 $as_echo_n "(cached) " >&6
22479 gcc_cv_as_leb128
=no
22480 if test $in_tree_gas = yes; then
22481 if test $in_tree_gas_is_elf = yes \
22482 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22483 then gcc_cv_as_leb128
=yes
22485 elif test x
$gcc_cv_as != x
; then
22492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22494 (eval $ac_try) 2>&5
22496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22497 test $ac_status = 0; }; }
22499 # GAS versions before 2.11 do not support uleb128,
22500 # despite appearing to.
22501 # ??? There exists an elf-specific test that will crash
22502 # the assembler. Perhaps it's better to figure out whether
22503 # arbitrary sections are supported and try the test.
22504 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22505 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22506 as_vers
=`echo $as_ver | sed -n \
22507 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22508 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22509 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22510 if test $as_major -eq 2 && test $as_minor -lt 11
22512 else gcc_cv_as_leb128
=yes
22516 echo "configure: failed program was" >&5
22519 rm -f conftest.o conftest.s
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22523 $as_echo "$gcc_cv_as_leb128" >&6; }
22524 if test $gcc_cv_as_leb128 = yes; then
22526 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22530 # Check if we have assembler support for unwind directives.
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22532 $as_echo_n "checking assembler for cfi directives... " >&6; }
22533 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22536 gcc_cv_as_cfi_directive
=no
22537 if test x
$gcc_cv_as != x
; then
22543 .cfi_escape 1, 2, 3, 4, 5
22544 .cfi_endproc' > conftest.s
22545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22547 (eval $ac_try) 2>&5
22549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22550 test $ac_status = 0; }; }
22554 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22555 # read-only and read-write sections, we need to make sure that the
22556 # assembler used emits read-write .eh_frame sections.
22557 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22558 if test "x$gcc_cv_objdump" != x
; then
22559 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22560 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22561 gcc_cv_as_cfi_directive
=no
22564 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22565 # On Solaris/x86, make sure that GCC and gas agree on using
22566 # read-only .eh_frame sections for 64-bit.
22567 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22568 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22569 sed -e /.eh_frame
/!d
-e N | \
22570 grep READONLY
> /dev
/null
; then
22571 gcc_cv_as_cfi_directive
=yes
22573 gcc_cv_as_cfi_directive
=no
22577 gcc_cv_as_cfi_directive
=yes
22582 # no objdump, err on the side of caution
22583 gcc_cv_as_cfi_directive
=no
22586 gcc_cv_as_cfi_directive
=yes
22590 gcc_cv_as_cfi_directive
=yes
22594 echo "configure: failed program was" >&5
22597 rm -f conftest.o conftest.s
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22601 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22603 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22605 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22606 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22609 gcc_cv_as_cfi_advance_working
=no
22610 if test x
$gcc_cv_as != x
; then
22613 .cfi_adjust_cfa_offset 64
22615 .cfi_adjust_cfa_offset 128
22616 .cfi_endproc' > conftest.s
22617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619 (eval $ac_try) 2>&5
22621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622 test $ac_status = 0; }; }
22625 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22626 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22627 gcc_cv_as_cfi_advance_working
=yes
22631 echo "configure: failed program was" >&5
22634 rm -f conftest.o conftest.s
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22638 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22641 # no objdump, err on the side of caution
22642 gcc_cv_as_cfi_advance_working
=no
22646 cat >>confdefs.h
<<_ACEOF
22647 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22648 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22654 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22655 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22658 gcc_cv_as_cfi_personality_directive
=no
22659 if test x
$gcc_cv_as != x
; then
22662 .cfi_personality 0, symbol
22663 .cfi_endproc' > conftest.s
22664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }
22671 gcc_cv_as_cfi_personality_directive
=yes
22673 echo "configure: failed program was" >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22680 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22683 cat >>confdefs.h
<<_ACEOF
22684 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22685 then echo 1; else echo 0; fi`
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22690 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22691 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22692 $as_echo_n "(cached) " >&6
22694 gcc_cv_as_cfi_sections_directive
=no
22695 if test x
$gcc_cv_as != x
; then
22697 .cfi_sections .debug_frame, .eh_frame
22699 .cfi_endproc' > conftest.s
22700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22702 (eval $ac_try) 2>&5
22704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22705 test $ac_status = 0; }; }
22708 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22709 # Need to check that we generated the correct relocation for the
22710 # .debug_frame section. This was fixed for binutils 2.21.
22711 gcc_cv_as_cfi_sections_directive
=no
22712 if test "x$gcc_cv_objdump" != x
; then
22713 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22714 grep secrel
> /dev
/null
; then
22715 gcc_cv_as_cfi_sections_directive
=yes
22720 gcc_cv_as_cfi_sections_directive
=yes
22724 echo "configure: failed program was" >&5
22727 rm -f conftest.o conftest.s
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22731 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22735 cat >>confdefs.h
<<_ACEOF
22736 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22737 then echo 1; else echo 0; fi`
22741 # GAS versions up to and including 2.11.0 may mis-optimize
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22744 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22745 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22746 $as_echo_n "(cached) " >&6
22748 gcc_cv_as_eh_frame
=no
22749 if test $in_tree_gas = yes; then
22750 if test $in_tree_gas_is_elf = yes \
22751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22752 then gcc_cv_as_eh_frame
=yes
22754 elif test x
$gcc_cv_as != x
; then
22761 .section .eh_frame,"aw",@progbits
22763 .4byte .LECIE1-.LSCIE1
22777 .4byte .LEFDE1-.LASFDE1
22779 .4byte .LASFDE1-__FRAME_BEGIN__
22786 .LEFDE1:' > conftest.s
22787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
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; }; }
22794 cat > conftest.lit
<<EOF
22795 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22796 0010 01000000 12000000 18000000 00000000 ................
22797 0020 08000000 04080000 0044 .........D
22799 cat > conftest.big
<<EOF
22800 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22801 0010 00000001 00000012 00000018 00000000 ................
22802 0020 00000008 04000000 0844 .........D
22804 # If the assembler didn't choke, and we can objdump,
22805 # and we got the correct data, then succeed.
22806 # The text in the here-document typically retains its unix-style line
22807 # endings, while the output of objdump will use host line endings.
22808 # Therefore, use diff -b for the comparisons.
22809 if test x
$gcc_cv_objdump != x \
22810 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22811 |
tail -3 > conftest.got \
22812 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22813 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22815 gcc_cv_as_eh_frame
=yes
22816 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22818 (eval $ac_try) 2>&5
22820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821 test $ac_status = 0; }; }; then
22822 gcc_cv_as_eh_frame
=buggy
22824 # Uh oh, what do we do now?
22825 gcc_cv_as_eh_frame
=no
22828 echo "configure: failed program was" >&5
22831 rm -f conftest.o conftest.s
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22835 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22838 if test $gcc_cv_as_eh_frame = buggy
; then
22840 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22845 $as_echo_n "checking assembler for section merging support... " >&6; }
22846 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22847 $as_echo_n "(cached) " >&6
22849 gcc_cv_as_shf_merge
=no
22850 if test $in_tree_gas = yes; then
22851 if test $in_tree_gas_is_elf = yes \
22852 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22853 then gcc_cv_as_shf_merge
=yes
22855 elif test x
$gcc_cv_as != x
; then
22856 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22859 (eval $ac_try) 2>&5
22861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22862 test $ac_status = 0; }; }
22864 gcc_cv_as_shf_merge
=yes
22866 echo "configure: failed program was" >&5
22869 rm -f conftest.o conftest.s
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22873 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22875 if test $gcc_cv_as_shf_merge = no
; then
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22877 $as_echo_n "checking assembler for section merging support... " >&6; }
22878 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22881 gcc_cv_as_shf_merge
=no
22882 if test $in_tree_gas = yes; then
22883 if test $in_tree_gas_is_elf = yes \
22884 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22885 then gcc_cv_as_shf_merge
=yes
22887 elif test x
$gcc_cv_as != x
; then
22888 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22891 (eval $ac_try) 2>&5
22893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22894 test $ac_status = 0; }; }
22896 gcc_cv_as_shf_merge
=yes
22898 echo "configure: failed program was" >&5
22901 rm -f conftest.o conftest.s
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22905 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22909 cat >>confdefs.h
<<_ACEOF
22910 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22915 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22916 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22917 $as_echo_n "(cached) " >&6
22919 gcc_cv_as_comdat_group
=no
22920 if test $in_tree_gas = yes; then
22921 if test $in_tree_gas_is_elf = yes \
22922 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22923 then gcc_cv_as_comdat_group
=yes
22925 elif test x
$gcc_cv_as != x
; then
22926 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22934 gcc_cv_as_comdat_group
=yes
22936 echo "configure: failed program was" >&5
22939 rm -f conftest.o conftest.s
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22943 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22945 if test $gcc_cv_as_comdat_group = yes; then
22946 gcc_cv_as_comdat_group_percent
=no
22947 gcc_cv_as_comdat_group_group
=no
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22950 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22951 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22954 gcc_cv_as_comdat_group_percent
=no
22955 if test $in_tree_gas = yes; then
22956 if test $in_tree_gas_is_elf = yes \
22957 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22958 then gcc_cv_as_comdat_group_percent
=yes
22960 elif test x
$gcc_cv_as != x
; then
22961 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22962 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22964 (eval $ac_try) 2>&5
22966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22967 test $ac_status = 0; }; }
22969 gcc_cv_as_comdat_group_percent
=yes
22971 echo "configure: failed program was" >&5
22974 rm -f conftest.o conftest.s
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22978 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22980 if test $gcc_cv_as_comdat_group_percent = yes; then
22981 gcc_cv_as_comdat_group_group
=no
22983 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22984 gcc_cv_as_comdat_group_group
=no
22986 case "${target}" in
22987 # Sun as uses a completely different syntax.
22989 case "${target}" in
22990 sparc
*-*-solaris2*)
22992 .group foo,".text%foo",#comdat
22993 .section ".text%foo", #alloc,#execinstr,#progbits
22998 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23000 .group foo,.text%foo,#comdat
23001 .section .text%foo, "ax", @progbits
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23008 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23009 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23012 gcc_cv_as_comdat_group_group
=no
23013 if test x
$gcc_cv_as != x
; then
23014 $as_echo "$conftest_s" > conftest.s
23015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23017 (eval $ac_try) 2>&5
23019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23020 test $ac_status = 0; }; }
23022 gcc_cv_as_comdat_group_group
=yes
23024 echo "configure: failed program was" >&5
23027 rm -f conftest.o conftest.s
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23031 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23037 if test x
"$ld_is_gold" = xyes
; then
23039 elif test $in_tree_ld = yes ; then
23041 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 \
23042 && test $in_tree_ld_is_elf = yes; then
23045 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23047 if test 0"$ld_date" -lt 20050308; then
23048 if test -n "$ld_date"; then
23049 # If there was date string, but was earlier than 2005-03-08, fail
23051 elif test "$ld_vers_major" -lt 2; then
23053 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23058 case "${target}" in
23059 *-*-solaris2.1
[1-9]*)
23061 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23062 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23065 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23066 # least ld version 1.2267.
23067 if test "$ld_vers_major" -gt 1; then
23069 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23071 elif test "$ld_vers_minor" -ge 2267; then
23076 # Assume linkers other than GNU ld don't support COMDAT group.
23081 # Allow overriding the automatic COMDAT group tests above.
23082 # Check whether --enable-comdat was given.
23083 if test "${enable_comdat+set}" = set; then :
23084 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23087 if test $comdat_group = no
; then
23088 gcc_cv_as_comdat_group
=no
23089 gcc_cv_as_comdat_group_percent
=no
23090 gcc_cv_as_comdat_group_group
=no
23093 cat >>confdefs.h
<<_ACEOF
23094 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23095 || test $gcc_cv_as_comdat_group_percent = yes \
23096 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23101 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23102 if test "${gcc_cv_as_discriminator+set}" = set; then :
23103 $as_echo_n "(cached) " >&6
23105 gcc_cv_as_discriminator
=no
23106 if test $in_tree_gas = yes; then
23107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23108 then gcc_cv_as_discriminator
=yes
23110 elif test x
$gcc_cv_as != x
; then
23113 .loc 1 1 0 discriminator 1' > conftest.s
23114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23116 (eval $ac_try) 2>&5
23118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23119 test $ac_status = 0; }; }
23121 gcc_cv_as_discriminator
=yes
23123 echo "configure: failed program was" >&5
23126 rm -f conftest.o conftest.s
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23130 $as_echo "$gcc_cv_as_discriminator" >&6; }
23131 if test $gcc_cv_as_discriminator = yes; then
23133 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23137 # Thread-local storage - the check is heavily parameterized.
23145 .section ".tdata","awT",@progbits
23148 ldq $27,__tls_get_addr($29) !literal!1
23149 lda $16,foo($29) !tlsgd!1
23150 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23151 ldq $27,__tls_get_addr($29) !literal!2
23152 lda $16,foo($29) !tlsldm!2
23153 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23154 ldq $1,foo($29) !gotdtprel
23155 ldah $2,foo($29) !dtprelhi
23156 lda $3,foo($2) !dtprello
23157 lda $4,foo($29) !dtprel
23158 ldq $1,foo($29) !gottprel
23159 ldah $2,foo($29) !tprelhi
23160 lda $3,foo($2) !tprello
23161 lda $4,foo($29) !tprel'
23164 tls_as_opt
=--fatal-warnings
23166 cris-
*-*|crisv32-
*-*)
23168 .section ".tdata","awT",@progbits
23175 tls_as_opt
=--fatal-warnings
23179 .section ".tdata","awT",@progbits
23182 call #gettlsoff(x)'
23191 .section ".tdata","awT",@progbits
23195 addil LT%foo-$tls_gdidx$,gp
23196 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23199 addil LT%foo-$tls_ldidx$,gp
23201 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23202 addil LR%foo-$tls_dtpoff$,%ret0
23203 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23205 addil LT%foo-$tls_ieoff$,gp
23206 ldw RT%foo-$tls_ieoff$(%r1),%t2
23209 addil LR%foo-$tls_leoff$,%t1
23210 ldo RR%foo-$tls_leoff$(%r1),%t2'
23213 tls_as_opt
=--fatal-warnings
23217 .section ".tdata","awT",%progbits
23220 .word foo(gottpoff)
23228 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23230 i
[34567]86-*-solaris2.
*)
23232 tga_func
=___tls_get_addr
23234 x86_64-
*-solaris2.1
[0-9]*)
23236 tga_func
=__tls_get_addr
23242 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23244 .section .tdata,"awt",@progbits'
23248 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23252 .section ".tdata","awT",@progbits'
23255 tls_as_opt
="--fatal-warnings"
23257 conftest_s
="$conftest_s
23261 leal foo@tlsgd(,%ebx,1), %eax
23262 leal foo@tlsldm(%ebx), %eax
23263 leal foo@dtpoff(%eax), %edx
23264 movl foo@gottpoff(%ebx), %eax
23265 subl foo@gottpoff(%ebx), %eax
23266 addl foo@gotntpoff(%ebx), %eax
23267 movl foo@indntpoff, %eax
23268 movl \$foo@tpoff, %eax
23269 subl \$foo@tpoff, %eax
23270 leal foo@ntpoff(%ecx), %eax"
23274 .section ".tdata","awT",@progbits
23278 leaq foo@TLSGD(%rip), %rdi
23279 leaq foo@TLSLD(%rip), %rdi
23280 leaq foo@DTPOFF(%rax), %rdx
23281 movq foo@GOTTPOFF(%rip), %rax
23282 movq $foo@TPOFF, %rax'
23285 tls_as_opt
=--fatal-warnings
23289 .section ".tdata","awT",@progbits
23292 addl r16 = @ltoff(@dtpmod(foo#)), gp
23293 addl r17 = @ltoff(@dtprel(foo#)), gp
23294 addl r18 = @ltoff(@tprel(foo#)), gp
23295 addl r19 = @dtprel(foo#), gp
23296 adds r21 = @dtprel(foo#), r13
23297 movl r23 = @dtprel(foo#)
23298 addl r20 = @tprel(foo#), gp
23299 adds r22 = @tprel(foo#), r13
23300 movl r24 = @tprel(foo#)'
23303 tls_as_opt
=--fatal-warnings
23307 .section .tdata,"awT",@progbits
23311 addik r5,r20,x@TLSGD
23312 addik r5,r20,x@TLSLDM'
23315 tls_as_opt
='--fatal-warnings'
23319 .section .tdata,"awT",@progbits
23323 addiu $4, $28, %tlsgd(x)
23324 addiu $4, $28, %tlsldm(x)
23325 lui $4, %dtprel_hi(x)
23326 addiu $4, $4, %dtprel_lo(x)
23327 lw $4, %gottprel(x)($28)
23328 lui $4, %tprel_hi(x)
23329 addiu $4, $4, %tprel_lo(x)'
23332 tls_as_opt
='-32 --fatal-warnings'
23336 .section .tdata,"awT",@progbits
23341 move.l x@TLSGD(%a5),%a0
23342 move.l x@TLSLDM(%a5),%a0
23343 move.l x@TLSLDO(%a5),%a0
23344 move.l x@TLSIE(%a5),%a0
23345 move.l x@TLSLE(%a5),%a0'
23348 tls_as_opt
='--fatal-warnings'
23352 .section ".tdata","awT",%progbits
23356 add x0, x0, #:tlsgd_lo12:x
23361 tls_as_opt
='--fatal-warnings'
23365 .extern __get_tpointer
23383 .section ".tdata","awT",@progbits
23391 addi 3,2,ld0@got@tlsgd
23397 addi 3,2,x1@got@tlsld
23403 addis 9,3,x2@dtprel@ha
23404 addi 9,9,x2@dtprel@l
23407 ld 9,x3@got@dtprel(2)
23413 tls_as_opt
="-a64 --fatal-warnings"
23417 .section ".tdata","awT",@progbits
23425 addi 3,31,ld0@got@tlsgd
23427 addi 3,31,x1@got@tlsld
23430 addis 9,3,x2@dtprel@ha
23431 addi 9,9,x2@dtprel@l
23432 lwz 9,x3@got@tprel(31)
23435 addis 9,2,x2@tprel@ha
23436 addi 9,9,x2@tprel@l'
23439 tls_as_opt
="-a32 --fatal-warnings"
23443 .section ".tdata","awT",@progbits
23450 .long foo@GOTNTPOFF
23451 .long foo@INDNTPOFF
23452 l %r1,foo@GOTNTPOFF(%r12)
23453 l %r1,0(%r1):tls_load:foo
23454 bas %r14,0(%r1,%r13):tls_gdcall:foo
23455 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23458 tls_as_opt
="-m31 --fatal-warnings"
23462 .section ".tdata","awT",@progbits
23469 .quad foo@GOTNTPOFF
23470 lg %r1,foo@GOTNTPOFF(%r12)
23471 larl %r1,foo@INDNTPOFF
23472 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23473 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23476 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23478 sh-
*-* | sh
[34]-*-*)
23480 .section ".tdata","awT",@progbits
23490 tls_as_opt
=--fatal-warnings
23494 sparc
*-sun-solaris2.
*)
23496 tga_func
=__tls_get_addr
23502 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23504 .section ".tdata",#alloc,#write,#tls'
23509 .section ".tdata","awT",@progbits'
23512 tls_as_opt
="-32 --fatal-warnings"
23514 conftest_s
="$conftest_s
23517 sethi %tgd_hi22(foo), %o0
23518 add %o0, %tgd_lo10(foo), %o1
23519 add %l7, %o1, %o0, %tgd_add(foo)
23520 call __tls_get_addr, %tgd_call(foo)
23521 sethi %tldm_hi22(foo), %l1
23522 add %l1, %tldm_lo10(foo), %l2
23523 add %l7, %l2, %o0, %tldm_add(foo)
23524 call __tls_get_addr, %tldm_call(foo)
23525 sethi %tldo_hix22(foo), %l3
23526 xor %l3, %tldo_lox10(foo), %l4
23527 add %o0, %l4, %l5, %tldo_add(foo)
23528 sethi %tie_hi22(foo), %o3
23529 add %o3, %tie_lo10(foo), %o3
23530 ld [%l7 + %o3], %o2, %tie_ld(foo)
23531 add %g7, %o2, %o4, %tie_add(foo)
23532 sethi %tle_hix22(foo), %l1
23533 xor %l1, %tle_lox10(foo), %o5
23534 ld [%g7 + %o5], %o1"
23538 .section ".tdata","awT",@progbits
23541 addli r0, zero, tls_gd(foo)
23542 auli r0, zero, tls_gd_ha16(foo)
23543 addli r0, r0, tls_gd_lo16(foo)
23545 addli r0, zero, tls_ie(foo)
23546 auli r0, r0, tls_ie_ha16(foo)
23547 addli r0, r0, tls_ie_lo16(foo)'
23550 tls_as_opt
="--fatal-warnings"
23554 .section ".tdata","awT",@progbits
23557 shl16insli r0, zero, hw0_last_tls_gd(foo)
23558 shl16insli r0, zero, hw1_last_tls_gd(foo)
23559 shl16insli r0, r0, hw0_tls_gd(foo)
23561 shl16insli r0, zero, hw1_last_tls_ie(foo)
23562 shl16insli r0, r0, hw0_tls_ie(foo)'
23565 tls_as_opt
="--fatal-warnings"
23569 .section ".tdata","awT",@progbits
23572 movi a8, foo@TLSFUNC
23573 movi a10, foo@TLSARG
23574 callx8.tls a8, foo@TLSCALL'
23580 if test "x$enable_tls" = xno
; then
23581 : # TLS explicitly disabled.
23582 elif test "x$enable_tls" = xyes
; then
23583 set_have_as_tls
=yes # TLS explicitly enabled.
23584 elif test -z "$tls_first_major"; then
23585 : # If we don't have a check, assume no support.
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23588 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23589 if test "${gcc_cv_as_tls+set}" = set; then :
23590 $as_echo_n "(cached) " >&6
23593 if test $in_tree_gas = yes; then
23594 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23595 then gcc_cv_as_tls
=yes
23597 elif test x
$gcc_cv_as != x
; then
23598 $as_echo "$conftest_s" > conftest.s
23599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23601 (eval $ac_try) 2>&5
23603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23604 test $ac_status = 0; }; }
23608 echo "configure: failed program was" >&5
23611 rm -f conftest.o conftest.s
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23615 $as_echo "$gcc_cv_as_tls" >&6; }
23616 if test $gcc_cv_as_tls = yes; then
23617 set_have_as_tls
=yes
23621 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23622 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23623 # Sun style that Sun ld and GCC don't support any longer.
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23626 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23628 # Check ld and ld.so.1 TLS support.
23629 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23630 # Assume all interesting versions of GNU ld have TLS support.
23631 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23635 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23637 min_tls_ld_vers_minor
=374
23639 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23640 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23641 min_tls_ld_vers_minor
=343
23644 if test "$ld_vers_major" -gt 1 || \
23645 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23652 $as_echo "$ld_tls_support" >&6; }
23655 save_LDFLAGS
="$LDFLAGS"
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23660 $as_echo_n "checking library containing $tga_func... " >&6; }
23661 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23662 # (32-bit x86) only lived in libthread, so check for that. Keep
23663 # set_have_as_tls if found, disable if not.
23664 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23666 $as_echo_n "checking for library containing $tga_func... " >&6; }
23667 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23668 $as_echo_n "(cached) " >&6
23670 ac_func_search_save_LIBS
=$LIBS
23671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23672 /* end confdefs.h. */
23674 /* Override any GCC internal prototype to avoid an error.
23675 Use char because int might match the return type of a GCC
23676 builtin and then its argument prototype would still apply. */
23684 return $tga_func ();
23689 for ac_lib
in '' thread
; do
23690 if test -z "$ac_lib"; then
23691 ac_res
="none required"
23694 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23696 if ac_fn_c_try_link
"$LINENO"; then :
23697 eval "$as_ac_Search=\$ac_res"
23699 rm -f core conftest.err conftest.
$ac_objext \
23701 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23705 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23708 eval "$as_ac_Search=no"
23710 rm conftest.
$ac_ext
23711 LIBS
=$ac_func_search_save_LIBS
23713 eval ac_res
=\$
$as_ac_Search
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23715 $as_echo "$ac_res" >&6; }
23716 eval ac_res
=\$
$as_ac_Search
23717 if test "$ac_res" != no
; then :
23718 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23724 # Clear LIBS if we cannot support TLS.
23725 if test $set_have_as_tls = no
; then
23728 # Always define LIB_TLS_SPEC, even without TLS support.
23730 cat >>confdefs.h
<<_ACEOF
23731 #define LIB_TLS_SPEC "$LIBS"
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23735 $as_echo "$LIBS" >&6; }
23738 LDFLAGS
="$save_LDFLAGS"
23741 if test $set_have_as_tls = yes ; then
23743 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23747 # Target-specific assembler checks.
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23750 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23751 gcc_cv_ld_static_dynamic
=no
23752 gcc_cv_ld_static_option
='-Bstatic'
23753 gcc_cv_ld_dynamic_option
='-Bdynamic'
23754 if test $in_tree_ld = yes ; then
23755 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
23756 gcc_cv_ld_static_dynamic
=yes
23758 elif test x
$gcc_cv_ld != x
; then
23759 # Check if linker supports -Bstatic/-Bdynamic option
23760 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23761 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23762 gcc_cv_ld_static_dynamic
=yes
23765 # AIX ld uses -b flags
23766 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23767 gcc_cv_ld_static_dynamic
=yes
23768 gcc_cv_ld_static_option
="-bstatic"
23769 gcc_cv_ld_dynamic_option
="-bdynamic"
23771 # HP-UX ld uses -a flags to select between shared and archive.
23773 if test x
"$gnu_ld" = xno
; then
23774 gcc_cv_ld_static_dynamic
=yes
23775 gcc_cv_ld_static_option
="-aarchive_shared"
23776 gcc_cv_ld_dynamic_option
="-adefault"
23779 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23781 gcc_cv_ld_static_dynamic
=yes
23786 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23788 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23791 cat >>confdefs.h
<<_ACEOF
23792 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23796 cat >>confdefs.h
<<_ACEOF
23797 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23802 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23804 if test x
"$demangler_in_ld" = xyes
; then
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23806 $as_echo_n "checking linker --demangle support... " >&6; }
23807 gcc_cv_ld_demangle
=no
23808 if test $in_tree_ld = yes; then
23809 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 \
23810 gcc_cv_ld_demangle
=yes
23812 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23813 # Check if the GNU linker supports --demangle option
23814 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23815 gcc_cv_ld_demangle
=yes
23818 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23820 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23824 $as_echo "$gcc_cv_ld_demangle" >&6; }
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23828 $as_echo_n "checking linker plugin support... " >&6; }
23829 gcc_cv_lto_plugin
=0
23830 if test -f liblto_plugin.la
; then
23831 save_ld_ver
="$ld_ver"
23832 save_ld_vers_major
="$ld_vers_major"
23833 save_ld_vers_minor
="$ld_vers_minor"
23834 save_ld_is_gold
="$ld_is_gold"
23838 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23840 # FIXME: ld_is_gold?
23841 ld_vers_major
="$gcc_cv_gld_major_version"
23842 ld_vers_minor
="$gcc_cv_gld_minor_version"
23844 # Determine plugin linker version.
23845 # FIXME: Partial duplicate from above, generalize.
23846 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23847 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23848 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23850 ld_vers
=`echo $ld_ver | sed -n \
23851 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23853 ld_vers
=`echo $ld_ver | sed -n \
23854 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23856 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23857 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23861 # Determine plugin support.
23862 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23863 # Require GNU ld or gold 2.21+ for plugin support by default.
23864 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23865 gcc_cv_lto_plugin
=2
23866 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23867 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23868 gcc_cv_lto_plugin
=1
23872 ld_ver
="$save_ld_ver"
23873 ld_vers_major
="$save_ld_vers_major"
23874 ld_vers_minor
="$save_ld_vers_minor"
23875 ld_is_gold
="$save_ld_is_gold"
23878 cat >>confdefs.h
<<_ACEOF
23879 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23883 $as_echo "$gcc_cv_lto_plugin" >&6; }
23886 # All TARGET_ABI_OSF targets.
23887 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23889 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23890 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23891 $as_echo_n "(cached) " >&6
23893 gcc_cv_as_alpha_explicit_relocs
=no
23894 if test $in_tree_gas = yes; then
23895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23896 then gcc_cv_as_alpha_explicit_relocs
=yes
23898 elif test x
$gcc_cv_as != x
; then
23899 $as_echo ' .set nomacro
23901 extbl $3, $2, $3 !lituse_bytoff!1
23902 ldq $2, a($29) !literal!1
23903 ldq $4, b($29) !literal!2
23904 ldq_u $3, 0($2) !lituse_base!1
23905 ldq $27, f($29) !literal!5
23906 jsr $26, ($27), f !lituse_jsr!5
23907 ldah $29, 0($26) !gpdisp!3
23908 lda $0, c($29) !gprel
23909 ldah $1, d($29) !gprelhigh
23910 lda $1, d($1) !gprellow
23911 lda $29, 0($29) !gpdisp!3' > conftest.s
23912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23914 (eval $ac_try) 2>&5
23916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23917 test $ac_status = 0; }; }
23919 gcc_cv_as_alpha_explicit_relocs
=yes
23921 echo "configure: failed program was" >&5
23924 rm -f conftest.o conftest.s
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23928 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23929 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23931 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23935 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23936 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23939 gcc_cv_as_alpha_jsrdirect_relocs
=no
23940 if test $in_tree_gas = yes; then
23941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23942 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23944 elif test x
$gcc_cv_as != x
; then
23945 $as_echo ' .set nomacro
23947 ldq $27, a($29) !literal!1
23948 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; }
23956 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23958 echo "configure: failed program was" >&5
23961 rm -f conftest.o conftest.s
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23965 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23966 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23968 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23975 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23976 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23977 $as_echo_n "(cached) " >&6
23979 gcc_cv_as_cris_no_mul_bug
=no
23980 if test $in_tree_gas = yes; then
23981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23982 then gcc_cv_as_cris_no_mul_bug
=yes
23984 elif test x
$gcc_cv_as != x
; then
23985 $as_echo '.text' > conftest.s
23986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23988 (eval $ac_try) 2>&5
23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991 test $ac_status = 0; }; }
23993 gcc_cv_as_cris_no_mul_bug
=yes
23995 echo "configure: failed program was" >&5
23998 rm -f conftest.o conftest.s
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24002 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24003 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24005 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24012 $as_echo_n "checking assembler for .register... " >&6; }
24013 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24014 $as_echo_n "(cached) " >&6
24016 gcc_cv_as_sparc_register_op
=no
24017 if test x
$gcc_cv_as != x
; then
24018 $as_echo '.register %g2, #scratch' > conftest.s
24019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24021 (eval $ac_try) 2>&5
24023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24024 test $ac_status = 0; }; }
24026 gcc_cv_as_sparc_register_op
=yes
24028 echo "configure: failed program was" >&5
24031 rm -f conftest.o conftest.s
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24035 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24036 if test $gcc_cv_as_sparc_register_op = yes; then
24038 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24043 $as_echo_n "checking assembler for #nobits... " >&6; }
24044 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24045 $as_echo_n "(cached) " >&6
24047 gcc_cv_as_sparc_nobits
=no
24048 if test x
$gcc_cv_as != x
; then
24049 $as_echo '.section "nobits",#alloc,#write,#nobits
24050 .section "progbits",#alloc,#write,#progbits' > conftest.s
24051 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053 (eval $ac_try) 2>&5
24055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056 test $ac_status = 0; }; }
24058 gcc_cv_as_sparc_nobits
=yes
24060 echo "configure: failed program was" >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24067 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24070 cat >>confdefs.h
<<_ACEOF
24071 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24076 $as_echo_n "checking assembler for -relax option... " >&6; }
24077 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24080 gcc_cv_as_sparc_relax
=no
24081 if test x
$gcc_cv_as != x
; then
24082 $as_echo '.text' > conftest.s
24083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24090 gcc_cv_as_sparc_relax
=yes
24092 echo "configure: failed program was" >&5
24095 rm -f conftest.o conftest.s
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24099 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24100 if test $gcc_cv_as_sparc_relax = yes; then
24102 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24107 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24108 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24109 $as_echo_n "(cached) " >&6
24111 gcc_cv_as_sparc_gotdata_op
=no
24112 if test x
$gcc_cv_as != x
; then
24118 sethi %gdop_hix22(foo), %g1
24119 xor %g1, %gdop_lox10(foo), %g1
24120 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24128 if test x
$gcc_cv_ld != x \
24129 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24130 if test x
$gcc_cv_objdump != x
; then
24131 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24132 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24133 gcc_cv_as_sparc_gotdata_op
=no
24135 gcc_cv_as_sparc_gotdata_op
=yes
24141 echo "configure: failed program was" >&5
24144 rm -f conftest.o conftest.s
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24148 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24149 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24151 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24156 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24157 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24160 gcc_cv_as_sparc_ua_pcrel
=no
24161 if test x
$gcc_cv_as != x
; then
24168 .uaword %r_disp32(foo)' > conftest.s
24169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24176 if test x
$gcc_cv_ld != x \
24177 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24178 gcc_cv_as_sparc_ua_pcrel
=yes
24182 echo "configure: failed program was" >&5
24185 rm -f conftest.o conftest.s
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24189 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24190 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24192 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24196 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24197 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24198 $as_echo_n "(cached) " >&6
24200 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24201 if test x
$gcc_cv_as != x
; then
24205 .uaword %r_disp32(foo)
24206 .byte 0x32, 0x33, 0x34
24210 .skip 4' > conftest.s
24211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24213 (eval $ac_try) 2>&5
24215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24216 test $ac_status = 0; }; }
24218 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24219 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24220 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24221 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24222 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24223 |
grep 'DISP32' > /dev
/null
2>&1; then
24226 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24231 echo "configure: failed program was" >&5
24234 rm -f conftest.o conftest.s
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24238 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24239 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24241 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24245 fi # unaligned pcrel relocs
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24248 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24249 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24250 $as_echo_n "(cached) " >&6
24252 gcc_cv_as_sparc_offsetable_lo10
=no
24253 if test x
$gcc_cv_as != x
; then
24255 or %g1, %lo(ab) + 12, %g1
24256 or %g1, %lo(ab + 12), %g1' > conftest.s
24257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24264 if test x
$gcc_cv_objdump != x \
24265 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24266 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24267 gcc_cv_as_sparc_offsetable_lo10
=yes
24270 echo "configure: failed program was" >&5
24273 rm -f conftest.o conftest.s
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24277 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24278 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24280 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24285 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24286 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24287 $as_echo_n "(cached) " >&6
24289 gcc_cv_as_sparc_fmaf
=no
24290 if test x
$gcc_cv_as != x
; then
24292 .register %g2, #scratch
24293 .register %g3, #scratch
24295 fmaddd %f0, %f2, %f4, %f6
24296 addxccc %g1, %g2, %g3
24297 fsrl32 %f2, %f4, %f8
24298 fnaddd %f10, %f12, %f14' > conftest.s
24299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24306 gcc_cv_as_sparc_fmaf
=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24315 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24316 if test $gcc_cv_as_sparc_fmaf = yes; then
24318 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24323 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24324 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24327 gcc_cv_as_sparc_sparc4
=no
24328 if test x
$gcc_cv_as != x
; then
24330 .register %g2, #scratch
24331 .register %g3, #scratch
24334 1: cwbneg %g2, %g3, 1f
24337 aes_kexpand0 %f4, %f6, %f8
24338 des_round %f38, %f40, %f42, %f44
24339 camellia_f %f54, %f56, %f58, %f60
24340 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24343 (eval $ac_try) 2>&5
24345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24346 test $ac_status = 0; }; }
24348 gcc_cv_as_sparc_sparc4
=yes
24350 echo "configure: failed program was" >&5
24353 rm -f conftest.o conftest.s
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24357 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24358 if test $gcc_cv_as_sparc_sparc4 = yes; then
24360 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24365 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24366 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24367 $as_echo_n "(cached) " >&6
24369 gcc_cv_as_sparc_leon
=no
24370 if test x
$gcc_cv_as != x
; then
24372 .register %g2, #scratch
24373 .register %g3, #scratch
24377 cas [%g2], %g3, %g1' > conftest.s
24378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24380 (eval $ac_try) 2>&5
24382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24383 test $ac_status = 0; }; }
24385 gcc_cv_as_sparc_leon
=yes
24387 echo "configure: failed program was" >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24394 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24395 if test $gcc_cv_as_sparc_leon = yes; then
24397 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24402 i
[34567]86-*-* | x86_64-
*-*)
24405 # Full C++ conformance when using a shared libstdc++-v3 requires some
24406 # support from the Cygwin DLL, which in more recent versions exports
24407 # wrappers to aid in interposing and redirecting operators new, delete,
24408 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24409 # are configuring for a version of Cygwin that exports the wrappers.
24410 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24411 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24412 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24413 gcc_ac_cygwin_dll_wrappers
=yes
24415 gcc_ac_cygwin_dll_wrappers
=no
24419 # Can't check presence of libc functions during cross-compile, so
24420 # we just have to assume we're building for an up-to-date target.
24421 gcc_ac_cygwin_dll_wrappers
=yes
24424 cat >>confdefs.h
<<_ACEOF
24425 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24430 cygwin
* | pe | mingw32
* | interix
*)
24431 # Recent binutils allows the three-operand form of ".comm" on PE. This
24432 # definition is used unconditionally to initialise the default state of
24433 # the target option variable that governs usage of the feature.
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24435 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24436 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24437 $as_echo_n "(cached) " >&6
24439 gcc_cv_as_comm_has_align
=no
24440 if test $in_tree_gas = yes; then
24441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24442 then gcc_cv_as_comm_has_align
=yes
24444 elif test x
$gcc_cv_as != x
; then
24445 $as_echo '.comm foo,1,32' > conftest.s
24446 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24453 gcc_cv_as_comm_has_align
=yes
24455 echo "configure: failed program was" >&5
24458 rm -f conftest.o conftest.s
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24462 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24465 cat >>confdefs.h
<<_ACEOF
24466 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24469 # Used for DWARF 2 in PE
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24471 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24472 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24475 gcc_cv_as_ix86_pe_secrel32
=no
24476 if test $in_tree_gas = yes; then
24477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24478 then gcc_cv_as_ix86_pe_secrel32
=yes
24480 elif test x
$gcc_cv_as != x
; then
24484 .secrel32 foo' > conftest.s
24485 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24487 (eval $ac_try) 2>&5
24489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490 test $ac_status = 0; }; }
24492 if test x
$gcc_cv_ld != x \
24493 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24494 gcc_cv_as_ix86_pe_secrel32
=yes
24498 echo "configure: failed program was" >&5
24501 rm -f conftest.o conftest.s
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24505 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24506 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24508 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24511 # Test if the assembler supports the extended form of the .section
24512 # directive that specifies section alignment. LTO support uses this,
24513 # but normally only after installation, so we warn but don't fail the
24514 # configure if LTO is enabled but the assembler does not support it.
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24516 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24517 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24518 $as_echo_n "(cached) " >&6
24520 gcc_cv_as_section_has_align
=no
24521 if test $in_tree_gas = yes; then
24522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24523 then gcc_cv_as_section_has_align
=yes
24525 elif test x
$gcc_cv_as != x
; then
24526 $as_echo '.section lto_test,"dr0"' > conftest.s
24527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; }
24534 gcc_cv_as_section_has_align
=yes
24536 echo "configure: failed program was" >&5
24539 rm -f conftest.o conftest.s
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24543 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24545 if test x
$gcc_cv_as_section_has_align != xyes
; then
24546 case ",$enable_languages," in
24548 { $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
24549 $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;}
24553 # Test if the assembler supports the section flag 'e' for specifying
24554 # an excluded section.
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24556 $as_echo_n "checking assembler for .section with e... " >&6; }
24557 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24560 gcc_cv_as_section_has_e
=no
24561 if test $in_tree_gas = yes; then
24562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24563 then gcc_cv_as_section_has_e
=yes
24565 elif test x
$gcc_cv_as != x
; then
24566 $as_echo '.section foo1,"e"
24567 .byte 0,0,0,0' > conftest.s
24568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }
24575 gcc_cv_as_section_has_e
=yes
24577 echo "configure: failed program was" >&5
24580 rm -f conftest.o conftest.s
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24584 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24587 cat >>confdefs.h
<<_ACEOF
24588 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24595 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24596 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24597 $as_echo_n "(cached) " >&6
24599 gcc_cv_as_ix86_filds
=no
24600 if test x
$gcc_cv_as != x
; then
24601 $as_echo 'filds mem; fists mem' > conftest.s
24602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604 (eval $ac_try) 2>&5
24606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607 test $ac_status = 0; }; }
24609 gcc_cv_as_ix86_filds
=yes
24611 echo "configure: failed program was" >&5
24614 rm -f conftest.o conftest.s
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24618 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24619 if test $gcc_cv_as_ix86_filds = yes; then
24621 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24626 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24627 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24630 gcc_cv_as_ix86_fildq
=no
24631 if test x
$gcc_cv_as != x
; then
24632 $as_echo 'fildq mem; fistpq mem' > conftest.s
24633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24635 (eval $ac_try) 2>&5
24637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24638 test $ac_status = 0; }; }
24640 gcc_cv_as_ix86_fildq
=yes
24642 echo "configure: failed program was" >&5
24645 rm -f conftest.o conftest.s
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24649 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24650 if test $gcc_cv_as_ix86_fildq = yes; then
24652 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24657 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24658 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24661 gcc_cv_as_ix86_cmov_sun_syntax
=no
24662 if test x
$gcc_cv_as != x
; then
24663 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24666 (eval $ac_try) 2>&5
24668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24669 test $ac_status = 0; }; }
24671 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24673 echo "configure: failed program was" >&5
24676 rm -f conftest.o conftest.s
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24680 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24681 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24683 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24688 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24689 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24690 $as_echo_n "(cached) " >&6
24692 gcc_cv_as_ix86_ffreep
=no
24693 if test x
$gcc_cv_as != x
; then
24694 $as_echo 'ffreep %st(1)' > conftest.s
24695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24702 gcc_cv_as_ix86_ffreep
=yes
24704 echo "configure: failed program was" >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24711 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24712 if test $gcc_cv_as_ix86_ffreep = yes; then
24714 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24719 $as_echo_n "checking assembler for .quad directive... " >&6; }
24720 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24723 gcc_cv_as_ix86_quad
=no
24724 if test x
$gcc_cv_as != x
; then
24725 $as_echo '.quad 0' > conftest.s
24726 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24733 gcc_cv_as_ix86_quad
=yes
24735 echo "configure: failed program was" >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24742 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24743 if test $gcc_cv_as_ix86_quad = yes; then
24745 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24750 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24751 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24754 gcc_cv_as_ix86_sahf
=no
24755 if test x
$gcc_cv_as != x
; then
24758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24760 (eval $ac_try) 2>&5
24762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24763 test $ac_status = 0; }; }
24765 gcc_cv_as_ix86_sahf
=yes
24767 echo "configure: failed program was" >&5
24770 rm -f conftest.o conftest.s
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24774 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24775 if test $gcc_cv_as_ix86_sahf = yes; then
24777 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24782 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24783 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24784 $as_echo_n "(cached) " >&6
24786 gcc_cv_as_ix86_interunit_movq
=no
24787 if test x
$gcc_cv_as != x
; then
24790 movq %rax, %xmm0' > conftest.s
24791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24798 gcc_cv_as_ix86_interunit_movq
=yes
24800 echo "configure: failed program was" >&5
24803 rm -f conftest.o conftest.s
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24807 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24810 cat >>confdefs.h
<<_ACEOF
24811 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24816 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24817 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24818 $as_echo_n "(cached) " >&6
24820 gcc_cv_as_ix86_hle
=no
24821 if test x
$gcc_cv_as != x
; then
24822 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24825 (eval $ac_try) 2>&5
24827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24828 test $ac_status = 0; }; }
24830 gcc_cv_as_ix86_hle
=yes
24832 echo "configure: failed program was" >&5
24835 rm -f conftest.o conftest.s
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24839 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24840 if test $gcc_cv_as_ix86_hle = yes; then
24842 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24847 $as_echo_n "checking assembler for swap suffix... " >&6; }
24848 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24849 $as_echo_n "(cached) " >&6
24851 gcc_cv_as_ix86_swap
=no
24852 if test x
$gcc_cv_as != x
; then
24853 $as_echo 'movl.s %esp, %ebp' > conftest.s
24854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24856 (eval $ac_try) 2>&5
24858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24859 test $ac_status = 0; }; }
24861 gcc_cv_as_ix86_swap
=yes
24863 echo "configure: failed program was" >&5
24866 rm -f conftest.o conftest.s
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24870 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24871 if test $gcc_cv_as_ix86_swap = yes; then
24873 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24878 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24879 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24880 $as_echo_n "(cached) " >&6
24882 gcc_cv_as_ix86_diff_sect_delta
=no
24883 if test x
$gcc_cv_as != x
; then
24884 $as_echo '.section .rodata
24890 .L2: nop' > conftest.s
24891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24893 (eval $ac_try) 2>&5
24895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896 test $ac_status = 0; }; }
24898 gcc_cv_as_ix86_diff_sect_delta
=yes
24900 echo "configure: failed program was" >&5
24903 rm -f conftest.o conftest.s
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24907 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24908 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24910 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24914 # These two are used unconditionally by i386.[ch]; it is to be defined
24915 # to 1 if the feature is present, 0 otherwise.
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24917 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24918 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24921 gcc_cv_as_ix86_gotoff_in_data
=no
24922 if test $in_tree_gas = yes; then
24923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24924 then gcc_cv_as_ix86_gotoff_in_data
=yes
24926 elif test x
$gcc_cv_as != x
; then
24931 .long .L0@GOTOFF' > conftest.s
24932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24939 gcc_cv_as_ix86_gotoff_in_data
=yes
24941 echo "configure: failed program was" >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24948 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24951 cat >>confdefs.h
<<_ACEOF
24952 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24957 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24958 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24961 gcc_cv_as_ix86_rep_lock_prefix
=no
24962 if test x
$gcc_cv_as != x
; then
24963 $as_echo 'rep movsl
24968 lock addl %edi, (%eax,%esi)
24969 lock orl $0, (%esp)' > conftest.s
24970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24977 gcc_cv_as_ix86_rep_lock_prefix
=yes
24979 echo "configure: failed program was" >&5
24982 rm -f conftest.o conftest.s
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24986 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24987 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24989 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24994 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24995 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24998 gcc_cv_as_ix86_tlsgdplt
=no
24999 if test x
$gcc_cv_as != x
; then
25000 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25001 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003 (eval $ac_try) 2>&5
25005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006 test $ac_status = 0; }; }
25008 if test x
$gcc_cv_ld != x \
25009 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25010 gcc_cv_as_ix86_tlsgdplt
=yes
25014 echo "configure: failed program was" >&5
25017 rm -f conftest.o conftest.s
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25021 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25022 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25024 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25029 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25030 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25031 $as_echo_n "(cached) " >&6
25033 gcc_cv_as_ix86_tlsldmplt
=no
25034 if test x
$gcc_cv_as != x
; then
25036 call tls_ld@tlsldmplt' > conftest.s
25037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25039 (eval $ac_try) 2>&5
25041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25042 test $ac_status = 0; }; }
25044 if test x
$gcc_cv_ld != x \
25045 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25046 gcc_cv_as_ix86_tlsldmplt
=yes
25050 echo "configure: failed program was" >&5
25053 rm -f conftest.o conftest.s
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25057 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25058 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25060 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25068 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25069 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25072 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25073 if test $in_tree_gas = yes; then
25074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25075 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25077 elif test x
$gcc_cv_as != x
; then
25079 addl r15 = @ltoffx(x#), gp
25081 ld8.mov r16 = [r15], x#' > conftest.s
25082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084 (eval $ac_try) 2>&5
25086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087 test $ac_status = 0; }; }
25089 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25091 echo "configure: failed program was" >&5
25094 rm -f conftest.o conftest.s
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25098 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25099 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25101 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25109 *-*-aix*) conftest_s
=' .machine "pwr5"
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25114 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25115 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25118 gcc_cv_as_machine_directive
=no
25119 if test x
$gcc_cv_as != x
; then
25120 $as_echo ' .machine ppc7400' > conftest.s
25121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25128 gcc_cv_as_machine_directive
=yes
25130 echo "configure: failed program was" >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25137 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25139 if test x
$gcc_cv_as_machine_directive != xyes
; then
25140 echo "*** This target requires an assembler supporting \".machine\"" >&2
25141 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25142 test x
$build = x
$target && exit 1
25146 *) conftest_s
=' .machine power4
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25152 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25153 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25156 gcc_cv_as_powerpc_mfcrf
=no
25157 if test $in_tree_gas = yes; then
25158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25159 then gcc_cv_as_powerpc_mfcrf
=yes
25161 elif test x
$gcc_cv_as != x
; then
25162 $as_echo "$conftest_s" > conftest.s
25163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25170 gcc_cv_as_powerpc_mfcrf
=yes
25172 echo "configure: failed program was" >&5
25175 rm -f conftest.o conftest.s
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25179 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25180 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25182 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25187 *-*-aix*) conftest_s
=' .machine "pwr5"
25190 *) conftest_s
=' .machine power5
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25196 $as_echo_n "checking assembler for popcntb support... " >&6; }
25197 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25200 gcc_cv_as_powerpc_popcntb
=no
25201 if test $in_tree_gas = yes; then
25202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25203 then gcc_cv_as_powerpc_popcntb
=yes
25205 elif test x
$gcc_cv_as != x
; then
25206 $as_echo "$conftest_s" > conftest.s
25207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209 (eval $ac_try) 2>&5
25211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212 test $ac_status = 0; }; }
25214 gcc_cv_as_powerpc_popcntb
=yes
25216 echo "configure: failed program was" >&5
25219 rm -f conftest.o conftest.s
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25223 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25224 if test $gcc_cv_as_powerpc_popcntb = yes; then
25226 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25231 *-*-aix*) conftest_s
=' .machine "pwr5x"
25234 *) conftest_s
=' .machine power5
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25240 $as_echo_n "checking assembler for fp round support... " >&6; }
25241 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25242 $as_echo_n "(cached) " >&6
25244 gcc_cv_as_powerpc_fprnd
=no
25245 if test $in_tree_gas = yes; then
25246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25247 then gcc_cv_as_powerpc_fprnd
=yes
25249 elif test x
$gcc_cv_as != x
; then
25250 $as_echo "$conftest_s" > conftest.s
25251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; }
25258 gcc_cv_as_powerpc_fprnd
=yes
25260 echo "configure: failed program was" >&5
25263 rm -f conftest.o conftest.s
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25267 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25268 if test $gcc_cv_as_powerpc_fprnd = yes; then
25270 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25275 *-*-aix*) conftest_s
=' .machine "pwr6"
25278 *) conftest_s
=' .machine power6
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25284 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25285 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25288 gcc_cv_as_powerpc_mfpgpr
=no
25289 if test $in_tree_gas = yes; then
25290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25291 then gcc_cv_as_powerpc_mfpgpr
=yes
25293 elif test x
$gcc_cv_as != x
; then
25294 $as_echo "$conftest_s" > conftest.s
25295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25297 (eval $ac_try) 2>&5
25299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25300 test $ac_status = 0; }; }
25302 gcc_cv_as_powerpc_mfpgpr
=yes
25304 echo "configure: failed program was" >&5
25307 rm -f conftest.o conftest.s
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25311 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25312 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25314 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25319 *-*-aix*) conftest_s
=' .csect .text[PR]
25321 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25325 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25326 *) conftest_s
=' .text
25328 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25332 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25333 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25336 gcc_cv_as_powerpc_rel16
=no
25337 if test $in_tree_gas = yes; then
25338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25339 then gcc_cv_as_powerpc_rel16
=yes
25341 elif test x
$gcc_cv_as != x
; then
25342 $as_echo "$conftest_s" > conftest.s
25343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25350 gcc_cv_as_powerpc_rel16
=yes
25352 echo "configure: failed program was" >&5
25355 rm -f conftest.o conftest.s
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25359 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25360 if test $gcc_cv_as_powerpc_rel16 = yes; then
25362 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25367 *-*-aix*) conftest_s
=' .machine "pwr6"
25370 *) conftest_s
=' .machine power6
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25376 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25377 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25380 gcc_cv_as_powerpc_cmpb
=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25383 then gcc_cv_as_powerpc_cmpb
=yes
25385 elif test x
$gcc_cv_as != x
; then
25386 $as_echo "$conftest_s" > conftest.s
25387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25394 gcc_cv_as_powerpc_cmpb
=yes
25396 echo "configure: failed program was" >&5
25399 rm -f conftest.o conftest.s
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25403 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25404 if test $gcc_cv_as_powerpc_cmpb = yes; then
25406 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25411 *-*-aix*) conftest_s
=' .machine "pwr6"
25414 *) conftest_s
=' .machine power6
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25420 $as_echo_n "checking assembler for decimal float support... " >&6; }
25421 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25424 gcc_cv_as_powerpc_dfp
=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25427 then gcc_cv_as_powerpc_dfp
=yes
25429 elif test x
$gcc_cv_as != x
; then
25430 $as_echo "$conftest_s" > conftest.s
25431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25438 gcc_cv_as_powerpc_dfp
=yes
25440 echo "configure: failed program was" >&5
25443 rm -f conftest.o conftest.s
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25447 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25448 if test $gcc_cv_as_powerpc_dfp = yes; then
25450 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25455 *-*-aix*) conftest_s
=' .machine "pwr7"
25458 *) conftest_s
=' .machine power7
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25464 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25465 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25468 gcc_cv_as_powerpc_vsx
=no
25469 if test $in_tree_gas = yes; then
25470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25471 then gcc_cv_as_powerpc_vsx
=yes
25473 elif test x
$gcc_cv_as != x
; then
25474 $as_echo "$conftest_s" > conftest.s
25475 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25477 (eval $ac_try) 2>&5
25479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }; }
25482 gcc_cv_as_powerpc_vsx
=yes
25484 echo "configure: failed program was" >&5
25487 rm -f conftest.o conftest.s
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25491 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25492 if test $gcc_cv_as_powerpc_vsx = yes; then
25494 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25499 *-*-aix*) conftest_s
=' .machine "pwr7"
25502 *) conftest_s
=' .machine power7
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25508 $as_echo_n "checking assembler for popcntd support... " >&6; }
25509 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25510 $as_echo_n "(cached) " >&6
25512 gcc_cv_as_powerpc_popcntd
=no
25513 if test $in_tree_gas = yes; then
25514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25515 then gcc_cv_as_powerpc_popcntd
=yes
25517 elif test x
$gcc_cv_as != x
; then
25518 $as_echo "$conftest_s" > conftest.s
25519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25521 (eval $ac_try) 2>&5
25523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25524 test $ac_status = 0; }; }
25526 gcc_cv_as_powerpc_popcntd
=yes
25528 echo "configure: failed program was" >&5
25531 rm -f conftest.o conftest.s
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25535 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25536 if test $gcc_cv_as_powerpc_popcntd = yes; then
25538 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25543 *-*-aix*) conftest_s
=' .machine "pwr8"
25544 .csect .text[PR]';;
25545 *) conftest_s
=' .machine power8
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25550 $as_echo_n "checking assembler for power8 support... " >&6; }
25551 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25554 gcc_cv_as_powerpc_power8
=no
25555 if test $in_tree_gas = yes; then
25556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25557 then gcc_cv_as_powerpc_power8
=yes
25559 elif test x
$gcc_cv_as != x
; then
25560 $as_echo "$conftest_s" > conftest.s
25561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25568 gcc_cv_as_powerpc_power8
=yes
25570 echo "configure: failed program was" >&5
25573 rm -f conftest.o conftest.s
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25577 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25578 if test $gcc_cv_as_powerpc_power8 = yes; then
25580 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25585 *-*-aix*) conftest_s
=' .csect .text[PR]
25587 *) conftest_s
=' .text
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25592 $as_echo_n "checking assembler for lwsync support... " >&6; }
25593 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25596 gcc_cv_as_powerpc_lwsync
=no
25597 if test $in_tree_gas = yes; then
25598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25599 then gcc_cv_as_powerpc_lwsync
=yes
25601 elif test x
$gcc_cv_as != x
; then
25602 $as_echo "$conftest_s" > conftest.s
25603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25610 gcc_cv_as_powerpc_lwsync
=yes
25612 echo "configure: failed program was" >&5
25615 rm -f conftest.o conftest.s
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25619 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25620 if test $gcc_cv_as_powerpc_lwsync = yes; then
25622 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25627 *-*-aix*) conftest_s
=' .machine "476"
25630 *) conftest_s
=' .machine "476"
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25636 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25637 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
25640 gcc_cv_as_powerpc_dci
=no
25641 if test $in_tree_gas = yes; then
25642 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25643 then gcc_cv_as_powerpc_dci
=yes
25645 elif test x
$gcc_cv_as != x
; then
25646 $as_echo "$conftest_s" > conftest.s
25647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25654 gcc_cv_as_powerpc_dci
=yes
25656 echo "configure: failed program was" >&5
25659 rm -f conftest.o conftest.s
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25663 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25664 if test $gcc_cv_as_powerpc_dci = yes; then
25666 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25671 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25672 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25673 $as_echo_n "(cached) " >&6
25675 gcc_cv_as_powerpc_gnu_attribute
=no
25676 if test $in_tree_gas = yes; then
25677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25678 then gcc_cv_as_powerpc_gnu_attribute
=yes
25680 elif test x
$gcc_cv_as != x
; then
25681 $as_echo '.gnu_attribute 4,1' > conftest.s
25682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }
25689 gcc_cv_as_powerpc_gnu_attribute
=yes
25691 echo "configure: failed program was" >&5
25694 rm -f conftest.o conftest.s
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25698 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25699 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25701 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25706 $as_echo_n "checking assembler for tls marker support... " >&6; }
25707 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25708 $as_echo_n "(cached) " >&6
25710 gcc_cv_as_powerpc_tls_markers
=no
25711 if test $in_tree_gas = yes; then
25712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25713 then gcc_cv_as_powerpc_tls_markers
=yes
25715 elif test x
$gcc_cv_as != x
; then
25716 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25717 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25719 (eval $ac_try) 2>&5
25721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25722 test $ac_status = 0; }; }
25724 gcc_cv_as_powerpc_tls_markers
=yes
25726 echo "configure: failed program was" >&5
25729 rm -f conftest.o conftest.s
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25733 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25734 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25736 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25743 $as_echo_n "checking assembler for .ref support... " >&6; }
25744 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25745 $as_echo_n "(cached) " >&6
25747 gcc_cv_as_aix_ref
=no
25748 if test $in_tree_gas = yes; then
25749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25750 then gcc_cv_as_aix_ref
=yes
25752 elif test x
$gcc_cv_as != x
; then
25753 $as_echo ' .csect stuff[rw]
25759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25761 (eval $ac_try) 2>&5
25763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25764 test $ac_status = 0; }; }
25766 gcc_cv_as_aix_ref
=yes
25768 echo "configure: failed program was" >&5
25771 rm -f conftest.o conftest.s
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25775 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25776 if test $gcc_cv_as_aix_ref = yes; then
25778 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25787 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25788 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25789 $as_echo_n "(cached) " >&6
25791 gcc_cv_as_mips_explicit_relocs
=no
25792 if test $in_tree_gas = yes; then
25793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25794 then gcc_cv_as_mips_explicit_relocs
=yes
25796 elif test x
$gcc_cv_as != x
; then
25797 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25798 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25805 gcc_cv_as_mips_explicit_relocs
=yes
25807 echo "configure: failed program was" >&5
25810 rm -f conftest.o conftest.s
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25814 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25815 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25816 if test x
$target_cpu_default = x
25817 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25818 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25822 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25823 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25824 $as_echo_n "(cached) " >&6
25826 gcc_cv_as_mips_no_shared
=no
25827 if test $in_tree_gas = yes; then
25828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25829 then gcc_cv_as_mips_no_shared
=yes
25831 elif test x
$gcc_cv_as != x
; then
25832 $as_echo 'nop' > conftest.s
25833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25840 gcc_cv_as_mips_no_shared
=yes
25842 echo "configure: failed program was" >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25849 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25850 if test $gcc_cv_as_mips_no_shared = yes; then
25852 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25857 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25858 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25861 gcc_cv_as_mips_gnu_attribute
=no
25862 if test $in_tree_gas = yes; then
25863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25864 then gcc_cv_as_mips_gnu_attribute
=yes
25866 elif test x
$gcc_cv_as != x
; then
25867 $as_echo '.gnu_attribute 4,1' > conftest.s
25868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25870 (eval $ac_try) 2>&5
25872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25873 test $ac_status = 0; }; }
25875 gcc_cv_as_mips_gnu_attribute
=yes
25877 echo "configure: failed program was" >&5
25880 rm -f conftest.o conftest.s
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25884 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25885 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25887 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25892 $as_echo_n "checking assembler for .micromips support... " >&6; }
25893 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25894 $as_echo_n "(cached) " >&6
25896 gcc_cv_as_micromips_support
=no
25897 if test x
$gcc_cv_as != x
; then
25898 $as_echo '.set micromips' > conftest.s
25899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25901 (eval $ac_try) 2>&5
25903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25904 test $ac_status = 0; }; }
25906 gcc_cv_as_micromips_support
=yes
25908 echo "configure: failed program was" >&5
25911 rm -f conftest.o conftest.s
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25915 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25916 if test $gcc_cv_as_micromips_support = yes; then
25918 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25923 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25924 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25925 $as_echo_n "(cached) " >&6
25927 gcc_cv_as_mips_dtprelword
=no
25928 if test $in_tree_gas = yes; then
25929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25930 then gcc_cv_as_mips_dtprelword
=yes
25932 elif test x
$gcc_cv_as != x
; then
25933 $as_echo '.section .tdata,"awT",@progbits
25937 .dtprelword x+0x8000' > conftest.s
25938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25945 gcc_cv_as_mips_dtprelword
=yes
25947 echo "configure: failed program was" >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25954 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25955 if test $gcc_cv_as_mips_dtprelword = yes; then
25957 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25962 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25963 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25964 $as_echo_n "(cached) " >&6
25966 gcc_cv_as_mips_dspr1_mult
=no
25967 if test x
$gcc_cv_as != x
; then
25968 $as_echo ' .set mips32r2
25976 multu $ac3,$4,$5' > conftest.s
25977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25979 (eval $ac_try) 2>&5
25981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25982 test $ac_status = 0; }; }
25984 gcc_cv_as_mips_dspr1_mult
=yes
25986 echo "configure: failed program was" >&5
25989 rm -f conftest.o conftest.s
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25993 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25994 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25996 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26001 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26002 gcc_cv_as_ld_jalr_reloc
=no
26003 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26004 if test $in_tree_ld = yes ; then
26005 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 \
26006 && test $in_tree_ld_is_elf = yes; then
26007 gcc_cv_as_ld_jalr_reloc
=yes
26009 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26010 echo ' .ent x' > conftest.s
26011 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26012 echo ' ld $25,%call16(y)($28)' >> conftest.s
26013 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26014 echo '1: jalr $25' >> conftest.s
26015 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26016 echo '1: jalr $25' >> conftest.s
26017 echo ' .end x' >> conftest.s
26018 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26019 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26020 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26021 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26022 gcc_cv_as_ld_jalr_reloc
=yes
26028 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26029 if test x
$target_cpu_default = x
; then
26030 target_cpu_default
=MASK_RELAX_PIC_CALLS
26032 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26036 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26039 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26040 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26041 $as_echo_n "(cached) " >&6
26043 gcc_cv_ld_mips_personality_relaxation
=no
26044 if test $in_tree_ld = yes ; then
26045 if test "$gcc_cv_gld_major_version" -eq 2 \
26046 -a "$gcc_cv_gld_minor_version" -ge 21 \
26047 -o "$gcc_cv_gld_major_version" -gt 2; then
26048 gcc_cv_ld_mips_personality_relaxation
=yes
26050 elif test x
$gcc_cv_as != x \
26051 -a x
$gcc_cv_ld != x \
26052 -a x
$gcc_cv_readelf != x
; then
26053 cat > conftest.s
<<EOF
26055 .cfi_personality 0x80,indirect_ptr
26062 .section .data,"aw",@progbits
26066 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26067 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26068 if $gcc_cv_readelf -d conftest
2>&1 \
26069 |
grep TEXTREL
> /dev
/null
2>&1; then
26071 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26072 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26075 gcc_cv_ld_mips_personality_relaxation
=yes
26079 rm -f conftest.s conftest.o conftest
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26082 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26083 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26085 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26090 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26091 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26092 $as_echo_n "(cached) " >&6
26094 gcc_cv_as_mips_nan
=no
26095 if test x
$gcc_cv_as != x
; then
26096 $as_echo '' > conftest.s
26097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26099 (eval $ac_try) 2>&5
26101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26102 test $ac_status = 0; }; }
26104 gcc_cv_as_mips_nan
=yes
26106 echo "configure: failed program was" >&5
26109 rm -f conftest.o conftest.s
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26113 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26114 if test $gcc_cv_as_mips_nan = yes; then
26116 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26119 if test x
$gcc_cv_as_mips_nan = xno \
26120 && test x
$with_nan != x
; then
26121 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26126 # Mips and HP-UX need the GNU assembler.
26127 # Linux on IA64 might be able to use the Intel assembler.
26130 mips
*-*-* |
*-*-hpux* )
26131 if test x
$gas_flag = xyes \
26132 ||
test x
"$host" != x
"$build" \
26133 ||
test ! -x "$gcc_cv_as" \
26134 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26137 echo "*** This configuration requires the GNU assembler" >&2
26143 # ??? Not all targets support dwarf2 debug_line, even within a version
26144 # of gas. Moreover, we need to emit a valid instruction to trigger any
26145 # info to the output file. So, as supported targets are added to gas 2.11,
26146 # add some instruction here to (also) show we expect this might work.
26147 # ??? Once 2.11 is released, probably need to add first known working
26148 # version to the per-target configury.
26149 case "$cpu_type" in
26150 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26151 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26162 if test x
"$insn" != x
; then
26164 .file 1 \"conftest.s\"
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26168 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26169 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26170 $as_echo_n "(cached) " >&6
26172 gcc_cv_as_dwarf2_debug_line
=no
26173 if test $in_tree_gas = yes; then
26174 if test $in_tree_gas_is_elf = yes \
26175 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26176 then gcc_cv_as_dwarf2_debug_line
=yes
26178 elif test x
$gcc_cv_as != x
; then
26179 $as_echo "$conftest_s" > conftest.s
26180 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; }
26187 if test x
$gcc_cv_objdump != x \
26188 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26189 |
grep debug_line
> /dev
/null
2>&1; then
26190 gcc_cv_as_dwarf2_debug_line
=yes
26193 echo "configure: failed program was" >&5
26196 rm -f conftest.o conftest.s
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26200 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26203 # The .debug_line file table must be in the exact order that
26204 # we specified the files, since these indices are also used
26205 # by DW_AT_decl_file. Approximate this test by testing if
26206 # the assembler bitches if the same index is assigned twice.
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26208 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26209 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26212 gcc_cv_as_dwarf2_file_buggy
=no
26213 if test x
$gcc_cv_as != x
; then
26214 $as_echo ' .file 1 "foo.s"
26215 .file 1 "bar.s"' > conftest.s
26216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26223 gcc_cv_as_dwarf2_file_buggy
=yes
26225 echo "configure: failed program was" >&5
26228 rm -f conftest.o conftest.s
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26232 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26235 if test $gcc_cv_as_dwarf2_debug_line = yes \
26236 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26238 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26243 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26244 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26245 $as_echo_n "(cached) " >&6
26247 gcc_cv_as_gdwarf2_flag
=no
26248 if test $in_tree_gas = yes; then
26249 if test $in_tree_gas_is_elf = yes \
26250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26251 then gcc_cv_as_gdwarf2_flag
=yes
26253 elif test x
$gcc_cv_as != x
; then
26254 $as_echo "$insn" > conftest.s
26255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26257 (eval $ac_try) 2>&5
26259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26260 test $ac_status = 0; }; }
26262 gcc_cv_as_gdwarf2_flag
=yes
26264 echo "configure: failed program was" >&5
26267 rm -f conftest.o conftest.s
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26271 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26272 if test $gcc_cv_as_gdwarf2_flag = yes; then
26274 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26279 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26280 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26283 gcc_cv_as_gstabs_flag
=no
26284 if test $in_tree_gas = yes; then
26285 if test $in_tree_gas_is_elf = yes \
26286 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26287 then gcc_cv_as_gstabs_flag
=yes
26289 elif test x
$gcc_cv_as != x
; then
26290 $as_echo "$insn" > conftest.s
26291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26298 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26299 # and warns about it, but still exits successfully. So check for
26301 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303 (eval $ac_try) 2>&5
26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306 test $ac_status = 0; }; }
26308 else gcc_cv_as_gstabs_flag
=yes
26311 echo "configure: failed program was" >&5
26314 rm -f conftest.o conftest.s
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26318 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26319 if test $gcc_cv_as_gstabs_flag = yes; then
26321 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26326 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26327 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26330 gcc_cv_as_debug_prefix_map_flag
=no
26331 if test $in_tree_gas = yes; then
26332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26333 then gcc_cv_as_debug_prefix_map_flag
=yes
26335 elif test x
$gcc_cv_as != x
; then
26336 $as_echo "$insn" > conftest.s
26337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26344 gcc_cv_as_debug_prefix_map_flag
=yes
26346 echo "configure: failed program was" >&5
26349 rm -f conftest.o conftest.s
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26353 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26354 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26356 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26362 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26363 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26364 $as_echo_n "(cached) " >&6
26366 gcc_cv_as_lcomm_with_alignment
=no
26367 if test x
$gcc_cv_as != x
; then
26368 $as_echo '.lcomm bar,4,16' > conftest.s
26369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26371 (eval $ac_try) 2>&5
26373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374 test $ac_status = 0; }; }
26376 gcc_cv_as_lcomm_with_alignment
=yes
26378 echo "configure: failed program was" >&5
26381 rm -f conftest.o conftest.s
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26385 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26386 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26388 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26392 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26393 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26394 && test "$prefix" != "NONE"; then
26396 cat >>confdefs.h
<<_ACEOF
26397 #define PREFIX_INCLUDE_DIR "$prefix/include"
26402 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26403 if test "x$with_headers" != x
; then
26404 target_header_dir
=$with_headers
26405 elif test "x$with_sysroot" = x
; then
26406 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26407 elif test "x$with_build_sysroot" != "x"; then
26408 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26409 elif test "x$with_sysroot" = xyes
; then
26410 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26412 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26415 target_header_dir
=${native_system_header_dir}
26418 # Determine the version of glibc, if any, used on the target.
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26420 $as_echo_n "checking for target glibc version... " >&6; }
26422 # Check whether --with-glibc-version was given.
26423 if test "${with_glibc_version+set}" = set; then :
26424 withval
=$with_glibc_version;
26425 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26426 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26427 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26429 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26433 glibc_version_major
=0
26434 glibc_version_minor
=0
26435 if test -f $target_header_dir/features.h \
26436 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26437 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26438 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26439 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26444 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26446 # Check whether --enable-gnu-unique-object was given.
26447 if test "${enable_gnu_unique_object+set}" = set; then :
26448 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26450 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26451 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26455 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26456 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26457 $as_echo_n "(cached) " >&6
26459 gcc_cv_as_gnu_unique_object
=no
26460 if test $in_tree_gas = yes; then
26461 if test $in_tree_gas_is_elf = yes \
26462 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26463 then gcc_cv_as_gnu_unique_object
=yes
26465 elif test x
$gcc_cv_as != x
; then
26466 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; }
26474 gcc_cv_as_gnu_unique_object
=yes
26476 echo "configure: failed program was" >&5
26479 rm -f conftest.o conftest.s
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26483 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26484 if test $gcc_cv_as_gnu_unique_object = yes; then
26485 # We need to unquote above to to use the definition from config.gcc.
26486 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26488 if test $glibc_version_major -gt 2 \
26489 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26490 enable_gnu_unique_object
=yes
26496 if test x
$enable_gnu_unique_object = xyes
; then
26498 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26503 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26504 if test "${gcc_cv_as_line_zero+set}" = set; then :
26505 $as_echo_n "(cached) " >&6
26507 gcc_cv_as_line_zero
=no
26508 if test $in_tree_gas = yes; then
26509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26510 then gcc_cv_as_line_zero
=yes
26512 elif test "x$gcc_cv_as" != x
; then
26513 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26514 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; } &&
26520 test "x`cat conftest.out`" = x
26522 gcc_cv_as_line_zero
=yes
26524 echo "configure: failed program was" >&5
26526 echo "configure: error output was" >&5
26527 cat conftest.out
>&5
26529 rm -f conftest.o conftest.s conftest.out
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26533 $as_echo "$gcc_cv_as_line_zero" >&6; }
26534 if test "x$gcc_cv_as_line_zero" = xyes
; then
26536 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26541 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26542 gcc_cv_ld_eh_frame_hdr
=no
26543 if test $in_tree_ld = yes ; then
26544 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 \
26545 && test $in_tree_ld_is_elf = yes; then
26546 gcc_cv_ld_eh_frame_hdr
=yes
26548 elif test x
$gcc_cv_ld != x
; then
26549 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26550 # Check if linker supports --eh-frame-hdr option
26551 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26552 gcc_cv_ld_eh_frame_hdr
=yes
26557 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26558 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26559 gcc_cv_ld_eh_frame_hdr
=yes
26566 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26568 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26572 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26575 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26576 gcc_cv_ld_eh_frame_ciev3
=no
26577 if test $in_tree_ld = yes ; then
26578 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 \
26579 && test $in_tree_ld_is_elf = yes; then
26580 gcc_cv_ld_eh_frame_ciev3
=yes
26582 elif test x
$gcc_cv_ld != x
; then
26583 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26584 gcc_cv_ld_eh_frame_ciev3
=yes
26585 if test 0"$ld_date" -lt 20040513; then
26586 if test -n "$ld_date"; then
26587 # If there was date string, but was earlier than 2004-05-13, fail
26588 gcc_cv_ld_eh_frame_ciev3
=no
26589 elif test "$ld_vers_major" -lt 2; then
26590 gcc_cv_ld_eh_frame_ciev3
=no
26591 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26592 gcc_cv_ld_eh_frame_ciev3
=no
26598 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26599 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26600 gcc_cv_ld_eh_frame_ciev3
=yes
26607 cat >>confdefs.h
<<_ACEOF
26608 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26612 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26615 $as_echo_n "checking linker position independent executable support... " >&6; }
26617 if test $in_tree_ld = yes ; then
26618 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 \
26619 && test $in_tree_ld_is_elf = yes; then
26622 elif test x
$gcc_cv_ld != x
; then
26623 # Check if linker supports -pie option
26624 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26628 if test x
"$gcc_cv_ld_pie" = xyes
; then
26630 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26634 $as_echo "$gcc_cv_ld_pie" >&6; }
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26637 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26638 gcc_cv_ld_eh_gc_sections
=no
26639 if test $in_tree_ld = yes ; then
26640 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 \
26641 && test $in_tree_ld_is_elf = yes; then
26642 gcc_cv_ld_eh_gc_sections
=yes
26644 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26645 cat > conftest.s
<<EOF
26648 .type _start, @function
26651 .size _start, .-_start
26652 .section .text.foo,"ax",@progbits
26653 .type foo, @function
26657 .section .gcc_except_table.foo,"a",@progbits
26660 .section .eh_frame,"a",@progbits
26663 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26664 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26665 |
grep "gc-sections option ignored" > /dev
/null
; then
26666 gcc_cv_ld_eh_gc_sections
=no
26667 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26668 |
grep gcc_except_table
> /dev
/null
; then
26669 gcc_cv_ld_eh_gc_sections
=yes
26670 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26671 if test x
$gcc_cv_as_comdat_group != xyes
; then
26672 gcc_cv_ld_eh_gc_sections
=no
26673 cat > conftest.s
<<EOF
26676 .type _start, @function
26679 .size _start, .-_start
26680 .section .gnu.linkonce.t.foo,"ax",@progbits
26681 .type foo, @function
26685 .section .gcc_except_table.foo,"a",@progbits
26688 .section .eh_frame,"a",@progbits
26691 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26692 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26693 |
grep "gc-sections option ignored" > /dev
/null
; then
26694 gcc_cv_ld_eh_gc_sections
=no
26695 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26696 |
grep gcc_except_table
> /dev
/null
; then
26697 gcc_cv_ld_eh_gc_sections
=yes
26703 rm -f conftest.s conftest.o conftest
26707 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26708 gcc_cv_ld_eh_gc_sections
=no
26711 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26713 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26717 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26720 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26721 gcc_cv_ld_eh_gc_sections_bug
=no
26722 if test $in_tree_ld = yes ; then
26723 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 \
26724 && test $in_tree_ld_is_elf = yes; then
26725 gcc_cv_ld_eh_gc_sections_bug
=yes
26727 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
26728 gcc_cv_ld_eh_gc_sections_bug
=yes
26729 cat > conftest.s
<<EOF
26732 .type _start, @function
26735 .size _start, .-_start
26736 .section .text.startup.foo,"ax",@progbits
26737 .type foo, @function
26741 .section .gcc_except_table.foo,"a",@progbits
26744 .section .eh_frame,"a",@progbits
26747 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26748 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26749 |
grep "gc-sections option ignored" > /dev
/null
; then
26751 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26752 |
grep gcc_except_table
> /dev
/null
; then
26753 gcc_cv_ld_eh_gc_sections_bug
=no
26756 rm -f conftest.s conftest.o conftest
26758 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26760 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26764 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26771 $as_echo_n "checking linker --as-needed support... " >&6; }
26772 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26773 $as_echo_n "(cached) " >&6
26775 gcc_cv_ld_as_needed
=no
26776 gcc_cv_ld_as_needed_option
='--as-needed'
26777 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26778 if test $in_tree_ld = yes ; then
26779 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 \
26780 && test $in_tree_ld_is_elf = yes; then
26781 gcc_cv_ld_as_needed
=yes
26783 elif test x
$gcc_cv_ld != x
; then
26784 # Check if linker supports --as-needed and --no-as-needed options
26785 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26786 gcc_cv_ld_as_needed
=yes
26789 # Solaris 2 ld always supports -z ignore/-z record.
26791 gcc_cv_ld_as_needed
=yes
26792 gcc_cv_ld_as_needed_option
="-z ignore"
26793 gcc_cv_ld_no_as_needed_option
="-z record"
26798 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26799 # dl_iterate_phdr, i.e. since Solaris 11.
26801 *-*-solaris2.1
[1-9]*)
26803 i?
86-*-* | x86_64-
*-*)
26804 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26805 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26806 gcc_cv_ld_as_needed
=no
26812 gcc_cv_ld_as_needed
=no
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26818 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26819 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26821 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26824 cat >>confdefs.h
<<_ACEOF
26825 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26829 cat >>confdefs.h
<<_ACEOF
26830 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26835 case "$target:$tm_file" in
26836 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26839 emul_name
="-melf64lppc"
26842 emul_name
="-melf64ppc"
26845 emul_name
="-melf64ppc_fbsd"
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26849 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26850 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26851 $as_echo_n "(cached) " >&6
26853 gcc_cv_ld_no_dot_syms
=no
26854 if test x
"$ld_is_gold" = xyes
; then
26855 gcc_cv_ld_no_dot_syms
=yes
26856 elif test $in_tree_ld = yes ; then
26857 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
26858 gcc_cv_ld_no_dot_syms
=yes
26860 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26861 cat > conftest1.s
<<EOF
26865 cat > conftest2.s
<<EOF
26866 .section ".opd","aw"
26869 .type foo,@function
26871 .quad .LEfoo,.TOC.@tocbase,0
26877 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26878 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26879 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26880 gcc_cv_ld_no_dot_syms
=yes
26882 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26887 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26888 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26890 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26895 $as_echo_n "checking linker large toc support... " >&6; }
26896 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26899 gcc_cv_ld_large_toc
=no
26900 if test x
"$ld_is_gold" = xyes
; then
26901 gcc_cv_ld_large_toc
=yes
26902 elif test $in_tree_ld = yes ; then
26903 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
26904 gcc_cv_ld_large_toc
=yes
26906 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26907 cat > conftest.s
<<EOF
26908 .section ".tbss","awT",@nobits
26914 addis 9,13,ie0@got@tprel@ha
26915 ld 9,ie0@got@tprel@l(9)
26917 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26918 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26919 gcc_cv_ld_large_toc
=yes
26921 rm -f conftest conftest.o conftest.s
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26926 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26927 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26929 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26938 $as_echo_n "checking linker large toc support... " >&6; }
26939 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26942 gcc_cv_ld_large_toc
=no
26943 if test x
$gcc_cv_as != x
; then
26944 cat > conftest.s
<<EOF
26954 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26955 gcc_cv_ld_large_toc
=yes
26957 rm -f conftest conftest.o conftest.s
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26962 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26963 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26965 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26972 $as_echo_n "checking linker --build-id support... " >&6; }
26973 if test "${gcc_cv_ld_buildid+set}" = set; then :
26974 $as_echo_n "(cached) " >&6
26976 gcc_cv_ld_buildid
=no
26977 if test $in_tree_ld = yes ; then
26978 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26979 "$gcc_cv_gld_minor_version" -ge 18 -o \
26980 "$gcc_cv_gld_major_version" -gt 2 \
26981 && test $in_tree_ld_is_elf = yes; then
26982 gcc_cv_ld_buildid
=yes
26984 elif test x
$gcc_cv_ld != x
; then
26985 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26986 gcc_cv_ld_buildid
=yes
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26991 $as_echo "$gcc_cv_ld_buildid" >&6; }
26992 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26994 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26998 # Check whether --enable-linker-build-id was given.
26999 if test "${enable_linker_build_id+set}" = set; then :
27000 enableval
=$enable_linker_build_id;
27002 enable_linker_build_id
=no
27006 if test x
"$enable_linker_build_id" = xyes
; then
27007 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27009 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27013 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27017 # In binutils 2.21, GNU ld gained support for new emulations fully
27018 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27020 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27021 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27022 $as_echo_n "(cached) " >&6
27024 gcc_cv_ld_sol2_emulation
=no
27025 if test $in_tree_ld = yes ; then
27026 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27027 "$gcc_cv_gld_minor_version" -ge 21 -o \
27028 "$gcc_cv_gld_major_version" -gt 2 \
27029 && test $in_tree_ld_is_elf = yes; then
27030 gcc_cv_ld_sol2_emulation
=yes
27032 elif test x
$gcc_cv_ld != x
; then
27033 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27034 grep _sol2
> /dev
/null
; then
27035 gcc_cv_ld_sol2_emulation
=yes
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27040 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27041 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27043 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27048 $as_echo_n "checking linker --sysroot support... " >&6; }
27049 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27052 gcc_cv_ld_sysroot
=no
27053 if test $in_tree_ld = yes ; then
27054 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
27055 gcc_cv_ld_sysroot
=yes
27057 elif test x
$gcc_cv_ld != x
; then
27058 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27059 gcc_cv_ld_sysroot
=yes
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27064 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27065 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27067 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27071 # Test for stack protector support in target C library.
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27073 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27074 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27077 gcc_cv_libc_provides_ssp
=no
27079 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27080 # glibc 2.4 and later provides __stack_chk_fail and
27081 # either __stack_chk_guard, or TLS access to stack guard canary.
27083 if test $glibc_version_major -gt 2 \
27084 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27085 gcc_cv_libc_provides_ssp
=yes
27088 if test -f $target_header_dir/features.h \
27089 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27090 $target_header_dir/features.h
> /dev
/null
; then
27091 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27092 $target_header_dir/features.h
> /dev
/null
&& \
27093 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27094 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27095 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27096 gcc_cv_libc_provides_ssp
=yes
27098 # all versions of Bionic support stack protector
27099 elif test -f $target_header_dir/sys
/cdefs.h \
27100 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27101 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27102 gcc_cv_libc_provides_ssp
=yes
27107 # Avoid complicated tests (see
27108 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27109 # simply assert that glibc does provide this, which is true for all
27110 # realistically usable GNU/Hurd configurations.
27111 gcc_cv_libc_provides_ssp
=yes;;
27112 *-*-darwin* |
*-*-freebsd*)
27113 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27114 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27115 gcc_cv_libc_provides_ssp
=yes
27117 echo "no __stack_chk_fail on this target"
27121 *) gcc_cv_libc_provides_ssp
=no
;;
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27125 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27127 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27129 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27133 # Test for <sys/sdt.h> on the target.
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27136 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27138 if test -f $target_header_dir/sys
/sdt.h
; then
27141 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27145 $as_echo "$have_sys_sdt_h" >&6; }
27147 # Check if TFmode long double should be used by default or not.
27148 # Some glibc targets used DFmode long double, but with glibc 2.4
27149 # and later they can use TFmode.
27151 powerpc
*-*-linux* | \
27152 sparc
*-*-linux* | \
27156 # Check whether --with-long-double-128 was given.
27157 if test "${with_long_double_128+set}" = set; then :
27158 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27161 if test $glibc_version_major -gt 2 \
27162 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27163 gcc_cv_target_ldbl128
=yes
27166 gcc_cv_target_ldbl128
=no
27167 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27168 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27169 && gcc_cv_target_ldbl128
=yes
27176 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27178 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27183 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27184 gcc_cv_target_dl_iterate_phdr
=unknown
27186 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27187 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27188 # libdl there, both complicating its use and breaking compatibility
27189 # between Solaris 10 updates.
27190 *-*-solaris2.1
[1-9]*)
27191 # <link.h> needs both a dl_iterate_phdr declaration and support for
27192 # compilation with largefile support.
27193 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27194 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27195 gcc_cv_target_dl_iterate_phdr
=yes
27197 gcc_cv_target_dl_iterate_phdr
=no
27202 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27204 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27208 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27210 # We no longer support different GC mechanisms. Emit an error if
27211 # the user configures with --with-gc.
27213 # Check whether --with-gc was given.
27214 if test "${with_gc+set}" = set; then :
27215 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27219 # Libraries to use on the host. This will normally be set by the top
27220 # level Makefile. Here we simply capture the value for our Makefile.
27221 if test -z "${HOST_LIBS+set}"; then
27226 # Use the system's zlib library.
27228 zlibinc
="-I\$(srcdir)/../zlib"
27230 # Check whether --with-system-zlib was given.
27231 if test "${with_system_zlib+set}" = set; then :
27232 withval
=$with_system_zlib; zlibdir
=
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27243 # Check whether --enable-maintainer-mode was given.
27244 if test "${enable_maintainer_mode+set}" = set; then :
27245 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27252 $as_echo "$maintainer_mode" >&6; }
27254 if test "$maintainer_mode" = "yes"; then
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27262 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27263 # Check whether --enable-link-mutex was given.
27264 if test "${enable_link_mutex+set}" = set; then :
27265 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27271 $as_echo "$do_link_mutex" >&6; }
27273 if test "$do_link_mutex" = "yes"; then
27276 DO_LINK_MUTEX
=false
27284 # Make empty files to contain the specs and options for each language.
27285 # Then add #include lines to for a compiler that has specs and/or options.
27291 # These (without "all_") are set in each config-lang.in.
27292 # `language' must be a single word so is spelled singularly.
27295 all_outputs
='Makefile'
27296 # List of language makefile fragments.
27297 all_lang_makefrags
=
27298 # Additional files for gengtype
27299 all_gtfiles
="$target_gtfiles"
27301 # These are the languages that are set in --enable-languages,
27302 # and are available in the GCC tree.
27303 all_selected_languages
=
27305 # Add the language fragments.
27306 # Languages are added via two mechanisms. Some information must be
27307 # recorded in makefile variables, these are defined in config-lang.in.
27308 # We accumulate them and plug them into the main Makefile.
27309 # The other mechanism is a set of hooks for each of the main targets
27310 # like `clean', `install', etc.
27312 language_hooks
="Make-hooks"
27314 for lang
in ${srcdir}/*/config-lang.
in
27316 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27318 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27319 if test "x$lang_alias" = x
27321 echo "$lang doesn't set \$language." 1>&2
27324 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27325 subdirs
="$subdirs $subdir"
27327 # $gcc_subdir is where the gcc integration files are to be found
27328 # for a language, both for internal compiler purposes (compiler
27329 # sources implementing front-end to GCC tree converters), and for
27330 # build infrastructure purposes (Make-lang.in, etc.)
27332 # This will be <subdir> (relative to $srcdir) if a line like
27333 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27334 # is found in <langdir>/config-lang.in, and will remain <langdir>
27337 # Except for the language alias (fetched above), the regular
27338 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27339 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27340 # only this and the language alias.
27342 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27343 if [ "$gcc_subdir" = "" ]; then
27344 gcc_subdir
="$subdir"
27347 case ",$enable_languages," in
27349 all_selected_languages
="$all_selected_languages $lang_alias"
27350 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27351 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27362 .
${srcdir}/$gcc_subdir/config-lang.
in
27363 if test "x$language" = x
27365 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27370 case ",$enable_languages," in
27371 *,$lang_alias,*) ;;
27373 for i
in $subdir_requires; do
27374 test -f "${srcdir}/$i/config-lang.in" && continue
27382 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27383 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27384 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27385 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27387 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27388 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27390 all_languages
="$all_languages $language"
27391 all_compilers
="$all_compilers $compilers"
27392 all_outputs
="$all_outputs $outputs"
27393 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27394 case ",$enable_languages," in
27397 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27407 for language
in $all_selected_languages
27409 check_languages
="$check_languages check-$language"
27412 # We link each language in with a set of hooks, reached indirectly via
27413 # lang.${target}. Only do so for selected languages.
27417 target_list
="all.cross start.encap rest.encap tags \
27418 install-common install-man install-info install-pdf install-html dvi \
27419 pdf html uninstall info man srcextra srcman srcinfo \
27420 mostlyclean clean distclean maintainer-clean install-plugin"
27422 for t
in $target_list
27425 for lang
in $all_selected_languages
27429 echo "lang.$t: $x" >> Make-hooks
27433 # Option include files
27436 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27437 option_includes
="option-includes.mk"
27446 echo "dir ." > .gdbinit
27447 echo "dir ${srcdir}" >> .gdbinit
27448 if test x
$gdb_needs_out_file_path = xyes
27450 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27452 if test "x$subdirs" != x
; then
27455 echo "dir ${srcdir}/$s" >> .gdbinit
27458 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27459 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27461 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27465 # Find a directory in which to install a shared libgcc.
27467 # Check whether --enable-version-specific-runtime-libs was given.
27468 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27469 enableval
=$enable_version_specific_runtime_libs;
27473 # Substitute configuration variables
27537 if test x
${build} = x
${host} ; then
27538 if test x
${host} = x
${target} ; then
27539 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27541 echo "Links are now set up to build a cross-compiler" 1>&2
27542 echo " from ${host} to ${target}." 1>&2
27545 if test x
${host} = x
${target} ; then
27546 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27547 echo " for ${target}." 1>&2
27549 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27550 echo " from ${host} to ${target}." 1>&2
27562 if test "x${CLOOGLIBS}" != "x" ; then
27564 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27568 # Check for plugin support
27569 # Check whether --enable-plugin was given.
27570 if test "${enable_plugin+set}" = set; then :
27571 enableval
=$enable_plugin; enable_plugin
=$enableval
27573 enable_plugin
=yes; default_plugin
=yes
27581 if test x
$build = x
$host; then
27582 export_sym_check
="nm${exeext} -g"
27583 elif test x
$host = x
$target; then
27584 export_sym_check
="$gcc_cv_nm -g"
27590 if test x
$build = x
$host; then
27591 export_sym_check
="objdump${exeext} -T"
27592 elif test x
$host = x
$target; then
27593 export_sym_check
="$gcc_cv_objdump -T"
27600 if test x
"$enable_plugin" = x
"yes"; then
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27603 $as_echo_n "checking for exported symbols... " >&6; }
27604 if test "x$export_sym_check" != x
; then
27605 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27606 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27607 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27608 : # No need to use a flag
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27610 $as_echo "yes" >&6; }
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27613 $as_echo "yes" >&6; }
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27615 $as_echo_n "checking for -rdynamic... " >&6; }
27616 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27617 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27618 plugin_rdynamic
=yes
27619 pluginlibs
="-rdynamic"
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27625 $as_echo "$plugin_rdynamic" >&6; }
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27629 $as_echo "unable to check" >&6; }
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27635 $as_echo_n "checking for library containing dlopen... " >&6; }
27636 if test "${ac_cv_search_dlopen+set}" = set; then :
27637 $as_echo_n "(cached) " >&6
27639 ac_func_search_save_LIBS
=$LIBS
27640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27641 /* end confdefs.h. */
27643 /* Override any GCC internal prototype to avoid an error.
27644 Use char because int might match the return type of a GCC
27645 builtin and then its argument prototype would still apply. */
27658 for ac_lib
in '' dl
; do
27659 if test -z "$ac_lib"; then
27660 ac_res
="none required"
27663 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27665 if ac_fn_c_try_link
"$LINENO"; then :
27666 ac_cv_search_dlopen
=$ac_res
27668 rm -f core conftest.err conftest.
$ac_objext \
27670 if test "${ac_cv_search_dlopen+set}" = set; then :
27674 if test "${ac_cv_search_dlopen+set}" = set; then :
27677 ac_cv_search_dlopen
=no
27679 rm conftest.
$ac_ext
27680 LIBS
=$ac_func_search_save_LIBS
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27683 $as_echo "$ac_cv_search_dlopen" >&6; }
27684 ac_res
=$ac_cv_search_dlopen
27685 if test "$ac_res" != no
; then :
27686 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27690 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27691 pluginlibs
="$pluginlibs -ldl"
27695 # Check that we can build shared objects with -fPIC -shared
27696 saved_LDFLAGS
="$LDFLAGS"
27697 saved_CFLAGS
="$CFLAGS"
27700 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27701 CFLAGS
="$CFLAGS -fPIC"
27702 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27705 CFLAGS
="$CFLAGS -fPIC"
27706 LDFLAGS
="$LDFLAGS -fPIC -shared"
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27710 $as_echo_n "checking for -fPIC -shared... " >&6; }
27711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27712 /* end confdefs.h. */
27722 if ac_fn_c_try_link
"$LINENO"; then :
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27724 $as_echo "yes" >&6; }; have_pic_shared
=yes
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27727 $as_echo "no" >&6; }; have_pic_shared
=no
27729 rm -f core conftest.err conftest.
$ac_objext \
27730 conftest
$ac_exeext conftest.
$ac_ext
27731 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27735 LDFLAGS
="$saved_LDFLAGS"
27736 CFLAGS
="$saved_CFLAGS"
27738 # If plugin support had been requested but not available, fail.
27739 if test x
"$enable_plugin" = x
"no" ; then
27740 if test x
"$default_plugin" != x
"yes"; then
27742 Building GCC with plugin support requires a host that supports
27743 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27750 if test x
"$enable_plugin" = x
"yes"; then
27752 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27757 # Enable --enable-host-shared
27758 # Check whether --enable-host-shared was given.
27759 if test "${enable_host_shared+set}" = set; then :
27760 enableval
=$enable_host_shared; PICFLAG
=-fPIC
27769 # Check whether --enable-libquadmath-support was given.
27770 if test "${enable_libquadmath_support+set}" = set; then :
27771 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27773 ENABLE_LIBQUADMATH_SUPPORT
=yes
27776 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27778 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27783 # Specify what hash style to use by default.
27785 # Check whether --with-linker-hash-style was given.
27786 if test "${with_linker_hash_style+set}" = set; then :
27787 withval
=$with_linker_hash_style; case x
"$withval" in
27789 LINKER_HASH_STYLE
=sysv
27792 LINKER_HASH_STYLE
=gnu
27795 LINKER_HASH_STYLE
=both
27798 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27802 LINKER_HASH_STYLE
=''
27805 if test x
"${LINKER_HASH_STYLE}" != x
; then
27807 cat >>confdefs.h
<<_ACEOF
27808 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27813 # Configure the subdirectories
27814 # AC_CONFIG_SUBDIRS($subdirs)
27816 # Create the Makefile
27817 # and configure language subdirectories
27818 ac_config_files
="$ac_config_files $all_outputs"
27821 ac_config_commands
="$ac_config_commands default"
27823 cat >confcache
<<\_ACEOF
27824 # This file is a shell script that caches the results of configure
27825 # tests run on this system so they can be shared between configure
27826 # scripts and configure runs, see configure's option --config-cache.
27827 # It is not useful on other systems. If it contains results you don't
27828 # want to keep, you may remove or edit it.
27830 # config.status only pays attention to the cache file if you give it
27831 # the --recheck option to rerun configure.
27833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27835 # following values.
27839 # The following way of writing the cache mishandles newlines in values,
27840 # but we know of no workaround that is simple, portable, and efficient.
27841 # So, we kill variables containing newlines.
27842 # Ultrix sh set writes to stderr and can't be redirected directly,
27843 # and sets the high bit in the cache file unless we assign to the vars.
27845 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27846 eval ac_val
=\$
$ac_var
27850 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27854 _ | IFS | as_nl
) ;; #(
27855 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27856 *) { eval $ac_var=; unset $ac_var;} ;;
27862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27863 *${as_nl}ac_space
=\
*)
27864 # `set' does not quote correctly, so add quotes: double-quote
27865 # substitution turns \\\\ into \\, and sed turns \\ into \.
27868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27871 # `set' quotes correctly as required by POSIX, so do not add quotes.
27872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27885 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27886 if test -w "$cache_file"; then
27887 test "x$cache_file" != "x/dev/null" &&
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27889 $as_echo "$as_me: updating cache $cache_file" >&6;}
27890 cat confcache
>$cache_file
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27893 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27898 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27899 # Let make expand exec_prefix.
27900 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27902 DEFS
=-DHAVE_CONFIG_H
27906 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27907 # 1. Remove the extension, and $U if already installed.
27908 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27909 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27911 # will be set to the directory where LIBOBJS objects are built.
27912 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27913 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27915 LIBOBJS
=$ac_libobjs
27917 LTLIBOBJS
=$ac_ltlibobjs
27922 : ${CONFIG_STATUS=./config.status}
27924 ac_clean_files_save
=$ac_clean_files
27925 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27927 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27929 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27931 # Generated by $as_me.
27932 # Run this file to recreate the current configuration.
27933 # Compiler output produced by configure, useful for debugging
27934 # configure, is in config.log if it exists.
27937 ac_cs_recheck=false
27940 SHELL=\${CONFIG_SHELL-$SHELL}
27943 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27944 ## -------------------- ##
27945 ## M4sh Initialization. ##
27946 ## -------------------- ##
27948 # Be more Bourne compatible
27949 DUALCASE
=1; export DUALCASE
# for MKS sh
27950 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27954 # is contrary to our usage. Disable this feature.
27955 alias -g '${1+"$@"}'='"$@"'
27956 setopt NO_GLOB_SUBST
27958 case `(set -o) 2>/dev/null` in #(
27970 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27971 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27974 # Prefer a ksh shell builtin over an external printf program on Solaris,
27975 # but without wasting forks for bash or zsh.
27976 if test -z "$BASH_VERSION$ZSH_VERSION" \
27977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27978 as_echo='print
-r --'
27979 as_echo_n='print
-rn --'
27980 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27981 as_echo='printf %s
\n'
27982 as_echo_n='printf %s
'
27984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27985 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27986 as_echo_n='/usr
/ucb
/echo -n'
27988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27989 as_echo_n_body='eval
27993 expr "X$arg" : "X\\(.*\\)$as_nl";
27994 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27996 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27998 export as_echo_n_body
27999 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28001 export as_echo_body
28002 as_echo='sh
-c $as_echo_body as_echo
'
28005 # The user is always right.
28006 if test "${PATH_SEPARATOR+set}" != set; then
28008 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28009 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28016 # We need space, tab and new line, in precisely that order. Quoting is
28017 # there to prevent editors from complaining about space-tab.
28018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28019 # splitting by setting IFS to empty value.)
28022 # Find who we are. Look in the path if we contain no directory separator.
28024 *[\\/]* ) as_myself=$0 ;;
28025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28026 for as_dir in $PATH
28029 test -z "$as_dir" && as_dir=.
28030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28036 # We did not find ourselves, most probably we were run as `sh COMMAND'
28037 # in which case we are not to be found in the path.
28038 if test "x$as_myself" = x
; then
28041 if test ! -f "$as_myself"; then
28042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28046 # Unset variables that we do not need and which cause bugs (e.g. in
28047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28048 # suppresses any "Segmentation fault" message there. '((' could
28049 # trigger a bug in pdksh 5.2.14.
28050 for as_var
in BASH_ENV ENV MAIL MAILPATH
28051 do eval test x\
${$as_var+set} = xset \
28052 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28065 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28068 # as_fn_error ERROR [LINENO LOG_FD]
28069 # ---------------------------------
28070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28072 # script with status $?, using 1 if that was 0.
28075 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28077 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28080 $as_echo "$as_me: error: $1" >&2
28081 as_fn_exit
$as_status
28085 # as_fn_set_status STATUS
28086 # -----------------------
28087 # Set $? to STATUS, without forking.
28088 as_fn_set_status
()
28091 } # as_fn_set_status
28093 # as_fn_exit STATUS
28094 # -----------------
28095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28099 as_fn_set_status
$1
28105 # Portably unset VAR.
28108 { eval $1=; unset $1;}
28110 as_unset
=as_fn_unset
28111 # as_fn_append VAR VALUE
28112 # ----------------------
28113 # Append the text in VALUE to the end of the definition contained in VAR. Take
28114 # advantage of any shell optimizations that allow amortized linear growth over
28115 # repeated appends, instead of the typical quadratic growth present in naive
28117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28118 eval 'as_fn_append ()
28129 # as_fn_arith ARG...
28130 # ------------------
28131 # Perform arithmetic evaluation on the ARGs, and store the result in the
28132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28133 # must be portable across $(()) and expr.
28134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28135 eval 'as_fn_arith ()
28142 as_val
=`expr "$@" || test $? -eq 1`
28147 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28148 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28154 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28155 as_basename
=basename
28160 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28166 as_me
=`$as_basename -- "$0" ||
28167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28168 X"$0" : 'X\(//\)$' \| \
28169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28171 sed '/^.*\/\([^/][^/]*\)\/*$/{
28185 # Avoid depending upon Character Ranges.
28186 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28187 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28188 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28189 as_cr_digits
='0123456789'
28190 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28192 ECHO_C
= ECHO_N
= ECHO_T
=
28193 case `echo -n x` in #(((((
28195 case `echo 'xy\c'` in
28196 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28198 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28205 rm -f conf$$ conf$$.exe conf$$.
file
28206 if test -d conf$$.dir
; then
28207 rm -f conf$$.dir
/conf$$.
file
28210 mkdir conf$$.dir
2>/dev
/null
28212 if (echo >conf$$.
file) 2>/dev
/null
; then
28213 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28215 # ... but there are two gotchas:
28216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28218 # In both cases, we have to default to `cp -p'.
28219 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28221 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28229 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28230 rmdir conf$$.dir
2>/dev
/null
28235 # Create "$as_dir" as a directory, including parents if necessary.
28240 -*) as_dir
=.
/$as_dir;;
28242 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28246 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28247 *) as_qdir
=$as_dir;;
28249 as_dirs
="'$as_qdir' $as_dirs"
28250 as_dir
=`$as_dirname -- "$as_dir" ||
28251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28252 X"$as_dir" : 'X\(//\)[^/]' \| \
28253 X"$as_dir" : 'X\(//\)$' \| \
28254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28255 $as_echo X"$as_dir" |
28256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28260 /^X\(\/\/\)[^/].*/{
28273 test -d "$as_dir" && break
28275 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28276 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28280 if mkdir
-p .
2>/dev
/null
; then
28281 as_mkdir_p
='mkdir -p "$as_dir"'
28283 test -d .
/-p && rmdir .
/-p
28287 if test -x / >/dev
/null
2>&1; then
28288 as_test_x
='test -x'
28290 if ls -dL / >/dev
/null
2>&1; then
28297 if test -d "$1"; then
28303 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28304 ???[sx]*):;;*)false;;esac;fi
28308 as_executable_p
=$as_test_x
28310 # Sed expression to map a string onto a valid CPP name.
28311 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28313 # Sed expression to map a string onto a valid variable name.
28314 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28318 ## ----------------------------------- ##
28319 ## Main body of $CONFIG_STATUS script. ##
28320 ## ----------------------------------- ##
28322 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28325 # Save the log message, to keep $0 and so on meaningful, and to
28326 # report actual input values of CONFIG_FILES etc. instead of their
28327 # values after options handling.
28329 This file was extended by $as_me, which was
28330 generated by GNU Autoconf 2.64. Invocation command line was
28332 CONFIG_FILES = $CONFIG_FILES
28333 CONFIG_HEADERS = $CONFIG_HEADERS
28334 CONFIG_LINKS = $CONFIG_LINKS
28335 CONFIG_COMMANDS = $CONFIG_COMMANDS
28338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28343 case $ac_config_files in *"
28344 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28347 case $ac_config_headers in *"
28348 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28353 # Files that config.status was made for.
28354 config_files="$ac_config_files"
28355 config_headers="$ac_config_headers"
28356 config_commands="$ac_config_commands"
28360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28362 \`$as_me' instantiates files and other configuration actions
28363 from templates according to the current configuration. Unless the files
28364 and actions are specified as TAGs, all are instantiated by default.
28366 Usage: $0 [OPTION]... [TAG]...
28368 -h, --help print this help, then exit
28369 -V, --version print version number and configuration settings, then exit
28370 -q, --quiet, --silent
28371 do not print progress messages
28372 -d, --debug don't remove temporary files
28373 --recheck update $as_me by reconfiguring in the same conditions
28374 --file=FILE[:TEMPLATE]
28375 instantiate the configuration file FILE
28376 --header=FILE[:TEMPLATE]
28377 instantiate the configuration header FILE
28379 Configuration files:
28382 Configuration headers:
28385 Configuration commands:
28388 Report bugs to the package provider."
28391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28394 configured by $0, generated by GNU Autoconf 2.64,
28395 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28397 Copyright (C) 2009 Free Software Foundation, Inc.
28398 This config.status script is free software; the Free Software Foundation
28399 gives unlimited permission to copy, distribute and modify it."
28404 test -n "\$AWK" || AWK=awk
28407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28408 # The default lists apply if the user does not specify any file.
28414 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28415 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28426 # Handling of the options.
28427 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28429 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28430 $as_echo "$ac_cs_version"; exit ;;
28431 --debug |
--debu |
--deb |
--de |
--d |
-d )
28433 --file |
--fil |
--fi |
--f )
28436 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28438 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28439 ac_need_defaults
=false
;;
28440 --header |
--heade |
--head |
--hea )
28443 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28445 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28446 ac_need_defaults
=false
;;
28448 # Conflict between --help and --header
28449 as_fn_error
"ambiguous option: \`$1'
28450 Try \`$0 --help' for more information.";;
28451 --help |
--hel |
-h )
28452 $as_echo "$ac_cs_usage"; exit ;;
28453 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28454 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28457 # This is an error.
28458 -*) as_fn_error
"unrecognized option: \`$1'
28459 Try \`$0 --help' for more information." ;;
28461 *) as_fn_append ac_config_targets
" $1"
28462 ac_need_defaults
=false
;;
28468 ac_configure_extra_args
=
28470 if $ac_cs_silent; then
28472 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28477 if \$ac_cs_recheck; then
28478 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28481 CONFIG_SHELL='$SHELL'
28482 export CONFIG_SHELL
28487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28492 ## Running $as_me. ##
28498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28502 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28503 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28510 # Handling of arguments.
28511 for ac_config_target
in $ac_config_targets
28513 case $ac_config_target in
28514 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28515 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28516 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28517 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28518 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28519 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28520 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28521 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28523 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28528 # If the user did not use the arguments to specify the items to instantiate,
28529 # then the envvar interface is used. Set only those that are not.
28530 # We use the long form for the default assignment because of an extremely
28531 # bizarre bug on SunOS 4.1.3.
28532 if $ac_need_defaults; then
28533 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28534 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28535 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28538 # Have a temporary directory for convenience. Make it in the build tree
28539 # simply because there is no reason against having it here, and in addition,
28540 # creating and moving files from /tmp can sometimes cause problems.
28541 # Hook for its removal unless debugging.
28542 # Note that there is a small window in which the directory will not be cleaned:
28543 # after its creation but before its name has been assigned to `$tmp'.
28547 trap 'exit_status=$?
28548 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28550 trap 'as_fn_exit 1' 1 2 13 15
28552 # Create a (secure) tmp directory for tmp files.
28555 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28556 test -n "$tmp" && test -d "$tmp"
28559 tmp
=.
/conf$$
-$RANDOM
28560 (umask 077 && mkdir
"$tmp")
28561 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28563 # Set up the scripts for CONFIG_FILES section.
28564 # No need to generate them if there are no CONFIG_FILES.
28565 # This happens for instance with `./config.status config.h'.
28566 if test -n "$CONFIG_FILES"; then
28568 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28569 ac_cs_awk_getline
=:
28570 ac_cs_awk_pipe_init
=
28571 ac_cs_awk_read_file
='
28572 while ((getline aline < (F[key])) > 0)
28575 ac_cs_awk_pipe_fini
=
28577 ac_cs_awk_getline
=false
28578 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28579 ac_cs_awk_read_file
='
28581 print "cat " F[key] " &&"
28582 '$ac_cs_awk_pipe_init
28583 # The final `:' finishes the AND list.
28584 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28586 ac_cr
=`echo X | tr X '\015'`
28587 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28588 # But we know of no other shell where ac_cr would be empty at this
28589 # point, so we can use a bashism as a fallback.
28590 if test "x$ac_cr" = x
; then
28591 eval ac_cr
=\$
\'\\r
\'
28593 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28594 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28597 ac_cs_awk_cr
=$ac_cr
28600 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28603 # Create commands to substitute file output variables.
28605 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28606 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28607 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28610 } >conf$
$files.sh
&&
28611 . .
/conf$
$files.sh ||
28612 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28613 rm -f conf$
$files.sh
28616 echo "cat >conf$$subs.awk <<_ACEOF" &&
28617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28619 } >conf$$subs.sh ||
28620 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28621 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28623 for ac_last_try in false false false false false :; do
28624 . ./conf$$subs.sh ||
28625 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28627 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28628 if test $ac_delim_n = $ac_delim_num; then
28630 elif $ac_last_try; then
28631 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28633 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28636 rm -f conf$$subs.sh
28638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28639 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28643 s/^/S["/; s
/!.
*/"]=/
28653 s/\(.\{148\}\).*/\1/
28655 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28660 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28667 s/\(.\{148\}\).*/\1/
28669 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28673 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28678 ' <conf$$subs.awk | sed '
28683 ' >>$CONFIG_STATUS || ac_write_fail=1
28684 rm -f conf$$subs.awk
28685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28687 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28688 for (key in S) S_is_set[key] = 1
28690 \$ac_cs_awk_pipe_init
28694 nfields = split(line, field, "@
")
28696 len = length(field[1])
28697 for (i = 2; i < nfields; i++) {
28699 keylen = length(key)
28700 if (S_is_set[key]) {
28702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28703 len += length(value) + length(field[++i])
28708 if (nfields == 3 && !substed) {
28710 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28711 \$ac_cs_awk_read_file
28717 \$ac_cs_awk_pipe_fini
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28721 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28722 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28725 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28726 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28729 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28730 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28731 # trailing colons and then remove the whole line if VPATH becomes empty
28732 # (actually we leave an empty line to preserve line numbers).
28733 if test "x
$srcdir" = x.; then
28734 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28735 s/:*\$(srcdir):*/:/
28736 s/:*\${srcdir}:*/:/
28738 s/^\([^=]*=[ ]*\):*/\1/
28744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28745 fi # test -n "$CONFIG_FILES"
28747 # Set up the scripts for CONFIG_HEADERS section.
28748 # No need to generate them if there are no CONFIG_HEADERS.
28749 # This happens for instance with `./config.status Makefile'.
28750 if test -n "$CONFIG_HEADERS"; then
28751 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28755 # Transform confdefs.h into an awk script `defines.awk', embedded as
28756 # here-document in config.status, that substitutes the proper values into
28757 # config.h.in to produce config.h.
28759 # Create a delimiter string that does not exist in confdefs.h, to ease
28760 # handling of long lines.
28762 for ac_last_try in false false :; do
28763 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28764 if test -z "$ac_t"; then
28766 elif $ac_last_try; then
28767 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28769 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28773 # For the awk script, D is an array of macro values keyed by name,
28774 # likewise P contains macro parameters if any. Preserve backslash
28775 # newline sequences.
28777 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28779 s/.\{148\}/&'"$ac_delim"'/g
28782 s/^[ ]*#[ ]*define[ ][ ]*/ /
28789 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28791 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28796 D["\
1"]=" \
3\\\\\\n
"\\/p
28798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28803 s/.\{148\}/&'"$ac_delim"'/g
28808 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28811 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28813 ' <confdefs.h | sed '
28814 s/'"$ac_delim"'/"\\\
28815 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28818 for (key in D) D_is_set[key] = 1
28821 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28823 split(line, arg, " ")
28824 if (arg[1] == "#") {
28828 defundef
= substr
(arg
[1], 2)
28831 split(mac1
, mac2
, "(") #)
28833 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28834 if (D_is_set
[macro
]) {
28835 # Preserve the white space surrounding the "#".
28836 print prefix
"define", macro P
[macro
] D
[macro
]
28839 # Replace #undef with comments. This is necessary, for example,
28840 # in the case of _POSIX_SOURCE, which is predefined and required
28841 # on some systems where configure will not decide to define it.
28842 if (defundef
== "undef") {
28843 print
"/*", prefix defundef
, macro
, "*/"
28851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28852 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28853 fi # test -n "$CONFIG_HEADERS"
28856 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28861 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28863 case $ac_mode$ac_tag in
28865 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28866 :[FH
]-) ac_tag
=-:-;;
28867 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28884 -) ac_f
="$tmp/stdin";;
28885 *) # Look for the file first in the build tree, then in the source tree
28886 # (if the path is not absolute). The absolute path cannot be DOS-style,
28887 # because $ac_f cannot contain `:'.
28891 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28893 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28895 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28896 as_fn_append ac_file_inputs
" '$ac_f'"
28899 # Let's still pretend it is `configure' which instantiates (i.e., don't
28900 # use $as_me), people would be surprised to read:
28901 # /* config.h. Generated by config.status. */
28902 configure_input
='Generated from '`
28903 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28905 if test x
"$ac_file" != x-
; then
28906 configure_input
="$ac_file. $configure_input"
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28908 $as_echo "$as_me: creating $ac_file" >&6;}
28910 # Neutralize special characters interpreted by sed in replacement strings.
28911 case $configure_input in #(
28912 *\
&* |
*\|
* |
*\\* )
28913 ac_sed_conf_input
=`$as_echo "$configure_input" |
28914 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28915 *) ac_sed_conf_input
=$configure_input;;
28919 *:-:* |
*:-) cat >"$tmp/stdin" \
28920 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28925 ac_dir
=`$as_dirname -- "$ac_file" ||
28926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28927 X"$ac_file" : 'X\(//\)[^/]' \| \
28928 X"$ac_file" : 'X\(//\)$' \| \
28929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28930 $as_echo X"$ac_file" |
28931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28935 /^X\(\/\/\)[^/].*/{
28948 as_dir
="$ac_dir"; as_fn_mkdir_p
28952 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28954 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28955 # A ".." for each directory in $ac_dir_suffix.
28956 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28957 case $ac_top_builddir_sub in
28958 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28959 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28962 ac_abs_top_builddir
=$ac_pwd
28963 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28964 # for backward compatibility:
28965 ac_top_builddir
=$ac_top_build_prefix
28968 .
) # We are building in place.
28970 ac_top_srcdir
=$ac_top_builddir_sub
28971 ac_abs_top_srcdir
=$ac_pwd ;;
28972 [\\/]* | ?
:[\\/]* ) # Absolute name.
28973 ac_srcdir
=$srcdir$ac_dir_suffix;
28974 ac_top_srcdir
=$srcdir
28975 ac_abs_top_srcdir
=$srcdir ;;
28976 *) # Relative name.
28977 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28978 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28979 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28981 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28993 # If the template does not know about datarootdir, expand it.
28994 # FIXME: This hack should be removed a few years after 2.60.
28995 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29006 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29007 *datarootdir
*) ac_datarootdir_seen
=yes;;
29008 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29010 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29013 ac_datarootdir_hack='
29014 s&@datadir@&$datadir&g
29015 s&@docdir@&$docdir&g
29016 s&@infodir@&$infodir&g
29017 s&@localedir@&$localedir&g
29018 s&@mandir@&$mandir&g
29019 s&\\\${datarootdir}&$datarootdir&g' ;;
29023 # Neutralize VPATH when `$srcdir' = `.'.
29024 # Shell code in configure.ac might set extrasub.
29025 # FIXME: do we really want to maintain this feature?
29026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29027 ac_sed_extra="$ac_vpsub
29030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29032 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29033 s|@configure_input@|
$ac_sed_conf_input|
;t t
29034 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29035 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29036 s
&@srcdir@
&$ac_srcdir&;t t
29037 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29038 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29039 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29040 s
&@builddir@
&$ac_builddir&;t t
29041 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29042 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29043 $ac_datarootdir_hack
29045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29046 if $ac_cs_awk_getline; then
29047 $AWK -f "$tmp/subs.
awk"
29049 $AWK -f "$tmp/subs.
awk" | $SHELL
29051 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29054 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29057 which seems to be undefined. Please make sure it is defined." >&5
29058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29059 which seems to be undefined. Please make sure it is defined." >&2;}
29063 -) cat "$tmp/out" && rm -f "$tmp/out";;
29064 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29066 || as_fn_error "could not create $ac_file" "$LINENO" 5
29072 if test x"$ac_file" != x-; then
29074 $as_echo "/* $configure_input */" \
29075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29076 } >"$tmp/config.h" \
29077 || as_fn_error "could not create $ac_file" "$LINENO" 5
29078 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29083 mv "$tmp/config.h" "$ac_file" \
29084 || as_fn_error "could not create $ac_file" "$LINENO" 5
29087 $as_echo "/* $configure_input */" \
29088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29089 || as_fn_error "could not create -" "$LINENO" 5
29093 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29094 $as_echo "$as_me: executing $ac_file commands" >&6;}
29099 case $ac_file$ac_mode in
29100 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29102 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29103 for lang in $subdirs c-family common
29105 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29107 "as":F) chmod +x as ;;
29108 "collect-ld":F) chmod +x collect-ld ;;
29109 "nm":F) chmod +x nm ;;
29111 case ${CONFIG_HEADERS} in
29112 *auto-host.h:config.in*)
29115 # Make sure all the subdirs exist.
29116 for d in $subdirs doc build common c-family
29118 test -d $d || mkdir $d
29128 ac_clean_files=$ac_clean_files_save
29130 test $ac_write_fail = 0 ||
29131 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29134 # configure is writing to config.log, and then calls config.status.
29135 # config.status does its own redirection, appending to config.log.
29136 # Unfortunately, on DOS this fails, as config.log is still kept open
29137 # by configure, so config.status won't be able to
write to it
; its
29138 # output is simply discarded. So we exec the FD to /dev/null,
29139 # effectively closing config.log, so it can be properly (re)opened and
29140 # appended to by config.status. When coming back to configure, we
29141 # need to make the FD available again.
29142 if test "$no_create" != yes; then
29144 ac_config_status_args
=
29145 test "$silent" = yes &&
29146 ac_config_status_args
="$ac_config_status_args --quiet"
29148 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29150 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29151 # would make configure fail if this is the last instruction.
29152 $ac_cs_success || as_fn_exit $?
29154 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29156 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}