2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
680 ORIGINAL_NM_FOR_TARGET
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 RUNTIME_ROOT_PREFIX_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
890 with_native_system_header_dir
892 with_runtime_root_prefix
901 enable_sjlj_exceptions
903 enable_leading_mingw64_underscores
906 enable_win32_registry
912 enable_gnu_indirect_function
913 enable_initfini_array
915 enable_gnu_unique_object
916 enable_linker_build_id
920 enable_maintainer_mode
921 enable_version_specific_runtime_libs
922 enable_canonical_prefixes
924 enable_libquadmath_support
925 with_linker_hash_style
927 ac_precious_vars
='build_alias
948 # Initialize some variables set by options.
950 ac_init_version
=false
951 ac_unrecognized_opts
=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name
=s
,x
,x
,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir
='${exec_prefix}/bin'
977 sbindir
='${exec_prefix}/sbin'
978 libexecdir
='${exec_prefix}/libexec'
979 datarootdir
='${prefix}/share'
980 datadir
='${datarootdir}'
981 sysconfdir
='${prefix}/etc'
982 sharedstatedir
='${prefix}/com'
983 localstatedir
='${prefix}/var'
984 includedir
='${prefix}/include'
985 oldincludedir
='/usr/include'
986 docdir
='${datarootdir}/doc/${PACKAGE}'
987 infodir
='${datarootdir}/info'
992 libdir
='${exec_prefix}/lib'
993 localedir
='${datarootdir}/locale'
994 mandir
='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\
$ac_option
1008 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1020 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1021 bindir
=$ac_optarg ;;
1023 -build |
--build |
--buil |
--bui |
--bu)
1024 ac_prev
=build_alias
;;
1025 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1026 build_alias
=$ac_optarg ;;
1028 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1029 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1030 ac_prev
=cache_file
;;
1031 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1032 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1033 cache_file
=$ac_optarg ;;
1035 --config-cache |
-C)
1036 cache_file
=config.cache
;;
1038 -datadir |
--datadir |
--datadi |
--datad)
1040 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1041 datadir
=$ac_optarg ;;
1043 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1044 |
--dataroo |
--dataro |
--datar)
1045 ac_prev
=datarootdir
;;
1046 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1047 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1048 datarootdir
=$ac_optarg ;;
1050 -disable-* |
--disable-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error
"invalid feature name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_
$ac_useropt"
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval enable_
$ac_useropt=no
;;
1066 -docdir |
--docdir |
--docdi |
--doc |
--do)
1068 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1069 docdir
=$ac_optarg ;;
1071 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1073 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1074 dvidir
=$ac_optarg ;;
1076 -enable-* |
--enable-*)
1077 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1080 as_fn_error
"invalid feature name: $ac_useropt"
1081 ac_useropt_orig
=$ac_useropt
1082 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_
$ac_useropt"
1087 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep
=', ';;
1090 eval enable_
$ac_useropt=\
$ac_optarg ;;
1092 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1093 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1094 |
--exec |
--exe |
--ex)
1095 ac_prev
=exec_prefix
;;
1096 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1097 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1098 |
--exec=* |
--exe=* |
--ex=*)
1099 exec_prefix
=$ac_optarg ;;
1101 -gas |
--gas |
--ga |
--g)
1102 # Obsolete; use --with-gas.
1105 -help |
--help |
--hel |
--he |
-h)
1106 ac_init_help
=long
;;
1107 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1108 ac_init_help
=recursive
;;
1109 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1110 ac_init_help
=short
;;
1112 -host |
--host |
--hos |
--ho)
1113 ac_prev
=host_alias
;;
1114 -host=* |
--host=* |
--hos=* |
--ho=*)
1115 host_alias
=$ac_optarg ;;
1117 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1119 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1121 htmldir
=$ac_optarg ;;
1123 -includedir |
--includedir |
--includedi |
--included |
--include \
1124 |
--includ |
--inclu |
--incl |
--inc)
1125 ac_prev
=includedir
;;
1126 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1127 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1128 includedir
=$ac_optarg ;;
1130 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1132 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1133 infodir
=$ac_optarg ;;
1135 -libdir |
--libdir |
--libdi |
--libd)
1137 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1138 libdir
=$ac_optarg ;;
1140 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1141 |
--libexe |
--libex |
--libe)
1142 ac_prev
=libexecdir
;;
1143 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1144 |
--libexe=* |
--libex=* |
--libe=*)
1145 libexecdir
=$ac_optarg ;;
1147 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1148 ac_prev
=localedir
;;
1149 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1150 localedir
=$ac_optarg ;;
1152 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1153 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1154 ac_prev
=localstatedir
;;
1155 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1156 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1157 localstatedir
=$ac_optarg ;;
1159 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1161 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1162 mandir
=$ac_optarg ;;
1164 -nfp |
--nfp |
--nf)
1165 # Obsolete; use --without-fp.
1168 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1169 |
--no-cr |
--no-c |
-n)
1172 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1173 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1176 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1177 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1178 |
--oldin |
--oldi |
--old |
--ol |
--o)
1179 ac_prev
=oldincludedir
;;
1180 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1181 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1182 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1183 oldincludedir
=$ac_optarg ;;
1185 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1187 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1188 prefix
=$ac_optarg ;;
1190 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1191 |
--program-pre |
--program-pr |
--program-p)
1192 ac_prev
=program_prefix
;;
1193 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1194 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1195 program_prefix
=$ac_optarg ;;
1197 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1198 |
--program-suf |
--program-su |
--program-s)
1199 ac_prev
=program_suffix
;;
1200 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1201 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1202 program_suffix
=$ac_optarg ;;
1204 -program-transform-name |
--program-transform-name \
1205 |
--program-transform-nam |
--program-transform-na \
1206 |
--program-transform-n |
--program-transform- \
1207 |
--program-transform |
--program-transfor \
1208 |
--program-transfo |
--program-transf \
1209 |
--program-trans |
--program-tran \
1210 |
--progr-tra |
--program-tr |
--program-t)
1211 ac_prev
=program_transform_name
;;
1212 -program-transform-name=* |
--program-transform-name=* \
1213 |
--program-transform-nam=* |
--program-transform-na=* \
1214 |
--program-transform-n=* |
--program-transform-=* \
1215 |
--program-transform=* |
--program-transfor=* \
1216 |
--program-transfo=* |
--program-transf=* \
1217 |
--program-trans=* |
--program-tran=* \
1218 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1219 program_transform_name
=$ac_optarg ;;
1221 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1223 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1224 pdfdir
=$ac_optarg ;;
1226 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1228 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1231 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1232 |
-silent |
--silent |
--silen |
--sile |
--sil)
1235 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1237 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1239 sbindir
=$ac_optarg ;;
1241 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1242 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1243 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1245 ac_prev
=sharedstatedir
;;
1246 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1247 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1248 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1250 sharedstatedir
=$ac_optarg ;;
1252 -site |
--site |
--sit)
1254 -site=* |
--site=* |
--sit=*)
1257 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1259 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1260 srcdir
=$ac_optarg ;;
1262 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1263 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1264 ac_prev
=sysconfdir
;;
1265 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1266 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1267 sysconfdir
=$ac_optarg ;;
1269 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1270 ac_prev
=target_alias
;;
1271 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1272 target_alias
=$ac_optarg ;;
1274 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1277 -version |
--version |
--versio |
--versi |
--vers |
-V)
1278 ac_init_version
=: ;;
1281 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1284 as_fn_error
"invalid package name: $ac_useropt"
1285 ac_useropt_orig
=$ac_useropt
1286 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep
=', ';;
1294 eval with_
$ac_useropt=\
$ac_optarg ;;
1296 -without-* |
--without-*)
1297 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1300 as_fn_error
"invalid package name: $ac_useropt"
1301 ac_useropt_orig
=$ac_useropt
1302 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep
=', ';;
1310 eval with_
$ac_useropt=no
;;
1313 # Obsolete; use --with-x.
1316 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1317 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1318 ac_prev
=x_includes
;;
1319 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1320 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1321 x_includes
=$ac_optarg ;;
1323 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1324 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1325 ac_prev
=x_libraries
;;
1326 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1327 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1328 x_libraries
=$ac_optarg ;;
1330 -*) as_fn_error
"unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information."
1335 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1339 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1341 eval $ac_envvar=\
$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 if test -n "$ac_prev"; then
1356 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error
"missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1363 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 # Check all directory arguments for consistency.
1369 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val
=\$
$ac_var
1375 # Remove trailing slashes.
1378 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\
$ac_val;;
1381 # Be sure to have absolute directory names.
1383 [\\/$
]* | ?
:[\\/]* ) continue;;
1384 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1386 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1394 target
=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x
; then
1398 if test "x$build_alias" = x
; then
1399 cross_compiling
=maybe
1400 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used." >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1408 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1410 test "$silent" = yes && exec 6>/dev
/null
1413 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di
=`ls -di .` &&
1415 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error
"working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error
"pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted
=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir
=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1453 ac_srcdir_defaulted
=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1457 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1471 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 for ac_var
in $ac_precious_vars; do
1474 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1476 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1487 \`configure' configures this package to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1550 --build=BUILD configure
for building on BUILD
[guessed
]
1551 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1552 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1556 if test -n "$ac_init_help"; then
1561 --disable-option-checking ignore unrecognized
--enable/--with options
1562 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1563 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1564 --enable-generated-files-in-srcdir
1565 put copies of generated files
in source dir intended
1566 for creating
source tarballs
for users without
1567 texinfo bison or flex
1568 --disable-largefile omit support
for large files
1569 --enable-werror-always enable -Werror despite compiler version
1570 --enable-checking[=LIST
]
1571 enable expensive run-time checks. With LIST
, enable
1572 only specific categories of checks. Categories are
:
1573 yes,no
,all
,none
,release. Flags are
:
1574 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1575 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1576 --enable-coverage[=LEVEL
]
1577 enable compiler
's code coverage collection. Use to
1578 measure compiler performance and locate unused parts
1579 of the compiler. With LEVEL, specify optimization.
1580 Values are opt, noopt, default is noopt
1581 --enable-gather-detailed-mem-stats
1582 enable detailed memory allocation stats gathering
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-multiarch enable support for multiarch paths
1585 --enable-__cxa_atexit enable __cxa_atexit for C++
1586 --enable-decimal-float={no,yes,bid,dpd}
1587 enable decimal float extension to C. Selecting 'bid
'
1588 or 'dpd
' choses which decimal floating point format
1590 --enable-fixed-point enable fixed-point arithmetic extension to C
1591 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1593 --enable-tls enable or disable generation of tls code overriding
1594 the assembler check for tls support
1595 --enable-objc-gc enable the use of Boehm's garbage collector with the
1596 GNU Objective-C runtime
1597 --disable-shared don
't provide a shared libgcc
1598 --enable-languages=LIST specify which front-ends to build
1599 --disable-rpath do not hardcode runtime library paths
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1623 --enable-initfini-array use .init_array/.fini_array sections
1624 --enable-comdat enable COMDAT group support
1625 --enable-gnu-unique-object
1626 enable the use of the @gnu_unique_object ELF
1627 extension on glibc systems
1628 --enable-linker-build-id
1629 compiler will always pass --build-id to linker
1630 --enable-maintainer-mode
1631 enable make rules and dependencies not useful (and
1632 sometimes confusing) to the casual installer
1633 --enable-version-specific-runtime-libs
1634 specify that runtime libraries should be installed
1635 in a compiler-specific directory
1636 --enable-canonical-prefixes
1637 enable or disable prefix canonicalization
1638 --enable-plugin enable plugin support
1639 --disable-libquadmath-support
1640 disable libquadmath support for Fortran
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-build-libsubdir=DIR Directory where to find libraries for build system
1646 --with-local-prefix=DIR specifies directory to put local include
1647 --with-gxx-include-dir=DIR
1648 specifies directory to put g++ header files
1649 --with-cpp-install-dir=DIR
1650 install the user visible C preprocessor in DIR
1651 (relative to PREFIX) as well as PREFIX/bin
1652 --with-gnu-ld arrange to work with GNU ld
1653 --with-ld arrange to use the specified ld (full pathname)
1654 --with-demangler-in-ld try to use demangler in GNU ld
1655 --with-gnu-as arrange to work with GNU as
1656 --with-as arrange to use the specified as (full pathname)
1657 --with-stabs arrange to use stabs instead of host debug format
1658 --with-dwarf2 force the default debug format to be DWARF 2
1659 --with-native-system-header-dir=dir
1660 use dir as the directory to look for standard
1661 system header files in. Defaults to /usr/include.
1662 --with-build-sysroot=sysroot
1663 use sysroot as the system root during the build
1664 --with-runtime-root-prefix=prefix
1665 prepend prefix to paths used by the compiler to
1666 name the dynamic linker and other files used at
1667 runtime. Defaults to empty (no prefix).
1668 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1669 --with-specs=SPECS add SPECS to driver command-line processing
1670 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1671 --with-bugurl=URL Direct users to URL to report a bug
1672 --with-multilib-list select multilibs (SH and x86-64 only)
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1676 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1678 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1679 --with-plugin-ld=[ARG
] specify the plugin linker
1680 --with-long-double-128 use
128-bit long double by default
1681 --with-gc={page
,zone
} this option is not supported anymore. It used to
1682 choose the garbage collection mechanism to use with
1684 --with-system-zlib use installed libz
1685 --with-linker-hash-style={sysv
,gnu
,both
}
1686 specify the linker
hash style
1688 Some influential environment variables
:
1689 CC C compiler
command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1692 nonstandard directory
<lib dir
>
1693 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1694 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1695 you have headers
in a nonstandard directory
<include dir
>
1696 CXX C
++ compiler
command
1697 CXXFLAGS C
++ compiler flags
1699 CXXCPP C
++ preprocessor
1700 GMPLIBS How to link GMP
1701 GMPINC How to
find GMP include files
1702 ISLLIBS How to link ISL
1703 ISLINC How to
find ISL include files
1704 CLOOGLIBS How to link CLOOG
1705 CLOOGINC How to
find CLOOG include files
1707 Use these variables to override the choices made by
`configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1740 .) # We are building in place.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1797 *) ac_try_echo
=$ac_try;;
1799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1803 if test -s conftest.err
; then
1804 grep -v '^ *+' conftest.err
>conftest.er1
1805 cat conftest.er1
>&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.
$ac_objext; then :
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile
()
1830 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1831 rm -f conftest.
$ac_objext
1832 if { { ac_try
="$ac_compile"
1834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1872 *) ac_try_echo
=$ac_try;;
1874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878 if test -s conftest.err
; then
1879 grep -v '^ *+' conftest.err
>conftest.er1
1880 cat conftest.er1
>&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } >/dev
/null
&& {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.
$ac_ext >&5
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1905 ac_fn_c_check_header_mongrel
()
1907 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1908 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1926 if ac_fn_c_try_compile
"$LINENO"; then :
1927 ac_header_compiler
=yes
1929 ac_header_compiler
=no
1931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 if ac_fn_c_try_cpp
"$LINENO"; then :
1943 ac_header_preproc
=yes
1945 ac_header_preproc
=no
1947 rm -f conftest.err conftest.
$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1977 eval "$3=\$ac_header_compiler"
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_try_run LINENO
1988 # ----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1990 # that executables *can* be run.
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 if { { ac_try
="$ac_link"
1996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>&5
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2005 { { case "(($ac_try" in
2006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2007 *) ac_try_echo
=$ac_try;;
2009 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_try") 2>&5
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; }; }; then :
2017 $as_echo "$as_me: program exited with status $ac_status" >&5
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.
$ac_ext >&5
2021 ac_retval
=$ac_status
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile
()
2035 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2046 if ac_fn_c_try_compile
"$LINENO"; then :
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 ac_fn_c_compute_int
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2083 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2100 ac_hi
=$ac_mid; break
2102 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2103 if test $ac_lo -le $ac_mid; then
2107 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) < 0)];
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2142 ac_lo
=$ac_mid; break
2144 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2145 if test $ac_mid -le $ac_hi; then
2149 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2198 FILE *f = fopen ("conftest.val", "w");
2203 long int i = longval ();
2206 fprintf (f, "%ld", i);
2210 unsigned long int i = ulongval ();
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2223 if ac_fn_c_try_run
"$LINENO"; then :
2224 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type
()
2244 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2276 if ac_fn_c_try_compile
"$LINENO"; then :
2281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_find_intX_t LINENO BITS VAR
2293 # -----------------------------------
2294 # Finds a signed integer type with width BITS, setting cache variable VAR
2296 ac_fn_c_find_intX_t
()
2298 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2300 $as_echo_n "checking for int$2_t... " >&6; }
2301 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2305 for ac_type
in int
$2_t 'int' 'long int' \
2306 'long long int' 'short int' 'signed char'; do
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $ac_includes_default
2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2328 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2335 if ac_fn_c_try_compile
"$LINENO"; then :
2342 eval "$3=\$ac_type" ;;
2345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2349 if test "x$as_val" = x
""no
; then :
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2361 } # ac_fn_c_find_intX_t
2363 # ac_fn_c_try_link LINENO
2364 # -----------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 rm -f conftest.
$ac_objext conftest
$ac_exeext
2370 if { { ac_try
="$ac_link"
2372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 $as_test_x conftest$ac_exeext
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_c_try_link
2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
2410 # ------------------------------------
2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2413 ac_fn_c_find_uintX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2417 $as_echo_n "checking for uint$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2422 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2437 if ac_fn_c_try_compile "$LINENO"; then :
2442 eval "$3=\$ac_type" ;;
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 if test "x$as_val" = x""no; then :
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_uintX_t
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2476 if ac_fn_c_try_cpp "$LINENO"; then :
2481 rm -f conftest.err conftest.$ac_ext
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_cxx_try_cpp LINENO
2491 # ------------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2499 *) ac_try_echo
=$ac_try;;
2501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2505 if test -s conftest.err
; then
2506 grep -v '^ *+' conftest.err
>conftest.er1
2507 cat conftest.er1
>&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } >/dev
/null
&& {
2512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2513 test ! -s conftest.err
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2525 } # ac_fn_cxx_try_cpp
2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2528 # ------------------------------------------------
2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2530 ac_fn_cxx_check_header_preproc
()
2532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2547 rm -f conftest.err conftest.
$ac_ext
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2554 } # ac_fn_cxx_check_header_preproc
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func
()
2561 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2579 # include <limits.h>
2581 # include <assert.h>
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2608 if ac_fn_c_try_link
"$LINENO"; then :
2613 rm -f core conftest.err conftest.
$ac_objext \
2614 conftest
$ac_exeext conftest.
$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2621 } # ac_fn_c_check_func
2623 # ac_fn_cxx_try_link LINENO
2624 # -------------------------
2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
2626 ac_fn_cxx_try_link
()
2628 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2629 rm -f conftest.
$ac_objext conftest
$ac_exeext
2630 if { { ac_try
="$ac_link"
2632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>conftest.err
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest$ac_exeext && {
2649 test "$cross_compiling" = yes ||
2650 $as_test_x conftest$ac_exeext
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2661 # interfere with the next link command; also delete a directory that is
2662 # left behind by Apple's compiler. We do this before executing the actions.
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2667 } # ac_fn_cxx_try_link
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.64. Invocation command line was
2685 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2686 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2687 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2688 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2689 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2691 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2692 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2694 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2695 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2696 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2697 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2698 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2699 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2700 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2733 ac_must_keep_next=false
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2744 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2762 -* ) ac_must_keep_next=true ;;
2765 as_fn_append ac_configure_args " '$ac_arg'"
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2784 ## ---------------- ##
2785 ## Cache variables. ##
2786 ## ---------------- ##
2789 # The following way of writing the cache mishandles newlines in values,
2791 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2792 eval ac_val=\$$ac_var
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2807 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2822 ## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##
2827 for ac_var in $ac_subst_vars
2829 eval ac_val=\$$ac_var
2831 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2833 $as_echo "$ac_var='\''$ac_val'\''"
2837 if test -n "$ac_subst_files"; then
2839 ## ------------------- ##
2840 ## File substitutions. ##
2841 ## ------------------- ##
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2848 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2850 $as_echo "$ac_var='\''$ac_val'\''"
2855 if test -s confdefs.h; then
2865 test "$ac_signal" != 0 &&
2866 $as_echo "$as_me: caught signal $ac_signal"
2867 $as_echo "$as_me: exit $exit_status"
2869 rm -f core *.core core.conftest.* &&
2870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2873 for ac_signal in 1 2 13 15; do
2874 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2879 rm -f -r conftest* confdefs.h
2881 $as_echo "/* confdefs.h */" > confdefs.h
2883 # Predefined preprocessor variables.
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_NAME "$PACKAGE_NAME"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_STRING "$PACKAGE_STRING"
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_URL "$PACKAGE_URL"
2910 # Let the site file select an alternate cache file if it wants to.
2911 # Prefer an explicitly selected file to automatically selected ones.
2914 if test -n "$CONFIG_SITE"; then
2915 ac_site_file1=$CONFIG_SITE
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2934 if test -r "$cache_file"; then
2935 # Some versions of bash will fail to source /dev/null (special
2936 # files actually), so we avoid doing that.
2937 if test -f "$cache_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
2941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2942 *) . "./$cache_file";;
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
2951 # Check that the precious variables saved in the cache have kept the same
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2962 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2966 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x
$ac_old_val`
2973 ac_new_val_w=`echo x
$ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2977 ac_cache_corrupted=:
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3026 gcc_version=`cat $srcdir/BASE-VER
`
3028 # Determine the host, build, and target systems
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3077 ac_save_IFS=$IFS; IFS='-'
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3087 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3110 ac_save_IFS=$IFS; IFS='-'
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3120 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3124 $as_echo_n "checking target system type... " >&6; }
3125 if test "${ac_cv_target+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test "x$target_alias" = x; then
3129 ac_cv_target=$ac_cv_host
3131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3137 $as_echo "$ac_cv_target" >&6; }
3138 case $ac_cv_target in
3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3142 target=$ac_cv_target
3143 ac_save_IFS=$IFS; IFS='-'
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3153 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3156 # The aliases save the names the user supplied, while $host etc.
3157 # will get canonicalized.
3158 test -n "$target_alias" &&
3159 test "$program_prefix$program_suffix$program_transform_name" = \
3161 program_prefix=${target_alias}-
3163 # Determine the noncanonical target name, for directory use.
3164 case ${build_alias} in
3165 "") build_noncanonical=${build} ;;
3166 *) build_noncanonical=${build_alias} ;;
3169 case ${host_alias} in
3170 "") host_noncanonical=${build_noncanonical} ;;
3171 *) host_noncanonical=${host_alias} ;;
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3182 # Determine the target- and build-specific subdirectories
3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3185 # have matching libraries, they should use host libraries: Makefile.tpl
3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3187 # However, they still use the build modules, because the corresponding
3188 # host modules (e.g. bison) are only built for the host when bootstrap
3190 # - build_subdir is where we find build modules, and never changes.
3191 # - build_libsubdir is where we find build libraries, and can be overridden.
3193 # Prefix 'build-' so this never conflicts with target_subdir.
3194 build_subdir="build-${build_noncanonical}"
3196 # Check whether --with-build-libsubdir was given.
3197 if test "${with_build_libsubdir+set}" = set; then :
3198 withval=$with_build_libsubdir; build_libsubdir="$withval"
3200 build_libsubdir="$build_subdir"
3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3204 if ( test $srcdir = . && test -d gcc ) \
3205 || test -d $srcdir/../host-${host_noncanonical}; then
3206 host_subdir="host-${host_noncanonical}"
3211 target_subdir=${target_noncanonical}
3214 # Set program_transform_name
3215 test "$program_prefix" != NONE &&
3216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE &&
3219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3220 # Double any \ or $.
3221 # By default was `s
,x
,x
', remove it if useless.
3222 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3226 # Check for bogus environment variables.
3227 # Test if LIBRARY_PATH contains the notation for the current directory
3228 # since this would lead to problems installing/building glibc.
3229 # LIBRARY_PATH contains the current directory if one of the following
3231 # - one of the terminals (":" and ";") is the first or last sign
3232 # - two terminals occur directly after each other
3233 # - the path contains an element with a dot in it
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3236 case ${LIBRARY_PATH} in
3237 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3238 library_path_setting="contains current directory"
3241 library_path_setting="ok"
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3245 $as_echo "$library_path_setting" >&6; }
3246 if test "$library_path_setting" != "ok"; then
3248 *** LIBRARY_PATH shouldn't contain the current directory when
3249 *** building gcc. Please change the environment variable
3250 *** and run configure again.
" "$LINENO" 5
3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3254 # since this would lead to problems installing/building glibc.
3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
3257 # - one of the terminals (":" and ";") is the first or last sign
3258 # - two terminals occur directly after each other
3259 # - the path contains an element with a dot in it
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3261 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3262 case ${GCC_EXEC_PREFIX} in
3263 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3264 gcc_exec_prefix_setting="contains current directory
"
3267 gcc_exec_prefix_setting="ok
"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
3272 if test "$gcc_exec_prefix_setting" != "ok
"; then
3274 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3275 *** building gcc. Please change the environment variable
3276 *** and run configure again." "$LINENO" 5
3283 # Specify the local prefix
3286 # Check whether --with-local-prefix was given.
3287 if test "${with_local_prefix+set}" = set; then :
3288 withval=$with_local_prefix; case "${withval}" in
3289 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3291 *) local_prefix=$with_local_prefix ;;
3296 # Default local prefix if it is empty
3297 if test x$local_prefix = x; then
3298 local_prefix=/usr/local
3301 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3302 # passed in by the toplevel make and thus we'd get different behavior
3303 # depending on where we built the sources.
3304 gcc_gxx_include_dir
=
3305 # Specify the g++ header file directory
3307 # Check whether --with-gxx-include-dir was given.
3308 if test "${with_gxx_include_dir+set}" = set; then :
3309 withval
=$with_gxx_include_dir; case "${withval}" in
3310 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3312 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3318 if test x
${gcc_gxx_include_dir} = x
; then
3319 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3320 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3322 libstdcxx_incdir
='include/c++/$(version)'
3323 if test x
$host != x
$target; then
3324 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3326 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3330 gcc_gxx_include_dir_add_sysroot
=0
3331 if test "${with_sysroot+set}" = set; then
3332 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3333 if test "${gcc_gxx_without_sysroot}"; then
3334 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3335 gcc_gxx_include_dir_add_sysroot
=1
3340 # Check whether --with-cpp_install_dir was given.
3341 if test "${with_cpp_install_dir+set}" = set; then :
3342 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3343 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3344 elif test x
$withval != xno
; then
3345 cpp_install_dir
=$withval
3350 # We would like to our source tree to be readonly. However when releases or
3351 # pre-releases are generated, the flex/bison generated files as well as the
3352 # various formats of manuals need to be included along with the rest of the
3353 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3358 # Check whether --enable-generated-files-in-srcdir was given.
3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3360 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3362 generated_files_in_srcdir
=no
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3367 $as_echo "$generated_files_in_srcdir" >&6; }
3369 if test "$generated_files_in_srcdir" = "yes"; then
3376 # -------------------
3377 # Find default linker
3378 # -------------------
3382 # Check whether --with-gnu-ld was given.
3383 if test "${with_gnu_ld+set}" = set; then :
3384 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3390 # With pre-defined ld
3392 # Check whether --with-ld was given.
3393 if test "${with_ld+set}" = set; then :
3394 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test ! -x "$DEFAULT_LINKER"; then
3399 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3400 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3404 cat >>confdefs.h
<<_ACEOF
3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3413 if test x
"$gnu_ld_flag" = x
"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3455 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3462 cat >>confdefs.h
<<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3471 if test x
"$gas_flag" = x
"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3498 ac_cpp
='$CPP $CPPFLAGS'
3499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC
="$CC" # Let the user override the test.
3513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir
=.
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc
; ac_word
=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC
="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x
; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned
=yes ;;
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC
="$CC" # Let the user override the test.
3606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir
=.
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc
; ac_word
=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC
="$CC" # Let the user override the test.
3647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir
=.
3652 for ac_exec_ext
in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected
=yes
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy
$ac_cv_prog_CC
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3675 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC
="$CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3735 if test -z "$CC"; then
3737 for ac_prog
in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy
$ac_prog; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC
="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3779 if test "x$ac_ct_CC" = x
; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned
=yes ;;
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error
"no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3804 for ac_option
in --version -v -V -qversion; do
3805 { { ac_try
="$ac_compiler $ac_option >&5"
3807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 if test -s conftest.err; then
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849 for ac_file in $ac_files
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858 if { { ac_try="$ac_link_default"
3860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3861 *) ac_try_echo
=$ac_try;;
3863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3874 for ac_file
in $ac_files ''
3876 test -f "$ac_file" ||
continue
3878 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3881 # We found the default executable, but exeext='' is most
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3887 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3899 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.
$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status
77
3913 as_fn_error
"C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext
=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try
='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3937 if test "$cross_compiling" = maybe; then
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile
, use \
`--host'.
3944 See \`config.log
' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3977 for ac_file
in conftest.exe conftest conftest.
*; do
3978 test -f "$ac_file" ||
continue
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest
$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.
$ac_ext
3997 EXEEXT
=$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files
: cannot compile
4042 See \
`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4159 if test "$GCC" = yes; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 ac_cv_prog_cc_c89=no
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4192 s = g (p, va_arg (v,int));
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 rm -f conftest.$ac_ext
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4292 *) ac_try_echo
=$ac_try;;
4294 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4317 *) ac_try_echo
=$ac_try;;
4319 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4327 if { { case "(($ac_try" in
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4339 *) ac_try_echo
=$ac_try;;
4341 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4357 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4359 rm -f core conftest
*
4362 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir
=`cd $ac_aux_dir && pwd`
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4379 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC
="$am_aux_dir/compile $CC"
4392 ac_cpp
='$CXXCPP $CPPFLAGS'
4393 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$CXX" && break
4443 if test -z "$CXX"; then
4445 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy
$ac_prog; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_CXX" && break
4487 if test "x$ac_ct_CXX" = x
; then
4490 case $cross_compiling:$ac_tool_warned in
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned
=yes ;;
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4506 for ac_option
in --version -v -V -qversion; do
4507 { { ac_try
="$ac_compiler $ac_option >&5"
4509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516 if test -s conftest.err; then
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4636 if test "$GXX" = yes; then
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATBIND" = x; then
4731 case $cross_compiling:$ac_tool_warned in
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4737 GNATBIND=$ac_ct_GNATBIND
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4820 if test "x$ac_ct_GNATMAKE" = x; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4829 GNATMAKE=$ac_ct_GNATMAKE
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4872 OUTPUT_OPTION='-o $@'
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4882 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4887 # Determine PICFLAG for target gnatlib.
4893 # PIC is the default on some targets or must not be used.
4895 # PIC is the default on this platform
4896 # Common symbols not allowed in MH_DYLIB files
4897 PICFLAG_FOR_TARGET=-fno-common
4900 # PIC is the default.
4903 # PIC is the default for 64-bit PA HP-UX.
4905 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4907 i[34567]86-*-mingw* | x86_64-*-mingw*)
4909 i[34567]86-*-interix[3-9]*)
4910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4911 # Instead, we relocate shared libraries at runtime.
4913 i[34567]86-*-nto-qnx*)
4914 # QNX uses GNU C++, but need to define -shared option too, otherwise
4916 PICFLAG_FOR_TARGET='-fPIC -shared'
4918 i[34567]86-pc-msdosdjgpp*)
4919 # DJGPP does not support shared libraries at all.
4922 # On IA64 HP-UX, PIC is the default but the pic flag
4923 # sets the default TLS model and affects inlining.
4924 PICFLAG_FOR_TARGET=-fPIC
4927 # PIC is the default.
4929 rs6000-ibm-aix* | powerpc-ibm-aix*)
4930 # All AIX code is PIC.
4933 # Some targets support both -fPIC and -fpic, but prefer the latter.
4935 i[34567]86-*-* | x86_64-*-*)
4936 PICFLAG_FOR_TARGET=-fpic
4939 PICFLAG_FOR_TARGET=-fpic
4941 # FIXME: Override -fPIC default in libgcc only?
4942 sh-*-linux* | sh[2346lbe]*-*-linux*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # FIXME: Simplify to sh*-*-netbsd*?
4946 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4947 sh64-*-netbsd* | sh64l*-*-netbsd*)
4948 PICFLAG_FOR_TARGET=-fpic
4950 # Default to -fPIC unless specified otherwise.
4952 PICFLAG_FOR_TARGET=-fPIC
4956 # If the user explicitly uses -fpic/-fPIC, keep that.
4957 case "${CFLAGS_FOR_TARGET}" in
4959 PICFLAG_FOR_TARGET=-fpic
4962 PICFLAG_FOR_TARGET=-fPIC
4968 # -------------------------
4969 # Check C compiler features
4970 # -------------------------
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4980 # On Suns, sometimes $CPP names a directory.
4981 if test -n "$CPP" && test -d "$CPP"; then
4984 if test -z "$CPP"; then
4985 if test "${ac_cv_prog_CPP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4988 # Double quotes because CPP needs to be expanded
4989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5003 # include <limits.h>
5005 # include <assert.h>
5009 if ac_fn_c_try_cpp "$LINENO"; then :
5012 # Broken: fails on valid input.
5015 rm -f conftest.err conftest.$ac_ext
5017 # OK, works on sane cases. Now check whether nonexistent headers
5018 # can be detected and how.
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 #include <ac_nonexistent.h>
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024 # Broken: success on invalid input.
5027 # Passes both tests.
5031 rm -f conftest.err conftest.$ac_ext
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.
$ac_ext
5036 if $ac_preproc_ok; then :
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5049 $as_echo "$CPP" >&6; }
5051 for ac_c_preproc_warn_flag
in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5062 # include <limits.h>
5064 # include <assert.h>
5068 if ac_fn_c_try_cpp
"$LINENO"; then :
5071 # Broken: fails on valid input.
5074 rm -f conftest.err conftest.
$ac_ext
5076 # OK, works on sane cases. Now check whether nonexistent headers
5077 # can be detected and how.
5078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 #include <ac_nonexistent.h>
5082 if ac_fn_c_try_cpp
"$LINENO"; then :
5083 # Broken: success on invalid input.
5086 # Passes both tests.
5090 rm -f conftest.err conftest.
$ac_ext
5093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5094 rm -f conftest.err conftest.
$ac_ext
5095 if $ac_preproc_ok; then :
5098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5101 See \`config.log' for more details." "$LINENO" 5; }
5105 ac_cpp
='$CPP $CPPFLAGS'
5106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5113 if test "${ac_cv_path_GREP+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -z "$GREP"; then
5117 ac_path_GREP_found
=false
5118 # Loop through the user's path and test for each of PROGNAME-LIST
5119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5120 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5123 test -z "$as_dir" && as_dir
=.
5124 for ac_prog
in grep ggrep
; do
5125 for ac_exec_ext
in '' $ac_executable_extensions; do
5126 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5128 # Check for GNU ac_path_GREP and select it if it is found.
5129 # Check for GNU $ac_path_GREP
5130 case `"$ac_path_GREP" --version 2>&1` in
5132 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5135 $as_echo_n 0123456789 >"conftest.in"
5138 cat "conftest.in" "conftest.in" >"conftest.tmp"
5139 mv "conftest.tmp" "conftest.in"
5140 cp "conftest.in" "conftest.nl"
5141 $as_echo 'GREP' >> "conftest.nl"
5142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5143 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5144 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5146 # Best one so far, save it but keep looking for a better one
5147 ac_cv_path_GREP
="$ac_path_GREP"
5148 ac_path_GREP_max
=$ac_count
5150 # 10*(2^10) chars as input seems more than enough
5151 test $ac_count -gt 10 && break
5153 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5156 $ac_path_GREP_found && break 3
5161 if test -z "$ac_cv_path_GREP"; then
5162 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165 ac_cv_path_GREP
=$GREP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5170 $as_echo "$ac_cv_path_GREP" >&6; }
5171 GREP
="$ac_cv_path_GREP"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5175 $as_echo_n "checking for egrep... " >&6; }
5176 if test "${ac_cv_path_EGREP+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5180 then ac_cv_path_EGREP
="$GREP -E"
5182 if test -z "$EGREP"; then
5183 ac_path_EGREP_found
=false
5184 # Loop through the user's path and test for each of PROGNAME-LIST
5185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5189 test -z "$as_dir" && as_dir
=.
5190 for ac_prog
in egrep; do
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5194 # Check for GNU ac_path_EGREP and select it if it is found.
5195 # Check for GNU $ac_path_EGREP
5196 case `"$ac_path_EGREP" --version 2>&1` in
5198 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5201 $as_echo_n 0123456789 >"conftest.in"
5204 cat "conftest.in" "conftest.in" >"conftest.tmp"
5205 mv "conftest.tmp" "conftest.in"
5206 cp "conftest.in" "conftest.nl"
5207 $as_echo 'EGREP' >> "conftest.nl"
5208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5209 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5210 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5212 # Best one so far, save it but keep looking for a better one
5213 ac_cv_path_EGREP
="$ac_path_EGREP"
5214 ac_path_EGREP_max
=$ac_count
5216 # 10*(2^10) chars as input seems more than enough
5217 test $ac_count -gt 10 && break
5219 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5222 $ac_path_EGREP_found && break 3
5227 if test -z "$ac_cv_path_EGREP"; then
5228 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5231 ac_cv_path_EGREP
=$EGREP
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5237 $as_echo "$ac_cv_path_EGREP" >&6; }
5238 EGREP
="$ac_cv_path_EGREP"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5242 $as_echo_n "checking for ANSI C header files... " >&6; }
5243 if test "${ac_cv_header_stdc+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5261 if ac_fn_c_try_compile
"$LINENO"; then :
5262 ac_cv_header_stdc
=yes
5264 ac_cv_header_stdc
=no
5266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5268 if test $ac_cv_header_stdc = yes; then
5269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "memchr" >/dev
/null
2>&1; then :
5279 ac_cv_header_stdc
=no
5285 if test $ac_cv_header_stdc = yes; then
5286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "free" >/dev
/null
2>&1; then :
5296 ac_cv_header_stdc
=no
5302 if test $ac_cv_header_stdc = yes; then
5303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5304 if test "$cross_compiling" = yes; then :
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5311 #if ((' ' & 0x0FF) == 0x020)
5312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5315 # define ISLOWER(c) \
5316 (('a' <= (c) && (c) <= 'i') \
5317 || ('j' <= (c) && (c) <= 'r') \
5318 || ('s' <= (c) && (c) <= 'z'))
5319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5327 for (i = 0; i < 256; i++)
5328 if (XOR (islower (i), ISLOWER (i))
5329 || toupper (i) != TOUPPER (i))
5334 if ac_fn_c_try_run
"$LINENO"; then :
5337 ac_cv_header_stdc
=no
5339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5346 $as_echo "$ac_cv_header_stdc" >&6; }
5347 if test $ac_cv_header_stdc = yes; then
5349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5355 inttypes.h stdint.h unistd.h
5357 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5360 eval as_val
=\$
$as_ac_Header
5361 if test "x$as_val" = x
""yes; then :
5362 cat >>confdefs.h
<<_ACEOF
5363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5373 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5380 if test "$MINIX" = yes; then
5382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5388 $as_echo "#define _MINIX 1" >>confdefs.h
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5395 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5401 # define __EXTENSIONS__ 1
5402 $ac_includes_default
5411 if ac_fn_c_try_compile
"$LINENO"; then :
5412 ac_cv_safe_to_define___extensions__
=yes
5414 ac_cv_safe_to_define___extensions__
=no
5416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5420 test $ac_cv_safe_to_define___extensions__ = yes &&
5421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5425 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5427 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5429 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5433 ac_cpp
='$CPP $CPPFLAGS'
5434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5438 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5439 # On Suns, sometimes $CPP names a directory.
5440 if test -n "$CPP" && test -d "$CPP"; then
5443 if test -z "$CPP"; then
5444 if test "${ac_cv_prog_CPP+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5447 # Double quotes because CPP needs to be expanded
5448 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5451 for ac_c_preproc_warn_flag
in '' yes
5453 # Use a header file that comes with gcc, so configuring glibc
5454 # with a fresh cross-compiler works.
5455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5456 # <limits.h> exists even on freestanding compilers.
5457 # On the NeXT, cc -E runs the code through the compiler's parser,
5458 # not just through cpp. "Syntax error" is here to catch this case.
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5462 # include <limits.h>
5464 # include <assert.h>
5468 if ac_fn_c_try_cpp
"$LINENO"; then :
5471 # Broken: fails on valid input.
5474 rm -f conftest.err conftest.
$ac_ext
5476 # OK, works on sane cases. Now check whether nonexistent headers
5477 # can be detected and how.
5478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <ac_nonexistent.h>
5482 if ac_fn_c_try_cpp
"$LINENO"; then :
5483 # Broken: success on invalid input.
5486 # Passes both tests.
5490 rm -f conftest.err conftest.
$ac_ext
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.
$ac_ext
5495 if $ac_preproc_ok; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5508 $as_echo "$CPP" >&6; }
5510 for ac_c_preproc_warn_flag
in '' yes
5512 # Use a header file that comes with gcc, so configuring glibc
5513 # with a fresh cross-compiler works.
5514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5515 # <limits.h> exists even on freestanding compilers.
5516 # On the NeXT, cc -E runs the code through the compiler's parser,
5517 # not just through cpp. "Syntax error" is here to catch this case.
5518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5521 # include <limits.h>
5523 # include <assert.h>
5527 if ac_fn_c_try_cpp
"$LINENO"; then :
5530 # Broken: fails on valid input.
5533 rm -f conftest.err conftest.
$ac_ext
5535 # OK, works on sane cases. Now check whether nonexistent headers
5536 # can be detected and how.
5537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <ac_nonexistent.h>
5541 if ac_fn_c_try_cpp
"$LINENO"; then :
5542 # Broken: success on invalid input.
5545 # Passes both tests.
5549 rm -f conftest.err conftest.
$ac_ext
5552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5553 rm -f conftest.err conftest.
$ac_ext
5554 if $ac_preproc_ok; then :
5557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5559 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5560 See \`config.log' for more details." "$LINENO" 5; }
5564 ac_cpp
='$CPP $CPPFLAGS'
5565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5570 $as_echo_n "checking for inline... " >&6; }
5571 if test "${ac_cv_c_inline+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5575 for ac_kw
in inline __inline__ __inline
; do
5576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5580 static $ac_kw foo_t static_foo () {return 0; }
5581 $ac_kw foo_t foo () {return 0; }
5585 if ac_fn_c_try_compile
"$LINENO"; then :
5586 ac_cv_c_inline
=$ac_kw
5588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5589 test "$ac_cv_c_inline" != no
&& break
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5594 $as_echo "$ac_cv_c_inline" >&6; }
5596 case $ac_cv_c_inline in
5599 case $ac_cv_c_inline in
5601 *) ac_val
=$ac_cv_c_inline;;
5603 cat >>confdefs.h
<<_ACEOF
5605 #define inline $ac_val
5612 # Check whether --enable-largefile was given.
5613 if test "${enable_largefile+set}" = set; then :
5614 enableval
=$enable_largefile;
5617 if test "$enable_largefile" != no
; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5620 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5621 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5624 ac_cv_sys_largefile_CC
=no
5625 if test "$GCC" != yes; then
5628 # IRIX 6.2 and later do not support large files by default,
5629 # so use the C compiler's -n32 option if that helps.
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly.
5634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5635 since some C++ compilers masquerading as C compilers
5636 incorrectly reject 9223372036854775807. */
5637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5639 && LARGE_OFF_T % 2147483647 == 1)
5649 if ac_fn_c_try_compile
"$LINENO"; then :
5652 rm -f core conftest.err conftest.
$ac_objext
5654 if ac_fn_c_try_compile
"$LINENO"; then :
5655 ac_cv_sys_largefile_CC
=' -n32'; break
5657 rm -f core conftest.err conftest.
$ac_objext
5661 rm -f conftest.
$ac_ext
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5665 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5666 if test "$ac_cv_sys_largefile_CC" != no
; then
5667 CC
=$CC$ac_cv_sys_largefile_CC
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5671 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5672 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5695 if ac_fn_c_try_compile
"$LINENO"; then :
5696 ac_cv_sys_file_offset_bits
=no
; break
5698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #define _FILE_OFFSET_BITS 64
5702 #include <sys/types.h>
5703 /* Check that off_t can represent 2**63 - 1 correctly.
5704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5705 since some C++ compilers masquerading as C compilers
5706 incorrectly reject 9223372036854775807. */
5707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5709 && LARGE_OFF_T % 2147483647 == 1)
5719 if ac_fn_c_try_compile
"$LINENO"; then :
5720 ac_cv_sys_file_offset_bits
=64; break
5722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5723 ac_cv_sys_file_offset_bits
=unknown
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5728 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5729 case $ac_cv_sys_file_offset_bits in #(
5732 cat >>confdefs.h
<<_ACEOF
5733 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5738 if test $ac_cv_sys_file_offset_bits = unknown
; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5740 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5741 if test "${ac_cv_sys_large_files+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 /* Check that off_t can represent 2**63 - 1 correctly.
5749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5750 since some C++ compilers masquerading as C compilers
5751 incorrectly reject 9223372036854775807. */
5752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5754 && LARGE_OFF_T % 2147483647 == 1)
5764 if ac_fn_c_try_compile
"$LINENO"; then :
5765 ac_cv_sys_large_files
=no
; break
5767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #define _LARGE_FILES 1
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5788 if ac_fn_c_try_compile
"$LINENO"; then :
5789 ac_cv_sys_large_files
=1; break
5791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 ac_cv_sys_large_files
=unknown
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5797 $as_echo "$ac_cv_sys_large_files" >&6; }
5798 case $ac_cv_sys_large_files in #(
5801 cat >>confdefs.h
<<_ACEOF
5802 #define _LARGE_FILES $ac_cv_sys_large_files
5811 # sizeof(char) is 1 by definition.
5812 # The cast to long int works around a bug in the HP C Compiler
5813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5815 # This bug is HP SR number 8606223364.
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5817 $as_echo_n "checking size of void *... " >&6; }
5818 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5821 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5824 if test "$ac_cv_type_void_p" = yes; then
5825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5827 { as_fn_set_status
77
5828 as_fn_error
"cannot compute sizeof (void *)
5829 See \`config.log' for more details." "$LINENO" 5; }; }
5831 ac_cv_sizeof_void_p
=0
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5837 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5841 cat >>confdefs.h
<<_ACEOF
5842 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5851 $as_echo_n "checking size of short... " >&6; }
5852 if test "${ac_cv_sizeof_short+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5858 if test "$ac_cv_type_short" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status
77
5862 as_fn_error
"cannot compute sizeof (short)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5865 ac_cv_sizeof_short
=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5871 $as_echo "$ac_cv_sizeof_short" >&6; }
5875 cat >>confdefs.h
<<_ACEOF
5876 #define SIZEOF_SHORT $ac_cv_sizeof_short
5880 # The cast to long int works around a bug in the HP C Compiler
5881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5883 # This bug is HP SR number 8606223364.
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5885 $as_echo_n "checking size of int... " >&6; }
5886 if test "${ac_cv_sizeof_int+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5889 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5892 if test "$ac_cv_type_int" = yes; then
5893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5895 { as_fn_set_status
77
5896 as_fn_error
"cannot compute sizeof (int)
5897 See \`config.log' for more details." "$LINENO" 5; }; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5905 $as_echo "$ac_cv_sizeof_int" >&6; }
5909 cat >>confdefs.h
<<_ACEOF
5910 #define SIZEOF_INT $ac_cv_sizeof_int
5914 # The cast to long int works around a bug in the HP C Compiler
5915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5917 # This bug is HP SR number 8606223364.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5919 $as_echo_n "checking size of long... " >&6; }
5920 if test "${ac_cv_sizeof_long+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5923 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5926 if test "$ac_cv_type_long" = yes; then
5927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5929 { as_fn_set_status
77
5930 as_fn_error
"cannot compute sizeof (long)
5931 See \`config.log' for more details." "$LINENO" 5; }; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5939 $as_echo "$ac_cv_sizeof_long" >&6; }
5943 cat >>confdefs.h
<<_ACEOF
5944 #define SIZEOF_LONG $ac_cv_sizeof_long
5948 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5949 if test "x$ac_cv_type_long_long" = x
""yes; then :
5951 cat >>confdefs.h
<<_ACEOF
5952 #define HAVE_LONG_LONG 1
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5960 $as_echo_n "checking size of long long... " >&6; }
5961 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5967 if test "$ac_cv_type_long_long" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status
77
5971 as_fn_error
"cannot compute sizeof (long long)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5974 ac_cv_sizeof_long_long
=0
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5980 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5984 cat >>confdefs.h
<<_ACEOF
5985 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5991 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5992 if test "x$ac_cv_type___int64" = x
""yes; then :
5994 cat >>confdefs.h
<<_ACEOF
5995 #define HAVE___INT64 1
5998 # The cast to long int works around a bug in the HP C Compiler
5999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6001 # This bug is HP SR number 8606223364.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6003 $as_echo_n "checking size of __int64... " >&6; }
6004 if test "${ac_cv_sizeof___int64+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6010 if test "$ac_cv_type___int64" = yes; then
6011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6013 { as_fn_set_status
77
6014 as_fn_error
"cannot compute sizeof (__int64)
6015 See \`config.log' for more details." "$LINENO" 5; }; }
6017 ac_cv_sizeof___int64
=0
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6023 $as_echo "$ac_cv_sizeof___int64" >&6; }
6027 cat >>confdefs.h
<<_ACEOF
6028 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6034 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6035 case $ac_cv_c_int8_t in #(
6039 cat >>confdefs.h
<<_ACEOF
6040 #define int8_t $ac_cv_c_int8_t
6045 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6046 case $ac_cv_c_int16_t in #(
6050 cat >>confdefs.h
<<_ACEOF
6051 #define int16_t $ac_cv_c_int16_t
6056 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6057 case $ac_cv_c_int32_t in #(
6061 cat >>confdefs.h
<<_ACEOF
6062 #define int32_t $ac_cv_c_int32_t
6067 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6068 case $ac_cv_c_int64_t in #(
6072 cat >>confdefs.h
<<_ACEOF
6073 #define int64_t $ac_cv_c_int64_t
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6080 $as_echo_n "checking for long long int... " >&6; }
6081 if test "${ac_cv_type_long_long_int+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6087 /* For now, do not test the preprocessor; as of 2007 there are too many
6088 implementations with broken preprocessors. Perhaps this can
6089 be revisited in 2012. In the meantime, code should not expect
6090 #if to work with literals wider than 32 bits. */
6091 /* Test literals. */
6092 long long int ll = 9223372036854775807ll;
6093 long long int nll = -9223372036854775807LL;
6094 unsigned long long int ull = 18446744073709551615ULL;
6095 /* Test constant expressions. */
6096 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6098 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6104 /* Test availability of runtime routines for shift and division. */
6105 long long int llmax = 9223372036854775807ll;
6106 unsigned long long int ullmax = 18446744073709551615ull;
6107 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6108 | (llmax / ll) | (llmax % ll)
6109 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6110 | (ullmax / ull) | (ullmax % ull));
6116 if ac_fn_c_try_link
"$LINENO"; then :
6117 if test "$cross_compiling" = yes; then :
6118 ac_cv_type_long_long_int
=yes
6120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6125 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6126 # define LLONG_MAX (HALF - 1 + HALF)
6131 long long int n = 1;
6135 long long int m = n << i;
6138 if (LLONG_MAX / 2 < m)
6146 if ac_fn_c_try_run
"$LINENO"; then :
6147 ac_cv_type_long_long_int
=yes
6149 ac_cv_type_long_long_int
=no
6151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6156 ac_cv_type_long_long_int
=no
6158 rm -f core conftest.err conftest.
$ac_objext \
6159 conftest
$ac_exeext conftest.
$ac_ext
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6162 $as_echo "$ac_cv_type_long_long_int" >&6; }
6163 if test $ac_cv_type_long_long_int = yes; then
6165 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6171 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6172 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6174 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6177 test $ac_cv_type_long_long_int = yes \
6178 && ac_type
='long long int' \
6179 || ac_type
='long int'
6181 cat >>confdefs.h
<<_ACEOF
6182 #define intmax_t $ac_type
6189 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6190 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6192 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6195 for ac_type
in 'int' 'long int' 'long long int'; do
6196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 $ac_includes_default
6202 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6209 if ac_fn_c_try_compile
"$LINENO"; then :
6211 cat >>confdefs.h
<<_ACEOF
6212 #define intptr_t $ac_type
6217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 test -z "$ac_type" && break
6223 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6224 case $ac_cv_c_uint8_t in #(
6228 $as_echo "#define _UINT8_T 1" >>confdefs.h
6231 cat >>confdefs.h
<<_ACEOF
6232 #define uint8_t $ac_cv_c_uint8_t
6237 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6238 case $ac_cv_c_uint16_t in #(
6243 cat >>confdefs.h
<<_ACEOF
6244 #define uint16_t $ac_cv_c_uint16_t
6249 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6250 case $ac_cv_c_uint32_t in #(
6254 $as_echo "#define _UINT32_T 1" >>confdefs.h
6257 cat >>confdefs.h
<<_ACEOF
6258 #define uint32_t $ac_cv_c_uint32_t
6263 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6264 case $ac_cv_c_uint64_t in #(
6268 $as_echo "#define _UINT64_T 1" >>confdefs.h
6271 cat >>confdefs.h
<<_ACEOF
6272 #define uint64_t $ac_cv_c_uint64_t
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6279 $as_echo_n "checking for unsigned long long int... " >&6; }
6280 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 /* For now, do not test the preprocessor; as of 2007 there are too many
6287 implementations with broken preprocessors. Perhaps this can
6288 be revisited in 2012. In the meantime, code should not expect
6289 #if to work with literals wider than 32 bits. */
6290 /* Test literals. */
6291 long long int ll = 9223372036854775807ll;
6292 long long int nll = -9223372036854775807LL;
6293 unsigned long long int ull = 18446744073709551615ULL;
6294 /* Test constant expressions. */
6295 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6297 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6303 /* Test availability of runtime routines for shift and division. */
6304 long long int llmax = 9223372036854775807ll;
6305 unsigned long long int ullmax = 18446744073709551615ull;
6306 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6307 | (llmax / ll) | (llmax % ll)
6308 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6309 | (ullmax / ull) | (ullmax % ull));
6315 if ac_fn_c_try_link
"$LINENO"; then :
6316 ac_cv_type_unsigned_long_long_int
=yes
6318 ac_cv_type_unsigned_long_long_int
=no
6320 rm -f core conftest.err conftest.
$ac_objext \
6321 conftest
$ac_exeext conftest.
$ac_ext
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6324 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6325 if test $ac_cv_type_unsigned_long_long_int = yes; then
6327 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6333 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6334 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6336 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6339 test $ac_cv_type_unsigned_long_long_int = yes \
6340 && ac_type
='unsigned long long int' \
6341 || ac_type
='unsigned long int'
6343 cat >>confdefs.h
<<_ACEOF
6344 #define uintmax_t $ac_type
6351 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6352 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6354 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6357 for ac_type
in 'unsigned int' 'unsigned long int' \
6358 'unsigned long long int'; do
6359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 $ac_includes_default
6365 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6372 if ac_fn_c_try_compile
"$LINENO"; then :
6374 cat >>confdefs.h
<<_ACEOF
6375 #define uintptr_t $ac_type
6380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6381 test -z "$ac_type" && break
6399 # ---------------------
6400 # Warnings and checking
6401 # ---------------------
6403 # Check $CC warning features (if it's GCC).
6404 # We want to use -pedantic, but we don't want warnings about
6407 # * overlong strings
6408 # * C++11 narrowing conversions in { }
6409 # So, we only use -pedantic if we can disable those warnings.
6412 save_CFLAGS
="$CFLAGS"
6413 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6414 # Do the check with the no- prefix removed since gcc silently
6415 # accepts any -Wno-* option on purpose
6416 case $real_option in
6417 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6418 *) option
=$real_option ;;
6420 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6423 $as_echo_n "checking whether $CC supports $option... " >&6; }
6424 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6425 $as_echo_n "(cached) " >&6
6428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6439 if ac_fn_c_try_compile
"$LINENO"; then :
6440 eval "$as_acx_Woption=yes"
6442 eval "$as_acx_Woption=no"
6444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 eval ac_res
=\$
$as_acx_Woption
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6449 $as_echo "$ac_res" >&6; }
6450 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6451 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6454 CFLAGS
="$save_CFLAGS"
6457 save_CFLAGS
="$CFLAGS"
6458 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6459 # Do the check with the no- prefix removed since gcc silently
6460 # accepts any -Wno-* option on purpose
6461 case $real_option in
6462 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6463 *) option
=$real_option ;;
6465 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6468 $as_echo_n "checking whether $CC supports $option... " >&6; }
6469 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6470 $as_echo_n "(cached) " >&6
6473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6484 if ac_fn_c_try_compile
"$LINENO"; then :
6485 eval "$as_acx_Woption=yes"
6487 eval "$as_acx_Woption=no"
6489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6492 eval ac_res
=\$
$as_acx_Woption
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6494 $as_echo "$ac_res" >&6; }
6495 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6496 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6499 CFLAGS
="$save_CFLAGS"
6502 save_CFLAGS
="$CFLAGS"
6503 for real_option
in -Wmissing-format-attribute; do
6504 # Do the check with the no- prefix removed since gcc silently
6505 # accepts any -Wno-* option on purpose
6506 case $real_option in
6507 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6508 *) option
=$real_option ;;
6510 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6513 $as_echo_n "checking whether $CC supports $option... " >&6; }
6514 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6515 $as_echo_n "(cached) " >&6
6518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6529 if ac_fn_c_try_compile
"$LINENO"; then :
6530 eval "$as_acx_Woption=yes"
6532 eval "$as_acx_Woption=no"
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6537 eval ac_res
=\$
$as_acx_Woption
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6539 $as_echo "$ac_res" >&6; }
6540 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6541 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6544 CFLAGS
="$save_CFLAGS"
6547 save_CFLAGS
="$CFLAGS"
6548 for real_option
in -Wold-style-definition -Wc++-compat; do
6549 # Do the check with the no- prefix removed since gcc silently
6550 # accepts any -Wno-* option on purpose
6551 case $real_option in
6552 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6553 *) option
=$real_option ;;
6555 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6558 $as_echo_n "checking whether $CC supports $option... " >&6; }
6559 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6560 $as_echo_n "(cached) " >&6
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6574 if ac_fn_c_try_compile
"$LINENO"; then :
6575 eval "$as_acx_Woption=yes"
6577 eval "$as_acx_Woption=no"
6579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 eval ac_res
=\$
$as_acx_Woption
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6584 $as_echo "$ac_res" >&6; }
6585 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6586 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6589 CFLAGS
="$save_CFLAGS"
6591 # Do the check with the no- prefix removed from the warning options
6592 # since gcc silently accepts any -Wno-* option on purpose
6593 if test "$GCC" = yes; then :
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6595 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6596 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6599 save_CFLAGS
="$CFLAGS"
6600 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6612 if ac_fn_c_try_compile
"$LINENO"; then :
6613 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6615 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 CFLAGS
="$save_CFLAGS"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6621 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6622 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6623 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6628 # Check whether --enable-werror-always was given.
6629 if test "${enable_werror_always+set}" = set; then :
6630 enableval
=$enable_werror_always;
6632 enable_werror_always
=no
6635 if test $enable_werror_always = yes; then :
6636 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6641 # The above macros do nothing if the compiler is not GCC. However, the
6642 # Makefile has more goo to add other flags, so these variables are used
6643 # to enable warnings only for GCC.
6646 if test "x$GCC" = "xyes"; then
6647 warn_cflags
='$(GCC_WARN_CFLAGS)'
6648 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6653 # Disable exceptions and RTTI if building with g++
6655 save_CFLAGS
="$CFLAGS"
6656 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6657 # Do the check with the no- prefix removed since gcc silently
6658 # accepts any -Wno-* option on purpose
6659 case $real_option in
6660 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6661 *) option
=$real_option ;;
6663 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6666 $as_echo_n "checking whether $CC supports $option... " >&6; }
6667 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6668 $as_echo_n "(cached) " >&6
6671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6682 if ac_fn_c_try_compile
"$LINENO"; then :
6683 eval "$as_acx_Woption=yes"
6685 eval "$as_acx_Woption=no"
6687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6690 eval ac_res
=\$
$as_acx_Woption
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6692 $as_echo "$ac_res" >&6; }
6693 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6694 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6697 CFLAGS
="$save_CFLAGS"
6700 # Enable expensive internal checks
6702 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6706 # Check whether --enable-checking was given.
6707 if test "${enable_checking+set}" = set; then :
6708 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6711 # Determine the default checks.
6712 if test x
$is_release = x
; then
6713 ac_checking_flags
=yes
6715 ac_checking_flags
=release
6719 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6720 for check
in release
$ac_checking_flags
6723 # these set all the flags to specific states
6724 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6725 ac_fold_checking
= ; ac_gc_checking
=1 ;
6726 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6727 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6728 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6729 ac_types_checking
=1 ;;
6730 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6731 ac_fold_checking
= ; ac_gc_checking
= ;
6732 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6733 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6734 ac_tree_checking
= ; ac_valgrind_checking
= ;
6735 ac_types_checking
= ;;
6736 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6737 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6738 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6739 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6740 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6741 ac_types_checking
=1 ;;
6742 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6743 ac_fold_checking
= ; ac_gc_checking
= ;
6744 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6745 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6746 ac_tree_checking
= ; ac_valgrind_checking
= ;
6747 ac_types_checking
= ;;
6748 # these enable particular checks
6749 assert
) ac_assert_checking
=1 ;;
6750 df
) ac_df_checking
=1 ;;
6751 fold) ac_fold_checking
=1 ;;
6752 gc
) ac_gc_checking
=1 ;;
6753 gcac
) ac_gc_always_collect
=1 ;;
6754 gimple
) ac_gimple_checking
=1 ;;
6755 misc
) ac_checking
=1 ;;
6756 rtl
) ac_rtl_checking
=1 ;;
6757 rtlflag
) ac_rtlflag_checking
=1 ;;
6758 runtime
) ac_runtime_checking
=1 ;;
6759 tree
) ac_tree_checking
=1 ;;
6760 types
) ac_types_checking
=1 ;;
6761 valgrind
) ac_valgrind_checking
=1 ;;
6762 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6768 if test x
$ac_checking != x
; then
6770 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6772 nocommon_flag
=-fno-common
6775 if test x
$ac_df_checking != x
; then
6777 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6780 if test x
$ac_assert_checking != x
; then
6782 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6785 if test x
$ac_gimple_checking != x
; then
6787 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6791 if test x
$ac_runtime_checking != x
; then
6793 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6796 if test x
$ac_tree_checking != x
; then
6798 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6800 TREEBROWSER
=tree-browser.o
6803 if test x
$ac_types_checking != x
; then
6805 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6810 if test x
$ac_rtl_checking != x
; then
6812 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6815 if test x
$ac_rtlflag_checking != x
; then
6817 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6820 if test x
$ac_gc_checking != x
; then
6822 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6825 if test x
$ac_gc_always_collect != x
; then
6827 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6830 if test x
$ac_fold_checking != x
; then
6832 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6835 valgrind_path_defines
=
6838 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6839 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6847 if test x
$ac_valgrind_checking != x
; then
6848 # It is certainly possible that there's valgrind but no valgrind.h.
6849 # GCC relies on making annotations so we must have both.
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6851 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <valgrind/memcheck.h>
6855 #ifndef VALGRIND_DISCARD
6856 #error VALGRIND_DISCARD not defined
6859 if ac_fn_c_try_cpp
"$LINENO"; then :
6860 gcc_cv_header_valgrind_memcheck_h
=yes
6862 gcc_cv_header_valgrind_memcheck_h
=no
6864 rm -f conftest.err conftest.
$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6866 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6868 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 #include <memcheck.h>
6872 #ifndef VALGRIND_DISCARD
6873 #error VALGRIND_DISCARD not defined
6876 if ac_fn_c_try_cpp
"$LINENO"; then :
6877 gcc_cv_header_memcheck_h
=yes
6879 gcc_cv_header_memcheck_h
=no
6881 rm -f conftest.err conftest.
$ac_ext
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6883 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6891 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.
file <<_ASEOF
6905 chmod +x conf$$.
file
6906 if test -x conf$$.
file >/dev
/null
2>&1; then
6907 ac_executable_p
="test -x"
6909 ac_executable_p
="test -f"
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind
; ac_word
=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 case "$valgrind_path" in
6922 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6926 for ac_dir
in $PATH; do
6928 test -z "$ac_dir" && ac_dir
=.
6929 for ac_exec_ext
in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6932 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6942 valgrind_path
="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 ||
(test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6955 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command
="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6962 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6964 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6967 if test $gcc_cv_header_memcheck_h = yes; then
6969 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6976 # Enable code coverage collection
6977 # Check whether --enable-coverage was given.
6978 if test "${enable_coverage+set}" = set; then :
6979 enableval
=$enable_coverage; case "${enableval}" in
6981 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6984 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6987 # a.k.a. --disable-coverage
6991 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7000 # Check whether --enable-gather-detailed-mem-stats was given.
7001 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7002 enableval
=$enable_gather_detailed_mem_stats;
7004 enable_gather_detailed_mem_stats
=no
7007 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7009 cat >>confdefs.h
<<_ACEOF
7010 #define GATHER_STATISTICS $gather_stats
7014 # -------------------------------
7015 # Miscenalleous configure options
7016 # -------------------------------
7020 # Check whether --with-stabs was given.
7021 if test "${with_stabs+set}" = set; then :
7022 withval
=$with_stabs; stabs
="$with_stabs"
7028 # Determine whether or not multilibs are enabled.
7029 # Check whether --enable-multilib was given.
7030 if test "${enable_multilib+set}" = set; then :
7031 enableval
=$enable_multilib;
7038 # Determine whether or not multiarch is enabled.
7039 # Check whether --enable-multiarch was given.
7040 if test "${enable_multiarch+set}" = set; then :
7041 enableval
=$enable_multiarch; case "${enableval}" in
7042 yes|no|auto
) enable_multiarch
=$enableval;;
7043 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7046 enable_multiarch
=auto
7049 if test x
${enable_multiarch} = xauto
; then
7050 if test x
${with_native_system_header_dir} != x
; then
7051 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7054 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7055 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7060 $as_echo_n "checking for multiarch configuration... " >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7063 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7065 # needed for setting the multiarch name for soft-float/hard-float ABIs
7069 # Enable __cxa_atexit for C++.
7070 # Check whether --enable-__cxa_atexit was given.
7071 if test "${enable___cxa_atexit+set}" = set; then :
7072 enableval
=$enable___cxa_atexit;
7076 # Enable C extension for decimal float if target supports it.
7078 # Check whether --enable-decimal-float was given.
7079 if test "${enable_decimal_float+set}" = set; then :
7080 enableval
=$enable_decimal_float;
7081 case $enable_decimal_float in
7082 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7083 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7084 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7090 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7092 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7093 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7094 enable_decimal_float
=yes
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7098 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7099 enable_decimal_float
=no
7106 # x86's use BID format instead of DPD
7107 case x
$enable_decimal_float in
7110 i?
86*-*-* | x86_64
*-*-*)
7111 enable_decimal_float
=bid
7114 enable_decimal_float
=dpd
7117 default_decimal_float
=$enable_decimal_float
7120 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7121 # dependency on libdecnumber.
7122 default_decimal_float
=dpd
7129 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7131 cat >>confdefs.h
<<_ACEOF
7132 #define ENABLE_DECIMAL_FLOAT $dfp
7136 # Use default_decimal_float for dependency.
7137 enable_decimal_float
=$default_decimal_float
7139 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7141 cat >>confdefs.h
<<_ACEOF
7142 #define ENABLE_DECIMAL_BID_FORMAT $bid
7146 # Enable C extension for fixed-point arithmetic.
7147 # Check whether --enable-fixed-point was given.
7148 if test "${enable_fixed_point+set}" = set; then :
7149 enableval
=$enable_fixed_point;
7154 enable_fixed_point
=yes
7158 enable_fixed_point
=yes
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7162 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7163 enable_fixed_point
=no
7171 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7173 cat >>confdefs.h
<<_ACEOF
7174 #define ENABLE_FIXED_POINT $fixedpoint
7179 # Pass with no value to take the default
7180 # Pass with a value to specify a thread package
7181 # Check whether --enable-threads was given.
7182 if test "${enable_threads+set}" = set; then :
7183 enableval
=$enable_threads;
7189 # Check whether --enable-tls was given.
7190 if test "${enable_tls+set}" = set; then :
7191 enableval
=$enable_tls;
7194 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7195 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7203 # Check whether --enable-objc-gc was given.
7204 if test "${enable_objc_gc+set}" = set; then :
7205 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7216 # Check whether --with-dwarf2 was given.
7217 if test "${with_dwarf2+set}" = set; then :
7218 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7224 # Check whether --enable-shared was given.
7225 if test "${enable_shared+set}" = set; then :
7226 enableval
=$enable_shared;
7227 case $enable_shared in
7231 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7232 for pkg
in $enableval; do
7233 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7248 # Check whether --with-native-system-header-dir was given.
7249 if test "${with_native_system_header_dir+set}" = set; then :
7250 withval
=$with_native_system_header_dir;
7251 case ${with_native_system_header_dir} in
7252 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7253 /* |
[A-Za-z
]:[\\/]*) ;;
7254 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7256 configured_native_system_header_dir
="${withval}"
7259 configured_native_system_header_dir
=
7264 # Check whether --with-build-sysroot was given.
7265 if test "${with_build_sysroot+set}" = set; then :
7266 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7267 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7270 SYSROOT_CFLAGS_FOR_TARGET
=
7276 # Check whether --with-runtime-root-prefix was given.
7277 if test "${with_runtime_root_prefix+set}" = set; then :
7278 withval
=$with_runtime_root_prefix;
7279 case ${with_runtime_root_prefix} in
7280 yes|no
) as_fn_error
"bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7282 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7284 RUNTIME_ROOT_PREFIX_DEFINE
="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7287 RUNTIME_ROOT_PREFIX_DEFINE
=""
7292 if test "x$prefix" = xNONE
; then
7293 test_prefix
=/usr
/local
7297 if test "x$exec_prefix" = xNONE
; then
7298 test_exec_prefix
=$test_prefix
7300 test_exec_prefix
=$exec_prefix
7304 # Check whether --with-sysroot was given.
7305 if test "${with_sysroot+set}" = set; then :
7306 withval
=$with_sysroot;
7307 case ${with_sysroot} in
7308 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7309 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7312 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7313 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7315 case ${TARGET_SYSTEM_ROOT} in
7316 "${test_prefix}"|
"${test_prefix}/"*|\
7317 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7318 '${prefix}'|
'${prefix}/'*|\
7319 '${exec_prefix}'|
'${exec_prefix}/'*)
7320 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7321 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7328 TARGET_SYSTEM_ROOT_DEFINE
=
7329 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7338 # Check whether --with-specs was given.
7339 if test "${with_specs+set}" = set; then :
7340 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7350 # Check whether --with-pkgversion was given.
7351 if test "${with_pkgversion+set}" = set; then :
7352 withval
=$with_pkgversion; case "$withval" in
7353 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7355 *) PKGVERSION
="($withval) " ;;
7366 # Check whether --with-bugurl was given.
7367 if test "${with_bugurl+set}" = set; then :
7368 withval
=$with_bugurl; case "$withval" in
7369 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7372 *) BUGURL
="$withval"
7376 BUGURL
="http://gcc.gnu.org/bugs.html"
7386 REPORT_BUGS_TO
="<$BUGURL>"
7387 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7394 # Sanity check enable_languages in case someone does not run the toplevel
7395 # configure # script.
7396 # Check whether --enable-languages was given.
7397 if test "${enable_languages+set}" = set; then :
7398 enableval
=$enable_languages; case ,${enable_languages}, in
7400 # go safe -- we cannot be much sure without the toplevel
7402 # analysis of which target libs are present and usable
7406 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7411 enable_languages
=c
,${enable_languages}
7420 # Check whether --with-multilib-list was given.
7421 if test "${with_multilib_list+set}" = set; then :
7422 withval
=$with_multilib_list; :
7424 with_multilib_list
=default
7428 # -------------------------
7429 # Checks for other programs
7430 # -------------------------
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7433 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7435 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7436 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7437 $as_echo_n "(cached) " >&6
7439 cat >conftest.
make <<\_ACEOF
7442 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7445 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7447 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7449 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7453 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455 $as_echo "yes" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 SET_MAKE
="MAKE=${MAKE-make}"
7464 # Find some useful tools
7465 for ac_prog
in gawk mawk nawk
awk
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy
$ac_prog; ac_word
=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_AWK+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$AWK"; then
7475 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir
=.
7482 for ac_exec_ext
in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_AWK
="$ac_prog"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 if test -n "$AWK"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7497 $as_echo "$AWK" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7504 test -n "$AWK" && break
7507 # We need awk to create options.c and options.h.
7508 # Bail out if it's missing.
7510 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7514 $as_echo_n "checking whether ln -s works... " >&6; }
7515 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7518 rm -f conftestdata_t
7519 echo >conftestdata_f
7520 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7522 gcc_cv_prog_LN_S
="ln -s"
7524 if ln conftestdata_f conftestdata_t
2>/dev
/null
7528 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7530 gcc_cv_prog_LN_S
="cp -p"
7536 rm -f conftestdata_f conftestdata_t
7539 LN_S
="$gcc_cv_prog_LN_S"
7540 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7544 if test "$gcc_cv_prog_LN_S" = "ln"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7546 $as_echo "no, using ln" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7549 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7554 $as_echo_n "checking whether ln works... " >&6; }
7555 if test "${acx_cv_prog_LN+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7558 rm -f conftestdata_t
7559 echo >conftestdata_f
7560 if ln conftestdata_f conftestdata_t
2>/dev
/null
7566 rm -f conftestdata_f conftestdata_t
7569 if test $acx_cv_prog_LN = no
; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7572 $as_echo "no, using $LN" >&6; }
7574 LN
="$acx_cv_prog_LN"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$RANLIB"; then
7588 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 RANLIB
=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7610 $as_echo "$RANLIB" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619 ac_ct_RANLIB
=$RANLIB
7620 # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib
; ac_word
=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$ac_ct_RANLIB"; then
7628 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir
=.
7635 for ac_exec_ext
in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7650 $as_echo "$ac_ct_RANLIB" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_RANLIB" = x
; then
7659 case $cross_compiling:$ac_tool_warned in
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned
=yes ;;
7665 RANLIB
=$ac_ct_RANLIB
7668 RANLIB
="$ac_cv_prog_RANLIB"
7674 # Find a good install program. We prefer a C program (faster),
7675 # so one script is as good as another. But avoid the broken or
7676 # incompatible versions:
7677 # SysV /etc/install, /usr/sbin/install
7678 # SunOS /usr/etc/install
7679 # IRIX /sbin/install
7681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7683 # ./install, which can be erroneously created by make from ./install.sh.
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7685 $as_echo_n "checking for a BSD compatible install... " >&6; }
7686 if test -z "$INSTALL"; then
7687 if test "${ac_cv_path_install+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7690 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7691 for ac_dir
in $PATH; do
7692 # Account for people who put trailing slashes in PATH elements.
7694 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7696 # OSF1 and SCO ODT 3.0 have their own names for install.
7697 for ac_prog
in ginstall scoinst
install; do
7698 if test -f $ac_dir/$ac_prog; then
7699 if test $ac_prog = install &&
7700 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7701 # AIX install. It has an incompatible calling convention.
7702 # OSF/1 installbsd also uses dspmsg, but is usable.
7705 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7716 if test "${ac_cv_path_install+set}" = set; then
7717 INSTALL
="$ac_cv_path_install"
7719 # As a last resort, use the slow shell script. We don't cache a
7720 # path for INSTALL within a source directory, because that will
7721 # break other packages using the cache if that directory is
7722 # removed, or if the path is relative.
7723 INSTALL
="$ac_install_sh"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7727 $as_echo "$INSTALL" >&6; }
7729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7730 # It thinks the first close brace ends the variable substitution.
7731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7733 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7736 # See if cmp has --ignore-initial.
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7738 $as_echo_n "checking for cmp's capabilities... " >&6; }
7739 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7744 gcc_cv_prog_cmp_skip
=slowcompare
7745 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7746 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7749 gcc_cv_prog_cmp_skip
=gnucompare
7752 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7753 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7754 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7757 gcc_cv_prog_cmp_skip
=fastcompare
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7765 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7766 make_compare_target
=$gcc_cv_prog_cmp_skip
7770 # See if we have the mktemp command.
7771 # Extract the first word of "mktemp", so it can be a program name with args.
7772 set dummy mktemp
; ac_word
=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7778 if test -n "$have_mktemp_command"; then
7779 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir
=.
7786 for ac_exec_ext
in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_prog_have_mktemp_command
="yes"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7799 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7800 if test -n "$have_mktemp_command"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7802 $as_echo "$have_mktemp_command" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7810 # See if makeinfo has been installed and is modern enough
7811 # that we can use it.
7813 # Extract the first word of "makeinfo", so it can be a program name with args.
7814 set dummy makeinfo
; ac_word
=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7820 if test -n "$MAKEINFO"; then
7821 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir
=.
7828 for ac_exec_ext
in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_MAKEINFO
="makeinfo"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 MAKEINFO
=$ac_cv_prog_MAKEINFO
7841 if test -n "$MAKEINFO"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7843 $as_echo "$MAKEINFO" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7850 if test -n "$MAKEINFO"; then
7851 # Found it, now check the version.
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7853 $as_echo_n "checking for modern makeinfo... " >&6; }
7854 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7857 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7858 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7860 case $ac_prog_version in
7861 '') gcc_cv_prog_makeinfo_modern
=no
;;
7862 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7863 *) gcc_cv_prog_makeinfo_modern
=no
;;
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7868 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7870 gcc_cv_prog_makeinfo_modern
=no
7872 if test $gcc_cv_prog_makeinfo_modern = no
; then
7873 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7876 if test $gcc_cv_prog_makeinfo_modern = no
; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7878 *** Makeinfo is missing or too old.
7879 *** Info documentation will not be built." >&5
7880 $as_echo "$as_me: WARNING:
7881 *** Makeinfo is missing or too old.
7882 *** Info documentation will not be built." >&2;}
7889 # Is pod2man recent enough to regenerate manpages?
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7891 $as_echo_n "checking for recent Pod::Man... " >&6; }
7892 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7895 GENERATED_MANPAGES
=generated-manpages
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7903 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7908 # Extract the first word of "$ac_prog", so it can be a program name with args.
7909 set dummy
$ac_prog; ac_word
=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if test "${ac_cv_prog_FLEX+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7915 if test -n "$FLEX"; then
7916 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir
=.
7923 for ac_exec_ext
in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_FLEX
="$ac_prog"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 FLEX
=$ac_cv_prog_FLEX
7936 if test -n "$FLEX"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7938 $as_echo "$FLEX" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7945 test -n "$FLEX" && break
7947 test -n "$FLEX" || FLEX
="$MISSING flex"
7951 for ac_prog
in bison
7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy
$ac_prog; ac_word
=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_prog_BISON+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7960 if test -n "$BISON"; then
7961 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir
=.
7968 for ac_exec_ext
in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_prog_BISON
="$ac_prog"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 BISON
=$ac_cv_prog_BISON
7981 if test -n "$BISON"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7983 $as_echo "$BISON" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7990 test -n "$BISON" && break
7992 test -n "$BISON" || BISON
="$MISSING bison"
7995 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7996 # check for build == host before using them.
7999 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8000 && test -d ..
/binutils
; then
8001 NM
='${objdir}/../binutils/nm-new'
8003 # Extract the first word of "nm", so it can be a program name with args.
8004 set dummy nm
; ac_word
=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_NM+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8010 if test -n "$NM"; then
8011 ac_cv_prog_NM
="$NM" # Let the user override the test.
8013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8017 test -z "$as_dir" && as_dir
=.
8018 for ac_exec_ext
in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8032 if test -n "$NM"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8034 $as_echo "$NM" >&6; }
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8044 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8045 && test -d ..
/binutils
; then
8046 AR
='${objdir}/../binutils/ar'
8048 # Extract the first word of "ar", so it can be a program name with args.
8049 set dummy
ar; ac_word
=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_prog_AR+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8055 if test -n "$AR"; then
8056 ac_cv_prog_AR
="$AR" # Let the user override the test.
8058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir
=.
8063 for ac_exec_ext
in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8077 if test -n "$AR"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079 $as_echo "$AR" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8089 # --------------------
8090 # Checks for C headers
8091 # --------------------
8093 # Need to reject headers which give warnings, so that the -Werror bootstrap
8094 # works later. *sigh* This needs to come before all header checks.
8096 ac_c_preproc_warn_flag
=yes
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8099 $as_echo_n "checking for ANSI C header files... " >&6; }
8100 if test "${ac_cv_header_stdc+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8118 if ac_fn_c_try_compile
"$LINENO"; then :
8119 ac_cv_header_stdc
=yes
8121 ac_cv_header_stdc
=no
8123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8125 if test $ac_cv_header_stdc = yes; then
8126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 $EGREP "memchr" >/dev
/null
2>&1; then :
8136 ac_cv_header_stdc
=no
8142 if test $ac_cv_header_stdc = yes; then
8143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150 $EGREP "free" >/dev
/null
2>&1; then :
8153 ac_cv_header_stdc
=no
8159 if test $ac_cv_header_stdc = yes; then
8160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8161 if test "$cross_compiling" = yes; then :
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8168 #if ((' ' & 0x0FF) == 0x020)
8169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 # define ISLOWER(c) \
8173 (('a' <= (c) && (c) <= 'i') \
8174 || ('j' <= (c) && (c) <= 'r') \
8175 || ('s' <= (c) && (c) <= 'z'))
8176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8184 for (i = 0; i < 256; i++)
8185 if (XOR (islower (i), ISLOWER (i))
8186 || toupper (i) != TOUPPER (i))
8191 if ac_fn_c_try_run
"$LINENO"; then :
8194 ac_cv_header_stdc
=no
8196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8203 $as_echo "$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8206 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8211 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8212 if test "${ac_cv_header_time+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include <sys/types.h>
8218 #include <sys/time.h>
8224 if ((struct tm *) 0)
8230 if ac_fn_c_try_compile
"$LINENO"; then :
8231 ac_cv_header_time
=yes
8233 ac_cv_header_time
=no
8235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8238 $as_echo "$ac_cv_header_time" >&6; }
8239 if test $ac_cv_header_time = yes; then
8241 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8246 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8247 if test "${gcc_cv_header_string+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8253 #include <strings.h>
8262 if ac_fn_c_try_compile
"$LINENO"; then :
8263 gcc_cv_header_string
=yes
8265 gcc_cv_header_string
=no
8267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8270 $as_echo "$gcc_cv_header_string" >&6; }
8271 if test $gcc_cv_header_string = yes; then
8273 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8278 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8279 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284 #include <sys/types.h>
8285 #include <sys/wait.h>
8287 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8290 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8298 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8303 if ac_fn_c_try_compile
"$LINENO"; then :
8304 ac_cv_header_sys_wait_h
=yes
8306 ac_cv_header_sys_wait_h
=no
8308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8311 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8312 if test $ac_cv_header_sys_wait_h = yes; then
8314 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8318 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8319 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8320 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8321 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8323 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8325 eval as_val
=\$
$as_ac_Header
8326 if test "x$as_val" = x
""yes; then :
8327 cat >>confdefs.h
<<_ACEOF
8328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8335 # Check for thread headers.
8336 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8337 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8343 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8344 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8351 # These tests can't be done till we know if we have limits.h.
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8353 $as_echo_n "checking for CHAR_BIT... " >&6; }
8354 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 #ifdef HAVE_LIMITS_H
8366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8367 $EGREP "found" >/dev
/null
2>&1; then :
8368 gcc_cv_decl_char_bit
=yes
8370 gcc_cv_decl_char_bit
=no
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8377 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8378 if test $gcc_cv_decl_char_bit = no
; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8380 $as_echo_n "checking number of bits in a byte... " >&6; }
8381 if test "${gcc_cv_c_nbby+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8386 while test $i -lt 65; do
8387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8394 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8395 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8401 if ac_fn_c_try_compile
"$LINENO"; then :
8402 gcc_cv_c_nbby
=$i; break
8404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8407 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8411 $as_echo "$gcc_cv_c_nbby" >&6; }
8412 if test $gcc_cv_c_nbby = failed
; then
8413 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8416 cat >>confdefs.h
<<_ACEOF
8417 #define CHAR_BIT $gcc_cv_c_nbby
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8423 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8424 if test "${ac_cv_c_bigendian+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8427 ac_cv_c_bigendian
=unknown
8428 # See if we're dealing with a universal compiler.
8429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 #ifndef __APPLE_CC__
8432 not a universal capable compiler
8437 if ac_fn_c_try_compile
"$LINENO"; then :
8439 # Check for potential -arch flags. It is not universal unless
8440 # there are at least two -arch flags with different values.
8443 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8444 if test -n "$ac_prev"; then
8446 i?
86 | x86_64 | ppc | ppc64
)
8447 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8450 ac_cv_c_bigendian
=universal
8456 elif test "x$ac_word" = "x-arch"; then
8461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8462 if test $ac_cv_c_bigendian = unknown
; then
8463 # See if sys/param.h defines the BYTE_ORDER macro.
8464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <sys/types.h>
8467 #include <sys/param.h>
8472 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8473 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8482 if ac_fn_c_try_compile
"$LINENO"; then :
8483 # It does; now see whether it defined to BIG_ENDIAN or not.
8484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <sys/types.h>
8487 #include <sys/param.h>
8492 #if BYTE_ORDER != BIG_ENDIAN
8500 if ac_fn_c_try_compile
"$LINENO"; then :
8501 ac_cv_c_bigendian
=yes
8503 ac_cv_c_bigendian
=no
8505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8509 if test $ac_cv_c_bigendian = unknown
; then
8510 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8518 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8526 if ac_fn_c_try_compile
"$LINENO"; then :
8527 # It does; now see whether it defined to _BIG_ENDIAN or not.
8528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8543 if ac_fn_c_try_compile
"$LINENO"; then :
8544 ac_cv_c_bigendian
=yes
8546 ac_cv_c_bigendian
=no
8548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8552 if test $ac_cv_c_bigendian = unknown
; then
8553 # Compile a test program.
8554 if test "$cross_compiling" = yes; then :
8555 # Try to guess by grepping values from an object file.
8556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 short int ascii_mm[] =
8559 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8560 short int ascii_ii[] =
8561 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8562 int use_ascii (int i) {
8563 return ascii_mm[i] + ascii_ii[i];
8565 short int ebcdic_ii[] =
8566 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8567 short int ebcdic_mm[] =
8568 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8569 int use_ebcdic (int i) {
8570 return ebcdic_mm[i] + ebcdic_ii[i];
8577 return use_ascii (foo) == use_ebcdic (foo);
8582 if ac_fn_c_try_compile
"$LINENO"; then :
8583 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8584 ac_cv_c_bigendian
=yes
8586 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8587 if test "$ac_cv_c_bigendian" = unknown
; then
8588 ac_cv_c_bigendian
=no
8590 # finding both strings is unlikely to happen, but who knows?
8591 ac_cv_c_bigendian
=unknown
8595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 $ac_includes_default
8604 /* Are we little or big endian? From Harbison&Steele. */
8608 char c[sizeof (long int)];
8611 return u.c[sizeof (long int) - 1] == 1;
8617 if ac_fn_c_try_run
"$LINENO"; then :
8618 ac_cv_c_bigendian
=no
8620 ac_cv_c_bigendian
=yes
8622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8629 $as_echo "$ac_cv_c_bigendian" >&6; }
8630 case $ac_cv_c_bigendian in #(
8632 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8638 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8642 as_fn_error
"unknown endianness
8643 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8647 # ----------------------
8648 # Checks for C++ headers
8649 # ----------------------
8652 ac_cpp
='$CXXCPP $CPPFLAGS'
8653 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8657 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8658 if test -z "$CXXCPP"; then
8659 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8662 # Double quotes because CXXCPP needs to be expanded
8663 for CXXCPP
in "$CXX -E" "/lib/cpp"
8666 for ac_cxx_preproc_warn_flag
in '' yes
8668 # Use a header file that comes with gcc, so configuring glibc
8669 # with a fresh cross-compiler works.
8670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671 # <limits.h> exists even on freestanding compilers.
8672 # On the NeXT, cc -E runs the code through the compiler's parser,
8673 # not just through cpp. "Syntax error" is here to catch this case.
8674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8677 # include <limits.h>
8679 # include <assert.h>
8683 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8686 # Broken: fails on valid input.
8689 rm -f conftest.err conftest.
$ac_ext
8691 # OK, works on sane cases. Now check whether nonexistent headers
8692 # can be detected and how.
8693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 #include <ac_nonexistent.h>
8697 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8698 # Broken: success on invalid input.
8701 # Passes both tests.
8705 rm -f conftest.err conftest.
$ac_ext
8708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8709 rm -f conftest.err conftest.
$ac_ext
8710 if $ac_preproc_ok; then :
8715 ac_cv_prog_CXXCPP
=$CXXCPP
8718 CXXCPP
=$ac_cv_prog_CXXCPP
8720 ac_cv_prog_CXXCPP
=$CXXCPP
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8723 $as_echo "$CXXCPP" >&6; }
8725 for ac_cxx_preproc_warn_flag
in '' yes
8727 # Use a header file that comes with gcc, so configuring glibc
8728 # with a fresh cross-compiler works.
8729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8730 # <limits.h> exists even on freestanding compilers.
8731 # On the NeXT, cc -E runs the code through the compiler's parser,
8732 # not just through cpp. "Syntax error" is here to catch this case.
8733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8736 # include <limits.h>
8738 # include <assert.h>
8742 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8745 # Broken: fails on valid input.
8748 rm -f conftest.err conftest.
$ac_ext
8750 # OK, works on sane cases. Now check whether nonexistent headers
8751 # can be detected and how.
8752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #include <ac_nonexistent.h>
8756 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8757 # Broken: success on invalid input.
8760 # Passes both tests.
8764 rm -f conftest.err conftest.
$ac_ext
8767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8768 rm -f conftest.err conftest.
$ac_ext
8769 if $ac_preproc_ok; then :
8772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8775 See \`config.log' for more details." >&5
8776 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8777 See \`config.log' for more details." >&2;}; }
8781 ac_cpp
='$CPP $CPPFLAGS'
8782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8788 ac_cpp
='$CXXCPP $CPPFLAGS'
8789 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8790 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8791 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8796 for ac_header
in unordered_map
8798 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8799 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8800 cat >>confdefs.h
<<_ACEOF
8801 #define HAVE_UNORDERED_MAP 1
8807 for ac_header
in tr1/unordered_map
8809 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8810 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8811 cat >>confdefs.h
<<_ACEOF
8812 #define HAVE_TR1_UNORDERED_MAP 1
8818 for ac_header
in ext
/hash_map
8820 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8821 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8822 cat >>confdefs.h
<<_ACEOF
8823 #define HAVE_EXT_HASH_MAP 1
8831 ac_cpp
='$CPP $CPPFLAGS'
8832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8842 # These libraries may be used by collect2.
8843 # We may need a special search path to get them linked.
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8845 $as_echo_n "checking for collect2 libraries... " >&6; }
8846 if test "${gcc_cv_collect2_libs+set}" = set; then :
8847 $as_echo_n "(cached) " >&6
8850 for libs
in '' -lld -lmld \
8851 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8852 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8858 /* Override any GCC internal prototype to avoid an error.
8859 Use char because int might match the return type of a GCC
8860 builtin and then its argument prototype would still apply. */
8873 if ac_fn_c_try_link
"$LINENO"; then :
8874 gcc_cv_collect2_libs
="$libs"; break
8876 rm -f core conftest.err conftest.
$ac_objext \
8877 conftest
$ac_exeext conftest.
$ac_ext
8880 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8883 $as_echo "$gcc_cv_collect2_libs" >&6; }
8884 case $gcc_cv_collect2_libs in
8886 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8890 # When building Ada code on Alpha, we need exc_resume which is usually in
8891 # -lexc. So test for it.
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8895 $as_echo_n "checking for library containing exc_resume... " >&6; }
8896 if test "${ac_cv_search_exc_resume+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 ac_func_search_save_LIBS
=$LIBS
8900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8903 /* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8913 return exc_resume ();
8918 for ac_lib
in '' exc
; do
8919 if test -z "$ac_lib"; then
8920 ac_res
="none required"
8923 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8925 if ac_fn_c_try_link
"$LINENO"; then :
8926 ac_cv_search_exc_resume
=$ac_res
8928 rm -f core conftest.err conftest.
$ac_objext \
8930 if test "${ac_cv_search_exc_resume+set}" = set; then :
8934 if test "${ac_cv_search_exc_resume+set}" = set; then :
8937 ac_cv_search_exc_resume
=no
8940 LIBS
=$ac_func_search_save_LIBS
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8943 $as_echo "$ac_cv_search_exc_resume" >&6; }
8944 ac_res
=$ac_cv_search_exc_resume
8945 if test "$ac_res" != no
; then :
8946 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8954 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8958 $as_echo_n "checking for library containing kstat_open... " >&6; }
8959 if test "${ac_cv_search_kstat_open+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8962 ac_func_search_save_LIBS
=$LIBS
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8976 return kstat_open ();
8981 for ac_lib
in '' kstat
; do
8982 if test -z "$ac_lib"; then
8983 ac_res
="none required"
8986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8988 if ac_fn_c_try_link
"$LINENO"; then :
8989 ac_cv_search_kstat_open
=$ac_res
8991 rm -f core conftest.err conftest.
$ac_objext \
8993 if test "${ac_cv_search_kstat_open+set}" = set; then :
8997 if test "${ac_cv_search_kstat_open+set}" = set; then :
9000 ac_cv_search_kstat_open
=no
9003 LIBS
=$ac_func_search_save_LIBS
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9006 $as_echo "$ac_cv_search_kstat_open" >&6; }
9007 ac_res
=$ac_cv_search_kstat_open
9008 if test "$ac_res" != no
; then :
9009 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9013 EXTRA_GCC_LIBS
="$LIBS"
9017 # Some systems put ldexp and frexp in libm instead of libc; assume
9018 # they're both in the same place. jcf-dump needs them.
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9022 $as_echo_n "checking for library containing ldexp... " >&6; }
9023 if test "${ac_cv_search_ldexp+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9026 ac_func_search_save_LIBS
=$LIBS
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9045 for ac_lib
in '' m
; do
9046 if test -z "$ac_lib"; then
9047 ac_res
="none required"
9050 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9052 if ac_fn_c_try_link
"$LINENO"; then :
9053 ac_cv_search_ldexp
=$ac_res
9055 rm -f core conftest.err conftest.
$ac_objext \
9057 if test "${ac_cv_search_ldexp+set}" = set; then :
9061 if test "${ac_cv_search_ldexp+set}" = set; then :
9064 ac_cv_search_ldexp
=no
9067 LIBS
=$ac_func_search_save_LIBS
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9070 $as_echo "$ac_cv_search_ldexp" >&6; }
9071 ac_res
=$ac_cv_search_ldexp
9072 if test "$ac_res" != no
; then :
9073 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9081 # Use <inttypes.h> only if it exists,
9082 # doesn't clash with <sys/types.h>, and declares intmax_t.
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9084 $as_echo_n "checking for inttypes.h... " >&6; }
9085 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <sys/types.h>
9091 #include <inttypes.h>
9100 if ac_fn_c_try_compile
"$LINENO"; then :
9101 gcc_cv_header_inttypes_h
=yes
9103 gcc_cv_header_inttypes_h
=no
9105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9109 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9110 if test $gcc_cv_header_inttypes_h = yes; then
9112 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9118 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9119 sysconf strsignal getrusage nl_langinfo \
9120 gettimeofday mbstowcs wcswidth mmap setlocale \
9121 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
9123 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9124 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9125 eval as_val
=\$
$as_ac_var
9126 if test "x$as_val" = x
""yes; then :
9127 cat >>confdefs.h
<<_ACEOF
9128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9135 if test x
$ac_cv_func_mbstowcs = xyes
; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9137 $as_echo_n "checking whether mbstowcs works... " >&6; }
9138 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9141 if test "$cross_compiling" = yes; then :
9142 gcc_cv_func_mbstowcs_works
=yes
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9153 if ac_fn_c_try_run
"$LINENO"; then :
9154 gcc_cv_func_mbstowcs_works
=yes
9156 gcc_cv_func_mbstowcs_works
=no
9158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9164 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9165 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9167 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9172 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9173 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9177 cat >>confdefs.h
<<_ACEOF
9183 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9184 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9188 cat >>confdefs.h
<<_ACEOF
9189 #define caddr_t char *
9196 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9197 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9198 gcc_header_sys_mman_h
=yes
9200 gcc_header_sys_mman_h
=no
9203 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9204 if test "x$ac_cv_func_mmap" = x
""yes; then :
9210 if test "$gcc_header_sys_mman_h" != yes \
9211 ||
test "$gcc_func_mmap" != yes; then
9212 gcc_cv_func_mmap_file
=no
9213 gcc_cv_func_mmap_dev_zero
=no
9214 gcc_cv_func_mmap_anon
=no
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9217 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9218 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9221 # Add a system to this blacklist if
9222 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9223 # memory area containing the same data that you'd get if you applied
9224 # read() to the same fd. The only system known to have a problem here
9225 # is VMS, where text files have record structure.
9228 gcc_cv_func_mmap_file
=no
;;
9230 gcc_cv_func_mmap_file
=yes;;
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9234 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9236 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9237 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9240 # Add a system to this blacklist if it has mmap() but /dev/zero
9241 # does not exist, or if mmapping /dev/zero does not give anonymous
9242 # zeroed pages with both the following properties:
9243 # 1. If you map N consecutive pages in with one call, and then
9244 # unmap any subset of those pages, the pages that were not
9245 # explicitly unmapped remain accessible.
9246 # 2. If you map two adjacent blocks of memory and then unmap them
9247 # both at once, they must both go away.
9248 # Systems known to be in this category are Windows (all variants),
9251 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9252 gcc_cv_func_mmap_dev_zero
=no
;;
9254 gcc_cv_func_mmap_dev_zero
=yes;;
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9258 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9260 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9262 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9263 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/mman.h>
9272 #ifndef MAP_ANONYMOUS
9273 #define MAP_ANONYMOUS MAP_ANON
9279 int n = MAP_ANONYMOUS;
9284 if ac_fn_c_try_compile
"$LINENO"; then :
9285 gcc_cv_decl_map_anon
=yes
9287 gcc_cv_decl_map_anon
=no
9289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9292 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9294 if test $gcc_cv_decl_map_anon = no
; then
9295 gcc_cv_func_mmap_anon
=no
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9298 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9299 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9302 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9303 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9304 # doesn't give anonymous zeroed pages with the same properties listed
9305 # above for use of /dev/zero.
9306 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9308 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9309 gcc_cv_func_mmap_anon
=no
;;
9311 gcc_cv_func_mmap_anon
=yes;;
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9315 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9319 if test $gcc_cv_func_mmap_file = yes; then
9321 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9324 if test $gcc_cv_func_mmap_dev_zero = yes; then
9326 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9329 if test $gcc_cv_func_mmap_anon = yes; then
9331 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9338 # Under VMS, vfork works very differently than on Unix. The standard test
9339 # won't work, and it isn't easily adaptable. It makes more sense to
9341 ac_cv_func_vfork_works
=yes
9344 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9345 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9349 cat >>confdefs.h
<<_ACEOF
9355 for ac_header
in vfork.h
9357 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9358 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9359 cat >>confdefs.h
<<_ACEOF
9360 #define HAVE_VFORK_H 1
9366 for ac_func
in fork vfork
9368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9369 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9370 eval as_val
=\$
$as_ac_var
9371 if test "x$as_val" = x
""yes; then :
9372 cat >>confdefs.h
<<_ACEOF
9373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9379 if test "x$ac_cv_func_fork" = xyes
; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9381 $as_echo_n "checking for working fork... " >&6; }
9382 if test "${ac_cv_func_fork_works+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9385 if test "$cross_compiling" = yes; then :
9386 ac_cv_func_fork_works
=cross
9388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 $ac_includes_default
9395 /* By Ruediger Kuhlmann. */
9402 if ac_fn_c_try_run
"$LINENO"; then :
9403 ac_cv_func_fork_works
=yes
9405 ac_cv_func_fork_works
=no
9407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9413 $as_echo "$ac_cv_func_fork_works" >&6; }
9416 ac_cv_func_fork_works
=$ac_cv_func_fork
9418 if test "x$ac_cv_func_fork_works" = xcross
; then
9420 *-*-amigaos* |
*-*-msdosdjgpp*)
9421 # Override, as these systems have only a dummy fork() stub
9422 ac_cv_func_fork_works
=no
9425 ac_cv_func_fork_works
=yes
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9429 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9431 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9432 if test "x$ac_cv_func_vfork" = xyes
; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9434 $as_echo_n "checking for working vfork... " >&6; }
9435 if test "${ac_cv_func_vfork_works+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9438 if test "$cross_compiling" = yes; then :
9439 ac_cv_func_vfork_works
=cross
9441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 /* Thanks to Paul Eggert for this test. */
9444 $ac_includes_default
9445 #include <sys/wait.h>
9449 /* On some sparc systems, changes by the child to local and incoming
9450 argument registers are propagated back to the parent. The compiler
9451 is told about this with #include <vfork.h>, but some compilers
9452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9453 static variable whose address is put into a register that is
9454 clobbered by the vfork. */
9457 sparc_address_test (int arg)
9459 sparc_address_test (arg) int arg;
9480 pid_t parent = getpid ();
9483 sparc_address_test (0);
9488 /* Here is another test for sparc vfork register problems. This
9489 test uses lots of local variables, at least as many local
9490 variables as main has allocated so far including compiler
9491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9493 reuse the register of parent for one of the local variables,
9494 since it will think that parent can't possibly be used any more
9495 in this routine. Assigning to the local variable will thus
9496 munge parent in the parent process. */
9498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9500 /* Convince the compiler that p..p7 are live; otherwise, it might
9501 use the same hardware register for all 8 local variables. */
9502 if (p != p1 || p != p2 || p != p3 || p != p4
9503 || p != p5 || p != p6 || p != p7)
9506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9507 from child file descriptors. If the child closes a descriptor
9508 before it execs or exits, this munges the parent's descriptor
9509 as well. Test for this by closing stdout in the child. */
9510 _exit(close(fileno(stdout)) != 0);
9515 while (wait(&status) != child)
9518 /* Was there some problem with vforking? */
9521 /* Did the child fail? (This shouldn't happen.) */
9524 /* Did the vfork/compiler bug occur? */
9525 || parent != getpid()
9527 /* Did the file descriptor bug occur? */
9528 || fstat(fileno(stdout), &st) != 0
9533 if ac_fn_c_try_run
"$LINENO"; then :
9534 ac_cv_func_vfork_works
=yes
9536 ac_cv_func_vfork_works
=no
9538 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9539 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9544 $as_echo "$ac_cv_func_vfork_works" >&6; }
9547 if test "x$ac_cv_func_fork_works" = xcross
; then
9548 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9550 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9553 if test "x$ac_cv_func_vfork_works" = xyes
; then
9555 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9559 $as_echo "#define vfork fork" >>confdefs.h
9562 if test "x$ac_cv_func_fork_works" = xyes
; then
9564 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9569 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9570 # iconv() prototype.
9572 ac_cpp
='$CXXCPP $CPPFLAGS'
9573 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9578 if test "X$prefix" = "XNONE"; then
9579 acl_final_prefix
="$ac_default_prefix"
9581 acl_final_prefix
="$prefix"
9583 if test "X$exec_prefix" = "XNONE"; then
9584 acl_final_exec_prefix
='${prefix}'
9586 acl_final_exec_prefix
="$exec_prefix"
9588 acl_save_prefix
="$prefix"
9589 prefix
="$acl_final_prefix"
9590 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9591 prefix
="$acl_save_prefix"
9594 # Check whether --with-gnu-ld was given.
9595 if test "${with_gnu_ld+set}" = set; then :
9596 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9601 # Prepare PATH_SEPARATOR.
9602 # The user is always right.
9603 if test "${PATH_SEPARATOR+set}" != set; then
9604 echo "#! /bin/sh" >conf$$.sh
9605 echo "exit 0" >>conf$$.sh
9607 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9615 if test "$GCC" = yes; then
9616 # Check if gcc -print-prog-name=ld gives a path.
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9618 $as_echo_n "checking for ld used by GCC... " >&6; }
9621 # gcc leaves a trailing carriage return which upsets mingw
9622 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9624 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9627 # Accept absolute paths.
9628 [\\/]* |
[A-Za-z
]:[\\/]*)
9629 re_direlt
='/[^/][^/]*/\.\./'
9630 # Canonicalize the path of ld
9631 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9632 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9633 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9635 test -z "$LD" && LD
="$ac_prog"
9638 # If it fails, then pretend we aren't using GCC.
9642 # If it is relative, then search for the first ld in PATH.
9646 elif test "$with_gnu_ld" = yes; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9648 $as_echo_n "checking for GNU ld... " >&6; }
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9651 $as_echo_n "checking for non-GNU ld... " >&6; }
9653 if test "${acl_cv_path_LD+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9656 if test -z "$LD"; then
9657 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9658 for ac_dir
in $PATH; do
9659 test -z "$ac_dir" && ac_dir
=.
9660 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9661 acl_cv_path_LD
="$ac_dir/$ac_prog"
9662 # Check to see if the program is GNU ld. I'd rather use --version,
9663 # but apparently some GNU ld's only accept -v.
9664 # Break only if it was the GNU/non-GNU ld that we prefer.
9665 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9666 test "$with_gnu_ld" != no
&& break
9668 test "$with_gnu_ld" != yes && break
9674 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9678 LD
="$acl_cv_path_LD"
9679 if test -n "$LD"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9681 $as_echo "$LD" >&6; }
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9686 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9688 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9689 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9692 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9693 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9694 acl_cv_prog_gnu_ld
=yes
9696 acl_cv_prog_gnu_ld
=no
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9700 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9701 with_gnu_ld
=$acl_cv_prog_gnu_ld
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9706 $as_echo_n "checking for shared library run path origin... " >&6; }
9707 if test "${acl_cv_rpath+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9711 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9712 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9719 $as_echo "$acl_cv_rpath" >&6; }
9721 libext
="$acl_cv_libext"
9722 shlibext
="$acl_cv_shlibext"
9723 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9724 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9725 hardcode_direct
="$acl_cv_hardcode_direct"
9726 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9727 # Check whether --enable-rpath was given.
9728 if test "${enable_rpath+set}" = set; then :
9729 enableval
=$enable_rpath; :
9743 acl_save_prefix
="$prefix"
9744 prefix
="$acl_final_prefix"
9745 acl_save_exec_prefix
="$exec_prefix"
9746 exec_prefix
="$acl_final_exec_prefix"
9748 eval additional_includedir
=\"$includedir\"
9749 eval additional_libdir
=\"$libdir\"
9751 exec_prefix
="$acl_save_exec_prefix"
9752 prefix
="$acl_save_prefix"
9755 # Check whether --with-libiconv-prefix was given.
9756 if test "${with_libiconv_prefix+set}" = set; then :
9757 withval
=$with_libiconv_prefix;
9758 if test "X$withval" = "Xno"; then
9761 if test "X$withval" = "X"; then
9763 acl_save_prefix
="$prefix"
9764 prefix
="$acl_final_prefix"
9765 acl_save_exec_prefix
="$exec_prefix"
9766 exec_prefix
="$acl_final_exec_prefix"
9768 eval additional_includedir
=\"$includedir\"
9769 eval additional_libdir
=\"$libdir\"
9771 exec_prefix
="$acl_save_exec_prefix"
9772 prefix
="$acl_save_prefix"
9775 additional_includedir
="$withval/include"
9776 additional_libdir
="$withval/lib"
9787 names_already_handled
=
9788 names_next_round
='iconv '
9789 while test -n "$names_next_round"; do
9790 names_this_round
="$names_next_round"
9792 for name
in $names_this_round; do
9794 for n
in $names_already_handled; do
9795 if test "$n" = "$name"; then
9800 if test -z "$already_handled"; then
9801 names_already_handled
="$names_already_handled $name"
9802 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9803 eval value
=\"\
$HAVE_LIB$uppername\"
9804 if test -n "$value"; then
9805 if test "$value" = yes; then
9806 eval value
=\"\
$LIB$uppername\"
9807 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9808 eval value
=\"\
$LTLIB$uppername\"
9809 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9818 if test $use_additional = yes; then
9819 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9820 found_dir
="$additional_libdir"
9821 found_so
="$additional_libdir/lib$name.$shlibext"
9822 if test -f "$additional_libdir/lib$name.la"; then
9823 found_la
="$additional_libdir/lib$name.la"
9826 if test -f "$additional_libdir/lib$name.$libext"; then
9827 found_dir
="$additional_libdir"
9828 found_a
="$additional_libdir/lib$name.$libext"
9829 if test -f "$additional_libdir/lib$name.la"; then
9830 found_la
="$additional_libdir/lib$name.la"
9835 if test "X$found_dir" = "X"; then
9836 for x
in $LDFLAGS $LTLIBICONV; do
9838 acl_save_prefix
="$prefix"
9839 prefix
="$acl_final_prefix"
9840 acl_save_exec_prefix
="$exec_prefix"
9841 exec_prefix
="$acl_final_exec_prefix"
9843 exec_prefix
="$acl_save_exec_prefix"
9844 prefix
="$acl_save_prefix"
9848 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9849 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9851 found_so
="$dir/lib$name.$shlibext"
9852 if test -f "$dir/lib$name.la"; then
9853 found_la
="$dir/lib$name.la"
9856 if test -f "$dir/lib$name.$libext"; then
9858 found_a
="$dir/lib$name.$libext"
9859 if test -f "$dir/lib$name.la"; then
9860 found_la
="$dir/lib$name.la"
9866 if test "X$found_dir" != "X"; then
9871 if test "X$found_dir" != "X"; then
9872 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9873 if test "X$found_so" != "X"; then
9874 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9875 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9878 for x
in $ltrpathdirs; do
9879 if test "X$x" = "X$found_dir"; then
9884 if test -z "$haveit"; then
9885 ltrpathdirs
="$ltrpathdirs $found_dir"
9887 if test "$hardcode_direct" = yes; then
9888 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9890 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9891 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9893 for x
in $rpathdirs; do
9894 if test "X$x" = "X$found_dir"; then
9899 if test -z "$haveit"; then
9900 rpathdirs
="$rpathdirs $found_dir"
9904 for x
in $LDFLAGS $LIBICONV; do
9906 acl_save_prefix
="$prefix"
9907 prefix
="$acl_final_prefix"
9908 acl_save_exec_prefix
="$exec_prefix"
9909 exec_prefix
="$acl_final_exec_prefix"
9911 exec_prefix
="$acl_save_exec_prefix"
9912 prefix
="$acl_save_prefix"
9914 if test "X$x" = "X-L$found_dir"; then
9919 if test -z "$haveit"; then
9920 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9922 if test "$hardcode_minus_L" != no
; then
9923 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9925 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9931 if test "X$found_a" != "X"; then
9932 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9934 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9937 additional_includedir
=
9938 case "$found_dir" in
9940 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9941 additional_includedir
="$basedir/include"
9944 if test "X$additional_includedir" != "X"; then
9945 if test "X$additional_includedir" != "X/usr/include"; then
9947 if test "X$additional_includedir" = "X/usr/local/include"; then
9948 if test -n "$GCC"; then
9950 linux
*) haveit
=yes;;
9954 if test -z "$haveit"; then
9955 for x
in $CPPFLAGS $INCICONV; do
9957 acl_save_prefix
="$prefix"
9958 prefix
="$acl_final_prefix"
9959 acl_save_exec_prefix
="$exec_prefix"
9960 exec_prefix
="$acl_final_exec_prefix"
9962 exec_prefix
="$acl_save_exec_prefix"
9963 prefix
="$acl_save_prefix"
9965 if test "X$x" = "X-I$additional_includedir"; then
9970 if test -z "$haveit"; then
9971 if test -d "$additional_includedir"; then
9972 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9978 if test -n "$found_la"; then
9979 save_libdir
="$libdir"
9981 */* |
*\\*) .
"$found_la" ;;
9982 *) .
"./$found_la" ;;
9984 libdir
="$save_libdir"
9985 for dep
in $dependency_libs; do
9988 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9989 if test "X$additional_libdir" != "X/usr/lib"; then
9991 if test "X$additional_libdir" = "X/usr/local/lib"; then
9992 if test -n "$GCC"; then
9994 linux
*) haveit
=yes;;
9998 if test -z "$haveit"; then
10000 for x
in $LDFLAGS $LIBICONV; do
10002 acl_save_prefix
="$prefix"
10003 prefix
="$acl_final_prefix"
10004 acl_save_exec_prefix
="$exec_prefix"
10005 exec_prefix
="$acl_final_exec_prefix"
10007 exec_prefix
="$acl_save_exec_prefix"
10008 prefix
="$acl_save_prefix"
10010 if test "X$x" = "X-L$additional_libdir"; then
10015 if test -z "$haveit"; then
10016 if test -d "$additional_libdir"; then
10017 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10021 for x
in $LDFLAGS $LTLIBICONV; do
10023 acl_save_prefix
="$prefix"
10024 prefix
="$acl_final_prefix"
10025 acl_save_exec_prefix
="$exec_prefix"
10026 exec_prefix
="$acl_final_exec_prefix"
10028 exec_prefix
="$acl_save_exec_prefix"
10029 prefix
="$acl_save_prefix"
10031 if test "X$x" = "X-L$additional_libdir"; then
10036 if test -z "$haveit"; then
10037 if test -d "$additional_libdir"; then
10038 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10045 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10046 if test "$enable_rpath" != no
; then
10048 for x
in $rpathdirs; do
10049 if test "X$x" = "X$dir"; then
10054 if test -z "$haveit"; then
10055 rpathdirs
="$rpathdirs $dir"
10058 for x
in $ltrpathdirs; do
10059 if test "X$x" = "X$dir"; then
10064 if test -z "$haveit"; then
10065 ltrpathdirs
="$ltrpathdirs $dir"
10070 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10073 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10076 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10077 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10083 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10084 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10090 if test "X$rpathdirs" != "X"; then
10091 if test -n "$hardcode_libdir_separator"; then
10093 for found_dir
in $rpathdirs; do
10094 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10096 acl_save_libdir
="$libdir"
10098 eval flag
=\"$hardcode_libdir_flag_spec\"
10099 libdir
="$acl_save_libdir"
10100 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10102 for found_dir
in $rpathdirs; do
10103 acl_save_libdir
="$libdir"
10104 libdir
="$found_dir"
10105 eval flag
=\"$hardcode_libdir_flag_spec\"
10106 libdir
="$acl_save_libdir"
10107 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10111 if test "X$ltrpathdirs" != "X"; then
10112 for found_dir
in $ltrpathdirs; do
10113 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10123 am_save_CPPFLAGS
="$CPPFLAGS"
10125 for element
in $INCICONV; do
10127 for x
in $CPPFLAGS; do
10129 acl_save_prefix
="$prefix"
10130 prefix
="$acl_final_prefix"
10131 acl_save_exec_prefix
="$exec_prefix"
10132 exec_prefix
="$acl_final_exec_prefix"
10134 exec_prefix
="$acl_save_exec_prefix"
10135 prefix
="$acl_save_prefix"
10137 if test "X$x" = "X$element"; then
10142 if test -z "$haveit"; then
10143 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10149 $as_echo_n "checking for iconv... " >&6; }
10150 if test "${am_cv_func_iconv+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10154 am_cv_func_iconv
="no, consider installing GNU libiconv"
10156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <stdlib.h>
10163 iconv_t cd = iconv_open("","");
10164 iconv(cd,NULL,NULL,NULL,NULL);
10170 if ac_fn_cxx_try_link
"$LINENO"; then :
10171 am_cv_func_iconv
=yes
10173 rm -f core conftest.err conftest.
$ac_objext \
10174 conftest
$ac_exeext conftest.
$ac_ext
10175 if test "$am_cv_func_iconv" != yes; then
10176 am_save_LIBS
="$LIBS"
10177 LIBS
="$LIBS $LIBICONV"
10178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #include <stdlib.h>
10185 iconv_t cd = iconv_open("","");
10186 iconv(cd,NULL,NULL,NULL,NULL);
10192 if ac_fn_cxx_try_link
"$LINENO"; then :
10193 am_cv_lib_iconv
=yes
10194 am_cv_func_iconv
=yes
10196 rm -f core conftest.err conftest.
$ac_objext \
10197 conftest
$ac_exeext conftest.
$ac_ext
10198 LIBS
="$am_save_LIBS"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10203 $as_echo "$am_cv_func_iconv" >&6; }
10204 if test "$am_cv_func_iconv" = yes; then
10206 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10209 if test "$am_cv_lib_iconv" = yes; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10211 $as_echo_n "checking how to link with libiconv... " >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10213 $as_echo "$LIBICONV" >&6; }
10215 CPPFLAGS
="$am_save_CPPFLAGS"
10222 if test "$am_cv_func_iconv" = yes; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10224 $as_echo_n "checking for iconv declaration... " >&6; }
10225 if test "${am_cv_proto_iconv+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
10229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 #include <stdlib.h>
10238 #if defined(__STDC__) || defined(__cplusplus)
10239 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10252 if ac_fn_cxx_try_compile
"$LINENO"; then :
10253 am_cv_proto_iconv_arg1
=""
10255 am_cv_proto_iconv_arg1
="const"
10257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10258 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);"
10261 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10263 }$am_cv_proto_iconv" >&5
10265 }$am_cv_proto_iconv" >&6; }
10267 cat >>confdefs.h
<<_ACEOF
10268 #define ICONV_CONST $am_cv_proto_iconv_arg1
10274 ac_cpp
='$CPP $CPPFLAGS'
10275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10280 # Until we have in-tree GNU iconv:
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10286 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10287 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <locale.h>
10301 if ac_fn_c_try_link
"$LINENO"; then :
10302 am_cv_val_LC_MESSAGES
=yes
10304 am_cv_val_LC_MESSAGES
=no
10306 rm -f core conftest.err conftest.
$ac_objext \
10307 conftest
$ac_exeext conftest.
$ac_ext
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10310 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10311 if test $am_cv_val_LC_MESSAGES = yes; then
10313 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10320 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10321 if test "${am_cv_langinfo_codeset+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
10324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <langinfo.h>
10330 char* cs = nl_langinfo(CODESET);
10335 if ac_fn_c_try_link
"$LINENO"; then :
10336 am_cv_langinfo_codeset
=yes
10338 am_cv_langinfo_codeset
=no
10340 rm -f core conftest.err conftest.
$ac_objext \
10341 conftest
$ac_exeext conftest.
$ac_ext
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10345 $as_echo "$am_cv_langinfo_codeset" >&6; }
10346 if test $am_cv_langinfo_codeset = yes; then
10348 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10353 # We will need to find libiberty.h and ansidecl.h
10354 saved_CFLAGS
="$CFLAGS"
10355 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10356 saved_CXXFLAGS
="$CXXFLAGS"
10357 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10358 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10359 strsignal strstr stpcpy strverscmp \
10360 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10361 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
10363 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10365 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10366 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10367 $as_echo_n "(cached) " >&6
10369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10372 #define $ac_tr_decl 1
10374 #include "ansidecl.h"
10375 #include "system.h"
10381 char *(*pfn) = (char *(*)) $ac_func ;
10387 if ac_fn_c_try_compile
"$LINENO"; then :
10388 eval "gcc_cv_have_decl_$ac_func=yes"
10390 eval "gcc_cv_have_decl_$ac_func=no"
10392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10398 #define $ac_tr_decl 1
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10404 #define $ac_tr_decl 0
10412 for ac_func
in getrlimit setrlimit getrusage
10414 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10416 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10417 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10418 $as_echo_n "(cached) " >&6
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 #define $ac_tr_decl 1
10425 #include "ansidecl.h"
10426 #include "system.h"
10427 #ifdef HAVE_SYS_RESOURCE_H
10428 #include <sys/resource.h>
10436 char *(*pfn) = (char *(*)) $ac_func ;
10442 if ac_fn_c_try_compile
"$LINENO"; then :
10443 eval "gcc_cv_have_decl_$ac_func=yes"
10445 eval "gcc_cv_have_decl_$ac_func=no"
10447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10450 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10453 #define $ac_tr_decl 1
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10459 #define $ac_tr_decl 0
10467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10470 #include "ansidecl.h"
10471 #include "system.h"
10472 #ifdef HAVE_SYS_RESOURCE_H
10473 #include <sys/resource.h>
10484 if ac_fn_c_try_compile
"$LINENO"; then :
10488 $as_echo "#define rlim_t long" >>confdefs.h
10491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10493 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10494 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10495 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10496 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10497 for ac_func
in ldgetname
10499 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10501 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10502 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10503 $as_echo_n "(cached) " >&6
10505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 #define $ac_tr_decl 1
10510 #include "ansidecl.h"
10511 #include "system.h"
10512 #ifdef HAVE_LDFCN_H
10523 char *(*pfn) = (char *(*)) $ac_func ;
10529 if ac_fn_c_try_compile
"$LINENO"; then :
10530 eval "gcc_cv_have_decl_$ac_func=yes"
10532 eval "gcc_cv_have_decl_$ac_func=no"
10534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10540 #define $ac_tr_decl 1
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10546 #define $ac_tr_decl 0
10554 for ac_func
in times
10556 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10558 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10559 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10560 $as_echo_n "(cached) " >&6
10562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10565 #define $ac_tr_decl 1
10567 #include "ansidecl.h"
10568 #include "system.h"
10569 #ifdef HAVE_SYS_TIMES_H
10570 #include <sys/times.h>
10578 char *(*pfn) = (char *(*)) $ac_func ;
10584 if ac_fn_c_try_compile
"$LINENO"; then :
10585 eval "gcc_cv_have_decl_$ac_func=yes"
10587 eval "gcc_cv_have_decl_$ac_func=no"
10589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10592 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10595 #define $ac_tr_decl 1
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10601 #define $ac_tr_decl 0
10609 for ac_func
in sigaltstack
10611 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10613 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10614 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10615 $as_echo_n "(cached) " >&6
10617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10620 #define $ac_tr_decl 1
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #include <signal.h>
10631 char *(*pfn) = (char *(*)) $ac_func ;
10637 if ac_fn_c_try_compile
"$LINENO"; then :
10638 eval "gcc_cv_have_decl_$ac_func=yes"
10640 eval "gcc_cv_have_decl_$ac_func=no"
10642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10645 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10648 #define $ac_tr_decl 1
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10654 #define $ac_tr_decl 0
10662 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10665 ac_cpp
='$CXXCPP $CPPFLAGS'
10666 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10670 for ac_func
in madvise
10672 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10674 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10675 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10676 $as_echo_n "(cached) " >&6
10678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10681 #define $ac_tr_decl 1
10683 #include "ansidecl.h"
10684 #include "system.h"
10691 char *(*pfn) = (char *(*)) $ac_func ;
10697 if ac_fn_cxx_try_compile
"$LINENO"; then :
10698 eval "gcc_cv_have_decl_$ac_func=yes"
10700 eval "gcc_cv_have_decl_$ac_func=no"
10702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10705 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10708 #define $ac_tr_decl 1
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10714 #define $ac_tr_decl 0
10722 ac_cpp
='$CPP $CPPFLAGS'
10723 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10728 # More time-related stuff.
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10730 $as_echo_n "checking for struct tms... " >&6; }
10731 if test "${ac_cv_struct_tms+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #include "ansidecl.h"
10739 #include "system.h"
10740 #ifdef HAVE_SYS_TIMES_H
10741 #include <sys/times.h>
10752 if ac_fn_c_try_compile
"$LINENO"; then :
10753 ac_cv_struct_tms
=yes
10755 ac_cv_struct_tms
=no
10757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10760 $as_echo "$ac_cv_struct_tms" >&6; }
10761 if test $ac_cv_struct_tms = yes; then
10763 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10767 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10768 # revisit after autoconf 2.50.
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10770 $as_echo_n "checking for clock_t... " >&6; }
10771 if test "${gcc_cv_type_clock_t+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 #include "ansidecl.h"
10779 #include "system.h"
10789 if ac_fn_c_try_compile
"$LINENO"; then :
10790 gcc_cv_type_clock_t
=yes
10792 gcc_cv_type_clock_t
=no
10794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10797 $as_echo "$gcc_cv_type_clock_t" >&6; }
10798 if test $gcc_cv_type_clock_t = yes; then
10800 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10804 # Check if F_SETLKW is supported by fcntl.
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10806 $as_echo_n "checking for F_SETLKW... " >&6; }
10807 if test "${ac_cv_f_setlkw+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10824 return fcntl (1, F_SETLKW, &fl);
10829 if ac_fn_c_try_compile
"$LINENO"; then :
10834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10837 $as_echo "$ac_cv_f_setlkw" >&6; }
10838 if test $ac_cv_f_setlkw = yes; then
10840 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10844 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10845 CFLAGS
="$saved_CFLAGS"
10846 CXXFLAGS
="$saved_CXXFLAGS"
10848 # mkdir takes a single argument on some systems.
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10850 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10851 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 #include <sys/types.h>
10858 #ifdef HAVE_SYS_STAT_H
10859 # include <sys/stat.h>
10861 #ifdef HAVE_UNISTD_H
10862 # include <unistd.h>
10864 #ifdef HAVE_DIRECT_H
10865 # include <direct.h>
10875 if ac_fn_c_try_compile
"$LINENO"; then :
10876 gcc_cv_mkdir_takes_one_arg
=no
10878 gcc_cv_mkdir_takes_one_arg
=yes
10880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10883 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10884 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10886 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10897 # With Setjmp/Longjmp based exception handling.
10898 # Check whether --enable-sjlj-exceptions was given.
10899 if test "${enable_sjlj_exceptions+set}" = set; then :
10900 enableval
=$enable_sjlj_exceptions; case $target in
10902 if test $enableval != yes; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10904 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10909 force_sjlj_exceptions
=yes
10913 force_sjlj_exceptions
=yes
10917 force_sjlj_exceptions
=no
10922 if test $force_sjlj_exceptions = yes; then
10923 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10925 cat >>confdefs.h
<<_ACEOF
10926 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10931 # --------------------------------------------------------
10932 # Build, host, and target specific configuration fragments
10933 # --------------------------------------------------------
10935 # Collect build-machine-specific information.
10936 .
${srcdir}/config.build
10938 # Collect host-machine-specific information.
10939 .
${srcdir}/config.
host
10943 # Collect target-machine-specific information.
10944 .
${srcdir}/config.gcc
10946 extra_objs
="${host_extra_objs} ${extra_objs}"
10947 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10949 # Default the target-machine variables that were not explicitly set.
10950 if test x
"$tm_file" = x
10951 then tm_file
=$cpu_type/$cpu_type.h
; fi
10953 if test x
"$extra_headers" = x
10954 then extra_headers
=; fi
10956 if test x
$md_file = x
10957 then md_file
=$cpu_type/$cpu_type.md
; fi
10959 if test x
$out_file = x
10960 then out_file
=$cpu_type/$cpu_type.c
; fi
10962 if test x
"$tmake_file" = x
10963 then tmake_file
=$cpu_type/t-
$cpu_type
10966 # Support --enable-initfini-array.
10967 if test x
$enable_initfini_array != xno
; then
10968 tm_file
="${tm_file} initfini-array.h"
10971 if test x
"$dwarf2" = xyes
10972 then tm_file
="$tm_file tm-dwarf2.h"
10975 # Say what files are being used for the output code and MD file.
10976 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10977 echo "Using \`$srcdir/config/$md_file' as machine description file."
10979 # If any of the xm_file variables contain nonexistent files, warn
10980 # about them and drop them.
10983 for x
in $build_xm_file; do
10984 if test -f $srcdir/config
/$x
10986 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10987 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10990 build_xm_file
="$bx"
10993 for x
in $host_xm_file; do
10994 if test -f $srcdir/config
/$x
10996 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10997 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11003 for x
in $xm_file; do
11004 if test -f $srcdir/config
/$x
11006 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11007 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11013 for f
in $tm_file; do
11016 if test $count = ax
; then
11017 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11019 echo "Using the following target machine macro files:"
11020 for f
in $tm_file; do
11021 echo " $srcdir/config/$f"
11025 if test x
$need_64bit_hwint = xyes
; then
11027 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11031 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11033 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11037 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11039 cat >>confdefs.h
<<_ACEOF
11040 #define HAVE_GNU_LD $gnu_ld_bool
11044 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11046 cat >>confdefs.h
<<_ACEOF
11047 #define HAVE_GNU_AS $gnu_as_bool
11052 for f
in $host_xm_file; do
11055 if test $count = a
; then
11057 elif test $count = ax
; then
11058 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11060 echo "Using the following host machine macro files:"
11061 for f
in $host_xm_file; do
11062 echo " $srcdir/config/$f"
11065 echo "Using ${out_host_hook_obj} for host machine hooks."
11067 if test "$host_xm_file" != "$build_xm_file"; then
11069 for f
in $build_xm_file; do
11072 if test $count = a
; then
11074 elif test $count = ax
; then
11075 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11077 echo "Using the following build machine macro files:"
11078 for f
in $build_xm_file; do
11079 echo " $srcdir/config/$f"
11084 if test -n "$configured_native_system_header_dir"; then
11085 native_system_header_dir
=$configured_native_system_header_dir
11087 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11091 powerpc
*-*-darwin*)
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11093 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11094 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11100 #include <sys/cdefs.h>
11101 #include <sys/signal.h>
11102 #include <ucontext.h>
11103 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11106 if ac_fn_c_try_compile
"$LINENO"; then :
11107 gcc_cv_mcontext_underscores
=no
11109 gcc_cv_mcontext_underscores
=yes
11111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11114 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11115 if test $gcc_cv_mcontext_underscores = yes; then
11117 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11127 # Check if a valid thread package
11128 case ${enable_threads} in
11131 target_thread_file
='single'
11135 target_thread_file
='single'
11137 aix | dce | lynx | mipssde | posix | rtems | \
11138 single | tpf | vxworks | win32
)
11139 target_thread_file
=${enable_threads}
11142 echo "${enable_threads} is an unknown thread package" 1>&2
11147 if test x
${thread_file} = x
; then
11148 # No thread file set by target-specific clauses in config.gcc,
11149 # so use file chosen by default logic above
11150 thread_file
=${target_thread_file}
11158 if test x
$enable___cxa_atexit = xyes || \
11159 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11160 if test x
$host = x
$target; then
11162 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11163 # keyed to flag_use_cxa_atexit
11171 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11172 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11175 echo "__cxa_atexit can't be enabled on this target"
11181 # We can't check for __cxa_atexit when building a cross, so assume
11185 if test x
$use_cxa_atexit = xyes
; then
11187 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11192 # Look for a file containing extra machine modes.
11193 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11194 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11197 cat >>confdefs.h
<<_ACEOF
11198 #define EXTRA_MODES_FILE "config/$extra_modes"
11203 # Convert extra_options into a form suitable for Makefile use.
11206 for f
in $extra_options; do
11207 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11208 all_opt_files
="$all_opt_files $srcdir/config/$f"
11212 # auto-host.h is the file containing items generated by autoconf and is
11213 # the first file included by config.h.
11214 # If host=build, it is correct to have bconfig include auto-host.h
11215 # as well. If host!=build, we are in error and need to do more
11216 # work to find out the build config parameters.
11217 if test x
$host = x
$build
11219 build_auto
=auto-host.h
11221 # We create a subdir, then run autoconf in the subdir.
11222 # To prevent recursion we set host and build for the new
11223 # invocation of configure to the build for this invocation
11230 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11231 *) realsrcdir
=..
/${srcdir};;
11233 saved_CFLAGS
="${CFLAGS}"
11234 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11235 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11236 ${realsrcdir}/configure \
11237 --enable-languages=${enable_languages-all} \
11238 --target=$target_alias --host=$build_alias --build=$build_alias
11239 CFLAGS
="${saved_CFLAGS}"
11241 # We just finished tests for the build machine, so rename
11242 # the file auto-build.h in the gcc directory.
11243 mv auto-host.h ..
/auto-build.h
11246 build_auto
=auto-build.h
11250 tm_file
="${tm_file} defaults.h"
11251 tm_p_file
="${tm_p_file} tm-preds.h"
11252 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11253 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11254 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11255 # put this back in temporarily.
11256 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11262 # Compile in configure arguments.
11263 if test -f configargs.h
; then
11264 # Being re-configured.
11265 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11266 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11268 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11271 # Double all backslashes and backslash all quotes to turn
11272 # gcc_config_arguments into a C string.
11273 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11274 $gcc_config_arguments
11276 gcc_config_arguments_str
=`cat conftest.out`
11279 cat > configargs.h
<<EOF
11280 /* Generated automatically. */
11281 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11282 static const char thread_model[] = "$thread_file";
11284 static const struct {
11285 const char *name, *value;
11286 } configure_default_options[] = $configure_default_options;
11289 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11290 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11291 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11292 if test -f $srcdir/REVISION
; then
11293 gcc_REVISION
=`cat $srcdir/REVISION`
11297 cat > plugin-version.h
<<EOF
11298 #include "configargs.h"
11300 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11301 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11302 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11303 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11305 static char basever[] = "$gcc_BASEVER";
11306 static char datestamp[] = "$gcc_DATESTAMP";
11307 static char devphase[] = "$gcc_DEVPHASE";
11308 static char revision[] = "$gcc_REVISION";
11310 /* FIXME plugins: We should make the version information more precise.
11311 One way to do is to add a checksum. */
11313 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11314 devphase, revision,
11315 configuration_arguments};
11318 # Internationalization
11319 # If we haven't got the data from the intl directory,
11320 # assume NLS is disabled.
11329 if test -f ..
/intl
/config.intl
; then
11330 . ..
/intl
/config.intl
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11333 $as_echo_n "checking whether NLS is requested... " >&6; }
11334 if test x
"$USE_NLS" != xyes
; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339 $as_echo "yes" >&6; }
11341 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11345 $as_echo_n "checking for catalogs to be installed... " >&6; }
11346 # Look for .po and .gmo files in the source directory.
11349 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11350 # If there aren't any .gmo files the shell will give us the
11351 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11353 case "$cat" in *\
**)
11356 # The quadruple backslash is collapsed to a double backslash
11357 # by the backticks, then collapsed again by the double quotes,
11358 # leaving us with one backslash in the sed expression (right
11359 # before the dot that mustn't act as a wildcard).
11360 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11361 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11362 # The user is allowed to set LINGUAS to a list of languages to
11363 # install catalogs for. If it's empty that means "all of them."
11364 if test "x$LINGUAS" = x
; then
11365 CATALOGS
="$CATALOGS $cat"
11366 XLINGUAS
="$XLINGUAS $lang"
11368 case "$LINGUAS" in *$lang*)
11369 CATALOGS
="$CATALOGS $cat"
11370 XLINGUAS
="$XLINGUAS $lang"
11375 LINGUAS
="$XLINGUAS"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11377 $as_echo "$LINGUAS" >&6; }
11390 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11391 # -liconv on the link line twice.
11392 case "$LIBINTL" in *$LIBICONV*)
11396 # Check whether --enable-secureplt was given.
11397 if test "${enable_secureplt+set}" = set; then :
11398 enableval
=$enable_secureplt;
11402 # Check whether --enable-leading-mingw64-underscores was given.
11403 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11404 enableval
=$enable_leading_mingw64_underscores;
11407 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11409 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11413 # Check whether --enable-cld was given.
11414 if test "${enable_cld+set}" = set; then :
11415 enableval
=$enable_cld;
11421 # Check whether --enable-frame-pointer was given.
11422 if test "${enable_frame_pointer+set}" = set; then :
11423 enableval
=$enable_frame_pointer;
11427 linux
* | darwin
[8912]*)
11428 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11430 enable_frame_pointer
=no
11433 enable_frame_pointer
=yes
11440 # Windows32 Registry support for specifying GCC installation paths.
11441 # Check whether --enable-win32-registry was given.
11442 if test "${enable_win32_registry+set}" = set; then :
11443 enableval
=$enable_win32_registry;
11448 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11449 if test "x$enable_win32_registry" != xno
; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11451 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11452 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11455 ac_func_search_save_LIBS
=$LIBS
11456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11465 char RegOpenKeyExA ();
11469 return RegOpenKeyExA ();
11474 for ac_lib
in '' advapi32
; do
11475 if test -z "$ac_lib"; then
11476 ac_res
="none required"
11479 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11481 if ac_fn_c_try_link
"$LINENO"; then :
11482 ac_cv_search_RegOpenKeyExA
=$ac_res
11484 rm -f core conftest.err conftest.
$ac_objext \
11486 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11490 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11493 ac_cv_search_RegOpenKeyExA
=no
11495 rm conftest.
$ac_ext
11496 LIBS
=$ac_func_search_save_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11499 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11500 ac_res
=$ac_cv_search_RegOpenKeyExA
11501 if test "$ac_res" != no
; then :
11502 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11505 enable_win32_registry
=no
11510 if test "x$enable_win32_registry" != xno
; then
11512 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11515 if test "x$enable_win32_registry" != xyes \
11516 && test "x$enable_win32_registry" != x
; then
11518 cat >>confdefs.h
<<_ACEOF
11519 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11527 # Get an absolute path to the GCC top-level source directory
11528 holddir
=`${PWDCMD-pwd}`
11530 topdir
=`${PWDCMD-pwd}`
11533 # Conditionalize the makefile for this host machine.
11535 for f
in ${host_xmake_file}
11537 if test -f ${srcdir}/config
/$f
11539 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11543 # Conditionalize the makefile for this target machine.
11545 for f
in ${tmake_file}
11547 if test -f ${srcdir}/config
/$f
11549 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11552 tmake_file
="${tmake_file_}"
11554 out_object_file
=`basename $out_file .c`.o
11555 common_out_object_file
=`basename $common_out_file .c`.o
11557 tm_file_list
="options.h"
11558 tm_include_list
="options.h insn-constants.h"
11559 for f
in $tm_file; do
11562 f
=`echo $f | sed 's/^..//'`
11563 tm_file_list
="${tm_file_list} $f"
11564 tm_include_list
="${tm_include_list} $f"
11567 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11568 tm_include_list
="${tm_include_list} $f"
11571 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11572 tm_include_list
="${tm_include_list} config/$f"
11579 for f
in $tm_p_file; do
11582 tm_p_file_list
="${tm_p_file_list} $f"
11583 tm_p_include_list
="${tm_p_include_list} $f"
11586 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11587 tm_p_include_list
="${tm_p_include_list} config/$f"
11593 for f
in $xm_file; do
11596 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11597 xm_include_list
="${xm_include_list} $f"
11600 xm_file_list
="${xm_file_list} $f"
11601 xm_include_list
="${xm_include_list} $f"
11604 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11605 xm_include_list
="${xm_include_list} config/$f"
11611 host_xm_include_list
=
11612 for f
in $host_xm_file; do
11615 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11616 host_xm_include_list
="${host_xm_include_list} $f"
11619 host_xm_file_list
="${host_xm_file_list} $f"
11620 host_xm_include_list
="${host_xm_include_list} $f"
11623 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11624 host_xm_include_list
="${host_xm_include_list} config/$f"
11629 build_xm_file_list
=
11630 for f
in $build_xm_file; do
11633 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11634 build_xm_include_list
="${build_xm_include_list} $f"
11636 auto-build.h | auto-host.h
)
11637 build_xm_file_list
="${build_xm_file_list} $f"
11638 build_xm_include_list
="${build_xm_include_list} $f"
11641 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11642 build_xm_include_list
="${build_xm_include_list} config/$f"
11647 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11648 # cross-compiler which does not use the native headers and libraries.
11649 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11652 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11654 if test "x$with_build_sysroot" != x
; then
11655 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11657 # This value is used, even on a native system, because
11658 # CROSS_SYSTEM_HEADER_DIR is just
11659 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11660 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11663 if test x
$host != x
$target
11665 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11667 SYSTEM_HEADER_DIR
=$build_system_header_dir
11668 case "$host","$target" in
11669 # Darwin crosses can use the host system's libraries and headers,
11670 # because of the fat library support. Of course, it must be the
11671 # same version of Darwin on both sides. Allow the user to
11672 # just say --target=foo-darwin without a version number to mean
11673 # "the version on this system".
11674 *-*-darwin*,*-*-darwin*)
11675 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11676 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11677 if test $hostos = $targetos -o $targetos = darwin
; then
11679 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11684 i?
86-*-*,x86_64-
*-* \
11685 | powerpc
*-*-*,powerpc64
*-*-*)
11686 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11691 if test "x$with_headers" = x
; then
11698 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11699 SYSTEM_HEADER_DIR
=$build_system_header_dir
11702 # If this is a cross-compiler that does not
11703 # have its own set of headers then define
11706 # If this is using newlib, without having the headers available now,
11707 # then define inhibit_libc in LIBGCC2_CFLAGS.
11708 # This prevents libgcc2 from containing any code which requires libc
11710 : ${inhibit_libc=false}
11711 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11712 test x
$with_newlib = xyes
; } &&
11713 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11718 # When building gcc with a cross-compiler, we need to adjust things so
11719 # that the generator programs are still built with the native compiler.
11720 # Also, we cannot run fixincludes.
11722 # These are the normal (build=host) settings:
11723 CC_FOR_BUILD
='$(CC)'
11724 CXX_FOR_BUILD
='$(CXX)'
11725 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11726 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11727 BUILD_LDFLAGS
='$(LDFLAGS)'
11728 STMP_FIXINC
=stmp-fixinc
11730 # And these apply if build != host, or we are generating coverage data
11731 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11733 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11734 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11737 # Expand extra_headers to include complete path.
11738 # This substitutes for lots of t-* files.
11739 extra_headers_list
=
11740 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11741 for file in ${extra_headers} ; do
11742 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11745 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11746 if test x
"$use_gcc_tgmath" = xyes
11747 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11750 # Define collect2 in Makefile.
11751 case $host_can_use_collect2 in
11753 *) collect2
='collect2$(exeext)' ;;
11757 # Add a definition of USE_COLLECT2 if system wants one.
11758 case $use_collect2 in
11759 no
) use_collect2
= ;;
11762 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11763 xm_defines
="${xm_defines} USE_COLLECT2"
11764 case $host_can_use_collect2 in
11766 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11773 cat >>confdefs.h
<<_ACEOF
11774 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11778 # ---------------------------
11779 # Assembler & linker features
11780 # ---------------------------
11782 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11783 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11784 # However when ld-new is first executed from the build tree, libtool will
11785 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11786 # to the build tree. While doing this we need to use the previous-stage
11787 # linker, or we have an infinite loop. The presence of a shell script as
11788 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11789 # the gcc/collect-ld script. So we need to know how libtool works, or
11790 # exec-tool will fail.
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11796 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11801 macro_version
='2.2.7a'
11802 macro_revision
='1.3134'
11816 ltmain
="$ac_aux_dir/ltmain.sh"
11818 # Backslashify metacharacters that are still active within
11819 # double-quoted strings.
11820 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11822 # Same as above, but do not quote variable references.
11823 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11825 # Sed substitution to delay expansion of an escaped shell variable in a
11826 # double_quote_subst'ed string.
11827 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11829 # Sed substitution to delay expansion of an escaped single quote.
11830 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11832 # Sed substitution to avoid accidental globbing in evaled expressions
11833 no_glob_subst
='s/\*/\\\*/g'
11835 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11840 $as_echo_n "checking how to print strings... " >&6; }
11841 # Test print first, because it will be a builtin if present.
11842 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11843 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11845 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11848 # Use this function as a fallback that always works.
11849 func_fallback_echo ()
11851 eval 'cat <<_LTECHO_EOF
11855 ECHO='func_fallback_echo
'
11858 # func_echo_all arg...
11859 # Invoke $ECHO with all args, space-separated.
11866 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11867 $as_echo "printf" >&6; } ;;
11868 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11869 $as_echo "print -r" >&6; } ;;
11870 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11871 $as_echo "cat" >&6; } ;;
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11889 if test "${ac_cv_path_SED+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11893 for ac_i in 1 2 3 4 5 6 7; do
11894 ac_script="$ac_script$as_nl$ac_script"
11896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11897 { ac_script=; unset ac_script;}
11898 if test -z "$SED"; then
11899 ac_path_SED_found=false
11900 # Loop through the user's path and
test for each of PROGNAME-LIST
11901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11902 for as_dir
in $PATH
11905 test -z "$as_dir" && as_dir
=.
11906 for ac_prog
in sed gsed
; do
11907 for ac_exec_ext
in '' $ac_executable_extensions; do
11908 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11909 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11910 # Check for GNU ac_path_SED and select it if it is found.
11911 # Check for GNU $ac_path_SED
11912 case `"$ac_path_SED" --version 2>&1` in
11914 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11917 $as_echo_n 0123456789 >"conftest.in"
11920 cat "conftest.in" "conftest.in" >"conftest.tmp"
11921 mv "conftest.tmp" "conftest.in"
11922 cp "conftest.in" "conftest.nl"
11923 $as_echo '' >> "conftest.nl"
11924 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11925 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11926 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11927 if test $ac_count -gt ${ac_path_SED_max-0}; then
11928 # Best one so far, save it but keep looking for a better one
11929 ac_cv_path_SED
="$ac_path_SED"
11930 ac_path_SED_max
=$ac_count
11932 # 10*(2^10) chars as input seems more than enough
11933 test $ac_count -gt 10 && break
11935 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11938 $ac_path_SED_found && break 3
11943 if test -z "$ac_cv_path_SED"; then
11944 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11947 ac_cv_path_SED
=$SED
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11952 $as_echo "$ac_cv_path_SED" >&6; }
11953 SED
="$ac_cv_path_SED"
11956 test -z "$SED" && SED
=sed
11957 Xsed
="$SED -e 1s/^X//"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11970 $as_echo_n "checking for fgrep... " >&6; }
11971 if test "${ac_cv_path_FGREP+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11974 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11975 then ac_cv_path_FGREP
="$GREP -F"
11977 if test -z "$FGREP"; then
11978 ac_path_FGREP_found
=false
11979 # Loop through the user's path and test for each of PROGNAME-LIST
11980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11981 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11984 test -z "$as_dir" && as_dir
=.
11985 for ac_prog
in fgrep
; do
11986 for ac_exec_ext
in '' $ac_executable_extensions; do
11987 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11988 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11989 # Check for GNU ac_path_FGREP and select it if it is found.
11990 # Check for GNU $ac_path_FGREP
11991 case `"$ac_path_FGREP" --version 2>&1` in
11993 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11996 $as_echo_n 0123456789 >"conftest.in"
11999 cat "conftest.in" "conftest.in" >"conftest.tmp"
12000 mv "conftest.tmp" "conftest.in"
12001 cp "conftest.in" "conftest.nl"
12002 $as_echo 'FGREP' >> "conftest.nl"
12003 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12004 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12005 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12006 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12007 # Best one so far, save it but keep looking for a better one
12008 ac_cv_path_FGREP
="$ac_path_FGREP"
12009 ac_path_FGREP_max
=$ac_count
12011 # 10*(2^10) chars as input seems more than enough
12012 test $ac_count -gt 10 && break
12014 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12017 $ac_path_FGREP_found && break 3
12022 if test -z "$ac_cv_path_FGREP"; then
12023 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12026 ac_cv_path_FGREP
=$FGREP
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12032 $as_echo "$ac_cv_path_FGREP" >&6; }
12033 FGREP
="$ac_cv_path_FGREP"
12036 test -z "$GREP" && GREP
=grep
12056 # Check whether --with-gnu-ld was given.
12057 if test "${with_gnu_ld+set}" = set; then :
12058 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12064 if test "$GCC" = yes; then
12065 # Check if gcc -print-prog-name=ld gives a path.
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12067 $as_echo_n "checking for ld used by $CC... " >&6; }
12070 # gcc leaves a trailing carriage return which upsets mingw
12071 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12073 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12076 # Accept absolute paths.
12078 re_direlt
='/[^/][^/]*/\.\./'
12079 # Canonicalize the pathname of ld
12080 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12081 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12082 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12084 test -z "$LD" && LD
="$ac_prog"
12087 # If it fails, then pretend we aren't using GCC.
12091 # If it is relative, then search for the first ld in PATH.
12092 with_gnu_ld
=unknown
12095 elif test "$with_gnu_ld" = yes; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12097 $as_echo_n "checking for GNU ld... " >&6; }
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12100 $as_echo_n "checking for non-GNU ld... " >&6; }
12102 if test "${lt_cv_path_LD+set}" = set; then :
12103 $as_echo_n "(cached) " >&6
12105 if test -z "$LD"; then
12106 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12107 for ac_dir
in $PATH; do
12109 test -z "$ac_dir" && ac_dir
=.
12110 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12111 lt_cv_path_LD
="$ac_dir/$ac_prog"
12112 # Check to see if the program is GNU ld. I'd rather use --version,
12113 # but apparently some variants of GNU ld only accept -v.
12114 # Break only if it was the GNU/non-GNU ld that we prefer.
12115 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12116 *GNU
* |
*'with BFD'*)
12117 test "$with_gnu_ld" != no
&& break
12120 test "$with_gnu_ld" != yes && break
12127 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12131 LD
="$lt_cv_path_LD"
12132 if test -n "$LD"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12134 $as_echo "$LD" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12139 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12141 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12142 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12145 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12146 case `$LD -v 2>&1 </dev/null` in
12147 *GNU
* |
*'with BFD'*)
12148 lt_cv_prog_gnu_ld
=yes
12151 lt_cv_prog_gnu_ld
=no
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12156 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12157 with_gnu_ld
=$lt_cv_prog_gnu_ld
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12168 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12169 if test "${lt_cv_path_NM+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12172 if test -n "$NM"; then
12173 # Let the user override the test.
12174 lt_cv_path_NM
="$NM"
12176 lt_nm_to_check
="${ac_tool_prefix}nm"
12177 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12178 lt_nm_to_check
="$lt_nm_to_check nm"
12180 for lt_tmp_nm
in $lt_nm_to_check; do
12181 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12182 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12184 test -z "$ac_dir" && ac_dir
=.
12185 tmp_nm
="$ac_dir/$lt_tmp_nm"
12186 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12187 # Check to see if the nm accepts a BSD-compat flag.
12188 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12189 # nm: unknown option "B" ignored
12190 # Tru64's nm complains that /dev/null is an invalid object file
12191 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12192 */dev
/null
* |
*'Invalid file or object type'*)
12193 lt_cv_path_NM
="$tmp_nm -B"
12197 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12199 lt_cv_path_NM
="$tmp_nm -p"
12203 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12204 continue # so that we can try to find one that supports BSD flags
12213 : ${lt_cv_path_NM=no}
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12217 $as_echo "$lt_cv_path_NM" >&6; }
12218 if test "$lt_cv_path_NM" != "no"; then
12219 NM
="$lt_cv_path_NM"
12221 # Didn't find any BSD compatible name lister, look for dumpbin.
12222 if test -n "$DUMPBIN"; then :
12223 # Let the user override the test.
12225 if test -n "$ac_tool_prefix"; then
12226 for ac_prog
in dumpbin
"link -dump"
12228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12229 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12235 if test -n "$DUMPBIN"; then
12236 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12239 for as_dir
in $PATH
12242 test -z "$as_dir" && as_dir
=.
12243 for ac_exec_ext
in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 DUMPBIN
=$ac_cv_prog_DUMPBIN
12256 if test -n "$DUMPBIN"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12258 $as_echo "$DUMPBIN" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12265 test -n "$DUMPBIN" && break
12268 if test -z "$DUMPBIN"; then
12269 ac_ct_DUMPBIN
=$DUMPBIN
12270 for ac_prog
in dumpbin
"link -dump"
12272 # Extract the first word of "$ac_prog", so it can be a program name with args.
12273 set dummy
$ac_prog; ac_word
=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12279 if test -n "$ac_ct_DUMPBIN"; then
12280 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12283 for as_dir
in $PATH
12286 test -z "$as_dir" && as_dir
=.
12287 for ac_exec_ext
in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12300 if test -n "$ac_ct_DUMPBIN"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12302 $as_echo "$ac_ct_DUMPBIN" >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12309 test -n "$ac_ct_DUMPBIN" && break
12312 if test "x$ac_ct_DUMPBIN" = x
; then
12315 case $cross_compiling:$ac_tool_warned in
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12319 ac_tool_warned
=yes ;;
12321 DUMPBIN
=$ac_ct_DUMPBIN
12325 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12327 DUMPBIN
="$DUMPBIN -symbols"
12335 if test "$DUMPBIN" != ":"; then
12339 test -z "$NM" && NM
=nm
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12347 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12348 if test "${lt_cv_nm_interface+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12351 lt_cv_nm_interface
="BSD nm"
12352 echo "int some_variable = 0;" > conftest.
$ac_ext
12353 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12354 (eval "$ac_compile" 2>conftest.err
)
12355 cat conftest.err
>&5
12356 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12357 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12358 cat conftest.err
>&5
12359 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12360 cat conftest.out
>&5
12361 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12362 lt_cv_nm_interface
="MS dumpbin"
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12367 $as_echo "$lt_cv_nm_interface" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12370 $as_echo_n "checking whether ln -s works... " >&6; }
12372 if test "$LN_S" = "ln -s"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374 $as_echo "yes" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12377 $as_echo "no, using $LN_S" >&6; }
12380 # find the maximum length of command line arguments
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12382 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12391 # On DJGPP, this test can blow up pretty badly due to problems in libc
12392 # (any single argument exceeding 2000 bytes causes a buffer overrun
12393 # during glob expansion). Even if it were fixed, the result of this
12394 # check would be larger than it should be.
12395 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12399 # Under GNU Hurd, this test is not required because there is
12400 # no limit to the length of command line arguments.
12401 # Libtool will interpret -1 as no limit whatsoever
12402 lt_cv_sys_max_cmd_len
=-1;
12405 cygwin
* | mingw
* | cegcc
*)
12406 # On Win9x/ME, this test blows up -- it succeeds, but takes
12407 # about 5 minutes as the teststring grows exponentially.
12408 # Worse, since 9x/ME are not pre-emptively multitasking,
12409 # you end up with a "frozen" computer, even though with patience
12410 # the test eventually succeeds (with a max line length of 256k).
12411 # Instead, let's just punt: use the minimum linelength reported by
12412 # all of the supported platforms: 8192 (on NT/2K/XP).
12413 lt_cv_sys_max_cmd_len
=8192;
12417 # On MiNT this can take a long time and run out of memory.
12418 lt_cv_sys_max_cmd_len
=8192;
12422 # On AmigaOS with pdksh, this test takes hours, literally.
12423 # So we just punt and use a minimum line length of 8192.
12424 lt_cv_sys_max_cmd_len
=8192;
12427 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12428 # This has been around since 386BSD, at least. Likely further.
12429 if test -x /sbin
/sysctl
; then
12430 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12431 elif test -x /usr
/sbin
/sysctl
; then
12432 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12434 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12436 # And add a safety zone
12437 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12438 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12442 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12443 lt_cv_sys_max_cmd_len
=196608
12447 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12448 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12449 # nice to cause kernel panics so lets avoid the loop below.
12450 # First set a reasonable default.
12451 lt_cv_sys_max_cmd_len
=16384
12453 if test -x /sbin
/sysconfig
; then
12454 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12455 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12460 lt_cv_sys_max_cmd_len
=102400
12462 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12463 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12464 if test -n "$kargmax"; then
12465 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12467 lt_cv_sys_max_cmd_len
=32768
12471 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12472 if test -n "$lt_cv_sys_max_cmd_len"; then
12473 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12474 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12476 # Make teststring a little bigger before we do anything with it.
12477 # a 1K string should be a reasonable start.
12478 for i
in 1 2 3 4 5 6 7 8 ; do
12479 teststring
=$teststring$teststring
12481 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12482 # If test is not a shell built-in, we'll probably end up computing a
12483 # maximum length that is only half of the actual maximum length, but
12485 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12486 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12487 test $i != 17 # 1/2 MB should be enough
12490 teststring
=$teststring$teststring
12492 # Only check the string length outside the loop.
12493 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12495 # Add a significant safety factor because C++ compilers can tack on
12496 # massive amounts of additional arguments before passing them to the
12497 # linker. It appears as though 1/2 is a usable value.
12498 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12505 if test -n $lt_cv_sys_max_cmd_len ; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12507 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12510 $as_echo "none" >&6; }
12512 max_cmd_len
=$lt_cv_sys_max_cmd_len
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12524 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12525 # Try some XSI features
12527 ( _lt_dummy
="a/b/c"
12528 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12530 && eval 'test $(( 1 + 1 )) -eq 2 \
12531 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12534 $as_echo "$xsi_shell" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12538 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12540 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12542 && lt_shell_append=yes
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12544 $as_echo "$lt_shell_append" >&6; }
12547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12557 # test EBCDIC or ASCII
12558 case `echo X|tr X '\101'` in
12559 A) # ASCII based system
12560 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12561 lt_SP2NL='tr \040 \012'
12562 lt_NL2SP='tr \015\012 \040\040'
12564 *) # EBCDIC based system
12565 lt_SP2NL='tr \100 \n'
12566 lt_NL2SP='tr \r\n \100\100'
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12579 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12580 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12581 $as_echo_n "(cached
) " >&6
12583 lt_cv_ld_reload_flag='-r'
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12586 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12587 reload_flag=$lt_cv_ld_reload_flag
12588 case $reload_flag in
12590 *) reload_flag=" $reload_flag" ;;
12592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12595 if test "$GCC" = yes; then
12596 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12611 if test -n "$ac_tool_prefix"; then
12612 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12613 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12615 $as_echo_n "checking
for $ac_word...
" >&6; }
12616 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12617 $as_echo_n "(cached
) " >&6
12619 if test -n "$OBJDUMP"; then
12620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12639 OBJDUMP=$ac_cv_prog_OBJDUMP
12640 if test -n "$OBJDUMP"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12642 $as_echo "$OBJDUMP" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12645 $as_echo "no
" >&6; }
12650 if test -z "$ac_cv_prog_OBJDUMP"; then
12651 ac_ct_OBJDUMP=$OBJDUMP
12652 # Extract the first word of "objdump
", so it can be a program name with args.
12653 set dummy objdump; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12655 $as_echo_n "checking
for $ac_word...
" >&6; }
12656 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12657 $as_echo_n "(cached
) " >&6
12659 if test -n "$ac_ct_OBJDUMP"; then
12660 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12669 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12679 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12680 if test -n "$ac_ct_OBJDUMP"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12682 $as_echo "$ac_ct_OBJDUMP" >&6; }
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12685 $as_echo "no
" >&6; }
12688 if test "x
$ac_ct_OBJDUMP" = x; then
12691 case $cross_compiling:$ac_tool_warned in
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12694 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12695 ac_tool_warned=yes ;;
12697 OBJDUMP=$ac_ct_OBJDUMP
12700 OBJDUMP="$ac_cv_prog_OBJDUMP"
12703 test -z "$OBJDUMP" && OBJDUMP=objdump
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12714 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12715 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12716 $as_echo_n "(cached
) " >&6
12718 lt_cv_file_magic_cmd='$MAGIC_CMD'
12719 lt_cv_file_magic_test_file=
12720 lt_cv_deplibs_check_method='unknown'
12721 # Need to set the preceding variable on all platforms that support
12722 # interlibrary dependencies.
12723 # 'none' -- dependencies not supported.
12724 # `unknown' -- same as none, but documents that we really don't know.
12725 # 'pass_all' -- all dependencies passed with no checks.
12726 # 'test_compile' -- check by making test program.
12727 # 'file_magic [[regex]]' -- check by looking for files in library path
12728 # which responds to the $file_magic_cmd with a given extended regex.
12729 # If you have `file' or equivalent on your system and you're not sure
12730 # whether `pass_all' will *always* work, you probably want this one.
12734 lt_cv_deplibs_check_method=pass_all
12738 lt_cv_deplibs_check_method=pass_all
12742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12743 lt_cv_file_magic_cmd='/usr/bin/file -L'
12744 lt_cv_file_magic_test_file=/shlib/libc.so
12748 # func_win32_libid is a shell function defined in ltmain.sh
12749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12750 lt_cv_file_magic_cmd='func_win32_libid'
12754 # Base MSYS/MinGW do not provide the 'file' command needed by
12755 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12756 # unless we find 'file', for example because we are cross-compiling.
12757 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12758 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12760 lt_cv_file_magic_cmd='func_win32_libid'
12762 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12763 lt_cv_file_magic_cmd='$OBJDUMP -f'
12768 # use the weaker test based on 'objdump'. See mingw*.
12769 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12770 lt_cv_file_magic_cmd='$OBJDUMP -f'
12773 darwin* | rhapsody*)
12774 lt_cv_deplibs_check_method=pass_all
12777 freebsd* | dragonfly*)
12778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12781 # Not sure whether the presence of OpenBSD here was a mistake.
12782 # Let's accept both of them until this is cleared up.
12783 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12784 lt_cv_file_magic_cmd=/usr/bin/file
12785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12789 lt_cv_deplibs_check_method=pass_all
12794 lt_cv_deplibs_check_method=pass_all
12798 lt_cv_deplibs_check_method=pass_all
12801 hpux10.20* | hpux11*)
12802 lt_cv_file_magic_cmd=/usr/bin/file
12805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12806 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12809 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]'
12810 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12814 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12820 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12824 irix5* | irix6* | nonstopux*)
12826 *-32|*"-32 ") libmagic=32-bit;;
12827 *-n32|*"-n32 ") libmagic=N32;;
12828 *-64|*"-64 ") libmagic=64-bit;;
12829 *) libmagic=never-match;;
12831 lt_cv_deplibs_check_method=pass_all
12834 # This must be Linux ELF.
12835 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12836 lt_cv_deplibs_check_method=pass_all
12840 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12849 lt_cv_file_magic_cmd=/usr/bin/file
12850 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12854 lt_cv_deplibs_check_method=pass_all
12858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12865 osf3* | osf4* | osf5*)
12866 lt_cv_deplibs_check_method=pass_all
12870 lt_cv_deplibs_check_method=pass_all
12874 lt_cv_deplibs_check_method=pass_all
12877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12878 lt_cv_deplibs_check_method=pass_all
12882 case $host_vendor in
12884 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]'
12885 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12888 lt_cv_deplibs_check_method=pass_all
12891 lt_cv_file_magic_cmd='/bin/file'
12892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12895 lt_cv_file_magic_cmd='/bin/file'
12896 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12897 lt_cv_file_magic_test_file=/lib/libc.so
12900 lt_cv_deplibs_check_method=pass_all
12903 lt_cv_deplibs_check_method=pass_all
12909 lt_cv_deplibs_check_method=pass_all
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12915 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12916 file_magic_cmd=$lt_cv_file_magic_cmd
12917 deplibs_check_method=$lt_cv_deplibs_check_method
12918 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12931 if test -n "$ac_tool_prefix"; then
12932 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12933 set dummy ${ac_tool_prefix}ar; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12935 $as_echo_n "checking
for $ac_word...
" >&6; }
12936 if test "${ac_cv_prog_AR+set}" = set; then :
12937 $as_echo_n "(cached
) " >&6
12939 if test -n "$AR"; then
12940 ac_cv_prog_AR="$AR" # Let the user override the test.
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_prog_AR="${ac_tool_prefix}ar"
12950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12960 if test -n "$AR"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12962 $as_echo "$AR" >&6; }
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12965 $as_echo "no
" >&6; }
12970 if test -z "$ac_cv_prog_AR"; then
12972 # Extract the first word of "ar", so it can be a program name with args.
12973 set dummy ar; ac_word=$2
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12975 $as_echo_n "checking
for $ac_word...
" >&6; }
12976 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12977 $as_echo_n "(cached
) " >&6
12979 if test -n "$ac_ct_AR"; then
12980 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_prog_ac_ct_AR="ar"
12990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12999 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13000 if test -n "$ac_ct_AR"; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13002 $as_echo "$ac_ct_AR" >&6; }
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13005 $as_echo "no
" >&6; }
13008 if test "x
$ac_ct_AR" = x; then
13011 case $cross_compiling:$ac_tool_warned in
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13014 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13015 ac_tool_warned=yes ;;
13020 AR="$ac_cv_prog_AR"
13023 test -z "$AR" && AR=ar
13024 test -z "$AR_FLAGS" && AR_FLAGS=cru
13036 if test -n "$ac_tool_prefix"; then
13037 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13038 set dummy ${ac_tool_prefix}strip; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13040 $as_echo_n "checking
for $ac_word...
" >&6; }
13041 if test "${ac_cv_prog_STRIP+set}" = set; then :
13042 $as_echo_n "(cached
) " >&6
13044 if test -n "$STRIP"; then
13045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13064 STRIP=$ac_cv_prog_STRIP
13065 if test -n "$STRIP"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13067 $as_echo "$STRIP" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13070 $as_echo "no
" >&6; }
13075 if test -z "$ac_cv_prog_STRIP"; then
13077 # Extract the first word of "strip
", so it can be a program name with args.
13078 set dummy strip; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13080 $as_echo_n "checking
for $ac_word...
" >&6; }
13081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13082 $as_echo_n "(cached
) " >&6
13084 if test -n "$ac_ct_STRIP"; then
13085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_ac_ct_STRIP="strip
"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13105 if test -n "$ac_ct_STRIP"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13107 $as_echo "$ac_ct_STRIP" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13110 $as_echo "no
" >&6; }
13113 if test "x
$ac_ct_STRIP" = x; then
13116 case $cross_compiling:$ac_tool_warned in
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13119 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13120 ac_tool_warned=yes ;;
13125 STRIP="$ac_cv_prog_STRIP"
13128 test -z "$STRIP" && STRIP=:
13135 if test -n "$ac_tool_prefix"; then
13136 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13139 $as_echo_n "checking
for $ac_word...
" >&6; }
13140 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13141 $as_echo_n "(cached
) " >&6
13143 if test -n "$RANLIB"; then
13144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13163 RANLIB=$ac_cv_prog_RANLIB
13164 if test -n "$RANLIB"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13166 $as_echo "$RANLIB" >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13169 $as_echo "no
" >&6; }
13174 if test -z "$ac_cv_prog_RANLIB"; then
13175 ac_ct_RANLIB=$RANLIB
13176 # Extract the first word of "ranlib
", so it can be a program name with args.
13177 set dummy ranlib; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13179 $as_echo_n "checking
for $ac_word...
" >&6; }
13180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13181 $as_echo_n "(cached
) " >&6
13183 if test -n "$ac_ct_RANLIB"; then
13184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13193 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13204 if test -n "$ac_ct_RANLIB"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13206 $as_echo "$ac_ct_RANLIB" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13209 $as_echo "no
" >&6; }
13212 if test "x
$ac_ct_RANLIB" = x; then
13215 case $cross_compiling:$ac_tool_warned in
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13218 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13219 ac_tool_warned=yes ;;
13221 RANLIB=$ac_ct_RANLIB
13224 RANLIB="$ac_cv_prog_RANLIB"
13227 test -z "$RANLIB" && RANLIB=:
13234 # Determine commands to create old-style static archives.
13235 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13236 old_postinstall_cmds='chmod 644 $oldlib'
13237 old_postuninstall_cmds=
13239 if test -n "$RANLIB"; then
13242 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13245 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13248 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13253 lock_old_archive_extraction=yes ;;
13255 lock_old_archive_extraction=no ;;
13296 # If no C compiler was specified, use CC.
13299 # If no C compiler flags were specified, use CFLAGS.
13300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13302 # Allow CC to be a program name with arguments.
13306 # Check for command to grab the raw symbol name followed by C symbol from nm.
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13308 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13309 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13310 $as_echo_n "(cached
) " >&6
13313 # These are sane defaults that work on at least a few old systems.
13314 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13316 # Character class describing NM global symbol codes.
13317 symcode='[BCDEGRST]'
13319 # Regexp to match symbols that can be accessed directly from C.
13320 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13322 # Define system-specific variables.
13327 cygwin* | mingw* | pw32* | cegcc*)
13328 symcode='[ABCDGISTW]'
13331 if test "$host_cpu" = ia64; then
13332 symcode='[ABCDEGRST]'
13335 irix* | nonstopux*)
13336 symcode='[BCDEGRST]'
13339 symcode='[BCDEGQRST]'
13350 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13358 # If we're using GNU nm, then use its standard symbol codes.
13359 case `$NM -V 2>&1` in
13360 *GNU* | *'with BFD'*)
13361 symcode='[ABCDGIRSTW]' ;;
13364 # Transform an extracted symbol line into a proper C declaration.
13365 # Some systems (esp. on ia64) link data and code symbols differently,
13366 # so use this general approach.
13367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13369 # Transform an extracted symbol line into symbol name and symbol address
13370 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13371 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'"
13373 # Handle CRLF in mingw tool chain
13377 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13381 # Try without a prefix underscore, then with it.
13382 for ac_symprfx in "" "_
"; do
13384 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13385 symxfrm="\\1 $ac_symprfx\\2 \\2"
13387 # Write the raw and C identifiers.
13388 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13389 # Fake it for dumpbin and say T for any non-static function
13390 # and D for any global variable.
13391 # Also find C++ and __fastcall symbols from MSVC++,
13392 # which start with @ or ?.
13393 lt_cv_sys_global_symbol_pipe="$AWK '"\
13394 " {last_section=section; section=\$ 3};"\
13395 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13396 " \$ 0!~/External *\|/{next};"\
13397 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13398 " {if(hide[section]) next};"\
13399 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13400 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13401 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13402 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13403 " ' prfx
=^
$ac_symprfx"
13405 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13408 # Check to see that the pipe works correctly.
13412 cat > conftest.$ac_ext <<_LT_EOF
13417 void nm_test_func(void);
13418 void nm_test_func(void){}
13422 int main(){nm_test_var='a';nm_test_func();return(0);}
13425 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13426 (eval $ac_compile) 2>&5
13428 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13429 test $ac_status = 0; }; then
13430 # Now try to grab the symbols.
13432 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13433 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13436 test $ac_status = 0; } && test -s "$nlist"; then
13437 # Try sorting and uniquifying the output.
13438 if sort "$nlist" | uniq > "$nlist"T; then
13439 mv -f "$nlist"T "$nlist"
13444 # Make sure that we snagged all the symbols we need.
13445 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13446 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13447 cat <<_LT_EOF > conftest.$ac_ext
13453 # Now generate the symbol file.
13454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13456 cat <<_LT_EOF >> conftest.$ac_ext
13458 /* The mapping between symbol names and symbols. */
13463 lt__PROGRAM__LTX_preloaded_symbols[] =
13465 { "@PROGRAM@
", (void *) 0 },
13467 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13468 cat <<\_LT_EOF >> conftest.$ac_ext
13472 /* This works around a problem in FreeBSD linker */
13473 #ifdef FREEBSD_WORKAROUND
13474 static const void *lt_preloaded_setup() {
13475 return lt__PROGRAM__LTX_preloaded_symbols;
13483 # Now try linking the two files.
13484 mv conftest.$ac_objext conftstm.$ac_objext
13485 lt_save_LIBS="$LIBS"
13486 lt_save_CFLAGS="$CFLAGS"
13487 LIBS="conftstm.
$ac_objext"
13488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13489 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13490 (eval $ac_link) 2>&5
13492 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13493 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13496 LIBS="$lt_save_LIBS"
13497 CFLAGS="$lt_save_CFLAGS"
13499 echo "cannot
find nm_test_func
in $nlist" >&5
13502 echo "cannot
find nm_test_var
in $nlist" >&5
13505 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13508 echo "$progname: failed program was
:" >&5
13509 cat conftest.$ac_ext >&5
13511 rm -rf conftest* conftst*
13513 # Do not use the global_symbol_pipe unless it works.
13514 if test "$pipe_works" = yes; then
13517 lt_cv_sys_global_symbol_pipe=
13523 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13524 lt_cv_sys_global_symbol_to_cdecl=
13526 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13528 $as_echo "failed
" >&6; }
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13531 $as_echo "ok
" >&6; }
13555 # Check whether --enable-libtool-lock was given.
13556 if test "${enable_libtool_lock+set}" = set; then :
13557 enableval=$enable_libtool_lock;
13560 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13562 # Some flags need to be propagated to the compiler or linker for good
13566 # Find out which ABI we are using.
13567 echo 'int i;' > conftest.$ac_ext
13568 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13569 (eval $ac_compile) 2>&5
13571 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13572 test $ac_status = 0; }; then
13573 case `/usr/bin/file conftest.$ac_objext` in
13575 HPUX_IA64_MODE="32"
13578 HPUX_IA64_MODE="64"
13585 # Find out which ABI we are using.
13586 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13587 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588 (eval $ac_compile) 2>&5
13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13591 test $ac_status = 0; }; then
13592 if test "$lt_cv_prog_gnu_ld" = yes; then
13593 case `/usr/bin/file conftest.$ac_objext` in
13595 LD="${LD-ld} -melf32bsmip"
13598 LD="${LD-ld} -melf32bmipn32"
13601 LD="${LD-ld} -melf64bmip"
13605 case `/usr/bin/file conftest.$ac_objext` in
13621 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13622 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13623 # Find out which ABI we are using.
13624 echo 'int i;' > conftest.$ac_ext
13625 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13626 (eval $ac_compile) 2>&5
13628 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13629 test $ac_status = 0; }; then
13630 case `/usr/bin/file conftest.o` in
13633 x86_64-*kfreebsd*-gnu)
13634 LD="${LD-ld} -m elf_i386_fbsd
"
13637 case `/usr/bin/file conftest.o` in
13639 LD="${LD-ld} -m elf32_x86_64
"
13642 LD="${LD-ld} -m elf_i386
"
13646 ppc64-*linux*|powerpc64-*linux*)
13647 LD="${LD-ld} -m elf32ppclinux
"
13650 LD="${LD-ld} -m elf_s390
"
13653 LD="${LD-ld} -m elf32_sparc
"
13659 x86_64-*kfreebsd*-gnu)
13660 LD="${LD-ld} -m elf_x86_64_fbsd
"
13663 LD="${LD-ld} -m elf_x86_64
"
13665 ppc*-*linux*|powerpc*-*linux*)
13666 LD="${LD-ld} -m elf64ppc
"
13668 s390*-*linux*|s390*-*tpf*)
13669 LD="${LD-ld} -m elf64_s390
"
13672 LD="${LD-ld} -m elf64_sparc
"
13682 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13683 SAVE_CFLAGS="$CFLAGS"
13684 CFLAGS="$CFLAGS -belf"
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13686 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13687 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13688 $as_echo_n "(cached
) " >&6
13691 ac_cpp='$CPP $CPPFLAGS'
13692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13707 if ac_fn_c_try_link "$LINENO"; then :
13708 lt_cv_cc_needs_belf=yes
13710 lt_cv_cc_needs_belf=no
13712 rm -f core conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13715 ac_cpp='$CPP $CPPFLAGS'
13716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13722 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13725 CFLAGS="$SAVE_CFLAGS"
13729 # Find out which ABI we are using.
13730 echo 'int i;' > conftest.$ac_ext
13731 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732 (eval $ac_compile) 2>&5
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13735 test $ac_status = 0; }; then
13736 case `/usr/bin/file conftest.o` in
13738 case $lt_cv_prog_gnu_ld in
13739 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13741 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13753 need_locks="$enable_libtool_lock"
13757 rhapsody* | darwin*)
13758 if test -n "$ac_tool_prefix"; then
13759 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13760 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13762 $as_echo_n "checking
for $ac_word...
" >&6; }
13763 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13764 $as_echo_n "(cached
) " >&6
13766 if test -n "$DSYMUTIL"; then
13767 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13776 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13786 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13787 if test -n "$DSYMUTIL"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13789 $as_echo "$DSYMUTIL" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13792 $as_echo "no
" >&6; }
13797 if test -z "$ac_cv_prog_DSYMUTIL"; then
13798 ac_ct_DSYMUTIL=$DSYMUTIL
13799 # Extract the first word of "dsymutil
", so it can be a program name with args.
13800 set dummy dsymutil; ac_word=$2
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13802 $as_echo_n "checking
for $ac_word...
" >&6; }
13803 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13804 $as_echo_n "(cached
) " >&6
13806 if test -n "$ac_ct_DSYMUTIL"; then
13807 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13826 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13827 if test -n "$ac_ct_DSYMUTIL"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13829 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13832 $as_echo "no
" >&6; }
13835 if test "x
$ac_ct_DSYMUTIL" = x; then
13838 case $cross_compiling:$ac_tool_warned in
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13841 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13842 ac_tool_warned=yes ;;
13844 DSYMUTIL=$ac_ct_DSYMUTIL
13847 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13850 if test -n "$ac_tool_prefix"; then
13851 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13852 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13854 $as_echo_n "checking
for $ac_word...
" >&6; }
13855 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13856 $as_echo_n "(cached
) " >&6
13858 if test -n "$NMEDIT"; then
13859 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13868 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13878 NMEDIT=$ac_cv_prog_NMEDIT
13879 if test -n "$NMEDIT"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13881 $as_echo "$NMEDIT" >&6; }
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13884 $as_echo "no
" >&6; }
13889 if test -z "$ac_cv_prog_NMEDIT"; then
13890 ac_ct_NMEDIT=$NMEDIT
13891 # Extract the first word of "nmedit
", so it can be a program name with args.
13892 set dummy nmedit; ac_word=$2
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13894 $as_echo_n "checking
for $ac_word...
" >&6; }
13895 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13896 $as_echo_n "(cached
) " >&6
13898 if test -n "$ac_ct_NMEDIT"; then
13899 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13902 for as_dir in $PATH
13905 test -z "$as_dir" && as_dir=.
13906 for ac_exec_ext in '' $ac_executable_extensions; do
13907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13908 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13918 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13919 if test -n "$ac_ct_NMEDIT"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13921 $as_echo "$ac_ct_NMEDIT" >&6; }
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13924 $as_echo "no
" >&6; }
13927 if test "x
$ac_ct_NMEDIT" = x; then
13930 case $cross_compiling:$ac_tool_warned in
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13933 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13934 ac_tool_warned=yes ;;
13936 NMEDIT=$ac_ct_NMEDIT
13939 NMEDIT="$ac_cv_prog_NMEDIT"
13942 if test -n "$ac_tool_prefix"; then
13943 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13944 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13946 $as_echo_n "checking
for $ac_word...
" >&6; }
13947 if test "${ac_cv_prog_LIPO+set}" = set; then :
13948 $as_echo_n "(cached
) " >&6
13950 if test -n "$LIPO"; then
13951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13960 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13970 LIPO=$ac_cv_prog_LIPO
13971 if test -n "$LIPO"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13973 $as_echo "$LIPO" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13976 $as_echo "no
" >&6; }
13981 if test -z "$ac_cv_prog_LIPO"; then
13983 # Extract the first word of "lipo
", so it can be a program name with args.
13984 set dummy lipo; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13986 $as_echo_n "checking
for $ac_word...
" >&6; }
13987 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13988 $as_echo_n "(cached
) " >&6
13990 if test -n "$ac_ct_LIPO"; then
13991 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_ac_ct_LIPO="lipo
"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14010 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14011 if test -n "$ac_ct_LIPO"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14013 $as_echo "$ac_ct_LIPO" >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14016 $as_echo "no
" >&6; }
14019 if test "x
$ac_ct_LIPO" = x; then
14022 case $cross_compiling:$ac_tool_warned in
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14025 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14026 ac_tool_warned=yes ;;
14031 LIPO="$ac_cv_prog_LIPO"
14034 if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}otool; ac_word=$2
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14038 $as_echo_n "checking
for $ac_word...
" >&6; }
14039 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14040 $as_echo_n "(cached
) " >&6
14042 if test -n "$OTOOL"; then
14043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14052 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14053 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14062 OTOOL=$ac_cv_prog_OTOOL
14063 if test -n "$OTOOL"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14065 $as_echo "$OTOOL" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14068 $as_echo "no
" >&6; }
14073 if test -z "$ac_cv_prog_OTOOL"; then
14075 # Extract the first word of "otool
", so it can be a program name with args.
14076 set dummy otool; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14078 $as_echo_n "checking
for $ac_word...
" >&6; }
14079 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14080 $as_echo_n "(cached
) " >&6
14082 if test -n "$ac_ct_OTOOL"; then
14083 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14092 ac_cv_prog_ac_ct_OTOOL="otool
"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14102 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14103 if test -n "$ac_ct_OTOOL"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14105 $as_echo "$ac_ct_OTOOL" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14108 $as_echo "no
" >&6; }
14111 if test "x
$ac_ct_OTOOL" = x; then
14114 case $cross_compiling:$ac_tool_warned in
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14117 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14118 ac_tool_warned=yes ;;
14123 OTOOL="$ac_cv_prog_OTOOL"
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14130 $as_echo_n "checking
for $ac_word...
" >&6; }
14131 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14132 $as_echo_n "(cached
) " >&6
14134 if test -n "$OTOOL64"; then
14135 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14144 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14154 OTOOL64=$ac_cv_prog_OTOOL64
14155 if test -n "$OTOOL64"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14157 $as_echo "$OTOOL64" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14160 $as_echo "no
" >&6; }
14165 if test -z "$ac_cv_prog_OTOOL64"; then
14166 ac_ct_OTOOL64=$OTOOL64
14167 # Extract the first word of "otool64
", so it can be a program name with args.
14168 set dummy otool64; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14170 $as_echo_n "checking
for $ac_word...
" >&6; }
14171 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14172 $as_echo_n "(cached
) " >&6
14174 if test -n "$ac_ct_OTOOL64"; then
14175 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14194 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14195 if test -n "$ac_ct_OTOOL64"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14197 $as_echo "$ac_ct_OTOOL64" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14200 $as_echo "no
" >&6; }
14203 if test "x
$ac_ct_OTOOL64" = x; then
14206 case $cross_compiling:$ac_tool_warned in
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14209 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14210 ac_tool_warned=yes ;;
14212 OTOOL64=$ac_ct_OTOOL64
14215 OTOOL64="$ac_cv_prog_OTOOL64"
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14245 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14246 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14247 $as_echo_n "(cached
) " >&6
14249 lt_cv_apple_cc_single_mod=no
14250 if test -z "${LT_MULTI_MODULE}"; then
14251 # By default we will add the -single_module flag. You can override
14252 # by either setting the environment variable LT_MULTI_MODULE
14253 # non-empty at configure time, or by adding -multi_module to the
14255 rm -rf libconftest.dylib*
14256 echo "int foo
(void
){return 1;}" > conftest.c
14257 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14258 -dynamiclib -Wl,-single_module conftest.c
" >&5
14259 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14260 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14262 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14263 lt_cv_apple_cc_single_mod=yes
14265 cat conftest.err >&5
14267 rm -rf libconftest.dylib*
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14272 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14274 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14275 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14276 $as_echo_n "(cached
) " >&6
14278 lt_cv_ld_exported_symbols_list=no
14279 save_LDFLAGS=$LDFLAGS
14280 echo "_main
" > conftest.sym
14281 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14293 if ac_fn_c_try_link "$LINENO"; then :
14294 lt_cv_ld_exported_symbols_list=yes
14296 lt_cv_ld_exported_symbols_list=no
14298 rm -f core conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14300 LDFLAGS="$save_LDFLAGS"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14304 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14306 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14307 if test "${lt_cv_ld_force_load+set}" = set; then :
14308 $as_echo_n "(cached
) " >&6
14310 lt_cv_ld_force_load=no
14311 cat > conftest.c << _LT_EOF
14312 int forced_loaded() { return 2;}
14314 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14315 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14316 echo "$AR cru libconftest.a conftest.o
" >&5
14317 $AR cru libconftest.a conftest.o 2>&5
14318 cat > conftest.c << _LT_EOF
14319 int main() { return 0;}
14321 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14322 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14324 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14325 lt_cv_ld_force_load=yes
14327 cat conftest.err >&5
14329 rm -f conftest.err libconftest.a conftest conftest.c
14330 rm -rf conftest.dSYM
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14334 $as_echo "$lt_cv_ld_force_load" >&6; }
14336 rhapsody* | darwin1.[012])
14337 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14340 darwin*) # darwin 5.x on
14341 # if running on 10.5 or later, the deployment target defaults
14342 # to the OS version, if on x86, and 10.4, the deployment
14343 # target defaults to 10.4. Don't you love it?
14344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14345 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14346 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14350 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14354 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14355 _lt_dar_single_mod='$single_module'
14357 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14358 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14360 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14362 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14363 _lt_dsymutil='~$DSYMUTIL $lib || :'
14370 for ac_header in dlfcn.h
14372 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14373 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_DLFCN_H 1
14392 enable_win32_dll=no
14395 # Check whether --enable-shared was given.
14396 if test "${enable_shared+set}" = set; then :
14397 enableval=$enable_shared; p=${PACKAGE-default}
14399 yes) enable_shared=yes ;;
14400 no) enable_shared=no ;;
14403 # Look at the argument we got. We use all the common list separators.
14404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14405 for pkg in $enableval; do
14407 if test "X
$pkg" = "X
$p"; then
14426 # Check whether --enable-static was given.
14427 if test "${enable_static+set}" = set; then :
14428 enableval=$enable_static; p=${PACKAGE-default}
14430 yes) enable_static=yes ;;
14431 no) enable_static=no ;;
14434 # Look at the argument we got. We use all the common list separators.
14435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14436 for pkg in $enableval; do
14438 if test "X
$pkg" = "X
$p"; then
14458 # Check whether --with-pic was given.
14459 if test "${with_pic+set}" = set; then :
14460 withval=$with_pic; p=${PACKAGE-default}
14462 yes|no) pic_mode="$withval" ;;
14465 # Look at the argument we got. We use all the common list separators.
14466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14467 for pkg in $withval; do
14469 if test "X
$pkg" = "X
$p"; then
14481 test -z "$pic_mode" && pic_mode=default
14489 # Check whether --enable-fast-install was given.
14490 if test "${enable_fast_install+set}" = set; then :
14491 enableval=$enable_fast_install; p=${PACKAGE-default}
14493 yes) enable_fast_install=yes ;;
14494 no) enable_fast_install=no ;;
14496 enable_fast_install=no
14497 # Look at the argument we got. We use all the common list separators.
14498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14499 for pkg in $enableval; do
14501 if test "X
$pkg" = "X
$p"; then
14502 enable_fast_install=yes
14509 enable_fast_install=yes
14522 # This can be used to rebuild libtool when needed
14523 LIBTOOL_DEPS="$ltmain"
14525 # Always use our own libtool.
14526 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14553 test -z "$LN_S" && LN_S="ln -s"
14568 if test -n "${ZSH_VERSION+set}" ; then
14569 setopt NO_GLOB_SUBST
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14573 $as_echo_n "checking
for objdir...
" >&6; }
14574 if test "${lt_cv_objdir+set}" = set; then :
14575 $as_echo_n "(cached
) " >&6
14577 rm -f .libs 2>/dev/null
14578 mkdir .libs 2>/dev/null
14579 if test -d .libs; then
14582 # MS-DOS does not allow filenames that begin with a dot.
14585 rmdir .libs 2>/dev/null
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14588 $as_echo "$lt_cv_objdir" >&6; }
14589 objdir=$lt_cv_objdir
14595 cat >>confdefs.h <<_ACEOF
14596 #define LT_OBJDIR "$lt_cv_objdir/"
14604 # AIX sometimes has problems with the GCC collect2 program. For some
14605 # reason, if we set the COLLECT_NAMES environment variable, the problems
14606 # vanish in a puff of smoke.
14607 if test "X
${COLLECT_NAMES+set}" != Xset; then
14609 export COLLECT_NAMES
14614 # Global variables:
14616 can_build_shared=yes
14618 # All known linkers require a `.a' archive for static linking (except MSVC,
14619 # which needs '.lib').
14622 with_gnu_ld="$lt_cv_prog_gnu_ld"
14625 old_CFLAGS="$CFLAGS"
14627 # Set sane defaults for various variables
14628 test -z "$CC" && CC=cc
14629 test -z "$LTCC" && LTCC=$CC
14630 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14631 test -z "$LD" && LD=ld
14632 test -z "$ac_objext" && ac_objext=o
14634 for cc_temp in $compiler""; do
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14642 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14645 # Only perform the check for file, if the check method requires it
14646 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14647 case $deplibs_check_method in
14649 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14651 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14653 $as_echo_n "(cached
) " >&6
14657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14660 lt_save_MAGIC_CMD="$MAGIC_CMD"
14661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14662 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14663 for ac_dir in $ac_dummy; do
14665 test -z "$ac_dir" && ac_dir=.
14666 if test -f $ac_dir/${ac_tool_prefix}file; then
14667 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14668 if test -n "$file_magic_test_file"; then
14669 case $deplibs_check_method in
14671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14674 $EGREP "$file_magic_regex" > /dev/null; then
14679 *** Warning: the command libtool uses to detect shared libraries,
14680 *** $file_magic_cmd, produces output that libtool cannot recognize.
14681 *** The result is that libtool may fail to recognize shared libraries
14682 *** as such. This will affect the creation of libtool libraries that
14683 *** depend on shared libraries, but programs linked with such libtool
14684 *** libraries will work regardless of this problem. Nevertheless, you
14685 *** may want to report the problem to your system manager and/or to
14686 *** bug-libtool@gnu.org
14696 MAGIC_CMD="$lt_save_MAGIC_CMD"
14701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if test -n "$MAGIC_CMD"; then
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14704 $as_echo "$MAGIC_CMD" >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14707 $as_echo "no
" >&6; }
14714 if test -z "$lt_cv_path_MAGIC_CMD"; then
14715 if test -n "$ac_tool_prefix"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14717 $as_echo_n "checking
for file...
" >&6; }
14718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14719 $as_echo_n "(cached
) " >&6
14723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14726 lt_save_MAGIC_CMD="$MAGIC_CMD"
14727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14728 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14729 for ac_dir in $ac_dummy; do
14731 test -z "$ac_dir" && ac_dir=.
14732 if test -f $ac_dir/file; then
14733 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14734 if test -n "$file_magic_test_file"; then
14735 case $deplibs_check_method in
14737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14740 $EGREP "$file_magic_regex" > /dev/null; then
14745 *** Warning: the command libtool uses to detect shared libraries,
14746 *** $file_magic_cmd, produces output that libtool cannot recognize.
14747 *** The result is that libtool may fail to recognize shared libraries
14748 *** as such. This will affect the creation of libtool libraries that
14749 *** depend on shared libraries, but programs linked with such libtool
14750 *** libraries will work regardless of this problem. Nevertheless, you
14751 *** may want to report the problem to your system manager and/or to
14752 *** bug-libtool@gnu.org
14762 MAGIC_CMD="$lt_save_MAGIC_CMD"
14767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14768 if test -n "$MAGIC_CMD"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14770 $as_echo "$MAGIC_CMD" >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14773 $as_echo "no
" >&6; }
14786 # Use C for the default configuration in the libtool script
14790 ac_cpp='$CPP $CPPFLAGS'
14791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14796 # Source file extension for C test sources.
14799 # Object file extension for compiled C test sources.
14803 # Code to be used in simple compile tests
14804 lt_simple_compile_test_code="int some_variable
= 0;"
14806 # Code to be used in simple link tests
14807 lt_simple_link_test_code='int main(){return(0);}'
14815 # If no C compiler was specified, use CC.
14818 # If no C compiler flags were specified, use CFLAGS.
14819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14821 # Allow CC to be a program name with arguments.
14824 # Save the default compiler, since it gets overwritten when the other
14825 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14826 compiler_DEFAULT=$CC
14828 # save warnings/boilerplate of simple test code
14829 ac_outfile=conftest.$ac_objext
14830 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14832 _lt_compiler_boilerplate=`cat conftest.err`
14835 ac_outfile=conftest.$ac_objext
14836 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14838 _lt_linker_boilerplate=`cat conftest.err`
14843 ## There is no encapsulation within the following macros, do not change
14844 ## the running order or otherwise move them around unless you know exactly
14845 ## what you are doing...
14846 if test -n "$compiler"; then
14848 lt_prog_compiler_no_builtin_flag=
14850 if test "$GCC" = yes; then
14851 case $cc_basename in
14853 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14855 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14859 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14861 $as_echo_n "(cached
) " >&6
14863 lt_cv_prog_compiler_rtti_exceptions=no
14864 ac_outfile=conftest.$ac_objext
14865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14866 lt_compiler_flag="-fno-rtti -fno-exceptions"
14867 # Insert the option either (1) after the last *FLAGS variable, or
14868 # (2) before a word containing "conftest.
", or (3) at the end.
14869 # Note that $ac_compile itself does not contain backslashes and begins
14870 # with a dollar sign (not a hyphen), so the echo should work correctly.
14871 # The option is referenced via a variable to avoid confusing sed.
14872 lt_compile=`echo "$ac_compile" | $SED \
14873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14875 -e 's:$: $lt_compiler_flag:'`
14876 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14877 (eval "$lt_compile" 2>conftest.err)
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14881 if (exit $ac_status) && test -s "$ac_outfile"; then
14882 # The compiler can only warn and ignore the option if not recognized
14883 # So say no if there are warnings other than the usual output.
14884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14887 lt_cv_prog_compiler_rtti_exceptions=yes
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14894 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14896 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14897 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14909 lt_prog_compiler_wl=
14910 lt_prog_compiler_pic=
14911 lt_prog_compiler_static=
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14914 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14916 if test "$GCC" = yes; then
14917 lt_prog_compiler_wl='-Wl,'
14918 lt_prog_compiler_static='-static'
14922 # All AIX code is PIC.
14923 if test "$host_cpu" = ia64; then
14924 # AIX 5 now supports IA64 processor
14925 lt_prog_compiler_static='-Bstatic'
14927 lt_prog_compiler_pic='-fPIC'
14933 # see comment about AmigaOS4 .so support
14934 lt_prog_compiler_pic='-fPIC'
14937 # FIXME: we need at least 68020 code to build shared libraries, but
14938 # adding the `-m68020' flag to GCC prevents building anything better,
14940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14946 # PIC is the default for these OSes.
14949 mingw* | cygwin* | pw32* | os2* | cegcc*)
14950 # This hack is so that the source file can tell whether it is being
14951 # built for inclusion in a dll (and should export symbols for example).
14952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14953 # (--disable-auto-import) libraries
14954 lt_prog_compiler_pic='-DDLL_EXPORT'
14957 darwin* | rhapsody*)
14958 # PIC is the default on this platform
14959 # Common symbols not allowed in MH_DYLIB files
14960 lt_prog_compiler_pic='-fno-common'
14964 # PIC is the default for Haiku.
14965 # The "-static" flag exists, but is broken.
14966 lt_prog_compiler_static=
14970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14972 # sets the default TLS model and affects inlining.
14978 lt_prog_compiler_pic='-fPIC'
14984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14985 # Instead, we relocate shared libraries at runtime.
14989 # Just because we use GCC doesn't mean we suddenly get shared libraries
14990 # on systems that don't support them.
14991 lt_prog_compiler_can_build_shared=no
14996 # QNX uses GNU C++, but need to define -shared option too, otherwise
14997 # it will coredump.
14998 lt_prog_compiler_pic='-fPIC -shared'
15002 if test -d /usr/nec; then
15003 lt_prog_compiler_pic=-Kconform_pic
15008 lt_prog_compiler_pic='-fPIC'
15012 case $cc_basename in
15013 nvcc*) # Cuda Compiler Driver 2.2
15014 lt_prog_compiler_wl='-Xlinker '
15015 lt_prog_compiler_pic='-Xcompiler -fPIC'
15019 # PORTME Check for flag to pass linker flags through the system compiler.
15022 lt_prog_compiler_wl='-Wl,'
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15027 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15031 mingw* | cygwin* | pw32* | os2* | cegcc*)
15032 # This hack is so that the source file can tell whether it is being
15033 # built for inclusion in a dll (and should export symbols for example).
15034 lt_prog_compiler_pic='-DDLL_EXPORT'
15037 hpux9* | hpux10* | hpux11*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15040 # not for PA HP-UX.
15046 lt_prog_compiler_pic='+Z'
15049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15050 lt_prog_compiler_static='${wl}-a ${wl}archive'
15053 irix5* | irix6* | nonstopux*)
15054 lt_prog_compiler_wl='-Wl,'
15055 # PIC (with -KPIC) is the default.
15056 lt_prog_compiler_static='-non_shared'
15059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15060 case $cc_basename in
15061 # old Intel for x86_64 which still supported -KPIC.
15063 lt_prog_compiler_wl='-Wl,'
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-static'
15067 # icc used to be incompatible with GCC.
15068 # ICC 10 doesn't accept -KPIC any more.
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-fPIC'
15072 lt_prog_compiler_static='-static'
15074 # Lahey Fortran 8.1.
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='--shared'
15078 lt_prog_compiler_static='--static'
15080 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15081 # Portland Group compilers (*not* the Pentium gcc compiler,
15082 # which looks to be a dead project)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-fpic'
15085 lt_prog_compiler_static='-Bstatic'
15088 lt_prog_compiler_wl='-Wl,'
15089 # All Alpha code is PIC.
15090 lt_prog_compiler_static='-non_shared'
15092 xl* | bgxl* | bgf* | mpixl*)
15093 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15094 lt_prog_compiler_wl='-Wl,'
15095 lt_prog_compiler_pic='-qpic'
15096 lt_prog_compiler_static='-qstaticlink'
15099 case `$CC -V 2>&1 | sed 5q` in
15100 *Sun\ F* | *Sun*Fortran*)
15101 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15102 lt_prog_compiler_pic='-KPIC'
15103 lt_prog_compiler_static='-Bstatic'
15104 lt_prog_compiler_wl=''
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15110 lt_prog_compiler_wl='-Wl,'
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15123 # QNX uses GNU C++, but need to define -shared option too, otherwise
15124 # it will coredump.
15125 lt_prog_compiler_pic='-fPIC -shared'
15128 osf3* | osf4* | osf5*)
15129 lt_prog_compiler_wl='-Wl,'
15130 # All OSF/1 code is PIC.
15131 lt_prog_compiler_static='-non_shared'
15135 lt_prog_compiler_static='-non_shared'
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 case $cc_basename in
15142 f77* | f90* | f95*)
15143 lt_prog_compiler_wl='-Qoption ld ';;
15145 lt_prog_compiler_wl='-Wl,';;
15150 lt_prog_compiler_wl='-Qoption ld '
15151 lt_prog_compiler_pic='-PIC'
15152 lt_prog_compiler_static='-Bstatic'
15155 sysv4 | sysv4.2uw2* | sysv4.3*)
15156 lt_prog_compiler_wl='-Wl,'
15157 lt_prog_compiler_pic='-KPIC'
15158 lt_prog_compiler_static='-Bstatic'
15162 if test -d /usr/nec ;then
15163 lt_prog_compiler_pic='-Kconform_pic'
15164 lt_prog_compiler_static='-Bstatic'
15168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15175 lt_prog_compiler_wl='-Wl,'
15176 lt_prog_compiler_can_build_shared=no
15180 lt_prog_compiler_pic='-pic'
15181 lt_prog_compiler_static='-Bstatic'
15185 lt_prog_compiler_can_build_shared=no
15191 # For platforms which do not support PIC, -DPIC is meaningless:
15193 lt_prog_compiler_pic=
15196 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15200 $as_echo "$lt_prog_compiler_pic" >&6; }
15208 # Check to make sure the PIC flag actually works.
15210 if test -n "$lt_prog_compiler_pic"; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15212 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15213 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15214 $as_echo_n "(cached
) " >&6
15216 lt_cv_prog_compiler_pic_works=no
15217 ac_outfile=conftest.$ac_objext
15218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15219 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15220 # Insert the option either (1) after the last *FLAGS variable, or
15221 # (2) before a word containing "conftest.
", or (3) at the end.
15222 # Note that $ac_compile itself does not contain backslashes and begins
15223 # with a dollar sign (not a hyphen), so the echo should work correctly.
15224 # The option is referenced via a variable to avoid confusing sed.
15225 lt_compile=`echo "$ac_compile" | $SED \
15226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15228 -e 's:$: $lt_compiler_flag:'`
15229 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15230 (eval "$lt_compile" 2>conftest.err)
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15234 if (exit $ac_status) && test -s "$ac_outfile"; then
15235 # The compiler can only warn and ignore the option if not recognized
15236 # So say no if there are warnings other than the usual output.
15237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15240 lt_cv_prog_compiler_pic_works=yes
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15247 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15249 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15250 case $lt_prog_compiler_pic in
15252 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15255 lt_prog_compiler_pic=
15256 lt_prog_compiler_can_build_shared=no
15267 # Check to make sure the static flag actually works.
15269 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15271 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15272 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15273 $as_echo_n "(cached
) " >&6
15275 lt_cv_prog_compiler_static_works=no
15276 save_LDFLAGS="$LDFLAGS"
15277 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15278 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15280 # The linker can only warn and ignore the option if not recognized
15281 # So say no if there are warnings
15282 if test -s conftest.err; then
15283 # Append any errors to the config.log.
15284 cat conftest.err 1>&5
15285 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15287 if diff conftest.exp conftest.er2 >/dev/null; then
15288 lt_cv_prog_compiler_static_works=yes
15291 lt_cv_prog_compiler_static_works=yes
15295 LDFLAGS="$save_LDFLAGS"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15301 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15304 lt_prog_compiler_static=
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15314 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15315 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15316 $as_echo_n "(cached
) " >&6
15318 lt_cv_prog_compiler_c_o=no
15319 $RM -r conftest 2>/dev/null
15323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15325 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15326 # Insert the option either (1) after the last *FLAGS variable, or
15327 # (2) before a word containing "conftest.
", or (3) at the end.
15328 # Note that $ac_compile itself does not contain backslashes and begins
15329 # with a dollar sign (not a hyphen), so the echo should work correctly.
15330 lt_compile=`echo "$ac_compile" | $SED \
15331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15333 -e 's:$: $lt_compiler_flag:'`
15334 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15335 (eval "$lt_compile" 2>out/conftest.err)
15337 cat out/conftest.err >&5
15338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15341 # The compiler can only warn and ignore the option if not recognized
15342 # So say no if there are warnings
15343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15346 lt_cv_prog_compiler_c_o=yes
15351 # SGI C++ compiler will create directory out/ii_files/ for
15352 # template instantiation
15353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15354 $RM out/* && rmdir out
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15369 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15370 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15371 $as_echo_n "(cached
) " >&6
15373 lt_cv_prog_compiler_c_o=no
15374 $RM -r conftest 2>/dev/null
15378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15380 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15381 # Insert the option either (1) after the last *FLAGS variable, or
15382 # (2) before a word containing "conftest.
", or (3) at the end.
15383 # Note that $ac_compile itself does not contain backslashes and begins
15384 # with a dollar sign (not a hyphen), so the echo should work correctly.
15385 lt_compile=`echo "$ac_compile" | $SED \
15386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15388 -e 's:$: $lt_compiler_flag:'`
15389 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15390 (eval "$lt_compile" 2>out/conftest.err)
15392 cat out/conftest.err >&5
15393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15396 # The compiler can only warn and ignore the option if not recognized
15397 # So say no if there are warnings
15398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15401 lt_cv_prog_compiler_c_o=yes
15406 # SGI C++ compiler will create directory out/ii_files/ for
15407 # template instantiation
15408 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15409 $RM out/* && rmdir out
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15421 hard_links="nottested
"
15422 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15423 # do not overwrite the value of need_locks provided by the user
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15425 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15430 ln conftest.a conftest.b 2>&5 || hard_links=no
15431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15433 $as_echo "$hard_links" >&6; }
15434 if test "$hard_links" = no; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15436 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15449 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15452 allow_undefined_flag=
15453 always_export_symbols=no
15455 archive_expsym_cmds=
15456 compiler_needs_object=no
15457 enable_shared_with_static_runtimes=no
15458 export_dynamic_flag_spec=
15459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15460 hardcode_automatic=no
15462 hardcode_direct_absolute=no
15463 hardcode_libdir_flag_spec=
15464 hardcode_libdir_flag_spec_ld=
15465 hardcode_libdir_separator=
15466 hardcode_minus_L=no
15467 hardcode_shlibpath_var=unsupported
15469 link_all_deplibs=unknown
15471 module_expsym_cmds=
15472 old_archive_from_new_cmds=
15473 old_archive_from_expsyms_cmds=
15474 thread_safe_flag_spec=
15475 whole_archive_flag_spec=
15476 # include_expsyms should be a list of space-separated symbols to be *always*
15477 # included in the symbol list
15479 # exclude_expsyms can be an extended regexp of symbols to exclude
15480 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15481 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15482 # as well as any symbol that contains `d'.
15483 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15484 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15485 # platforms (ab)use it in PIC code, but their linkers get confused if
15486 # the symbol is explicitly referenced. Since portable code cannot
15487 # rely on this symbol name, it's probably fine to never include it in
15488 # preloaded symbol tables.
15489 # Exclude shared library initialization/finalization symbols.
15490 extract_expsyms_cmds=
15493 cygwin* | mingw* | pw32* | cegcc*)
15494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15495 # When not using gcc, we currently assume that we are using
15496 # Microsoft Visual C++.
15497 if test "$GCC" != yes; then
15502 # we just hope/assume this is gcc and not c89 (= MSVC++)
15512 # On some targets, GNU ld is compatible enough with the native linker
15513 # that we're better off using the native interface for both.
15514 lt_use_gnu_ld_interface=no
15515 if test "$with_gnu_ld" = yes; then
15518 # The AIX port of GNU ld has always aspired to compatibility
15519 # with the native linker. However, as the warning in the GNU ld
15520 # block says, versions before 2.19.5* couldn't really create working
15521 # shared libraries, regardless of the interface used.
15522 case `$LD -v 2>&1` in
15523 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15524 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15525 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15527 lt_use_gnu_ld_interface=yes
15532 lt_use_gnu_ld_interface=yes
15537 if test "$lt_use_gnu_ld_interface" = yes; then
15538 # If archive_cmds runs LD, not CC, wlarc should be empty
15541 # Set some defaults for GNU ld with shared library support. These
15542 # are reset later if shared libraries are not supported. Putting them
15543 # here allows them to be overridden if necessary.
15544 runpath_var=LD_RUN_PATH
15545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15546 export_dynamic_flag_spec='${wl}--export-dynamic'
15547 # ancient GNU ld didn't support --whole-archive et. al.
15548 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15549 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15551 whole_archive_flag_spec=
15553 supports_anon_versioning=no
15554 case `$LD -v 2>&1` in
15555 *GNU\ gold*) supports_anon_versioning=yes ;;
15556 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15557 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15558 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15559 *\ 2.11.*) ;; # other 2.11 versions
15560 *) supports_anon_versioning=yes ;;
15563 # See if GNU ld supports shared libraries.
15566 # On AIX/PPC, the GNU linker is very broken
15567 if test "$host_cpu" != ia64; then
15571 *** Warning: the GNU linker, at least up to release 2.19, is reported
15572 *** to be unable to reliably create shared libraries on AIX.
15573 *** Therefore, libtool is disabling shared libraries support. If you
15574 *** really care for shared libraries, you may want to install binutils
15575 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15576 *** You will then need to restart the configuration process.
15585 # see comment about AmigaOS4 .so support
15586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15587 archive_expsym_cmds=''
15590 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)'
15591 hardcode_libdir_flag_spec
='-L$libdir'
15592 hardcode_minus_L
=yes
15598 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15599 allow_undefined_flag
=unsupported
15600 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15601 # support --undefined. This deserves some investigation. FIXME
15602 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608 cygwin
* | mingw
* | pw32
* | cegcc
*)
15609 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15610 # as there is no search path for DLLs.
15611 hardcode_libdir_flag_spec
='-L$libdir'
15612 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15613 allow_undefined_flag
=unsupported
15614 always_export_symbols
=no
15615 enable_shared_with_static_runtimes
=yes
15616 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15618 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15619 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15620 # If the export-symbols file already is a .def file (1st line
15621 # is EXPORTS), use it as is; otherwise, prepend...
15622 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15623 cp $export_symbols $output_objdir/$soname.def;
15625 echo EXPORTS > $output_objdir/$soname.def;
15626 cat $export_symbols >> $output_objdir/$soname.def;
15628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15635 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 link_all_deplibs
=yes
15641 hardcode_shlibpath_var
=no
15642 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15643 export_dynamic_flag_spec
='${wl}-E'
15644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15645 # Instead, shared libraries are loaded at an image base (0x10000000 by
15646 # default) and relocated if they conflict, which is a slow very memory
15647 # consuming and fragmenting process. To avoid this, we pick a random,
15648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15650 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15651 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'
15654 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15656 if test "$host_os" = linux-dietlibc
; then
15657 case $cc_basename in
15658 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15661 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15662 && test "$tmp_diet" = no
15665 tmp_sharedflag
='-shared'
15666 case $cc_basename,$host_cpu in
15667 pgcc
*) # Portland Group C compiler
15668 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'
15669 tmp_addflag
=' $pic_flag'
15671 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15672 # Portland Group f77 and f90 compilers
15673 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'
15674 tmp_addflag
=' $pic_flag -Mnomain' ;;
15675 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15676 tmp_addflag
=' -i_dynamic' ;;
15677 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15678 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15679 ifc
* | ifort
*) # Intel Fortran compiler
15680 tmp_addflag
=' -nofor_main' ;;
15681 lf95
*) # Lahey Fortran 8.1
15682 whole_archive_flag_spec
=
15683 tmp_sharedflag
='--shared' ;;
15684 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15685 tmp_sharedflag
='-qmkshrobj'
15687 nvcc
*) # Cuda Compiler Driver 2.2
15688 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'
15689 compiler_needs_object
=yes
15692 case `$CC -V 2>&1 | sed 5q` in
15693 *Sun\ C
*) # Sun C 5.9
15694 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'
15695 compiler_needs_object
=yes
15696 tmp_sharedflag
='-G' ;;
15697 *Sun\ F
*) # Sun Fortran 8.3
15698 tmp_sharedflag
='-G' ;;
15700 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 if test "x$supports_anon_versioning" = xyes
; then
15703 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15705 echo "local: *; };" >> $output_objdir/$libname.ver~
15706 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15709 case $cc_basename in
15710 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15711 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15712 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15713 hardcode_libdir_flag_spec
=
15714 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15715 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15716 if test "x$supports_anon_versioning" = xyes
; then
15717 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15719 echo "local: *; };" >> $output_objdir/$libname.ver~
15720 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15730 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15731 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15734 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15735 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15740 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15745 *** create shared libraries on Solaris systems. Therefore, libtool
15746 *** is disabling shared libraries support. We urge you to upgrade GNU
15747 *** binutils to release 2.9.1 or newer. Another option is to modify
15748 *** your PATH or compiler configuration so that the native linker is
15749 *** used, and then restart.
15752 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15753 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15760 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15761 case `$LD -v 2>&1` in
15762 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15766 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15767 *** reliably create shared libraries on SCO systems. Therefore, libtool
15768 *** is disabling shared libraries support. We urge you to upgrade GNU
15769 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15770 *** your PATH or compiler configuration so that the native linker is
15771 *** used, and then restart.
15776 # For security reasons, it is highly recommended that you always
15777 # use absolute paths for naming shared libraries, and exclude the
15778 # DT_RUNPATH tag from executables and libraries. But doing so
15779 # requires that you compile everything twice, which is a pain.
15780 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15781 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15782 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15794 hardcode_direct
=yes
15795 hardcode_shlibpath_var
=no
15799 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15800 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15808 if test "$ld_shlibs" = no
; then
15810 hardcode_libdir_flag_spec
=
15811 export_dynamic_flag_spec
=
15812 whole_archive_flag_spec
=
15815 # PORTME fill in a description of your system's linker (not GNU ld)
15818 allow_undefined_flag
=unsupported
15819 always_export_symbols
=yes
15820 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'
15821 # Note: this linker hardcodes the directories in LIBPATH if there
15822 # are no directories specified by -L.
15823 hardcode_minus_L
=yes
15824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15825 # Neither direct hardcoding nor static linking is supported with a
15827 hardcode_direct
=unsupported
15832 if test "$host_cpu" = ia64
; then
15833 # On IA64, the linker does run time linking by default, so we don't
15834 # have to do anything special.
15835 aix_use_runtimelinking
=no
15836 exp_sym_flag
='-Bexport'
15839 # If we're using GNU nm, then we don't want the "-C" option.
15840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15841 # Also, AIX nm treats weak defined symbols like other global
15842 # defined symbols, whereas GNU nm marks them as "W".
15843 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15844 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'
15846 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'
15848 aix_use_runtimelinking
=no
15850 # Test if we are trying to use run time linking or normal
15851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15852 # need to do runtime linking.
15853 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15854 for ld_flag
in $LDFLAGS; do
15855 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15856 aix_use_runtimelinking
=yes
15863 exp_sym_flag
='-bexport'
15864 no_entry_flag
='-bnoentry'
15867 # When large executables or shared objects are built, AIX ld can
15868 # have problems creating the table of contents. If linking a library
15869 # or program results in "error TOC overflow" add -mminimal-toc to
15870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15874 hardcode_direct
=yes
15875 hardcode_direct_absolute
=yes
15876 hardcode_libdir_separator
=':'
15877 link_all_deplibs
=yes
15878 file_list_spec
='${wl}-f,'
15880 if test "$GCC" = yes; then
15881 case $host_os in aix4.
[012]|aix4.
[012].
*)
15882 # We only want to do this on AIX 4.2 and lower, the check
15883 # below for broken collect2 doesn't work under 4.3+
15884 collect2name
=`${CC} -print-prog-name=collect2`
15885 if test -f "$collect2name" &&
15886 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15888 # We have reworked collect2
15891 # We have old collect2
15892 hardcode_direct
=unsupported
15893 # It fails to find uninstalled libraries when the uninstalled
15894 # path is not listed in the libpath. Setting hardcode_minus_L
15895 # to unsupported forces relinking
15896 hardcode_minus_L
=yes
15897 hardcode_libdir_flag_spec
='-L$libdir'
15898 hardcode_libdir_separator
=
15902 shared_flag
='-shared'
15903 if test "$aix_use_runtimelinking" = yes; then
15904 shared_flag
="$shared_flag "'${wl}-G'
15908 if test "$host_cpu" = ia64
; then
15909 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15910 # chokes on -Wl,-G. The following line is correct:
15913 if test "$aix_use_runtimelinking" = yes; then
15914 shared_flag
='${wl}-G'
15916 shared_flag
='${wl}-bM:SRE'
15921 export_dynamic_flag_spec
='${wl}-bexpall'
15922 # It seems that -bexpall does not export symbols beginning with
15923 # underscore (_), so it is better to generate a list of symbols to export.
15924 always_export_symbols
=yes
15925 if test "$aix_use_runtimelinking" = yes; then
15926 # Warning - without using the other runtime loading flags (-brtl),
15927 # -berok will link without error, but may produce a broken library.
15928 allow_undefined_flag
='-berok'
15929 # Determine the default libpath from the value encoded in an
15930 # empty executable.
15931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15942 if ac_fn_c_try_link
"$LINENO"; then :
15944 lt_aix_libpath_sed
='
15945 /Import File Strings/,/^$/ {
15951 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15952 # Check for a 64-bit object if we didn't find anything.
15953 if test -z "$aix_libpath"; then
15954 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15957 rm -f core conftest.err conftest.
$ac_objext \
15958 conftest
$ac_exeext conftest.
$ac_ext
15959 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15961 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15962 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"
15964 if test "$host_cpu" = ia64
; then
15965 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15966 allow_undefined_flag
="-z nodefs"
15967 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"
15969 # Determine the default libpath from the value encoded in an
15970 # empty executable.
15971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15982 if ac_fn_c_try_link
"$LINENO"; then :
15984 lt_aix_libpath_sed
='
15985 /Import File Strings/,/^$/ {
15991 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15992 # Check for a 64-bit object if we didn't find anything.
15993 if test -z "$aix_libpath"; then
15994 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15997 rm -f core conftest.err conftest.
$ac_objext \
15998 conftest
$ac_exeext conftest.
$ac_ext
15999 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16001 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16002 # Warning - without using the other run time loading flags,
16003 # -berok will link without error, but may produce a broken library.
16004 no_undefined_flag
=' ${wl}-bernotok'
16005 allow_undefined_flag
=' ${wl}-berok'
16006 if test "$with_gnu_ld" = yes; then
16007 # We only use this code for GNU lds that support --whole-archive.
16008 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16010 # Exported symbols can be pulled into shared objects from archives
16011 whole_archive_flag_spec
='$convenience'
16013 archive_cmds_need_lc
=yes
16014 # This is similar to how AIX traditionally builds its shared libraries.
16015 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'
16023 # see comment about AmigaOS4 .so support
16024 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025 archive_expsym_cmds
=''
16028 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)'
16029 hardcode_libdir_flag_spec
='-L$libdir'
16030 hardcode_minus_L
=yes
16036 export_dynamic_flag_spec
=-rdynamic
16039 cygwin
* | mingw
* | pw32
* | cegcc
*)
16040 # When not using gcc, we currently assume that we are using
16041 # Microsoft Visual C++.
16042 # hardcode_libdir_flag_spec is actually meaningless, as there is
16043 # no search path for DLLs.
16044 hardcode_libdir_flag_spec
=' '
16045 allow_undefined_flag
=unsupported
16046 # Tell ltmain to make .lib files, not .a files.
16048 # Tell ltmain to make .dll files, not .so files.
16050 # FIXME: Setting linknames here is a bad hack.
16051 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16052 # The linker will automatically build a .lib file if we build a DLL.
16053 old_archive_from_new_cmds
='true'
16054 # FIXME: Should let the user specify the lib program.
16055 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16056 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16057 enable_shared_with_static_runtimes
=yes
16060 darwin
* | rhapsody
*)
16063 archive_cmds_need_lc
=no
16065 hardcode_automatic
=yes
16066 hardcode_shlibpath_var
=unsupported
16067 if test "$lt_cv_ld_force_load" = "yes"; then
16068 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\"`'
16070 whole_archive_flag_spec
=''
16072 link_all_deplibs
=yes
16073 allow_undefined_flag
="$_lt_dar_allow_undefined"
16074 case $cc_basename in
16075 ifort
*) _lt_dar_can_shared
=yes ;;
16076 *) _lt_dar_can_shared
=$GCC ;;
16078 if test "$_lt_dar_can_shared" = "yes"; then
16079 output_verbose_link_cmd
=func_echo_all
16080 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16081 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16082 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}"
16083 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}"
16092 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_libdir_flag_spec
='-L$libdir'
16094 hardcode_shlibpath_var
=no
16097 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16098 # support. Future versions do this automatically, but an explicit c++rt0.o
16099 # does not break anything, and helps significantly (at the cost of a little
16102 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16103 hardcode_libdir_flag_spec
='-R$libdir'
16104 hardcode_direct
=yes
16105 hardcode_shlibpath_var
=no
16108 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16110 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct
=yes
16112 hardcode_minus_L
=yes
16113 hardcode_shlibpath_var
=no
16116 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16117 freebsd
* | dragonfly
*)
16118 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16119 hardcode_libdir_flag_spec
='-R$libdir'
16120 hardcode_direct
=yes
16121 hardcode_shlibpath_var
=no
16125 if test "$GCC" = yes; then
16126 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'
16128 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'
16130 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16131 hardcode_libdir_separator
=:
16132 hardcode_direct
=yes
16134 # hardcode_minus_L: Not really in the search PATH,
16135 # but as the default location of the library.
16136 hardcode_minus_L
=yes
16137 export_dynamic_flag_spec
='${wl}-E'
16141 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16142 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16146 if test "$with_gnu_ld" = no
; then
16147 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16148 hardcode_libdir_flag_spec_ld
='+b $libdir'
16149 hardcode_libdir_separator
=:
16150 hardcode_direct
=yes
16151 hardcode_direct_absolute
=yes
16152 export_dynamic_flag_spec
='${wl}-E'
16153 # hardcode_minus_L: Not really in the search PATH,
16154 # but as the default location of the library.
16155 hardcode_minus_L
=yes
16160 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16163 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16175 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16182 # Older versions of the 11.00 compiler do not understand -b yet
16183 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16185 $as_echo_n "checking if $CC understands -b... " >&6; }
16186 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16187 $as_echo_n "(cached) " >&6
16189 lt_cv_prog_compiler__b
=no
16190 save_LDFLAGS
="$LDFLAGS"
16191 LDFLAGS
="$LDFLAGS -b"
16192 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16193 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16194 # The linker can only warn and ignore the option if not recognized
16195 # So say no if there are warnings
16196 if test -s conftest.err
; then
16197 # Append any errors to the config.log.
16198 cat conftest.err
1>&5
16199 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16200 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16201 if diff conftest.exp conftest.er2
>/dev
/null
; then
16202 lt_cv_prog_compiler__b
=yes
16205 lt_cv_prog_compiler__b
=yes
16209 LDFLAGS
="$save_LDFLAGS"
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16213 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16215 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16216 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16224 if test "$with_gnu_ld" = no
; then
16225 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16226 hardcode_libdir_separator
=:
16231 hardcode_shlibpath_var
=no
16234 hardcode_direct
=yes
16235 hardcode_direct_absolute
=yes
16236 export_dynamic_flag_spec
='${wl}-E'
16238 # hardcode_minus_L: Not really in the search PATH,
16239 # but as the default location of the library.
16240 hardcode_minus_L
=yes
16246 irix5
* | irix6
* | nonstopux
*)
16247 if test "$GCC" = yes; then
16248 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'
16249 # Try to use the -exported_symbol ld option, if it does not
16250 # work, assume that -exports_file does not work either and
16251 # implicitly export all symbols.
16252 save_LDFLAGS
="$LDFLAGS"
16253 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16258 if ac_fn_c_try_link
"$LINENO"; then :
16259 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'
16262 rm -f core conftest.err conftest.
$ac_objext \
16263 conftest
$ac_exeext conftest.
$ac_ext
16264 LDFLAGS
="$save_LDFLAGS"
16266 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'
16267 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'
16269 archive_cmds_need_lc
='no'
16270 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16271 hardcode_libdir_separator
=:
16273 link_all_deplibs
=yes
16277 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16278 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16280 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16282 hardcode_libdir_flag_spec
='-R$libdir'
16283 hardcode_direct
=yes
16284 hardcode_shlibpath_var
=no
16288 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_direct
=yes
16290 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16291 hardcode_libdir_separator
=:
16292 hardcode_shlibpath_var
=no
16299 if test -f /usr
/libexec
/ld.so
; then
16300 hardcode_direct
=yes
16301 hardcode_shlibpath_var
=no
16302 hardcode_direct_absolute
=yes
16303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16304 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16306 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16307 export_dynamic_flag_spec
='${wl}-E'
16310 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16311 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_libdir_flag_spec
='-R$libdir'
16315 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16316 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16326 hardcode_libdir_flag_spec
='-L$libdir'
16327 hardcode_minus_L
=yes
16328 allow_undefined_flag
=unsupported
16329 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'
16330 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16334 if test "$GCC" = yes; then
16335 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16336 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'
16338 allow_undefined_flag
=' -expect_unresolved \*'
16339 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'
16341 archive_cmds_need_lc
='no'
16342 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16343 hardcode_libdir_separator
=:
16346 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16347 if test "$GCC" = yes; then
16348 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16349 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'
16350 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16352 allow_undefined_flag
=' -expect_unresolved \*'
16353 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'
16354 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~
16355 $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'
16357 # Both c and cxx compiler support -rpath directly
16358 hardcode_libdir_flag_spec
='-rpath $libdir'
16360 archive_cmds_need_lc
='no'
16361 hardcode_libdir_separator
=:
16365 no_undefined_flag
=' -z defs'
16366 if test "$GCC" = yes; then
16368 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16369 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16370 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16372 case `$CC -V 2>&1` in
16375 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16376 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16377 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16381 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16383 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16387 hardcode_libdir_flag_spec
='-R$libdir'
16388 hardcode_shlibpath_var
=no
16390 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16392 # The compiler driver will combine and reorder linker options,
16393 # but understands `-z linker_flag'. GCC discards it without `$wl',
16394 # but is careful enough not to reorder.
16395 # Supported since Solaris 2.6 (maybe 2.5.1?)
16396 if test "$GCC" = yes; then
16397 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16399 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16403 link_all_deplibs
=yes
16407 if test "x$host_vendor" = xsequent
; then
16408 # Use $CC to link under sequent, because it throws in some extra .o
16409 # files that make .init and .fini sections work.
16410 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16412 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec
='-L$libdir'
16415 hardcode_direct
=yes
16416 hardcode_minus_L
=yes
16417 hardcode_shlibpath_var
=no
16421 case $host_vendor in
16423 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_direct
=yes # is this really true???
16427 ## LD is ld it makes a PLAMLIB
16428 ## CC just makes a GrossModule.
16429 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16430 reload_cmds
='$CC -r -o $output$reload_objs'
16434 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16438 runpath_var
='LD_RUN_PATH'
16439 hardcode_shlibpath_var
=no
16443 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444 hardcode_shlibpath_var
=no
16445 export_dynamic_flag_spec
='-Bexport'
16449 if test -d /usr
/nec
; then
16450 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_shlibpath_var
=no
16452 runpath_var
=LD_RUN_PATH
16453 hardcode_runpath_var
=yes
16458 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16459 no_undefined_flag
='${wl}-z,text'
16460 archive_cmds_need_lc
=no
16461 hardcode_shlibpath_var
=no
16462 runpath_var
='LD_RUN_PATH'
16464 if test "$GCC" = yes; then
16465 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16466 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16473 sysv5
* | sco3.2v5
* | sco5v6
*)
16474 # Note: We can NOT use -z defs as we might desire, because we do not
16475 # link with -lc, and that would cause any symbols used from libc to
16476 # always be unresolved, which means just about no library would
16477 # ever link correctly. If we're not using GNU ld we use -z text
16478 # though, which does catch some bad symbols but isn't as heavy-handed
16480 no_undefined_flag
='${wl}-z,text'
16481 allow_undefined_flag
='${wl}-z,nodefs'
16482 archive_cmds_need_lc
=no
16483 hardcode_shlibpath_var
=no
16484 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16485 hardcode_libdir_separator
=':'
16486 link_all_deplibs
=yes
16487 export_dynamic_flag_spec
='${wl}-Bexport'
16488 runpath_var
='LD_RUN_PATH'
16490 if test "$GCC" = yes; then
16491 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16500 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_libdir_flag_spec
='-L$libdir'
16502 hardcode_shlibpath_var
=no
16510 if test x
$host_vendor = xsni
; then
16512 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16513 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16520 $as_echo "$ld_shlibs" >&6; }
16521 test "$ld_shlibs" = no
&& can_build_shared
=no
16523 with_gnu_ld
=$with_gnu_ld
16540 # Do we need to explicitly link libc?
16542 case "x$archive_cmds_need_lc" in
16544 # Assume -lc should be added
16545 archive_cmds_need_lc
=yes
16547 if test "$enable_shared" = yes && test "$GCC" = yes; then
16548 case $archive_cmds in
16550 # FIXME: we may have to deal with multi-command sequences.
16553 # Test whether the compiler implicitly links with -lc since on some
16554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16555 # to ld, don't add -lc before -lgcc.
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16557 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16558 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16559 $as_echo_n "(cached) " >&6
16562 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16565 (eval $ac_compile) 2>&5
16567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16568 test $ac_status = 0; } 2>conftest.err
; then
16571 libobjs
=conftest.
$ac_objext
16573 wl
=$lt_prog_compiler_wl
16574 pic_flag
=$lt_prog_compiler_pic
16580 lt_save_allow_undefined_flag
=$allow_undefined_flag
16581 allow_undefined_flag
=
16582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16583 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16586 test $ac_status = 0; }
16588 lt_cv_archive_cmds_need_lc
=no
16590 lt_cv_archive_cmds_need_lc
=yes
16592 allow_undefined_flag
=$lt_save_allow_undefined_flag
16594 cat conftest.err
1>&5
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16600 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16601 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16765 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16767 if test "$GCC" = yes; then
16769 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16770 *) lt_awk_arg
="/^libraries:/" ;;
16773 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16774 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16776 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16777 case $lt_search_path_spec in
16779 # if the path contains ";" then we assume it to be the separator
16780 # otherwise default to the standard path separator (i.e. ":") - it is
16781 # assumed that no part of a normal pathname contains ";" but that should
16782 # okay in the real world where ";" in dirpaths is itself problematic.
16783 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16786 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16789 # Ok, now we have the path, separated by spaces, we can step through it
16790 # and add multilib dir if necessary.
16791 lt_tmp_lt_search_path_spec
=
16792 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16793 for lt_sys_path
in $lt_search_path_spec; do
16794 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16795 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16797 test -d "$lt_sys_path" && \
16798 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16801 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16802 BEGIN {RS=" "; FS="/|\n";} {
16805 for (lt_i = NF; lt_i > 0; lt_i--) {
16806 if ($lt_i != "" && $lt_i != ".") {
16807 if ($lt_i == "..") {
16810 if (lt_count == 0) {
16811 lt_foo="/" $lt_i lt_foo;
16818 if (lt_foo != "") { lt_freq[lt_foo]++; }
16819 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16821 # AWK program above erroneously prepends '/' to C:/dos/paths
16824 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16825 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16827 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16829 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16831 library_names_spec
=
16832 libname_spec
='lib$name'
16836 postuninstall_cmds
=
16840 shlibpath_overrides_runpath
=unknown
16842 dynamic_linker
="$host_os ld.so"
16843 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16844 need_lib_prefix
=unknown
16845 hardcode_into_libs
=no
16847 # when you set need_version to no, make sure it does not cause -set_version
16848 # flags to be left without arguments
16849 need_version
=unknown
16854 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16855 shlibpath_var
=LIBPATH
16857 # AIX 3 has no versioning support, so we append a major version to the name.
16858 soname_spec
='${libname}${release}${shared_ext}$major'
16865 hardcode_into_libs
=yes
16866 if test "$host_cpu" = ia64
; then
16867 # AIX 5 supports IA64
16868 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16869 shlibpath_var
=LD_LIBRARY_PATH
16871 # With GCC up to 2.95.x, collect2 would create an import file
16872 # for dependence libraries. The import file would start with
16873 # the line `#! .'. This would cause the generated library to
16874 # depend on `.', always an invalid library. This was fixed in
16875 # development snapshots of GCC prior to 3.0.
16877 aix4 | aix4.
[01] | aix4.
[01].
*)
16878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16880 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16883 can_build_shared
=no
16887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16888 # soname into executable. Probably we can add versioning support to
16889 # collect2, so additional links can be useful in future.
16890 if test "$aix_use_runtimelinking" = yes; then
16891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16892 # instead of lib<name>.a to let people know that these are not
16893 # typical AIX shared libraries.
16894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 # We preserve .a as extension for shared libraries through AIX4.2
16897 # and later when we are not doing run time linking.
16898 library_names_spec
='${libname}${release}.a $libname.a'
16899 soname_spec
='${libname}${release}${shared_ext}$major'
16901 shlibpath_var
=LIBPATH
16908 # Since July 2007 AmigaOS4 officially supports .so libraries.
16909 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 library_names_spec
='$libname.ixlibrary $libname.a'
16914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16915 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'
16921 library_names_spec
='${libname}${shared_ext}'
16922 dynamic_linker
="$host_os ld.so"
16923 shlibpath_var
=LIBRARY_PATH
16929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec
='${libname}${release}${shared_ext}$major'
16931 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16932 shlibpath_var
=LD_LIBRARY_PATH
16933 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16934 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16935 # the default ld.so.conf also contains /usr/contrib/lib and
16936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16937 # libtool to hard-code these into programs
16940 cygwin
* | mingw
* | pw32
* | cegcc
*)
16941 version_type
=windows
16946 case $GCC,$host_os in
16947 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16948 library_names_spec
='$libname.dll.a'
16949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16950 postinstall_cmds
='base_file=`basename \${file}`~
16951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16952 dldir=$destdir/`dirname \$dlpath`~
16953 test -d \$dldir || mkdir -p \$dldir~
16954 $install_prog $dir/$dlname \$dldir/$dlname~
16955 chmod a+x \$dldir/$dlname~
16956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16959 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16960 dlpath=$dir/\$dldll~
16962 shlibpath_overrides_runpath
=yes
16966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16967 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16969 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16972 # MinGW DLLs use traditional 'lib' prefix
16973 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16976 # pw32 DLLs use 'pw' prefix rather than 'lib'
16977 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16983 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16986 dynamic_linker
='Win32 ld.exe'
16987 # FIXME: first we should search . and the directory the executable is in
16991 darwin
* | rhapsody
*)
16992 dynamic_linker
="$host_os dyld"
16993 version_type
=darwin
16996 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16997 soname_spec
='${libname}${release}${major}$shared_ext'
16998 shlibpath_overrides_runpath
=yes
16999 shlibpath_var
=DYLD_LIBRARY_PATH
17000 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17002 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17003 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17011 soname_spec
='${libname}${release}${shared_ext}$major'
17012 shlibpath_var
=LD_LIBRARY_PATH
17015 freebsd
* | dragonfly
*)
17016 # DragonFly does not have aout. When/if they implement a new
17017 # versioning mechanism, adjust this.
17018 if test -x /usr
/bin
/objformat
; then
17019 objformat
=`/usr/bin/objformat`
17022 freebsd
[23].
*) objformat
=aout
;;
17023 *) objformat
=elf
;;
17026 version_type
=freebsd-
$objformat
17027 case $version_type in
17029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17034 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17038 shlibpath_var
=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath
=yes
17043 freebsd3.
[01]* | freebsdelf3.
[01]*)
17044 shlibpath_overrides_runpath
=yes
17045 hardcode_into_libs
=yes
17047 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17048 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17049 shlibpath_overrides_runpath
=no
17050 hardcode_into_libs
=yes
17052 *) # from 4.6 on, and DragonFly
17053 shlibpath_overrides_runpath
=yes
17054 hardcode_into_libs
=yes
17063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17064 soname_spec
='${libname}${release}${shared_ext}$major'
17065 shlibpath_var
=LD_LIBRARY_PATH
17066 hardcode_into_libs
=yes
17073 dynamic_linker
="$host_os runtime_loader"
17074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17075 soname_spec
='${libname}${release}${shared_ext}$major'
17076 shlibpath_var
=LIBRARY_PATH
17077 shlibpath_overrides_runpath
=yes
17078 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17079 hardcode_into_libs
=yes
17082 hpux9
* | hpux10
* | hpux11
*)
17083 # Give a soname corresponding to the major version so that dld.sl refuses to
17084 # link against other versions.
17091 hardcode_into_libs
=yes
17092 dynamic_linker
="$host_os dld.so"
17093 shlibpath_var
=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 soname_spec
='${libname}${release}${shared_ext}$major'
17097 if test "X$HPUX_IA64_MODE" = X32
; then
17098 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17100 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17102 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17106 hardcode_into_libs
=yes
17107 dynamic_linker
="$host_os dld.sl"
17108 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17109 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111 soname_spec
='${libname}${release}${shared_ext}$major'
17112 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17113 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17117 dynamic_linker
="$host_os dld.sl"
17118 shlibpath_var
=SHLIB_PATH
17119 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec
='${libname}${release}${shared_ext}$major'
17124 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17125 postinstall_cmds
='chmod 555 $lib'
17126 # or fails outright, so override atomically:
17127 install_override_mode
=555
17134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17135 soname_spec
='${libname}${release}${shared_ext}$major'
17136 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17137 shlibpath_var
=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath
=no
17139 hardcode_into_libs
=yes
17142 irix5
* | irix6
* | nonstopux
*)
17144 nonstopux
*) version_type
=nonstopux
;;
17146 if test "$lt_cv_prog_gnu_ld" = yes; then
17154 soname_spec
='${libname}${release}${shared_ext}$major'
17155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17157 irix5
* | nonstopux
*)
17158 libsuff
= shlibsuff
=
17161 case $LD in # libtool.m4 will add one of these switches to LD
17162 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17163 libsuff
= shlibsuff
= libmagic
=32-bit;;
17164 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17165 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17166 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17167 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17168 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17172 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17173 shlibpath_overrides_runpath
=no
17174 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17176 hardcode_into_libs
=yes
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17184 # This must be Linux ELF.
17185 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec
='${libname}${release}${shared_ext}$major'
17191 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192 shlibpath_var
=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath
=no
17195 # Some binutils ld are patched to set DT_RUNPATH
17196 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17197 $as_echo_n "(cached) " >&6
17199 lt_cv_shlibpath_overrides_runpath
=no
17200 save_LDFLAGS
=$LDFLAGS
17201 save_libdir
=$libdir
17202 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17203 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17215 if ac_fn_c_try_link
"$LINENO"; then :
17216 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17217 lt_cv_shlibpath_overrides_runpath
=yes
17220 rm -f core conftest.err conftest.
$ac_objext \
17221 conftest
$ac_exeext conftest.
$ac_ext
17222 LDFLAGS
=$save_LDFLAGS
17223 libdir
=$save_libdir
17227 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17229 # This implies no fast_install, which is unacceptable.
17230 # Some rework will be needed to allow for fast_install
17231 # before this can be enabled.
17232 hardcode_into_libs
=yes
17234 # Append ld.so.conf contents to the search path
17235 if test -f /etc
/ld.so.conf
; then
17236 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' ' '`
17237 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17240 # We used to test for /lib/ld.so.1 and disable shared libraries on
17241 # powerpc, because MkLinux only supported shared libraries with the
17242 # GNU dynamic linker. Since this was broken with cross compilers,
17243 # most powerpc-linux boxes support dynamic linking these days and
17244 # people can always --disable-shared, the test was removed, and we
17245 # assume the GNU/Linux dynamic linker is in use.
17246 dynamic_linker
='GNU/Linux ld.so'
17253 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256 dynamic_linker
='NetBSD (a.out) ld.so'
17258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 soname_spec
='${libname}${release}${shared_ext}$major'
17260 dynamic_linker
='NetBSD ld.elf_so'
17262 shlibpath_var
=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath
=yes
17264 hardcode_into_libs
=yes
17269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var
=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath
=yes
17278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec
='${libname}${release}${shared_ext}$major'
17280 shlibpath_var
=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath
=no
17282 hardcode_into_libs
=yes
17283 dynamic_linker
='ldqnx.so'
17288 sys_lib_dlsearch_path_spec
="/usr/lib"
17290 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17292 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17293 *) need_version
=no
;;
17295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17296 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17297 shlibpath_var
=LD_LIBRARY_PATH
17298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17300 openbsd2.
[89] | openbsd2.
[89].
*)
17301 shlibpath_overrides_runpath
=no
17304 shlibpath_overrides_runpath
=yes
17308 shlibpath_overrides_runpath
=yes
17313 libname_spec
='$name'
17316 library_names_spec
='$libname${shared_ext} $libname.a'
17317 dynamic_linker
='OS/2 ld.exe'
17318 shlibpath_var
=LIBPATH
17321 osf3
* | osf4
* | osf5
*)
17325 soname_spec
='${libname}${release}${shared_ext}$major'
17326 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 shlibpath_var
=LD_LIBRARY_PATH
17328 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17329 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 soname_spec
='${libname}${release}${shared_ext}$major'
17342 shlibpath_var
=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath
=yes
17344 hardcode_into_libs
=yes
17345 # ldd complains unless libraries are executable
17346 postinstall_cmds
='chmod +x $lib'
17351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353 shlibpath_var
=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath
=yes
17355 if test "$with_gnu_ld" = yes; then
17363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec
='${libname}${release}${shared_ext}$major'
17365 shlibpath_var
=LD_LIBRARY_PATH
17366 case $host_vendor in
17368 shlibpath_overrides_runpath
=no
17370 runpath_var
=LD_RUN_PATH
17378 shlibpath_overrides_runpath
=no
17379 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17385 if test -d /usr
/nec
;then
17387 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17388 soname_spec
='$libname${shared_ext}.$major'
17389 shlibpath_var
=LD_LIBRARY_PATH
17393 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17394 version_type
=freebsd-elf
17397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17398 soname_spec
='${libname}${release}${shared_ext}$major'
17399 shlibpath_var
=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath
=yes
17401 hardcode_into_libs
=yes
17402 if test "$with_gnu_ld" = yes; then
17403 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17405 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17408 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17412 sys_lib_dlsearch_path_spec
='/usr/lib'
17416 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421 shlibpath_var
=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath
=no
17423 hardcode_into_libs
=yes
17428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec
='${libname}${release}${shared_ext}$major'
17430 shlibpath_var
=LD_LIBRARY_PATH
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17438 $as_echo "$dynamic_linker" >&6; }
17439 test "$dynamic_linker" = no
&& can_build_shared
=no
17441 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17442 if test "$GCC" = yes; then
17443 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17447 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17450 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17545 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17547 if test -n "$hardcode_libdir_flag_spec" ||
17548 test -n "$runpath_var" ||
17549 test "X$hardcode_automatic" = "Xyes" ; then
17551 # We can hardcode non-existent directories.
17552 if test "$hardcode_direct" != no
&&
17553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17554 # have to relink, otherwise we might link with an installed library
17555 # when we should be linking with a yet-to-be-installed one
17556 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17557 test "$hardcode_minus_L" != no
; then
17558 # Linking always hardcodes the temporary library directory.
17559 hardcode_action
=relink
17561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17562 hardcode_action
=immediate
17565 # We cannot hardcode anything, or else we can only hardcode existing
17567 hardcode_action
=unsupported
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17570 $as_echo "$hardcode_action" >&6; }
17572 if test "$hardcode_action" = relink ||
17573 test "$inherit_rpath" = yes; then
17574 # Fast installation is not supported
17575 enable_fast_install
=no
17576 elif test "$shlibpath_overrides_runpath" = yes ||
17577 test "$enable_shared" = no
; then
17578 # Fast installation is not necessary
17579 enable_fast_install
=needless
17587 if test "x$enable_dlopen" != xyes
; then
17588 enable_dlopen
=unknown
17589 enable_dlopen_self
=unknown
17590 enable_dlopen_self_static
=unknown
17597 lt_cv_dlopen
="load_add_on"
17599 lt_cv_dlopen_self
=yes
17602 mingw
* | pw32
* | cegcc
*)
17603 lt_cv_dlopen
="LoadLibrary"
17608 lt_cv_dlopen
="dlopen"
17613 # if libdl is installed we need to link against it
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17617 $as_echo_n "(cached) " >&6
17619 ac_check_lib_save_LIBS
=$LIBS
17621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17624 /* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17639 if ac_fn_c_try_link
"$LINENO"; then :
17640 ac_cv_lib_dl_dlopen
=yes
17642 ac_cv_lib_dl_dlopen
=no
17644 rm -f core conftest.err conftest.
$ac_objext \
17645 conftest
$ac_exeext conftest.
$ac_ext
17646 LIBS
=$ac_check_lib_save_LIBS
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17650 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17651 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17654 lt_cv_dlopen
="dyld"
17656 lt_cv_dlopen_self
=yes
17663 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17664 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17665 lt_cv_dlopen
="shl_load"
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17668 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17669 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17672 ac_check_lib_save_LIBS
=$LIBS
17674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17687 return shl_load ();
17692 if ac_fn_c_try_link
"$LINENO"; then :
17693 ac_cv_lib_dld_shl_load
=yes
17695 ac_cv_lib_dld_shl_load
=no
17697 rm -f core conftest.err conftest.
$ac_objext \
17698 conftest
$ac_exeext conftest.
$ac_ext
17699 LIBS
=$ac_check_lib_save_LIBS
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17702 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17703 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17704 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17706 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17707 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17708 lt_cv_dlopen
="dlopen"
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17713 $as_echo_n "(cached) " >&6
17715 ac_check_lib_save_LIBS
=$LIBS
17717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17735 if ac_fn_c_try_link
"$LINENO"; then :
17736 ac_cv_lib_dl_dlopen
=yes
17738 ac_cv_lib_dl_dlopen
=no
17740 rm -f core conftest.err conftest.
$ac_objext \
17741 conftest
$ac_exeext conftest.
$ac_ext
17742 LIBS
=$ac_check_lib_save_LIBS
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17746 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17747 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17750 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17752 $as_echo_n "(cached) " >&6
17754 ac_check_lib_save_LIBS
=$LIBS
17755 LIBS
="-lsvld $LIBS"
17756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17774 if ac_fn_c_try_link
"$LINENO"; then :
17775 ac_cv_lib_svld_dlopen
=yes
17777 ac_cv_lib_svld_dlopen
=no
17779 rm -f core conftest.err conftest.
$ac_objext \
17780 conftest
$ac_exeext conftest.
$ac_ext
17781 LIBS
=$ac_check_lib_save_LIBS
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17785 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17786 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17791 $as_echo_n "(cached) " >&6
17793 ac_check_lib_save_LIBS
=$LIBS
17795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17808 return dld_link ();
17813 if ac_fn_c_try_link
"$LINENO"; then :
17814 ac_cv_lib_dld_dld_link
=yes
17816 ac_cv_lib_dld_dld_link
=no
17818 rm -f core conftest.err conftest.
$ac_objext \
17819 conftest
$ac_exeext conftest.
$ac_ext
17820 LIBS
=$ac_check_lib_save_LIBS
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17823 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17824 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17825 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17846 if test "x$lt_cv_dlopen" != xno
; then
17852 case $lt_cv_dlopen in
17854 save_CPPFLAGS
="$CPPFLAGS"
17855 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17857 save_LDFLAGS
="$LDFLAGS"
17858 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17861 LIBS
="$lt_cv_dlopen_libs $LIBS"
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17864 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17865 if test "${lt_cv_dlopen_self+set}" = set; then :
17866 $as_echo_n "(cached) " >&6
17868 if test "$cross_compiling" = yes; then :
17869 lt_cv_dlopen_self
=cross
17871 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17872 lt_status
=$lt_dlunknown
17873 cat > conftest.
$ac_ext <<_LT_EOF
17874 #line 17874 "configure"
17875 #include "confdefs.h"
17884 # define LT_DLGLOBAL RTLD_GLOBAL
17887 # define LT_DLGLOBAL DL_GLOBAL
17889 # define LT_DLGLOBAL 0
17893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17894 find out it does not work in some platform. */
17895 #ifndef LT_DLLAZY_OR_NOW
17897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17900 # define LT_DLLAZY_OR_NOW DL_LAZY
17903 # define LT_DLLAZY_OR_NOW RTLD_NOW
17906 # define LT_DLLAZY_OR_NOW DL_NOW
17908 # define LT_DLLAZY_OR_NOW 0
17915 /* When -fvisbility=hidden is used, assume the code has been annotated
17916 correspondingly for the symbols needed. */
17917 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17918 void fnord () __attribute__((visibility("default")));
17921 void fnord () { int i=42; }
17924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17925 int status = $lt_dlunknown;
17929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17933 else puts (dlerror ());
17935 /* dlclose (self); */
17943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17944 (eval $ac_link) 2>&5
17946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17948 (.
/conftest
; exit; ) >&5 2>/dev
/null
17950 case x
$lt_status in
17951 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17952 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17953 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17956 # compilation failed
17957 lt_cv_dlopen_self
=no
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17965 $as_echo "$lt_cv_dlopen_self" >&6; }
17967 if test "x$lt_cv_dlopen_self" = xyes
; then
17968 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17970 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17971 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17972 $as_echo_n "(cached) " >&6
17974 if test "$cross_compiling" = yes; then :
17975 lt_cv_dlopen_self_static
=cross
17977 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17978 lt_status
=$lt_dlunknown
17979 cat > conftest.
$ac_ext <<_LT_EOF
17980 #line 17980 "configure"
17981 #include "confdefs.h"
17990 # define LT_DLGLOBAL RTLD_GLOBAL
17993 # define LT_DLGLOBAL DL_GLOBAL
17995 # define LT_DLGLOBAL 0
17999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18000 find out it does not work in some platform. */
18001 #ifndef LT_DLLAZY_OR_NOW
18003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18006 # define LT_DLLAZY_OR_NOW DL_LAZY
18009 # define LT_DLLAZY_OR_NOW RTLD_NOW
18012 # define LT_DLLAZY_OR_NOW DL_NOW
18014 # define LT_DLLAZY_OR_NOW 0
18021 /* When -fvisbility=hidden is used, assume the code has been annotated
18022 correspondingly for the symbols needed. */
18023 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18024 void fnord () __attribute__((visibility("default")));
18027 void fnord () { int i=42; }
18030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18031 int status = $lt_dlunknown;
18035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18039 else puts (dlerror ());
18041 /* dlclose (self); */
18049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18050 (eval $ac_link) 2>&5
18052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18053 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18054 (.
/conftest
; exit; ) >&5 2>/dev
/null
18056 case x
$lt_status in
18057 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18058 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18059 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18062 # compilation failed
18063 lt_cv_dlopen_self_static
=no
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18071 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18074 CPPFLAGS
="$save_CPPFLAGS"
18075 LDFLAGS
="$save_LDFLAGS"
18080 case $lt_cv_dlopen_self in
18081 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18082 *) enable_dlopen_self
=unknown
;;
18085 case $lt_cv_dlopen_self_static in
18086 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18087 *) enable_dlopen_self_static
=unknown
;;
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18110 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18111 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18112 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18113 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18115 $as_echo "yes" >&6; }
18117 # FIXME - insert some real tests, host_os isn't really good enough
18120 if test -n "$STRIP" ; then
18121 striplib
="$STRIP -x"
18122 old_striplib
="$STRIP -S"
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18124 $as_echo "yes" >&6; }
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18127 $as_echo "no" >&6; }
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18132 $as_echo "no" >&6; }
18148 # Report which library types will actually be built
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18150 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18152 $as_echo "$can_build_shared" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18155 $as_echo_n "checking whether to build shared libraries... " >&6; }
18156 test "$can_build_shared" = "no" && enable_shared
=no
18158 # On AIX, shared libraries and static libraries use the same namespace, and
18159 # are all built from PIC.
18162 test "$enable_shared" = yes && enable_static
=no
18163 if test -n "$RANLIB"; then
18164 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18165 postinstall_cmds
='$RANLIB $lib'
18170 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18171 test "$enable_shared" = yes && enable_static
=no
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18176 $as_echo "$enable_shared" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18179 $as_echo_n "checking whether to build static libraries... " >&6; }
18180 # Make sure either enable_shared or enable_static is yes.
18181 test "$enable_shared" = yes || enable_static
=yes
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18183 $as_echo "$enable_static" >&6; }
18190 ac_cpp
='$CPP $CPPFLAGS'
18191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18197 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18198 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18199 (test "X$CXX" != "Xg++"))) ; then
18201 ac_cpp
='$CXXCPP $CPPFLAGS'
18202 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18206 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18207 if test -z "$CXXCPP"; then
18208 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18209 $as_echo_n "(cached) " >&6
18211 # Double quotes because CXXCPP needs to be expanded
18212 for CXXCPP
in "$CXX -E" "/lib/cpp"
18214 ac_preproc_ok
=false
18215 for ac_cxx_preproc_warn_flag
in '' yes
18217 # Use a header file that comes with gcc, so configuring glibc
18218 # with a fresh cross-compiler works.
18219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18220 # <limits.h> exists even on freestanding compilers.
18221 # On the NeXT, cc -E runs the code through the compiler's parser,
18222 # not just through cpp. "Syntax error" is here to catch this case.
18223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18226 # include <limits.h>
18228 # include <assert.h>
18232 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18235 # Broken: fails on valid input.
18238 rm -f conftest.err conftest.
$ac_ext
18240 # OK, works on sane cases. Now check whether nonexistent headers
18241 # can be detected and how.
18242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18244 #include <ac_nonexistent.h>
18246 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18247 # Broken: success on invalid input.
18250 # Passes both tests.
18254 rm -f conftest.err conftest.
$ac_ext
18257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18258 rm -f conftest.err conftest.
$ac_ext
18259 if $ac_preproc_ok; then :
18264 ac_cv_prog_CXXCPP
=$CXXCPP
18267 CXXCPP
=$ac_cv_prog_CXXCPP
18269 ac_cv_prog_CXXCPP
=$CXXCPP
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18272 $as_echo "$CXXCPP" >&6; }
18273 ac_preproc_ok
=false
18274 for ac_cxx_preproc_warn_flag
in '' yes
18276 # Use a header file that comes with gcc, so configuring glibc
18277 # with a fresh cross-compiler works.
18278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 # <limits.h> exists even on freestanding compilers.
18280 # On the NeXT, cc -E runs the code through the compiler's parser,
18281 # not just through cpp. "Syntax error" is here to catch this case.
18282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18285 # include <limits.h>
18287 # include <assert.h>
18291 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18294 # Broken: fails on valid input.
18297 rm -f conftest.err conftest.
$ac_ext
18299 # OK, works on sane cases. Now check whether nonexistent headers
18300 # can be detected and how.
18301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18303 #include <ac_nonexistent.h>
18305 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18306 # Broken: success on invalid input.
18309 # Passes both tests.
18313 rm -f conftest.err conftest.
$ac_ext
18316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18317 rm -f conftest.err conftest.
$ac_ext
18318 if $ac_preproc_ok; then :
18321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18323 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18324 See \`config.log' for more details." "$LINENO" 5; }
18328 ac_cpp
='$CPP $CPPFLAGS'
18329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18334 _lt_caught_CXX_error
=yes
18338 ac_cpp
='$CXXCPP $CPPFLAGS'
18339 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18343 archive_cmds_need_lc_CXX
=no
18344 allow_undefined_flag_CXX
=
18345 always_export_symbols_CXX
=no
18346 archive_expsym_cmds_CXX
=
18347 compiler_needs_object_CXX
=no
18348 export_dynamic_flag_spec_CXX
=
18349 hardcode_direct_CXX
=no
18350 hardcode_direct_absolute_CXX
=no
18351 hardcode_libdir_flag_spec_CXX
=
18352 hardcode_libdir_flag_spec_ld_CXX
=
18353 hardcode_libdir_separator_CXX
=
18354 hardcode_minus_L_CXX
=no
18355 hardcode_shlibpath_var_CXX
=unsupported
18356 hardcode_automatic_CXX
=no
18357 inherit_rpath_CXX
=no
18359 module_expsym_cmds_CXX
=
18360 link_all_deplibs_CXX
=unknown
18361 old_archive_cmds_CXX
=$old_archive_cmds
18362 reload_flag_CXX
=$reload_flag
18363 reload_cmds_CXX
=$reload_cmds
18364 no_undefined_flag_CXX
=
18365 whole_archive_flag_spec_CXX
=
18366 enable_shared_with_static_runtimes_CXX
=no
18368 # Source file extension for C++ test sources.
18371 # Object file extension for compiled C++ test sources.
18375 # No sense in running all these tests if we already determined that
18376 # the CXX compiler isn't working. Some variables (like enable_shared)
18377 # are currently assumed to apply to all compilers on this platform,
18378 # and will be corrupted by setting them based on a non-working compiler.
18379 if test "$_lt_caught_CXX_error" != yes; then
18380 # Code to be used in simple compile tests
18381 lt_simple_compile_test_code
="int some_variable = 0;"
18383 # Code to be used in simple link tests
18384 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18386 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18393 # If no C compiler was specified, use CC.
18396 # If no C compiler flags were specified, use CFLAGS.
18397 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18399 # Allow CC to be a program name with arguments.
18403 # save warnings/boilerplate of simple test code
18404 ac_outfile
=conftest.
$ac_objext
18405 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18406 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18407 _lt_compiler_boilerplate
=`cat conftest.err`
18410 ac_outfile
=conftest.
$ac_objext
18411 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18412 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18413 _lt_linker_boilerplate
=`cat conftest.err`
18417 # Allow CC to be a program name with arguments.
18422 lt_save_with_gnu_ld
=$with_gnu_ld
18423 lt_save_path_LD
=$lt_cv_path_LD
18424 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18425 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18427 $as_unset lt_cv_prog_gnu_ld
18429 if test -n "${lt_cv_path_LDCXX+set}"; then
18430 lt_cv_path_LD
=$lt_cv_path_LDCXX
18432 $as_unset lt_cv_path_LD
18434 test -z "${LDCXX+set}" || LD
=$LDCXX
18438 for cc_temp
in $compiler""; do
18440 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18441 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18446 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18449 if test -n "$compiler"; then
18450 # We don't want -fno-exception when compiling C++ code, so set the
18451 # no_builtin_flag separately
18452 if test "$GXX" = yes; then
18453 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18455 lt_prog_compiler_no_builtin_flag_CXX
=
18458 if test "$GXX" = yes; then
18459 # Set up default GNU C++ configuration
18463 # Check whether --with-gnu-ld was given.
18464 if test "${with_gnu_ld+set}" = set; then :
18465 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18471 if test "$GCC" = yes; then
18472 # Check if gcc -print-prog-name=ld gives a path.
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18474 $as_echo_n "checking for ld used by $CC... " >&6; }
18477 # gcc leaves a trailing carriage return which upsets mingw
18478 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18480 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18483 # Accept absolute paths.
18485 re_direlt
='/[^/][^/]*/\.\./'
18486 # Canonicalize the pathname of ld
18487 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18488 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18489 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18491 test -z "$LD" && LD
="$ac_prog"
18494 # If it fails, then pretend we aren't using GCC.
18498 # If it is relative, then search for the first ld in PATH.
18499 with_gnu_ld
=unknown
18502 elif test "$with_gnu_ld" = yes; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18504 $as_echo_n "checking for GNU ld... " >&6; }
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18507 $as_echo_n "checking for non-GNU ld... " >&6; }
18509 if test "${lt_cv_path_LD+set}" = set; then :
18510 $as_echo_n "(cached) " >&6
18512 if test -z "$LD"; then
18513 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18514 for ac_dir
in $PATH; do
18516 test -z "$ac_dir" && ac_dir
=.
18517 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18518 lt_cv_path_LD
="$ac_dir/$ac_prog"
18519 # Check to see if the program is GNU ld. I'd rather use --version,
18520 # but apparently some variants of GNU ld only accept -v.
18521 # Break only if it was the GNU/non-GNU ld that we prefer.
18522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18523 *GNU
* |
*'with BFD'*)
18524 test "$with_gnu_ld" != no
&& break
18527 test "$with_gnu_ld" != yes && break
18534 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18538 LD
="$lt_cv_path_LD"
18539 if test -n "$LD"; then
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18541 $as_echo "$LD" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544 $as_echo "no" >&6; }
18546 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18549 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18550 $as_echo_n "(cached) " >&6
18552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18553 case `$LD -v 2>&1 </dev/null` in
18554 *GNU
* |
*'with BFD'*)
18555 lt_cv_prog_gnu_ld
=yes
18558 lt_cv_prog_gnu_ld
=no
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18564 with_gnu_ld
=$lt_cv_prog_gnu_ld
18572 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18573 # archiving commands below assume that GNU ld is being used.
18574 if test "$with_gnu_ld" = yes; then
18575 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576 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'
18578 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18579 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18581 # If archive_cmds runs LD, not CC, wlarc should be empty
18582 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18583 # investigate it a little bit more. (MM)
18586 # ancient GNU ld didn't support --whole-archive et. al.
18587 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18588 $GREP 'no-whole-archive' > /dev
/null
; then
18589 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18591 whole_archive_flag_spec_CXX
=
18597 # A generic and very simple default shared library creation
18598 # command for GNU C++ for the case where it uses the native
18599 # linker, instead of GNU ld. If possible, this setting should
18600 # overridden to take advantage of the native linker features on
18601 # the platform it is being used on.
18602 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18605 # Commands to make compiler produce verbose output that lists
18606 # what "hidden" libraries, object files and flags are used when
18607 # linking a shared library.
18608 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18616 # PORTME: fill in a description of your system's C++ link characteristics
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18618 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18622 # FIXME: insert proper C++ library support
18626 if test "$host_cpu" = ia64
; then
18627 # On IA64, the linker does run time linking by default, so we don't
18628 # have to do anything special.
18629 aix_use_runtimelinking
=no
18630 exp_sym_flag
='-Bexport'
18633 aix_use_runtimelinking
=no
18635 # Test if we are trying to use run time linking or normal
18636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18637 # need to do runtime linking.
18638 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18639 for ld_flag
in $LDFLAGS; do
18642 aix_use_runtimelinking
=yes
18650 exp_sym_flag
='-bexport'
18651 no_entry_flag
='-bnoentry'
18654 # When large executables or shared objects are built, AIX ld can
18655 # have problems creating the table of contents. If linking a library
18656 # or program results in "error TOC overflow" add -mminimal-toc to
18657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18660 archive_cmds_CXX
=''
18661 hardcode_direct_CXX
=yes
18662 hardcode_direct_absolute_CXX
=yes
18663 hardcode_libdir_separator_CXX
=':'
18664 link_all_deplibs_CXX
=yes
18665 file_list_spec_CXX
='${wl}-f,'
18667 if test "$GXX" = yes; then
18668 case $host_os in aix4.
[012]|aix4.
[012].
*)
18669 # We only want to do this on AIX 4.2 and lower, the check
18670 # below for broken collect2 doesn't work under 4.3+
18671 collect2name
=`${CC} -print-prog-name=collect2`
18672 if test -f "$collect2name" &&
18673 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18675 # We have reworked collect2
18678 # We have old collect2
18679 hardcode_direct_CXX
=unsupported
18680 # It fails to find uninstalled libraries when the uninstalled
18681 # path is not listed in the libpath. Setting hardcode_minus_L
18682 # to unsupported forces relinking
18683 hardcode_minus_L_CXX
=yes
18684 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18685 hardcode_libdir_separator_CXX
=
18688 shared_flag
='-shared'
18689 if test "$aix_use_runtimelinking" = yes; then
18690 shared_flag
="$shared_flag "'${wl}-G'
18694 if test "$host_cpu" = ia64
; then
18695 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18696 # chokes on -Wl,-G. The following line is correct:
18699 if test "$aix_use_runtimelinking" = yes; then
18700 shared_flag
='${wl}-G'
18702 shared_flag
='${wl}-bM:SRE'
18707 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18708 # It seems that -bexpall does not export symbols beginning with
18709 # underscore (_), so it is better to generate a list of symbols to
18711 always_export_symbols_CXX
=yes
18712 if test "$aix_use_runtimelinking" = yes; then
18713 # Warning - without using the other runtime loading flags (-brtl),
18714 # -berok will link without error, but may produce a broken library.
18715 allow_undefined_flag_CXX
='-berok'
18716 # Determine the default libpath from the value encoded in an empty
18718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18729 if ac_fn_cxx_try_link
"$LINENO"; then :
18731 lt_aix_libpath_sed
='
18732 /Import File Strings/,/^$/ {
18738 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18739 # Check for a 64-bit object if we didn't find anything.
18740 if test -z "$aix_libpath"; then
18741 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18744 rm -f core conftest.err conftest.
$ac_objext \
18745 conftest
$ac_exeext conftest.
$ac_ext
18746 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18748 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18750 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"
18752 if test "$host_cpu" = ia64
; then
18753 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18754 allow_undefined_flag_CXX
="-z nodefs"
18755 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"
18757 # Determine the default libpath from the value encoded in an
18758 # empty executable.
18759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18770 if ac_fn_cxx_try_link
"$LINENO"; then :
18772 lt_aix_libpath_sed
='
18773 /Import File Strings/,/^$/ {
18779 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18780 # Check for a 64-bit object if we didn't find anything.
18781 if test -z "$aix_libpath"; then
18782 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18785 rm -f core conftest.err conftest.
$ac_objext \
18786 conftest
$ac_exeext conftest.
$ac_ext
18787 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18789 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18790 # Warning - without using the other run time loading flags,
18791 # -berok will link without error, but may produce a broken library.
18792 no_undefined_flag_CXX
=' ${wl}-bernotok'
18793 allow_undefined_flag_CXX
=' ${wl}-berok'
18794 if test "$with_gnu_ld" = yes; then
18795 # We only use this code for GNU lds that support --whole-archive.
18796 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18798 # Exported symbols can be pulled into shared objects from archives
18799 whole_archive_flag_spec_CXX
='$convenience'
18801 archive_cmds_need_lc_CXX
=yes
18802 # This is similar to how AIX traditionally builds its shared
18804 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'
18810 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18811 allow_undefined_flag_CXX
=unsupported
18812 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18813 # support --undefined. This deserves some investigation. FIXME
18814 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18821 case $cc_basename in
18823 # FIXME: insert proper C++ library support
18829 cygwin
* | mingw
* | pw32
* | cegcc
*)
18830 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18831 # as there is no search path for DLLs.
18832 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18833 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18834 allow_undefined_flag_CXX
=unsupported
18835 always_export_symbols_CXX
=no
18836 enable_shared_with_static_runtimes_CXX
=yes
18838 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18839 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'
18840 # If the export-symbols file already is a .def file (1st line
18841 # is EXPORTS), use it as is; otherwise, prepend...
18842 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18843 cp $export_symbols $output_objdir/$soname.def;
18845 echo EXPORTS > $output_objdir/$soname.def;
18846 cat $export_symbols >> $output_objdir/$soname.def;
18848 $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'
18853 darwin
* | rhapsody
*)
18856 archive_cmds_need_lc_CXX
=no
18857 hardcode_direct_CXX
=no
18858 hardcode_automatic_CXX
=yes
18859 hardcode_shlibpath_var_CXX
=unsupported
18860 if test "$lt_cv_ld_force_load" = "yes"; then
18861 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\"`'
18863 whole_archive_flag_spec_CXX
=''
18865 link_all_deplibs_CXX
=yes
18866 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18867 case $cc_basename in
18868 ifort
*) _lt_dar_can_shared
=yes ;;
18869 *) _lt_dar_can_shared
=$GCC ;;
18871 if test "$_lt_dar_can_shared" = "yes"; then
18872 output_verbose_link_cmd
=func_echo_all
18873 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}"
18874 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18875 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}"
18876 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}"
18877 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18878 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}"
18879 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}"
18889 case $cc_basename in
18891 # FIXME: insert proper C++ library support
18895 # Green Hills C++ Compiler
18896 # FIXME: insert proper C++ library support
18900 # FIXME: insert proper C++ library support
18907 # C++ shared libraries reported to be fairly broken before
18913 archive_cmds_need_lc_CXX
=no
18916 freebsd
* | dragonfly
*)
18917 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18926 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927 link_all_deplibs_CXX
=yes
18931 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18932 hardcode_libdir_separator_CXX
=:
18933 export_dynamic_flag_spec_CXX
='${wl}-E'
18934 hardcode_direct_CXX
=yes
18935 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18936 # but as the default
18937 # location of the library.
18939 case $cc_basename in
18941 # FIXME: insert proper C++ library support
18945 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'
18946 # Commands to make compiler produce verbose output that lists
18947 # what "hidden" libraries, object files and flags are used when
18948 # linking a shared library.
18950 # There doesn't appear to be a way to prevent this compiler from
18951 # explicitly linking system object files so we need to strip them
18952 # from the output so that they don't get included in the library
18954 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"'
18957 if test "$GXX" = yes; then
18958 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'
18960 # FIXME: insert proper C++ library support
18968 if test $with_gnu_ld = no
; then
18969 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18970 hardcode_libdir_separator_CXX
=:
18976 export_dynamic_flag_spec_CXX
='${wl}-E'
18982 hardcode_direct_CXX
=no
18983 hardcode_shlibpath_var_CXX
=no
18986 hardcode_direct_CXX
=yes
18987 hardcode_direct_absolute_CXX
=yes
18988 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18989 # but as the default
18990 # location of the library.
18994 case $cc_basename in
18996 # FIXME: insert proper C++ library support
19002 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19005 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19008 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19011 # Commands to make compiler produce verbose output that lists
19012 # what "hidden" libraries, object files and flags are used when
19013 # linking a shared library.
19015 # There doesn't appear to be a way to prevent this compiler from
19016 # explicitly linking system object files so we need to strip them
19017 # from the output so that they don't get included in the library
19019 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"'
19022 if test "$GXX" = yes; then
19023 if test $with_gnu_ld = no
; then
19026 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19029 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19032 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'
19037 # FIXME: insert proper C++ library support
19045 hardcode_direct_CXX
=no
19046 hardcode_shlibpath_var_CXX
=no
19047 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19048 export_dynamic_flag_spec_CXX
='${wl}-E'
19049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19050 # Instead, shared libraries are loaded at an image base (0x10000000 by
19051 # default) and relocated if they conflict, which is a slow very memory
19052 # consuming and fragmenting process. To avoid this, we pick a random,
19053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19055 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'
19056 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'
19059 case $cc_basename in
19062 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'
19064 # Archives containing C++ object files must be created using
19065 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19066 # necessary to make sure instantiated templates are included
19068 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19071 if test "$GXX" = yes; then
19072 if test "$with_gnu_ld" = no
; then
19073 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'
19075 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'
19078 link_all_deplibs_CXX
=yes
19081 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19082 hardcode_libdir_separator_CXX
=:
19083 inherit_rpath_CXX
=yes
19086 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19087 case $cc_basename in
19089 # Kuck and Associates, Inc. (KAI) C++ Compiler
19091 # KCC will only create a shared library if the output file
19092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19093 # to its proper name (with version) after linking.
19094 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'
19095 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'
19096 # Commands to make compiler produce verbose output that lists
19097 # what "hidden" libraries, object files and flags are used when
19098 # linking a shared library.
19100 # There doesn't appear to be a way to prevent this compiler from
19101 # explicitly linking system object files so we need to strip them
19102 # from the output so that they don't get included in the library
19104 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"'
19106 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19107 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19109 # Archives containing C++ object files must be created using
19110 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19111 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19116 # version 8.0 and above of icpc choke on multiply defined symbols
19117 # if we add $predep_objects and $postdep_objects, however 7.1 and
19118 # earlier do not add the objects themselves.
19119 case `$CC -V 2>&1` in
19121 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19122 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'
19124 *) # Version 8.0 or newer
19127 ia64
*) tmp_idyn
=' -i_dynamic';;
19129 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 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'
19133 archive_cmds_need_lc_CXX
=no
19134 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19135 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19136 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19139 # Portland Group C++ compiler
19141 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19142 prelink_cmds_CXX
='tpldir=Template.dir~
19144 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19145 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19146 old_archive_cmds_CXX
='tpldir=Template.dir~
19148 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19149 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19151 archive_cmds_CXX
='tpldir=Template.dir~
19153 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19154 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19155 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19157 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19158 $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'
19160 *) # Version 6 and above use weak symbols
19161 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19162 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'
19166 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19167 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19168 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'
19172 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19173 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'
19175 runpath_var
=LD_RUN_PATH
19176 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19177 hardcode_libdir_separator_CXX
=:
19179 # Commands to make compiler produce verbose output that lists
19180 # what "hidden" libraries, object files and flags are used when
19181 # linking a shared library.
19183 # There doesn't appear to be a way to prevent this compiler from
19184 # explicitly linking system object files so we need to strip them
19185 # from the output so that they don't get included in the library
19187 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'
19189 xl
* | mpixl
* | bgxl
*)
19190 # IBM XL 8.0 on PPC, with GNU ld
19191 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19192 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19193 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194 if test "x$supports_anon_versioning" = xyes
; then
19195 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197 echo "local: *; };" >> $output_objdir/$libname.ver~
19198 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19202 case `$CC -V 2>&1 | sed 5q` in
19205 no_undefined_flag_CXX
=' -zdefs'
19206 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 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'
19208 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19209 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'
19210 compiler_needs_object_CXX
=yes
19212 # Not sure whether something based on
19213 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19215 output_verbose_link_cmd
='func_echo_all'
19217 # Archives containing C++ object files must be created using
19218 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19219 # necessary to make sure instantiated templates are included
19221 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19229 # FIXME: insert proper C++ library support
19234 # FIXME: insert proper C++ library support
19239 case $cc_basename in
19241 # FIXME: insert proper C++ library support
19245 # FIXME: insert proper C++ library support
19252 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19253 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19255 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19256 hardcode_direct_CXX
=yes
19257 hardcode_shlibpath_var_CXX
=no
19259 # Workaround some broken pre-1.5 toolchains
19260 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19268 # C++ shared libraries are fairly broken
19273 if test -f /usr
/libexec
/ld.so
; then
19274 hardcode_direct_CXX
=yes
19275 hardcode_shlibpath_var_CXX
=no
19276 hardcode_direct_absolute_CXX
=yes
19277 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19278 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19280 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19281 export_dynamic_flag_spec_CXX
='${wl}-E'
19282 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19284 output_verbose_link_cmd
=func_echo_all
19290 osf3
* | osf4
* | osf5
*)
19291 case $cc_basename in
19293 # Kuck and Associates, Inc. (KAI) C++ Compiler
19295 # KCC will only create a shared library if the output file
19296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19297 # to its proper name (with version) after linking.
19298 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'
19300 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19301 hardcode_libdir_separator_CXX
=:
19303 # Archives containing C++ object files must be created using
19304 # the KAI C++ compiler.
19306 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19307 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19311 # Rational C++ 2.4.1
19312 # FIXME: insert proper C++ library support
19318 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19319 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'
19320 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19323 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19324 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'
19325 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19326 echo "-hidden">> $lib.exp~
19327 $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~
19329 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19333 hardcode_libdir_separator_CXX
=:
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19343 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"'
19346 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19347 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19350 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'
19353 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'
19357 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX
=:
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19363 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19366 # FIXME: insert proper C++ library support
19374 # FIXME: insert proper C++ library support
19379 case $cc_basename in
19382 # FIXME: insert proper C++ library support
19387 # FIXME: insert proper C++ library support
19391 # FIXME: insert proper C++ library support
19398 case $cc_basename in
19400 # Sun C++ 4.2, 5.x and Centerline C++
19401 archive_cmds_need_lc_CXX
=yes
19402 no_undefined_flag_CXX
=' -zdefs'
19403 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19404 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19405 $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'
19407 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19408 hardcode_shlibpath_var_CXX
=no
19410 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19412 # The compiler driver will combine and reorder linker options,
19413 # but understands `-z linker_flag'.
19414 # Supported since Solaris 2.6 (maybe 2.5.1?)
19415 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19418 link_all_deplibs_CXX
=yes
19420 output_verbose_link_cmd
='func_echo_all'
19422 # Archives containing C++ object files must be created using
19423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19424 # necessary to make sure instantiated templates are included
19426 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19429 # Green Hills C++ Compiler
19430 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19432 # The C++ compiler must be used to create the archive.
19433 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19436 # GNU C++ compiler with Solaris linker
19437 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19438 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19439 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19440 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19441 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19442 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19444 # Commands to make compiler produce verbose output that lists
19445 # what "hidden" libraries, object files and flags are used when
19446 # linking a shared library.
19447 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19449 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19451 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19452 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19453 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19455 # Commands to make compiler produce verbose output that lists
19456 # what "hidden" libraries, object files and flags are used when
19457 # linking a shared library.
19458 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19461 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19463 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19465 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19473 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19474 no_undefined_flag_CXX
='${wl}-z,text'
19475 archive_cmds_need_lc_CXX
=no
19476 hardcode_shlibpath_var_CXX
=no
19477 runpath_var
='LD_RUN_PATH'
19479 case $cc_basename in
19481 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19485 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19486 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19491 sysv5
* | sco3.2v5
* | sco5v6
*)
19492 # Note: We can NOT use -z defs as we might desire, because we do not
19493 # link with -lc, and that would cause any symbols used from libc to
19494 # always be unresolved, which means just about no library would
19495 # ever link correctly. If we're not using GNU ld we use -z text
19496 # though, which does catch some bad symbols but isn't as heavy-handed
19498 no_undefined_flag_CXX
='${wl}-z,text'
19499 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19500 archive_cmds_need_lc_CXX
=no
19501 hardcode_shlibpath_var_CXX
=no
19502 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19503 hardcode_libdir_separator_CXX
=':'
19504 link_all_deplibs_CXX
=yes
19505 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19506 runpath_var
='LD_RUN_PATH'
19508 case $cc_basename in
19510 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19513 '"$old_archive_cmds_CXX"
19514 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19515 '"$reload_cmds_CXX"
19518 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19525 case $cc_basename in
19527 # NonStop-UX NCC 3.20
19528 # FIXME: insert proper C++ library support
19532 # FIXME: insert proper C++ library support
19539 # FIXME: insert proper C++ library support
19544 # FIXME: insert proper C++ library support
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19550 $as_echo "$ld_shlibs_CXX" >&6; }
19551 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19557 ## There is no encapsulation within the following macros, do not change
19558 ## the running order or otherwise move them around unless you know exactly
19559 ## what you are doing...
19560 # Dependencies to place before and after the object being linked:
19561 predep_objects_CXX
=
19562 postdep_objects_CXX
=
19565 compiler_lib_search_path_CXX
=
19567 cat > conftest.
$ac_ext <<_LT_EOF
19571 Foo (void) { a = 0; }
19577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19578 (eval $ac_compile) 2>&5
19580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19581 test $ac_status = 0; }; then
19582 # Parse the compiler output and extract the necessary
19583 # objects, libraries and library flags.
19585 # Sentinel used to keep track of whether or not we are before
19586 # the conftest object file.
19587 pre_test_object_deps_done
=no
19589 for p
in `eval "$output_verbose_link_cmd"`; do
19593 # Some compilers place space between "-{L,R}" and the path.
19594 # Remove the space.
19595 if test $p = "-L" ||
19596 test $p = "-R"; then
19603 if test "$pre_test_object_deps_done" = no
; then
19606 # Internal compiler library paths should come after those
19607 # provided the user. The postdeps already come after the
19608 # user supplied libs so there is no need to process them.
19609 if test -z "$compiler_lib_search_path_CXX"; then
19610 compiler_lib_search_path_CXX
="${prev}${p}"
19612 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19615 # The "-l" case would never come before the object being
19616 # linked, so don't bother handling this case.
19619 if test -z "$postdeps_CXX"; then
19620 postdeps_CXX
="${prev}${p}"
19622 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19628 # This assumes that the test object file only shows up
19629 # once in the compiler output.
19630 if test "$p" = "conftest.$objext"; then
19631 pre_test_object_deps_done
=yes
19635 if test "$pre_test_object_deps_done" = no
; then
19636 if test -z "$predep_objects_CXX"; then
19637 predep_objects_CXX
="$p"
19639 predep_objects_CXX
="$predep_objects_CXX $p"
19642 if test -z "$postdep_objects_CXX"; then
19643 postdep_objects_CXX
="$p"
19645 postdep_objects_CXX
="$postdep_objects_CXX $p"
19650 *) ;; # Ignore the rest.
19658 echo "libtool.m4: error: problem compiling CXX test program"
19661 $RM -f confest.
$objext
19663 # PORTME: override above test on systems where it is broken
19666 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19667 # hack all around it, let's just trust "g++" to DTRT.
19668 predep_objects_CXX
=
19669 postdep_objects_CXX
=
19674 case `$CC -V 2>&1 | sed 5q` in
19678 # The more standards-conforming stlport4 library is
19679 # incompatible with the Cstd library. Avoid specifying
19680 # it if it's in CXXFLAGS. Ignore libCrun as
19681 # -library=stlport4 depends on it.
19682 case " $CXX $CXXFLAGS " in
19683 *" -library=stlport4 "*)
19684 solaris_use_stlport4
=yes
19688 if test "$solaris_use_stlport4" != yes; then
19689 postdeps_CXX
='-library=Cstd -library=Crun'
19696 case $cc_basename in
19698 # The more standards-conforming stlport4 library is
19699 # incompatible with the Cstd library. Avoid specifying
19700 # it if it's in CXXFLAGS. Ignore libCrun as
19701 # -library=stlport4 depends on it.
19702 case " $CXX $CXXFLAGS " in
19703 *" -library=stlport4 "*)
19704 solaris_use_stlport4
=yes
19708 # Adding this requires a known-good setup of shared libraries for
19709 # Sun compiler versions before 5.6, else PIC objects from an old
19710 # archive will be linked into the output, leading to subtle bugs.
19711 if test "$solaris_use_stlport4" != yes; then
19712 postdeps_CXX
='-library=Cstd -library=Crun'
19720 case " $postdeps_CXX " in
19721 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19723 compiler_lib_search_dirs_CXX
=
19724 if test -n "${compiler_lib_search_path_CXX}"; then
19725 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19758 lt_prog_compiler_wl_CXX
=
19759 lt_prog_compiler_pic_CXX
=
19760 lt_prog_compiler_static_CXX
=
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19763 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19765 # C++ specific cases for pic, static, wl, etc.
19766 if test "$GXX" = yes; then
19767 lt_prog_compiler_wl_CXX
='-Wl,'
19768 lt_prog_compiler_static_CXX
='-static'
19772 # All AIX code is PIC.
19773 if test "$host_cpu" = ia64
; then
19774 # AIX 5 now supports IA64 processor
19775 lt_prog_compiler_static_CXX
='-Bstatic'
19777 lt_prog_compiler_pic_CXX
='-fPIC'
19783 # see comment about AmigaOS4 .so support
19784 lt_prog_compiler_pic_CXX
='-fPIC'
19787 # FIXME: we need at least 68020 code to build shared libraries, but
19788 # adding the `-m68020' flag to GCC prevents building anything better,
19790 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19795 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19796 # PIC is the default for these OSes.
19798 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19799 # This hack is so that the source file can tell whether it is being
19800 # built for inclusion in a dll (and should export symbols for example).
19801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19802 # (--disable-auto-import) libraries
19803 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19805 darwin
* | rhapsody
*)
19806 # PIC is the default on this platform
19807 # Common symbols not allowed in MH_DYLIB files
19808 lt_prog_compiler_pic_CXX
='-fno-common'
19811 # DJGPP does not support shared libraries at all
19812 lt_prog_compiler_pic_CXX
=
19815 # PIC is the default for Haiku.
19816 # The "-static" flag exists, but is broken.
19817 lt_prog_compiler_static_CXX
=
19820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19821 # Instead, we relocate shared libraries at runtime.
19824 if test -d /usr
/nec
; then
19825 lt_prog_compiler_pic_CXX
=-Kconform_pic
19829 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19830 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19831 # sets the default TLS model and affects inlining.
19836 lt_prog_compiler_pic_CXX
='-fPIC'
19841 # QNX uses GNU C++, but need to define -shared option too, otherwise
19842 # it will coredump.
19843 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19846 lt_prog_compiler_pic_CXX
='-fPIC'
19852 # All AIX code is PIC.
19853 if test "$host_cpu" = ia64
; then
19854 # AIX 5 now supports IA64 processor
19855 lt_prog_compiler_static_CXX
='-Bstatic'
19857 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19861 case $cc_basename in
19863 # Green Hills C++ Compiler
19864 # _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"
19869 case $cc_basename in
19871 lt_prog_compiler_pic_CXX
='-KPIC'
19874 # Green Hills C++ Compiler
19875 lt_prog_compiler_pic_CXX
='-pic'
19881 freebsd
* | dragonfly
*)
19882 # FreeBSD uses GNU C++
19884 hpux9
* | hpux10
* | hpux11
*)
19885 case $cc_basename in
19887 lt_prog_compiler_wl_CXX
='-Wl,'
19888 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19889 if test "$host_cpu" != ia64
; then
19890 lt_prog_compiler_pic_CXX
='+Z'
19894 lt_prog_compiler_wl_CXX
='-Wl,'
19895 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19901 lt_prog_compiler_pic_CXX
='+Z'
19910 # This is c89, which is MS Visual C++ (no shared libs)
19911 # Anyone wants to do a port?
19913 irix5
* | irix6
* | nonstopux
*)
19914 case $cc_basename in
19916 lt_prog_compiler_wl_CXX
='-Wl,'
19917 lt_prog_compiler_static_CXX
='-non_shared'
19918 # CC pic flag -KPIC is the default.
19924 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19925 case $cc_basename in
19928 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19929 lt_prog_compiler_pic_CXX
='-fPIC'
19932 # old Intel C++ for x86_64 which still supported -KPIC.
19933 lt_prog_compiler_wl_CXX
='-Wl,'
19934 lt_prog_compiler_pic_CXX
='-KPIC'
19935 lt_prog_compiler_static_CXX
='-static'
19938 # Intel C++, used to be incompatible with GCC.
19939 # ICC 10 doesn't accept -KPIC any more.
19940 lt_prog_compiler_wl_CXX
='-Wl,'
19941 lt_prog_compiler_pic_CXX
='-fPIC'
19942 lt_prog_compiler_static_CXX
='-static'
19945 # Portland Group C++ compiler
19946 lt_prog_compiler_wl_CXX
='-Wl,'
19947 lt_prog_compiler_pic_CXX
='-fpic'
19948 lt_prog_compiler_static_CXX
='-Bstatic'
19952 # Make sure the PIC flag is empty. It appears that all Alpha
19953 # Linux and Compaq Tru64 Unix objects are PIC.
19954 lt_prog_compiler_pic_CXX
=
19955 lt_prog_compiler_static_CXX
='-non_shared'
19957 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19958 # IBM XL 8.0, 9.0 on PPC and BlueGene
19959 lt_prog_compiler_wl_CXX
='-Wl,'
19960 lt_prog_compiler_pic_CXX
='-qpic'
19961 lt_prog_compiler_static_CXX
='-qstaticlink'
19964 case `$CC -V 2>&1 | sed 5q` in
19967 lt_prog_compiler_pic_CXX
='-KPIC'
19968 lt_prog_compiler_static_CXX
='-Bstatic'
19969 lt_prog_compiler_wl_CXX
='-Qoption ld '
19980 case $cc_basename in
19982 lt_prog_compiler_pic_CXX
='-W c,exportall'
19991 # QNX uses GNU C++, but need to define -shared option too, otherwise
19992 # it will coredump.
19993 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19995 osf3
* | osf4
* | osf5
*)
19996 case $cc_basename in
19998 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20001 # Rational C++ 2.4.1
20002 lt_prog_compiler_pic_CXX
='-pic'
20005 # Digital/Compaq C++
20006 lt_prog_compiler_wl_CXX
='-Wl,'
20007 # Make sure the PIC flag is empty. It appears that all Alpha
20008 # Linux and Compaq Tru64 Unix objects are PIC.
20009 lt_prog_compiler_pic_CXX
=
20010 lt_prog_compiler_static_CXX
='-non_shared'
20019 case $cc_basename in
20021 # Sun C++ 4.2, 5.x and Centerline C++
20022 lt_prog_compiler_pic_CXX
='-KPIC'
20023 lt_prog_compiler_static_CXX
='-Bstatic'
20024 lt_prog_compiler_wl_CXX
='-Qoption ld '
20027 # Green Hills C++ Compiler
20028 lt_prog_compiler_pic_CXX
='-PIC'
20035 case $cc_basename in
20038 lt_prog_compiler_pic_CXX
='-pic'
20039 lt_prog_compiler_static_CXX
='-Bstatic'
20043 lt_prog_compiler_pic_CXX
='-pic'
20049 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20050 case $cc_basename in
20052 lt_prog_compiler_wl_CXX
='-Wl,'
20053 lt_prog_compiler_pic_CXX
='-KPIC'
20054 lt_prog_compiler_static_CXX
='-Bstatic'
20059 case $cc_basename in
20061 # NonStop-UX NCC 3.20
20062 lt_prog_compiler_pic_CXX
='-KPIC'
20071 lt_prog_compiler_can_build_shared_CXX
=no
20077 # For platforms which do not support PIC, -DPIC is meaningless:
20079 lt_prog_compiler_pic_CXX
=
20082 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20086 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20091 # Check to make sure the PIC flag actually works.
20093 if test -n "$lt_prog_compiler_pic_CXX"; then
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20096 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20099 lt_cv_prog_compiler_pic_works_CXX
=no
20100 ac_outfile
=conftest.
$ac_objext
20101 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20102 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20103 # Insert the option either (1) after the last *FLAGS variable, or
20104 # (2) before a word containing "conftest.", or (3) at the end.
20105 # Note that $ac_compile itself does not contain backslashes and begins
20106 # with a dollar sign (not a hyphen), so the echo should work correctly.
20107 # The option is referenced via a variable to avoid confusing sed.
20108 lt_compile
=`echo "$ac_compile" | $SED \
20109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20111 -e 's:$: $lt_compiler_flag:'`
20112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20113 (eval "$lt_compile" 2>conftest.err
)
20115 cat conftest.err
>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 if (exit $ac_status) && test -s "$ac_outfile"; then
20118 # The compiler can only warn and ignore the option if not recognized
20119 # So say no if there are warnings other than the usual output.
20120 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20121 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20122 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20123 lt_cv_prog_compiler_pic_works_CXX
=yes
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20130 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20132 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20133 case $lt_prog_compiler_pic_CXX in
20135 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20138 lt_prog_compiler_pic_CXX
=
20139 lt_prog_compiler_can_build_shared_CXX
=no
20147 # Check to make sure the static flag actually works.
20149 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20152 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20155 lt_cv_prog_compiler_static_works_CXX
=no
20156 save_LDFLAGS
="$LDFLAGS"
20157 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20158 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20159 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20160 # The linker can only warn and ignore the option if not recognized
20161 # So say no if there are warnings
20162 if test -s conftest.err
; then
20163 # Append any errors to the config.log.
20164 cat conftest.err
1>&5
20165 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20166 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20167 if diff conftest.exp conftest.er2
>/dev
/null
; then
20168 lt_cv_prog_compiler_static_works_CXX
=yes
20171 lt_cv_prog_compiler_static_works_CXX
=yes
20175 LDFLAGS
="$save_LDFLAGS"
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20179 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20181 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20184 lt_prog_compiler_static_CXX
=
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20192 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20195 lt_cv_prog_compiler_c_o_CXX
=no
20196 $RM -r conftest
2>/dev
/null
20200 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20202 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 lt_compile
=`echo "$ac_compile" | $SED \
20208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20210 -e 's:$: $lt_compiler_flag:'`
20211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20212 (eval "$lt_compile" 2>out
/conftest.err
)
20214 cat out
/conftest.err
>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings
20220 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20221 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20222 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20223 lt_cv_prog_compiler_c_o_CXX
=yes
20228 # SGI C++ compiler will create directory out/ii_files/ for
20229 # template instantiation
20230 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20231 $RM out
/* && rmdir out
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20238 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20244 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20245 $as_echo_n "(cached) " >&6
20247 lt_cv_prog_compiler_c_o_CXX
=no
20248 $RM -r conftest
2>/dev
/null
20252 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20254 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20255 # Insert the option either (1) after the last *FLAGS variable, or
20256 # (2) before a word containing "conftest.", or (3) at the end.
20257 # Note that $ac_compile itself does not contain backslashes and begins
20258 # with a dollar sign (not a hyphen), so the echo should work correctly.
20259 lt_compile
=`echo "$ac_compile" | $SED \
20260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20262 -e 's:$: $lt_compiler_flag:'`
20263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20264 (eval "$lt_compile" 2>out
/conftest.err
)
20266 cat out
/conftest.err
>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20270 # The compiler can only warn and ignore the option if not recognized
20271 # So say no if there are warnings
20272 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20273 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20274 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20275 lt_cv_prog_compiler_c_o_CXX
=yes
20280 # SGI C++ compiler will create directory out/ii_files/ for
20281 # template instantiation
20282 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20283 $RM out
/* && rmdir out
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20290 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20295 hard_links
="nottested"
20296 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20297 # do not overwrite the value of need_locks provided by the user
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20299 $as_echo_n "checking if we can lock with hard links... " >&6; }
20302 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20304 ln conftest.a conftest.b
2>&5 || hard_links
=no
20305 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20307 $as_echo "$hard_links" >&6; }
20308 if test "$hard_links" = no
; then
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20310 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20320 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20322 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20325 # If we're using GNU nm, then we don't want the "-C" option.
20326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20327 # Also, AIX nm treats weak defined symbols like other global defined
20328 # symbols, whereas GNU nm marks them as "W".
20329 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20330 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'
20332 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'
20336 export_symbols_cmds_CXX
="$ltdll_cmds"
20338 cygwin
* | mingw
* | cegcc
*)
20339 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'
20342 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20345 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20348 $as_echo "$ld_shlibs_CXX" >&6; }
20349 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20351 with_gnu_ld_CXX
=$with_gnu_ld
20359 # Do we need to explicitly link libc?
20361 case "x$archive_cmds_need_lc_CXX" in
20363 # Assume -lc should be added
20364 archive_cmds_need_lc_CXX
=yes
20366 if test "$enable_shared" = yes && test "$GCC" = yes; then
20367 case $archive_cmds_CXX in
20369 # FIXME: we may have to deal with multi-command sequences.
20372 # Test whether the compiler implicitly links with -lc since on some
20373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20374 # to ld, don't add -lc before -lgcc.
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20376 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20377 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20378 $as_echo_n "(cached) " >&6
20381 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20384 (eval $ac_compile) 2>&5
20386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387 test $ac_status = 0; } 2>conftest.err
; then
20390 libobjs
=conftest.
$ac_objext
20392 wl
=$lt_prog_compiler_wl_CXX
20393 pic_flag
=$lt_prog_compiler_pic_CXX
20399 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20400 allow_undefined_flag_CXX
=
20401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20402 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20405 test $ac_status = 0; }
20407 lt_cv_archive_cmds_need_lc_CXX
=no
20409 lt_cv_archive_cmds_need_lc_CXX
=yes
20411 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20413 cat conftest.err
1>&5
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20419 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20420 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20491 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20493 library_names_spec
=
20494 libname_spec
='lib$name'
20498 postuninstall_cmds
=
20502 shlibpath_overrides_runpath
=unknown
20504 dynamic_linker
="$host_os ld.so"
20505 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20506 need_lib_prefix
=unknown
20507 hardcode_into_libs
=no
20509 # when you set need_version to no, make sure it does not cause -set_version
20510 # flags to be left without arguments
20511 need_version
=unknown
20516 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20517 shlibpath_var
=LIBPATH
20519 # AIX 3 has no versioning support, so we append a major version to the name.
20520 soname_spec
='${libname}${release}${shared_ext}$major'
20527 hardcode_into_libs
=yes
20528 if test "$host_cpu" = ia64
; then
20529 # AIX 5 supports IA64
20530 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20531 shlibpath_var
=LD_LIBRARY_PATH
20533 # With GCC up to 2.95.x, collect2 would create an import file
20534 # for dependence libraries. The import file would start with
20535 # the line `#! .'. This would cause the generated library to
20536 # depend on `.', always an invalid library. This was fixed in
20537 # development snapshots of GCC prior to 3.0.
20539 aix4 | aix4.
[01] | aix4.
[01].
*)
20540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20542 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20545 can_build_shared
=no
20549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20550 # soname into executable. Probably we can add versioning support to
20551 # collect2, so additional links can be useful in future.
20552 if test "$aix_use_runtimelinking" = yes; then
20553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20554 # instead of lib<name>.a to let people know that these are not
20555 # typical AIX shared libraries.
20556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558 # We preserve .a as extension for shared libraries through AIX4.2
20559 # and later when we are not doing run time linking.
20560 library_names_spec
='${libname}${release}.a $libname.a'
20561 soname_spec
='${libname}${release}${shared_ext}$major'
20563 shlibpath_var
=LIBPATH
20570 # Since July 2007 AmigaOS4 officially supports .so libraries.
20571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20575 library_names_spec
='$libname.ixlibrary $libname.a'
20576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20577 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'
20583 library_names_spec
='${libname}${shared_ext}'
20584 dynamic_linker
="$host_os ld.so"
20585 shlibpath_var
=LIBRARY_PATH
20591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20592 soname_spec
='${libname}${release}${shared_ext}$major'
20593 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20594 shlibpath_var
=LD_LIBRARY_PATH
20595 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20596 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20597 # the default ld.so.conf also contains /usr/contrib/lib and
20598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20599 # libtool to hard-code these into programs
20602 cygwin
* | mingw
* | pw32
* | cegcc
*)
20603 version_type
=windows
20608 case $GCC,$host_os in
20609 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20610 library_names_spec
='$libname.dll.a'
20611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20612 postinstall_cmds
='base_file=`basename \${file}`~
20613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20614 dldir=$destdir/`dirname \$dlpath`~
20615 test -d \$dldir || mkdir -p \$dldir~
20616 $install_prog $dir/$dlname \$dldir/$dlname~
20617 chmod a+x \$dldir/$dlname~
20618 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20619 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20621 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20622 dlpath=$dir/\$dldll~
20624 shlibpath_overrides_runpath
=yes
20628 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20629 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20633 # MinGW DLLs use traditional 'lib' prefix
20634 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20637 # pw32 DLLs use 'pw' prefix rather than 'lib'
20638 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20644 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20647 dynamic_linker
='Win32 ld.exe'
20648 # FIXME: first we should search . and the directory the executable is in
20652 darwin
* | rhapsody
*)
20653 dynamic_linker
="$host_os dyld"
20654 version_type
=darwin
20657 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20658 soname_spec
='${libname}${release}${major}$shared_ext'
20659 shlibpath_overrides_runpath
=yes
20660 shlibpath_var
=DYLD_LIBRARY_PATH
20661 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20663 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20671 soname_spec
='${libname}${release}${shared_ext}$major'
20672 shlibpath_var
=LD_LIBRARY_PATH
20675 freebsd
* | dragonfly
*)
20676 # DragonFly does not have aout. When/if they implement a new
20677 # versioning mechanism, adjust this.
20678 if test -x /usr
/bin
/objformat
; then
20679 objformat
=`/usr/bin/objformat`
20682 freebsd
[23].
*) objformat
=aout
;;
20683 *) objformat
=elf
;;
20686 version_type
=freebsd-
$objformat
20687 case $version_type in
20689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20694 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20698 shlibpath_var
=LD_LIBRARY_PATH
20701 shlibpath_overrides_runpath
=yes
20703 freebsd3.
[01]* | freebsdelf3.
[01]*)
20704 shlibpath_overrides_runpath
=yes
20705 hardcode_into_libs
=yes
20707 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20708 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20709 shlibpath_overrides_runpath
=no
20710 hardcode_into_libs
=yes
20712 *) # from 4.6 on, and DragonFly
20713 shlibpath_overrides_runpath
=yes
20714 hardcode_into_libs
=yes
20723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20724 soname_spec
='${libname}${release}${shared_ext}$major'
20725 shlibpath_var
=LD_LIBRARY_PATH
20726 hardcode_into_libs
=yes
20733 dynamic_linker
="$host_os runtime_loader"
20734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20735 soname_spec
='${libname}${release}${shared_ext}$major'
20736 shlibpath_var
=LIBRARY_PATH
20737 shlibpath_overrides_runpath
=yes
20738 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20739 hardcode_into_libs
=yes
20742 hpux9
* | hpux10
* | hpux11
*)
20743 # Give a soname corresponding to the major version so that dld.sl refuses to
20744 # link against other versions.
20751 hardcode_into_libs
=yes
20752 dynamic_linker
="$host_os dld.so"
20753 shlibpath_var
=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec
='${libname}${release}${shared_ext}$major'
20757 if test "X$HPUX_IA64_MODE" = X32
; then
20758 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20760 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20762 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20766 hardcode_into_libs
=yes
20767 dynamic_linker
="$host_os dld.sl"
20768 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20769 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20771 soname_spec
='${libname}${release}${shared_ext}$major'
20772 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20773 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20777 dynamic_linker
="$host_os dld.sl"
20778 shlibpath_var
=SHLIB_PATH
20779 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20781 soname_spec
='${libname}${release}${shared_ext}$major'
20784 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20785 postinstall_cmds
='chmod 555 $lib'
20786 # or fails outright, so override atomically:
20787 install_override_mode
=555
20794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20795 soname_spec
='${libname}${release}${shared_ext}$major'
20796 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20797 shlibpath_var
=LD_LIBRARY_PATH
20798 shlibpath_overrides_runpath
=no
20799 hardcode_into_libs
=yes
20802 irix5
* | irix6
* | nonstopux
*)
20804 nonstopux
*) version_type
=nonstopux
;;
20806 if test "$lt_cv_prog_gnu_ld" = yes; then
20814 soname_spec
='${libname}${release}${shared_ext}$major'
20815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20817 irix5
* | nonstopux
*)
20818 libsuff
= shlibsuff
=
20821 case $LD in # libtool.m4 will add one of these switches to LD
20822 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20823 libsuff
= shlibsuff
= libmagic
=32-bit;;
20824 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20825 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20826 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20827 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20828 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20832 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20833 shlibpath_overrides_runpath
=no
20834 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20835 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20836 hardcode_into_libs
=yes
20839 # No shared lib support for Linux oldld, aout, or coff.
20840 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20844 # This must be Linux ELF.
20845 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 soname_spec
='${libname}${release}${shared_ext}$major'
20851 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20852 shlibpath_var
=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath
=no
20855 # Some binutils ld are patched to set DT_RUNPATH
20856 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20857 $as_echo_n "(cached) " >&6
20859 lt_cv_shlibpath_overrides_runpath
=no
20860 save_LDFLAGS
=$LDFLAGS
20861 save_libdir
=$libdir
20862 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20863 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h. */
20875 if ac_fn_cxx_try_link
"$LINENO"; then :
20876 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20877 lt_cv_shlibpath_overrides_runpath
=yes
20880 rm -f core conftest.err conftest.
$ac_objext \
20881 conftest
$ac_exeext conftest.
$ac_ext
20882 LDFLAGS
=$save_LDFLAGS
20883 libdir
=$save_libdir
20887 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20889 # This implies no fast_install, which is unacceptable.
20890 # Some rework will be needed to allow for fast_install
20891 # before this can be enabled.
20892 hardcode_into_libs
=yes
20894 # Append ld.so.conf contents to the search path
20895 if test -f /etc
/ld.so.conf
; then
20896 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' ' '`
20897 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20900 # We used to test for /lib/ld.so.1 and disable shared libraries on
20901 # powerpc, because MkLinux only supported shared libraries with the
20902 # GNU dynamic linker. Since this was broken with cross compilers,
20903 # most powerpc-linux boxes support dynamic linking these days and
20904 # people can always --disable-shared, the test was removed, and we
20905 # assume the GNU/Linux dynamic linker is in use.
20906 dynamic_linker
='GNU/Linux ld.so'
20913 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20915 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20916 dynamic_linker
='NetBSD (a.out) ld.so'
20918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20919 soname_spec
='${libname}${release}${shared_ext}$major'
20920 dynamic_linker
='NetBSD ld.elf_so'
20922 shlibpath_var
=LD_LIBRARY_PATH
20923 shlibpath_overrides_runpath
=yes
20924 hardcode_into_libs
=yes
20929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930 shlibpath_var
=LD_LIBRARY_PATH
20931 shlibpath_overrides_runpath
=yes
20938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 soname_spec
='${libname}${release}${shared_ext}$major'
20940 shlibpath_var
=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath
=no
20942 hardcode_into_libs
=yes
20943 dynamic_linker
='ldqnx.so'
20948 sys_lib_dlsearch_path_spec
="/usr/lib"
20950 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20952 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20953 *) need_version
=no
;;
20955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20956 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20957 shlibpath_var
=LD_LIBRARY_PATH
20958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20960 openbsd2.
[89] | openbsd2.
[89].
*)
20961 shlibpath_overrides_runpath
=no
20964 shlibpath_overrides_runpath
=yes
20968 shlibpath_overrides_runpath
=yes
20973 libname_spec
='$name'
20976 library_names_spec
='$libname${shared_ext} $libname.a'
20977 dynamic_linker
='OS/2 ld.exe'
20978 shlibpath_var
=LIBPATH
20981 osf3
* | osf4
* | osf5
*)
20985 soname_spec
='${libname}${release}${shared_ext}$major'
20986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987 shlibpath_var
=LD_LIBRARY_PATH
20988 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20989 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21001 soname_spec
='${libname}${release}${shared_ext}$major'
21002 shlibpath_var
=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath
=yes
21004 hardcode_into_libs
=yes
21005 # ldd complains unless libraries are executable
21006 postinstall_cmds
='chmod +x $lib'
21011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21012 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21013 shlibpath_var
=LD_LIBRARY_PATH
21014 shlibpath_overrides_runpath
=yes
21015 if test "$with_gnu_ld" = yes; then
21023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024 soname_spec
='${libname}${release}${shared_ext}$major'
21025 shlibpath_var
=LD_LIBRARY_PATH
21026 case $host_vendor in
21028 shlibpath_overrides_runpath
=no
21030 runpath_var
=LD_RUN_PATH
21038 shlibpath_overrides_runpath
=no
21039 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21045 if test -d /usr
/nec
;then
21047 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21048 soname_spec
='$libname${shared_ext}.$major'
21049 shlibpath_var
=LD_LIBRARY_PATH
21053 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21054 version_type
=freebsd-elf
21057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21058 soname_spec
='${libname}${release}${shared_ext}$major'
21059 shlibpath_var
=LD_LIBRARY_PATH
21060 shlibpath_overrides_runpath
=yes
21061 hardcode_into_libs
=yes
21062 if test "$with_gnu_ld" = yes; then
21063 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21065 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21068 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21072 sys_lib_dlsearch_path_spec
='/usr/lib'
21076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21081 shlibpath_var
=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath
=no
21083 hardcode_into_libs
=yes
21088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21089 soname_spec
='${libname}${release}${shared_ext}$major'
21090 shlibpath_var
=LD_LIBRARY_PATH
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21098 $as_echo "$dynamic_linker" >&6; }
21099 test "$dynamic_linker" = no
&& can_build_shared
=no
21101 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21102 if test "$GCC" = yes; then
21103 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21106 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21107 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21109 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21110 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21152 hardcode_action_CXX
=
21153 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21154 test -n "$runpath_var_CXX" ||
21155 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21157 # We can hardcode non-existent directories.
21158 if test "$hardcode_direct_CXX" != no
&&
21159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21160 # have to relink, otherwise we might link with an installed library
21161 # when we should be linking with a yet-to-be-installed one
21162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21163 test "$hardcode_minus_L_CXX" != no
; then
21164 # Linking always hardcodes the temporary library directory.
21165 hardcode_action_CXX
=relink
21167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21168 hardcode_action_CXX
=immediate
21171 # We cannot hardcode anything, or else we can only hardcode existing
21173 hardcode_action_CXX
=unsupported
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21176 $as_echo "$hardcode_action_CXX" >&6; }
21178 if test "$hardcode_action_CXX" = relink ||
21179 test "$inherit_rpath_CXX" = yes; then
21180 # Fast installation is not supported
21181 enable_fast_install
=no
21182 elif test "$shlibpath_overrides_runpath" = yes ||
21183 test "$enable_shared" = no
; then
21184 # Fast installation is not necessary
21185 enable_fast_install
=needless
21194 fi # test -n "$compiler"
21200 with_gnu_ld
=$lt_save_with_gnu_ld
21201 lt_cv_path_LDCXX
=$lt_cv_path_LD
21202 lt_cv_path_LD
=$lt_save_path_LD
21203 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21204 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21205 fi # test "$_lt_caught_CXX_error" != yes
21208 ac_cpp
='$CPP $CPPFLAGS'
21209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21228 # Only expand once:
21234 # Identify the assembler which will work hand-in-glove with the newly
21235 # built GCC, so that we can examine its features. This is the assembler
21236 # which will be driven by the driver program.
21238 # If build != host, and we aren't building gas in-tree, we identify a
21239 # build->target assembler and hope that it will have the same features
21240 # as the host->target assembler we'll be using.
21241 gcc_cv_gas_major_version
=
21242 gcc_cv_gas_minor_version
=
21243 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21245 if test "${gcc_cv_as+set}" = set; then :
21249 if test -x "$DEFAULT_ASSEMBLER"; then
21250 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21251 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21252 && test -f ..
/gas
/Makefile \
21253 && test x
$build = x
$host; then
21254 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21255 elif test -x as
$build_exeext; then
21256 # Build using assembler in the current directory.
21257 gcc_cv_as
=.
/as
$build_exeext
21258 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21259 gcc_cv_as
="$AS_FOR_TARGET"
21261 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21262 set dummy
$AS_FOR_TARGET; ac_word
=$2
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21264 $as_echo_n "checking for $ac_word... " >&6; }
21265 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21266 $as_echo_n "(cached) " >&6
21270 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21274 for as_dir
in $PATH
21277 test -z "$as_dir" && as_dir
=.
21278 for ac_exec_ext
in '' $ac_executable_extensions; do
21279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21280 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21291 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21292 if test -n "$gcc_cv_as"; then
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21294 $as_echo "$gcc_cv_as" >&6; }
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21297 $as_echo "no" >&6; }
21304 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21306 case "$ORIGINAL_AS_FOR_TARGET" in
21307 .
/as | .
/as
$build_exeext) ;;
21308 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21313 $as_echo_n "checking what assembler to use... " >&6; }
21314 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21315 # Single tree build which includes gas. We want to prefer it
21316 # over whatever linker top-level may have detected, since
21317 # we'll use what we're building after installation anyway.
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21319 $as_echo "newly built gas" >&6; }
21321 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21322 for f
in $gcc_cv_as_bfd_srcdir/configure \
21323 $gcc_cv_as_gas_srcdir/configure \
21324 $gcc_cv_as_gas_srcdir/configure.
in \
21325 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21326 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21327 if test x
$gcc_cv_gas_version != x
; then
21331 case $gcc_cv_gas_version in
21333 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21335 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21336 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21337 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21338 case $gcc_cv_gas_patch_version in
21339 "") gcc_cv_gas_patch_version
="0" ;;
21341 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21342 + $gcc_cv_gas_minor_version \) \* 1000 \
21343 + $gcc_cv_gas_patch_version`
21345 in_tree_gas_is_elf
=no
21346 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21347 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21348 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21350 in_tree_gas_is_elf
=yes
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21354 $as_echo "$gcc_cv_as" >&6; }
21358 # Identify the linker which will work hand-in-glove with the newly
21359 # built GCC, so that we can examine its features. This is the linker
21360 # which will be driven by the driver program.
21362 # If build != host, and we aren't building gas in-tree, we identify a
21363 # build->target linker and hope that it will have the same features
21364 # as the host->target linker we'll be using.
21365 gcc_cv_gld_major_version
=
21366 gcc_cv_gld_minor_version
=
21367 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21368 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21370 if test "${gcc_cv_ld+set}" = set; then :
21374 if test -x "$DEFAULT_LINKER"; then
21375 gcc_cv_ld
="$DEFAULT_LINKER"
21376 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21377 && test -f ..
/ld
/Makefile \
21378 && test x
$build = x
$host; then
21379 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21380 elif test -x collect-ld
$build_exeext; then
21381 # Build using linker in the current directory.
21382 gcc_cv_ld
=.
/collect-ld
$build_exeext
21383 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21384 gcc_cv_ld
="$LD_FOR_TARGET"
21386 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21387 set dummy
$LD_FOR_TARGET; ac_word
=$2
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21389 $as_echo_n "checking for $ac_word... " >&6; }
21390 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21391 $as_echo_n "(cached) " >&6
21395 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21399 for as_dir
in $PATH
21402 test -z "$as_dir" && as_dir
=.
21403 for ac_exec_ext
in '' $ac_executable_extensions; do
21404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21405 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21416 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21417 if test -n "$gcc_cv_ld"; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21419 $as_echo "$gcc_cv_ld" >&6; }
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422 $as_echo "no" >&6; }
21429 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21430 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21431 # if the PLUGIN_LD is set ld-new, just have it as ld
21432 # as that is the installed named.
21433 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21434 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21435 PLUGIN_LD_SUFFIX
=ld
21438 # Check whether --with-plugin-ld was given.
21439 if test "${with_plugin_ld+set}" = set; then :
21440 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21441 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21442 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21448 cat >>confdefs.h
<<_ACEOF
21449 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21453 # Check to see if we are using gold instead of ld
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21455 $as_echo_n "checking whether we are using gold... " >&6; }
21457 if test x
$gcc_cv_ld != x
; then
21458 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21459 |
grep "GNU gold" > /dev
/null
; then
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21464 $as_echo "$ld_is_gold" >&6; }
21466 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21468 case "$ORIGINAL_LD_FOR_TARGET" in
21469 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21470 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21475 $as_echo_n "checking what linker to use... " >&6; }
21476 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21477 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21478 # Single tree build which includes ld. We want to prefer it
21479 # over whatever linker top-level may have detected, since
21480 # we'll use what we're building after installation anyway.
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21482 $as_echo "newly built ld" >&6; }
21484 in_tree_ld_is_elf
=no
21485 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21486 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21487 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21488 in_tree_ld_is_elf
=yes
21489 elif test "$ld_is_gold" = yes; then
21490 in_tree_ld_is_elf
=yes
21492 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
21494 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21495 if test x
$gcc_cv_gld_version != x
; then
21499 case $gcc_cv_gld_version in
21501 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21503 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21504 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21507 $as_echo "$gcc_cv_ld" >&6; }
21511 # Figure out what nm we will be using.
21512 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21513 if test "${gcc_cv_nm+set}" = set; then :
21517 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21518 && test -f ..
/binutils
/Makefile \
21519 && test x
$build = x
$host; then
21520 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21521 elif test -x nm
$build_exeext; then
21522 gcc_cv_nm
=.
/nm
$build_exeext
21523 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21524 gcc_cv_nm
="$NM_FOR_TARGET"
21526 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21527 set dummy
$NM_FOR_TARGET; ac_word
=$2
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21529 $as_echo_n "checking for $ac_word... " >&6; }
21530 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21531 $as_echo_n "(cached) " >&6
21535 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21539 for as_dir
in $PATH
21542 test -z "$as_dir" && as_dir
=.
21543 for ac_exec_ext
in '' $ac_executable_extensions; do
21544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21545 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21556 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21557 if test -n "$gcc_cv_nm"; then
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21559 $as_echo "$gcc_cv_nm" >&6; }
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562 $as_echo "no" >&6; }
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21570 $as_echo_n "checking what nm to use... " >&6; }
21571 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21572 # Single tree build which includes binutils.
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21574 $as_echo "newly built nm" >&6; }
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21578 $as_echo "$gcc_cv_nm" >&6; }
21582 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21584 case "$ORIGINAL_NM_FOR_TARGET" in
21585 .
/nm | .
/nm
$build_exeext) ;;
21586 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21591 # Figure out what objdump we will be using.
21592 if test "${gcc_cv_objdump+set}" = set; then :
21596 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21597 && test -f ..
/binutils
/Makefile \
21598 && test x
$build = x
$host; then
21599 # Single tree build which includes binutils.
21600 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21601 elif test -x objdump
$build_exeext; then
21602 gcc_cv_objdump
=.
/objdump
$build_exeext
21603 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21604 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21606 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21607 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21609 $as_echo_n "checking for $ac_word... " >&6; }
21610 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21611 $as_echo_n "(cached) " >&6
21613 case $gcc_cv_objdump in
21615 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21619 for as_dir
in $PATH
21622 test -z "$as_dir" && as_dir
=.
21623 for ac_exec_ext
in '' $ac_executable_extensions; do
21624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21625 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21636 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21637 if test -n "$gcc_cv_objdump"; then
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21639 $as_echo "$gcc_cv_objdump" >&6; }
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21642 $as_echo "no" >&6; }
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21650 $as_echo_n "checking what objdump to use... " >&6; }
21651 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21652 # Single tree build which includes binutils.
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21654 $as_echo "newly built objdump" >&6; }
21655 elif test x
$gcc_cv_objdump = x
; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21657 $as_echo "not found" >&6; }
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21660 $as_echo "$gcc_cv_objdump" >&6; }
21663 # Figure out what readelf we will be using.
21664 if test "${gcc_cv_readelf+set}" = set; then :
21668 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21669 && test -f ..
/binutils
/Makefile \
21670 && test x
$build = x
$host; then
21671 # Single tree build which includes binutils.
21672 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21673 elif test -x readelf
$build_exeext; then
21674 gcc_cv_readelf
=.
/readelf
$build_exeext
21676 # Extract the first word of "readelf", so it can be a program name with args.
21677 set dummy readelf
; ac_word
=$2
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21679 $as_echo_n "checking for $ac_word... " >&6; }
21680 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21681 $as_echo_n "(cached) " >&6
21683 case $gcc_cv_readelf in
21685 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21689 for as_dir
in $PATH
21692 test -z "$as_dir" && as_dir
=.
21693 for ac_exec_ext
in '' $ac_executable_extensions; do
21694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21695 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21706 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21707 if test -n "$gcc_cv_readelf"; then
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21709 $as_echo "$gcc_cv_readelf" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21712 $as_echo "no" >&6; }
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21720 $as_echo_n "checking what readelf to use... " >&6; }
21721 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21722 # Single tree build which includes binutils.
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21724 $as_echo "newly built readelf" >&6; }
21725 elif test x
$gcc_cv_readelf = x
; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21727 $as_echo "not found" >&6; }
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21730 $as_echo "$gcc_cv_readelf" >&6; }
21733 # Figure out what assembler alignment features are present.
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21735 $as_echo_n "checking assembler flags... " >&6; }
21736 if test "${gcc_cv_as_flags+set}" = set; then :
21737 $as_echo_n "(cached) " >&6
21740 i
[34567]86-*-linux*)
21741 gcc_cv_as_flags
="--32"
21743 powerpc
*-*-darwin*)
21744 gcc_cv_as_flags
="-arch ppc"
21747 gcc_cv_as_flags
=" "
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21752 $as_echo "$gcc_cv_as_flags" >&6; }
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21755 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21756 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21757 $as_echo_n "(cached) " >&6
21759 gcc_cv_as_balign_and_p2align
=no
21760 if test $in_tree_gas = yes; then
21761 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21762 then gcc_cv_as_balign_and_p2align
=yes
21764 elif test x
$gcc_cv_as != x
; then
21765 $as_echo '.balign 4
21766 .p2align 2' > conftest.s
21767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21769 (eval $ac_try) 2>&5
21771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21772 test $ac_status = 0; }; }
21774 gcc_cv_as_balign_and_p2align
=yes
21776 echo "configure: failed program was" >&5
21779 rm -f conftest.o conftest.s
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21783 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21784 if test $gcc_cv_as_balign_and_p2align = yes; then
21786 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21791 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21792 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21795 gcc_cv_as_max_skip_p2align
=no
21796 if test $in_tree_gas = yes; then
21797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21798 then gcc_cv_as_max_skip_p2align
=yes
21800 elif test x
$gcc_cv_as != x
; then
21801 $as_echo '.p2align 4,,7' > conftest.s
21802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21804 (eval $ac_try) 2>&5
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; }; }
21809 gcc_cv_as_max_skip_p2align
=yes
21811 echo "configure: failed program was" >&5
21814 rm -f conftest.o conftest.s
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21818 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21819 if test $gcc_cv_as_max_skip_p2align = yes; then
21821 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21826 $as_echo_n "checking assembler for .literal16... " >&6; }
21827 if test "${gcc_cv_as_literal16+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21830 gcc_cv_as_literal16
=no
21831 if test $in_tree_gas = yes; then
21832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21833 then gcc_cv_as_literal16
=yes
21835 elif test x
$gcc_cv_as != x
; then
21836 $as_echo '.literal16' > conftest.s
21837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21839 (eval $ac_try) 2>&5
21841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21842 test $ac_status = 0; }; }
21844 gcc_cv_as_literal16
=yes
21846 echo "configure: failed program was" >&5
21849 rm -f conftest.o conftest.s
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21853 $as_echo "$gcc_cv_as_literal16" >&6; }
21854 if test $gcc_cv_as_literal16 = yes; then
21856 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21861 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21862 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21865 gcc_cv_as_subsection_m1
=no
21866 if test $in_tree_gas = yes; then
21867 if test $in_tree_gas_is_elf = yes \
21868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21869 then gcc_cv_as_subsection_m1
=yes
21871 elif test x
$gcc_cv_as != x
; then
21872 $as_echo 'conftest_label1: .word 0
21874 conftest_label2: .word 0
21875 .previous' > conftest.s
21876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; }
21883 if test x
$gcc_cv_nm != x
; then
21884 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21885 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21886 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21888 else gcc_cv_as_subsection_m1
=yes
21890 rm -f conftest.nm1 conftest.nm2
21893 echo "configure: failed program was" >&5
21896 rm -f conftest.o conftest.s
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21900 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21901 if test $gcc_cv_as_subsection_m1 = yes; then
21903 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21908 $as_echo_n "checking assembler for .weak... " >&6; }
21909 if test "${gcc_cv_as_weak+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21913 if test $in_tree_gas = yes; then
21914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21915 then gcc_cv_as_weak
=yes
21917 elif test x
$gcc_cv_as != x
; then
21918 $as_echo ' .weak foobar' > conftest.s
21919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21921 (eval $ac_try) 2>&5
21923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21924 test $ac_status = 0; }; }
21928 echo "configure: failed program was" >&5
21931 rm -f conftest.o conftest.s
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21935 $as_echo "$gcc_cv_as_weak" >&6; }
21936 if test $gcc_cv_as_weak = yes; then
21938 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21943 $as_echo_n "checking assembler for .weakref... " >&6; }
21944 if test "${gcc_cv_as_weakref+set}" = set; then :
21945 $as_echo_n "(cached) " >&6
21947 gcc_cv_as_weakref
=no
21948 if test $in_tree_gas = yes; then
21949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21950 then gcc_cv_as_weakref
=yes
21952 elif test x
$gcc_cv_as != x
; then
21953 $as_echo ' .weakref foobar, barfnot' > conftest.s
21954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21961 gcc_cv_as_weakref
=yes
21963 echo "configure: failed program was" >&5
21966 rm -f conftest.o conftest.s
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21970 $as_echo "$gcc_cv_as_weakref" >&6; }
21971 if test $gcc_cv_as_weakref = yes; then
21973 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21978 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21979 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21982 gcc_cv_as_nsubspa_comdat
=no
21983 if test $in_tree_gas = yes; then
21984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21985 then gcc_cv_as_nsubspa_comdat
=yes
21987 elif test x
$gcc_cv_as != x
; then
21988 $as_echo ' .SPACE $TEXT$
21989 .NSUBSPA $CODE$,COMDAT' > conftest.s
21990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }
21997 gcc_cv_as_nsubspa_comdat
=yes
21999 echo "configure: failed program was" >&5
22002 rm -f conftest.o conftest.s
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22006 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22007 if test $gcc_cv_as_nsubspa_comdat = yes; then
22009 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22013 # .hidden needs to be supported in both the assembler and the linker,
22014 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22015 # This is irritatingly difficult to feature test for; we have to check the
22016 # date string after the version number. If we've got an in-tree
22017 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22019 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22021 $as_echo_n "checking assembler for .hidden... " >&6; }
22022 if test "${gcc_cv_as_hidden+set}" = set; then :
22023 $as_echo_n "(cached) " >&6
22025 gcc_cv_as_hidden
=no
22026 if test $in_tree_gas = yes; then
22027 if test $in_tree_gas_is_elf = yes \
22028 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22029 then gcc_cv_as_hidden
=yes
22031 elif test x
$gcc_cv_as != x
; then
22032 $as_echo ' .hidden foobar
22033 foobar:' > conftest.s
22034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; }
22042 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22043 # STV_HIDDEN, so disable .hidden support if so.
22044 case "${target}" in
22045 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22046 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22047 cat > conftest.s
<<EOF
22052 .set default,hidden
22054 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22055 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22056 grep '\.hidden default' > /dev
/null
; then
22057 gcc_cv_as_hidden
=no
22059 gcc_cv_as_hidden
=yes
22062 # Assume bug is present if objdump is missing.
22063 gcc_cv_as_hidden
=no
22067 gcc_cv_as_hidden
=yes
22071 echo "configure: failed program was" >&5
22074 rm -f conftest.o conftest.s
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22078 $as_echo "$gcc_cv_as_hidden" >&6; }
22080 case "${target}" in
22082 # Darwin as has some visibility support, though with a different syntax.
22083 gcc_cv_as_hidden
=yes
22087 # gnu_indirect_function type is an extension proposed at
22088 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22089 # selection of function implementation
22090 # Check whether --enable-gnu-indirect-function was given.
22091 if test "${enable_gnu_indirect_function+set}" = set; then :
22092 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22094 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22095 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22098 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22102 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22104 cat >>confdefs.h
<<_ACEOF
22105 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22110 if test $in_tree_ld != yes ; then
22111 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22112 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22113 if test x
"$ld_is_gold" = xyes
; then
22114 # GNU gold --version looks like this:
22116 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22118 # We extract the binutils version which is more familiar and specific
22119 # than the gold version.
22120 ld_vers
=`echo $ld_ver | sed -n \
22121 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22123 # GNU ld --version looks like this:
22125 # GNU ld (GNU Binutils) 2.21.51.20110225
22126 ld_vers
=`echo $ld_ver | sed -n \
22127 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22129 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'`
22130 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22131 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22132 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22134 case "${target}" in
22136 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22139 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22140 # /usr/ccs/bin/ld has been configured.
22141 ld_ver
=`$gcc_cv_ld -V 2>&1`
22142 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22143 ld_vers
=`echo $ld_ver | sed -n \
22144 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22145 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22146 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22154 $as_echo_n "checking linker for .hidden support... " >&6; }
22155 if test "${gcc_cv_ld_hidden+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22158 if test $in_tree_ld = yes ; then
22159 gcc_cv_ld_hidden
=no
22160 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 \
22161 && test $in_tree_ld_is_elf = yes; then
22162 gcc_cv_ld_hidden
=yes
22165 gcc_cv_ld_hidden
=yes
22166 if test x
"$ld_is_gold" = xyes
; then
22168 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22169 case "${target}" in
22170 mmix-knuth-mmixware
)
22171 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22172 gcc_cv_ld_hidden
=no
22175 if test 0"$ld_date" -lt 20020404; then
22176 if test -n "$ld_date"; then
22177 # If there was date string, but was earlier than 2002-04-04, fail
22178 gcc_cv_ld_hidden
=no
22179 elif test -z "$ld_vers"; then
22180 # If there was no date string nor ld version number, something is wrong
22181 gcc_cv_ld_hidden
=no
22183 test -z "$ld_vers_patch" && ld_vers_patch
=0
22184 if test "$ld_vers_major" -lt 2; then
22185 gcc_cv_ld_hidden
=no
22186 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22187 gcc_cv_ld_hidden
="no"
22188 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22189 gcc_cv_ld_hidden
=no
22194 case "${target}" in
22196 # Darwin ld has some visibility support.
22197 gcc_cv_ld_hidden
=yes
22199 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22200 gcc_cv_ld_hidden
=yes
22202 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22203 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22204 # .symbolic was only added in Solaris 9 12/02.
22205 gcc_cv_ld_hidden
=yes
22208 gcc_cv_ld_hidden
=no
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22215 $as_echo "$gcc_cv_ld_hidden" >&6; }
22216 libgcc_visibility
=no
22219 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22220 libgcc_visibility
=yes
22222 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22227 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22228 gcc_cv_ld_ro_rw_mix
=unknown
22229 if test $in_tree_ld = yes ; then
22230 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 \
22231 && test $in_tree_ld_is_elf = yes; then
22232 gcc_cv_ld_ro_rw_mix
=read-write
22234 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22235 echo '.section myfoosect, "a"' > conftest1.s
22236 echo '.section myfoosect, "aw"' > conftest2.s
22237 echo '.byte 1' >> conftest2.s
22238 echo '.section myfoosect, "a"' > conftest3.s
22239 echo '.byte 0' >> conftest3.s
22240 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22241 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22242 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22243 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22244 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22245 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22246 | sed -e '/myfoosect/!d' -e N`
22247 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22248 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22249 gcc_cv_ld_ro_rw_mix
=read-only
22251 gcc_cv_ld_ro_rw_mix
=read-write
22255 rm -f conftest.
* conftest
[123].
*
22257 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22259 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22263 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22265 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22266 case "${target}" in
22269 # Solaris 2 ld -V output looks like this for a regular version:
22271 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22273 # but test versions add stuff at the end:
22275 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22277 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22278 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22279 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22280 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22281 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22282 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22288 # Check whether --enable-initfini-array was given.
22289 if test "${enable_initfini_array+set}" = set; then :
22290 enableval
=$enable_initfini_array;
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22294 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22295 if test "${gcc_cv_initfini_array+set}" = set; then :
22296 $as_echo_n "(cached) " >&6
22298 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22299 case "${target}" in
22301 if test "$cross_compiling" = yes; then :
22302 gcc_cv_initfini_array
=no
22304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22308 #error Not an ELF OS
22310 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22311 if it can be used. */
22313 int main (void) { return x; }
22314 int foo (void) { x = 0; }
22315 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22318 if ac_fn_c_try_run
"$LINENO"; then :
22319 gcc_cv_initfini_array
=yes
22321 gcc_cv_initfini_array
=no
22323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22328 gcc_cv_initfini_array
=no
22329 if test $in_tree_ld = yes ; then
22330 if test "$gcc_cv_gld_major_version" -eq 2 \
22331 -a "$gcc_cv_gld_minor_version" -ge 22 \
22332 -o "$gcc_cv_gld_major_version" -gt 2 \
22333 && test $in_tree_ld_is_elf = yes; then
22334 gcc_cv_initfini_array
=yes
22336 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22337 cat > conftest.s
<<\EOF
22338 .section .dtors
,"a",%progbits
22340 .byte
'A', 'A', 'A', 'A'
22341 .section .ctors
,"a",%progbits
22343 .byte
'B', 'B', 'B', 'B'
22344 .section .fini_array
.65530,"a",%progbits
22346 .byte
'C', 'C', 'C', 'C'
22347 .section .init_array
.65530,"a",%progbits
22349 .byte
'D', 'D', 'D', 'D'
22350 .section .dtors
.64528,"a",%progbits
22352 .byte
'E', 'E', 'E', 'E'
22353 .section .ctors
.64528,"a",%progbits
22355 .byte
'F', 'F', 'F', 'F'
22356 .section .fini_array
.01005,"a",%progbits
22358 .byte
'G', 'G', 'G', 'G'
22359 .section .init_array
.01005,"a",%progbits
22361 .byte
'H', 'H', 'H', 'H'
22366 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22367 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22368 && $gcc_cv_objdump -s -j .init_array conftest \
22369 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22370 && $gcc_cv_objdump -s -j .fini_array conftest \
22371 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22372 gcc_cv_initfini_array
=yes
22374 rm -f conftest conftest.
*
22376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22380 # error Not an ELF OS
22382 #include <stdlib.h>
22383 #if defined __GLIBC_PREREQ
22384 # if __GLIBC_PREREQ (2, 4)
22386 # error GLIBC 2.4 required
22389 # if defined __sun__ && defined __svr4__
22390 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22392 # error The C library not known to support .init_array/.fini_array
22397 if ac_fn_c_try_cpp
"$LINENO"; then :
22400 gcc_cv_initfini_array
=no
22402 rm -f conftest.err conftest.
$ac_ext;;
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22406 $as_echo_n "checking cross compile... guessing... " >&6; }
22407 gcc_cv_initfini_array
=no
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22411 $as_echo "$gcc_cv_initfini_array" >&6; }
22412 enable_initfini_array
=$gcc_cv_initfini_array
22416 if test $enable_initfini_array = yes; then
22418 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22422 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22424 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22425 if test "${gcc_cv_as_leb128+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22428 gcc_cv_as_leb128
=no
22429 if test $in_tree_gas = yes; then
22430 if test $in_tree_gas_is_elf = yes \
22431 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22432 then gcc_cv_as_leb128
=yes
22434 elif test x
$gcc_cv_as != x
; then
22441 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22443 (eval $ac_try) 2>&5
22445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22446 test $ac_status = 0; }; }
22448 # GAS versions before 2.11 do not support uleb128,
22449 # despite appearing to.
22450 # ??? There exists an elf-specific test that will crash
22451 # the assembler. Perhaps it's better to figure out whether
22452 # arbitrary sections are supported and try the test.
22453 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22454 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22455 as_vers
=`echo $as_ver | sed -n \
22456 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22457 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22458 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22459 if test $as_major -eq 2 && test $as_minor -lt 11
22461 else gcc_cv_as_leb128
=yes
22465 echo "configure: failed program was" >&5
22468 rm -f conftest.o conftest.s
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22472 $as_echo "$gcc_cv_as_leb128" >&6; }
22473 if test $gcc_cv_as_leb128 = yes; then
22475 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22479 # Check if we have assembler support for unwind directives.
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22481 $as_echo_n "checking assembler for cfi directives... " >&6; }
22482 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22485 gcc_cv_as_cfi_directive
=no
22486 if test x
$gcc_cv_as != x
; then
22492 .cfi_escape 1, 2, 3, 4, 5
22493 .cfi_endproc' > conftest.s
22494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22496 (eval $ac_try) 2>&5
22498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22499 test $ac_status = 0; }; }
22503 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22504 # read-only and read-write sections, we need to make sure that the
22505 # assembler used emits read-write .eh_frame sections.
22506 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22507 if test "x$gcc_cv_objdump" != x
; then
22508 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22509 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22510 gcc_cv_as_cfi_directive
=no
22513 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22514 # On Solaris/x86, make sure that GCC and gas agree on using
22515 # read-only .eh_frame sections for 64-bit.
22516 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22517 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22518 sed -e /.eh_frame
/!d
-e N | \
22519 grep READONLY
> /dev
/null
; then
22520 gcc_cv_as_cfi_directive
=yes
22522 gcc_cv_as_cfi_directive
=no
22526 gcc_cv_as_cfi_directive
=yes
22531 # no objdump, err on the side of caution
22532 gcc_cv_as_cfi_directive
=no
22535 gcc_cv_as_cfi_directive
=yes
22539 gcc_cv_as_cfi_directive
=yes
22543 echo "configure: failed program was" >&5
22546 rm -f conftest.o conftest.s
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22550 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22552 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22554 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22555 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22556 $as_echo_n "(cached) " >&6
22558 gcc_cv_as_cfi_advance_working
=no
22559 if test x
$gcc_cv_as != x
; then
22562 .cfi_adjust_cfa_offset 64
22564 .cfi_adjust_cfa_offset 128
22565 .cfi_endproc' > conftest.s
22566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22574 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22575 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22576 gcc_cv_as_cfi_advance_working
=yes
22580 echo "configure: failed program was" >&5
22583 rm -f conftest.o conftest.s
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22587 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22590 # no objdump, err on the side of caution
22591 gcc_cv_as_cfi_advance_working
=no
22595 cat >>confdefs.h
<<_ACEOF
22596 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22597 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22603 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22604 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22605 $as_echo_n "(cached) " >&6
22607 gcc_cv_as_cfi_personality_directive
=no
22608 if test x
$gcc_cv_as != x
; then
22611 .cfi_personality 0, symbol
22612 .cfi_endproc' > conftest.s
22613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22615 (eval $ac_try) 2>&5
22617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22618 test $ac_status = 0; }; }
22620 gcc_cv_as_cfi_personality_directive
=yes
22622 echo "configure: failed program was" >&5
22625 rm -f conftest.o conftest.s
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22629 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22632 cat >>confdefs.h
<<_ACEOF
22633 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22634 then echo 1; else echo 0; fi`
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22639 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22640 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22643 gcc_cv_as_cfi_sections_directive
=no
22644 if test x
$gcc_cv_as != x
; then
22646 .cfi_sections .debug_frame, .eh_frame
22648 .cfi_endproc' > conftest.s
22649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22651 (eval $ac_try) 2>&5
22653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22654 test $ac_status = 0; }; }
22657 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22658 # Need to check that we generated the correct relocation for the
22659 # .debug_frame section. This was fixed for binutils 2.21.
22660 gcc_cv_as_cfi_sections_directive
=no
22661 if test "x$gcc_cv_objdump" != x
; then
22662 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22663 grep secrel
> /dev
/null
; then
22664 gcc_cv_as_cfi_sections_directive
=yes
22669 gcc_cv_as_cfi_sections_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_sections_directive" >&5
22680 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22684 cat >>confdefs.h
<<_ACEOF
22685 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22686 then echo 1; else echo 0; fi`
22690 # GAS versions up to and including 2.11.0 may mis-optimize
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22693 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22694 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22695 $as_echo_n "(cached) " >&6
22697 gcc_cv_as_eh_frame
=no
22698 if test $in_tree_gas = yes; then
22699 if test $in_tree_gas_is_elf = yes \
22700 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22701 then gcc_cv_as_eh_frame
=yes
22703 elif test x
$gcc_cv_as != x
; then
22710 .section .eh_frame,"aw",@progbits
22712 .4byte .LECIE1-.LSCIE1
22726 .4byte .LEFDE1-.LASFDE1
22728 .4byte .LASFDE1-__FRAME_BEGIN__
22735 .LEFDE1:' > conftest.s
22736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22738 (eval $ac_try) 2>&5
22740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22741 test $ac_status = 0; }; }
22743 cat > conftest.lit
<<EOF
22744 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22745 0010 01000000 12000000 18000000 00000000 ................
22746 0020 08000000 04080000 0044 .........D
22748 cat > conftest.big
<<EOF
22749 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22750 0010 00000001 00000012 00000018 00000000 ................
22751 0020 00000008 04000000 0844 .........D
22753 # If the assembler didn't choke, and we can objdump,
22754 # and we got the correct data, then succeed.
22755 # The text in the here-document typically retains its unix-style line
22756 # endings, while the output of objdump will use host line endings.
22757 # Therefore, use diff -b for the comparisons.
22758 if test x
$gcc_cv_objdump != x \
22759 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22760 |
tail -3 > conftest.got \
22761 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22762 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22764 gcc_cv_as_eh_frame
=yes
22765 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }; then
22771 gcc_cv_as_eh_frame
=buggy
22773 # Uh oh, what do we do now?
22774 gcc_cv_as_eh_frame
=no
22777 echo "configure: failed program was" >&5
22780 rm -f conftest.o conftest.s
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22784 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22787 if test $gcc_cv_as_eh_frame = buggy
; then
22789 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22794 $as_echo_n "checking assembler for section merging support... " >&6; }
22795 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22798 gcc_cv_as_shf_merge
=no
22799 if test $in_tree_gas = yes; then
22800 if test $in_tree_gas_is_elf = yes \
22801 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22802 then gcc_cv_as_shf_merge
=yes
22804 elif test x
$gcc_cv_as != x
; then
22805 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22808 (eval $ac_try) 2>&5
22810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22811 test $ac_status = 0; }; }
22813 gcc_cv_as_shf_merge
=yes
22815 echo "configure: failed program was" >&5
22818 rm -f conftest.o conftest.s
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22822 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22824 if test $gcc_cv_as_shf_merge = no
; then
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22826 $as_echo_n "checking assembler for section merging support... " >&6; }
22827 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22830 gcc_cv_as_shf_merge
=no
22831 if test $in_tree_gas = yes; then
22832 if test $in_tree_gas_is_elf = yes \
22833 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22834 then gcc_cv_as_shf_merge
=yes
22836 elif test x
$gcc_cv_as != x
; then
22837 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22840 (eval $ac_try) 2>&5
22842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22843 test $ac_status = 0; }; }
22845 gcc_cv_as_shf_merge
=yes
22847 echo "configure: failed program was" >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22854 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22858 cat >>confdefs.h
<<_ACEOF
22859 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22864 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22865 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22866 $as_echo_n "(cached) " >&6
22868 gcc_cv_as_comdat_group
=no
22869 if test $in_tree_gas = yes; then
22870 if test $in_tree_gas_is_elf = yes \
22871 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22872 then gcc_cv_as_comdat_group
=yes
22874 elif test x
$gcc_cv_as != x
; then
22875 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878 (eval $ac_try) 2>&5
22880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881 test $ac_status = 0; }; }
22883 gcc_cv_as_comdat_group
=yes
22885 echo "configure: failed program was" >&5
22888 rm -f conftest.o conftest.s
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22892 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22894 if test $gcc_cv_as_comdat_group = yes; then
22895 gcc_cv_as_comdat_group_percent
=no
22896 gcc_cv_as_comdat_group_group
=no
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22899 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22900 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22901 $as_echo_n "(cached) " >&6
22903 gcc_cv_as_comdat_group_percent
=no
22904 if test $in_tree_gas = yes; then
22905 if test $in_tree_gas_is_elf = yes \
22906 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22907 then gcc_cv_as_comdat_group_percent
=yes
22909 elif test x
$gcc_cv_as != x
; then
22910 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22913 (eval $ac_try) 2>&5
22915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22916 test $ac_status = 0; }; }
22918 gcc_cv_as_comdat_group_percent
=yes
22920 echo "configure: failed program was" >&5
22923 rm -f conftest.o conftest.s
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22927 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22929 if test $gcc_cv_as_comdat_group_percent = yes; then
22930 gcc_cv_as_comdat_group_group
=no
22932 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22933 gcc_cv_as_comdat_group_group
=no
22935 case "${target}" in
22936 # Sun as uses a completely different syntax.
22938 case "${target}" in
22939 sparc
*-*-solaris2*)
22941 .group foo,".text%foo",#comdat
22942 .section ".text%foo", #alloc,#execinstr,#progbits
22947 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22949 .group foo,.text%foo,#comdat
22950 .section .text%foo, "ax", @progbits
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22957 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22958 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22961 gcc_cv_as_comdat_group_group
=no
22962 if test x
$gcc_cv_as != x
; then
22963 $as_echo "$conftest_s" > conftest.s
22964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22966 (eval $ac_try) 2>&5
22968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22969 test $ac_status = 0; }; }
22971 gcc_cv_as_comdat_group_group
=yes
22973 echo "configure: failed program was" >&5
22976 rm -f conftest.o conftest.s
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22980 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22986 if test x
"$ld_is_gold" = xyes
; then
22988 elif test $in_tree_ld = yes ; then
22990 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 \
22991 && test $in_tree_ld_is_elf = yes; then
22994 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22996 if test 0"$ld_date" -lt 20050308; then
22997 if test -n "$ld_date"; then
22998 # If there was date string, but was earlier than 2005-03-08, fail
23000 elif test "$ld_vers_major" -lt 2; then
23002 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23007 case "${target}" in
23008 *-*-solaris2.1
[1-9]*)
23010 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23011 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23014 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23015 # least ld version 1.2267.
23016 if test "$ld_vers_major" -gt 1; then
23018 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23020 elif test "$ld_vers_minor" -ge 2267; then
23025 # Assume linkers other than GNU ld don't support COMDAT group.
23030 # Allow overriding the automatic COMDAT group tests above.
23031 # Check whether --enable-comdat was given.
23032 if test "${enable_comdat+set}" = set; then :
23033 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23036 if test $comdat_group = no
; then
23037 gcc_cv_as_comdat_group
=no
23038 gcc_cv_as_comdat_group_percent
=no
23039 gcc_cv_as_comdat_group_group
=no
23042 cat >>confdefs.h
<<_ACEOF
23043 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23044 || test $gcc_cv_as_comdat_group_percent = yes \
23045 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23050 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23051 if test "${gcc_cv_as_discriminator+set}" = set; then :
23052 $as_echo_n "(cached) " >&6
23054 gcc_cv_as_discriminator
=no
23055 if test $in_tree_gas = yes; then
23056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23057 then gcc_cv_as_discriminator
=yes
23059 elif test x
$gcc_cv_as != x
; then
23062 .loc 1 1 0 discriminator 1' > conftest.s
23063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23065 (eval $ac_try) 2>&5
23067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23068 test $ac_status = 0; }; }
23070 gcc_cv_as_discriminator
=yes
23072 echo "configure: failed program was" >&5
23075 rm -f conftest.o conftest.s
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23079 $as_echo "$gcc_cv_as_discriminator" >&6; }
23080 if test $gcc_cv_as_discriminator = yes; then
23082 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23086 # Thread-local storage - the check is heavily parameterized.
23094 .section ".tdata","awT",@progbits
23097 ldq $27,__tls_get_addr($29) !literal!1
23098 lda $16,foo($29) !tlsgd!1
23099 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23100 ldq $27,__tls_get_addr($29) !literal!2
23101 lda $16,foo($29) !tlsldm!2
23102 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23103 ldq $1,foo($29) !gotdtprel
23104 ldah $2,foo($29) !dtprelhi
23105 lda $3,foo($2) !dtprello
23106 lda $4,foo($29) !dtprel
23107 ldq $1,foo($29) !gottprel
23108 ldah $2,foo($29) !tprelhi
23109 lda $3,foo($2) !tprello
23110 lda $4,foo($29) !tprel'
23113 tls_as_opt
=--fatal-warnings
23115 cris-
*-*|crisv32-
*-*)
23117 .section ".tdata","awT",@progbits
23124 tls_as_opt
=--fatal-warnings
23128 .section ".tdata","awT",@progbits
23131 call #gettlsoff(x)'
23140 .section ".tdata","awT",@progbits
23144 addil LT%foo-$tls_gdidx$,gp
23145 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23148 addil LT%foo-$tls_ldidx$,gp
23150 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23151 addil LR%foo-$tls_dtpoff$,%ret0
23152 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23154 addil LT%foo-$tls_ieoff$,gp
23155 ldw RT%foo-$tls_ieoff$(%r1),%t2
23158 addil LR%foo-$tls_leoff$,%t1
23159 ldo RR%foo-$tls_leoff$(%r1),%t2'
23162 tls_as_opt
=--fatal-warnings
23166 .section ".tdata","awT",%progbits
23169 .word foo(gottpoff)
23177 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23179 i
[34567]86-*-solaris2.
*)
23181 tga_func
=___tls_get_addr
23183 x86_64-
*-solaris2.1
[0-9]*)
23185 tga_func
=__tls_get_addr
23191 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23193 .section .tdata,"awt",@progbits'
23197 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23201 .section ".tdata","awT",@progbits'
23204 tls_as_opt
="--fatal-warnings"
23206 conftest_s
="$conftest_s
23210 leal foo@tlsgd(,%ebx,1), %eax
23211 leal foo@tlsldm(%ebx), %eax
23212 leal foo@dtpoff(%eax), %edx
23213 movl foo@gottpoff(%ebx), %eax
23214 subl foo@gottpoff(%ebx), %eax
23215 addl foo@gotntpoff(%ebx), %eax
23216 movl foo@indntpoff, %eax
23217 movl \$foo@tpoff, %eax
23218 subl \$foo@tpoff, %eax
23219 leal foo@ntpoff(%ecx), %eax"
23223 .section ".tdata","awT",@progbits
23227 leaq foo@TLSGD(%rip), %rdi
23228 leaq foo@TLSLD(%rip), %rdi
23229 leaq foo@DTPOFF(%rax), %rdx
23230 movq foo@GOTTPOFF(%rip), %rax
23231 movq $foo@TPOFF, %rax'
23234 tls_as_opt
=--fatal-warnings
23238 .section ".tdata","awT",@progbits
23241 addl r16 = @ltoff(@dtpmod(foo#)), gp
23242 addl r17 = @ltoff(@dtprel(foo#)), gp
23243 addl r18 = @ltoff(@tprel(foo#)), gp
23244 addl r19 = @dtprel(foo#), gp
23245 adds r21 = @dtprel(foo#), r13
23246 movl r23 = @dtprel(foo#)
23247 addl r20 = @tprel(foo#), gp
23248 adds r22 = @tprel(foo#), r13
23249 movl r24 = @tprel(foo#)'
23252 tls_as_opt
=--fatal-warnings
23256 .section .tdata,"awT",@progbits
23260 addik r5,r20,x@TLSGD
23261 addik r5,r20,x@TLSLDM'
23264 tls_as_opt
='--fatal-warnings'
23268 .section .tdata,"awT",@progbits
23272 addiu $4, $28, %tlsgd(x)
23273 addiu $4, $28, %tlsldm(x)
23274 lui $4, %dtprel_hi(x)
23275 addiu $4, $4, %dtprel_lo(x)
23276 lw $4, %gottprel(x)($28)
23277 lui $4, %tprel_hi(x)
23278 addiu $4, $4, %tprel_lo(x)'
23281 tls_as_opt
='-32 --fatal-warnings'
23285 .section .tdata,"awT",@progbits
23290 move.l x@TLSGD(%a5),%a0
23291 move.l x@TLSLDM(%a5),%a0
23292 move.l x@TLSLDO(%a5),%a0
23293 move.l x@TLSIE(%a5),%a0
23294 move.l x@TLSLE(%a5),%a0'
23297 tls_as_opt
='--fatal-warnings'
23301 .section ".tdata","awT",%progbits
23305 add x0, x0, #:tlsgd_lo12:x
23310 tls_as_opt
='--fatal-warnings'
23314 .extern __get_tpointer
23332 .section ".tdata","awT",@progbits
23340 addi 3,2,ld0@got@tlsgd
23346 addi 3,2,x1@got@tlsld
23352 addis 9,3,x2@dtprel@ha
23353 addi 9,9,x2@dtprel@l
23356 ld 9,x3@got@dtprel(2)
23362 tls_as_opt
="-a64 --fatal-warnings"
23366 .section ".tdata","awT",@progbits
23374 addi 3,31,ld0@got@tlsgd
23376 addi 3,31,x1@got@tlsld
23379 addis 9,3,x2@dtprel@ha
23380 addi 9,9,x2@dtprel@l
23381 lwz 9,x3@got@tprel(31)
23384 addis 9,2,x2@tprel@ha
23385 addi 9,9,x2@tprel@l'
23388 tls_as_opt
="-a32 --fatal-warnings"
23392 .section ".tdata","awT",@progbits
23399 .long foo@GOTNTPOFF
23400 .long foo@INDNTPOFF
23401 l %r1,foo@GOTNTPOFF(%r12)
23402 l %r1,0(%r1):tls_load:foo
23403 bas %r14,0(%r1,%r13):tls_gdcall:foo
23404 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23407 tls_as_opt
="-m31 --fatal-warnings"
23411 .section ".tdata","awT",@progbits
23418 .quad foo@GOTNTPOFF
23419 lg %r1,foo@GOTNTPOFF(%r12)
23420 larl %r1,foo@INDNTPOFF
23421 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23422 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23425 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23427 sh-
*-* | sh
[34]-*-*)
23429 .section ".tdata","awT",@progbits
23439 tls_as_opt
=--fatal-warnings
23443 sparc
*-sun-solaris2.
*)
23445 tga_func
=__tls_get_addr
23451 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23453 .section ".tdata",#alloc,#write,#tls'
23458 .section ".tdata","awT",@progbits'
23461 tls_as_opt
="-32 --fatal-warnings"
23463 conftest_s
="$conftest_s
23466 sethi %tgd_hi22(foo), %o0
23467 add %o0, %tgd_lo10(foo), %o1
23468 add %l7, %o1, %o0, %tgd_add(foo)
23469 call __tls_get_addr, %tgd_call(foo)
23470 sethi %tldm_hi22(foo), %l1
23471 add %l1, %tldm_lo10(foo), %l2
23472 add %l7, %l2, %o0, %tldm_add(foo)
23473 call __tls_get_addr, %tldm_call(foo)
23474 sethi %tldo_hix22(foo), %l3
23475 xor %l3, %tldo_lox10(foo), %l4
23476 add %o0, %l4, %l5, %tldo_add(foo)
23477 sethi %tie_hi22(foo), %o3
23478 add %o3, %tie_lo10(foo), %o3
23479 ld [%l7 + %o3], %o2, %tie_ld(foo)
23480 add %g7, %o2, %o4, %tie_add(foo)
23481 sethi %tle_hix22(foo), %l1
23482 xor %l1, %tle_lox10(foo), %o5
23483 ld [%g7 + %o5], %o1"
23487 .section ".tdata","awT",@progbits
23490 addli r0, zero, tls_gd(foo)
23491 auli r0, zero, tls_gd_ha16(foo)
23492 addli r0, r0, tls_gd_lo16(foo)
23494 addli r0, zero, tls_ie(foo)
23495 auli r0, r0, tls_ie_ha16(foo)
23496 addli r0, r0, tls_ie_lo16(foo)'
23499 tls_as_opt
="--fatal-warnings"
23503 .section ".tdata","awT",@progbits
23506 shl16insli r0, zero, hw0_last_tls_gd(foo)
23507 shl16insli r0, zero, hw1_last_tls_gd(foo)
23508 shl16insli r0, r0, hw0_tls_gd(foo)
23510 shl16insli r0, zero, hw1_last_tls_ie(foo)
23511 shl16insli r0, r0, hw0_tls_ie(foo)'
23514 tls_as_opt
="--fatal-warnings"
23518 .section ".tdata","awT",@progbits
23521 movi a8, foo@TLSFUNC
23522 movi a10, foo@TLSARG
23523 callx8.tls a8, foo@TLSCALL'
23529 if test "x$enable_tls" = xno
; then
23530 : # TLS explicitly disabled.
23531 elif test "x$enable_tls" = xyes
; then
23532 set_have_as_tls
=yes # TLS explicitly enabled.
23533 elif test -z "$tls_first_major"; then
23534 : # If we don't have a check, assume no support.
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23537 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23538 if test "${gcc_cv_as_tls+set}" = set; then :
23539 $as_echo_n "(cached) " >&6
23542 if test $in_tree_gas = yes; then
23543 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23544 then gcc_cv_as_tls
=yes
23546 elif test x
$gcc_cv_as != x
; then
23547 $as_echo "$conftest_s" > conftest.s
23548 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23550 (eval $ac_try) 2>&5
23552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23553 test $ac_status = 0; }; }
23557 echo "configure: failed program was" >&5
23560 rm -f conftest.o conftest.s
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23564 $as_echo "$gcc_cv_as_tls" >&6; }
23565 if test $gcc_cv_as_tls = yes; then
23566 set_have_as_tls
=yes
23570 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23571 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23572 # Sun style that Sun ld and GCC don't support any longer.
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23575 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23577 # Check ld and ld.so.1 TLS support.
23578 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23579 # Assume all interesting versions of GNU ld have TLS support.
23580 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23584 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23586 min_tls_ld_vers_minor
=374
23588 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23589 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23590 min_tls_ld_vers_minor
=343
23593 if test "$ld_vers_major" -gt 1 || \
23594 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23601 $as_echo "$ld_tls_support" >&6; }
23604 save_LDFLAGS
="$LDFLAGS"
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23609 $as_echo_n "checking library containing $tga_func... " >&6; }
23610 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23611 # (32-bit x86) only lived in libthread, so check for that. Keep
23612 # set_have_as_tls if found, disable if not.
23613 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23615 $as_echo_n "checking for library containing $tga_func... " >&6; }
23616 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23617 $as_echo_n "(cached) " >&6
23619 ac_func_search_save_LIBS
=$LIBS
23620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23621 /* end confdefs.h. */
23623 /* Override any GCC internal prototype to avoid an error.
23624 Use char because int might match the return type of a GCC
23625 builtin and then its argument prototype would still apply. */
23633 return $tga_func ();
23638 for ac_lib
in '' thread
; do
23639 if test -z "$ac_lib"; then
23640 ac_res
="none required"
23643 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23645 if ac_fn_c_try_link
"$LINENO"; then :
23646 eval "$as_ac_Search=\$ac_res"
23648 rm -f core conftest.err conftest.
$ac_objext \
23650 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23654 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23657 eval "$as_ac_Search=no"
23659 rm conftest.
$ac_ext
23660 LIBS
=$ac_func_search_save_LIBS
23662 eval ac_res
=\$
$as_ac_Search
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23664 $as_echo "$ac_res" >&6; }
23665 eval ac_res
=\$
$as_ac_Search
23666 if test "$ac_res" != no
; then :
23667 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23673 # Clear LIBS if we cannot support TLS.
23674 if test $set_have_as_tls = no
; then
23677 # Always define LIB_TLS_SPEC, even without TLS support.
23679 cat >>confdefs.h
<<_ACEOF
23680 #define LIB_TLS_SPEC "$LIBS"
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23684 $as_echo "$LIBS" >&6; }
23687 LDFLAGS
="$save_LDFLAGS"
23690 if test $set_have_as_tls = yes ; then
23692 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23696 # Target-specific assembler checks.
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23699 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23700 gcc_cv_ld_static_dynamic
=no
23701 gcc_cv_ld_static_option
='-Bstatic'
23702 gcc_cv_ld_dynamic_option
='-Bdynamic'
23703 if test $in_tree_ld = yes ; then
23704 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
23705 gcc_cv_ld_static_dynamic
=yes
23707 elif test x
$gcc_cv_ld != x
; then
23708 # Check if linker supports -Bstatic/-Bdynamic option
23709 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23710 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23711 gcc_cv_ld_static_dynamic
=yes
23714 # AIX ld uses -b flags
23715 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23716 gcc_cv_ld_static_dynamic
=yes
23717 gcc_cv_ld_static_option
="-bstatic"
23718 gcc_cv_ld_dynamic_option
="-bdynamic"
23720 # HP-UX ld uses -a flags to select between shared and archive.
23722 if test x
"$gnu_ld" = xno
; then
23723 gcc_cv_ld_static_dynamic
=yes
23724 gcc_cv_ld_static_option
="-aarchive_shared"
23725 gcc_cv_ld_dynamic_option
="-adefault"
23728 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23730 gcc_cv_ld_static_dynamic
=yes
23735 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23737 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23740 cat >>confdefs.h
<<_ACEOF
23741 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23745 cat >>confdefs.h
<<_ACEOF
23746 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23751 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23753 if test x
"$demangler_in_ld" = xyes
; then
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23755 $as_echo_n "checking linker --demangle support... " >&6; }
23756 gcc_cv_ld_demangle
=no
23757 if test $in_tree_ld = yes; then
23758 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 \
23759 gcc_cv_ld_demangle
=yes
23761 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23762 # Check if the GNU linker supports --demangle option
23763 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23764 gcc_cv_ld_demangle
=yes
23767 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23769 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23773 $as_echo "$gcc_cv_ld_demangle" >&6; }
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23777 $as_echo_n "checking linker plugin support... " >&6; }
23778 gcc_cv_lto_plugin
=0
23779 if test -f liblto_plugin.la
; then
23780 save_ld_ver
="$ld_ver"
23781 save_ld_vers_major
="$ld_vers_major"
23782 save_ld_vers_minor
="$ld_vers_minor"
23783 save_ld_is_gold
="$ld_is_gold"
23787 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23789 # FIXME: ld_is_gold?
23790 ld_vers_major
="$gcc_cv_gld_major_version"
23791 ld_vers_minor
="$gcc_cv_gld_minor_version"
23793 # Determine plugin linker version.
23794 # FIXME: Partial duplicate from above, generalize.
23795 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23796 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23797 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23799 ld_vers
=`echo $ld_ver | sed -n \
23800 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23802 ld_vers
=`echo $ld_ver | sed -n \
23803 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23805 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23806 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23810 # Determine plugin support.
23811 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23812 # Require GNU ld or gold 2.21+ for plugin support by default.
23813 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23814 gcc_cv_lto_plugin
=2
23815 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23816 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23817 gcc_cv_lto_plugin
=1
23821 ld_ver
="$save_ld_ver"
23822 ld_vers_major
="$save_ld_vers_major"
23823 ld_vers_minor
="$save_ld_vers_minor"
23824 ld_is_gold
="$save_ld_is_gold"
23827 cat >>confdefs.h
<<_ACEOF
23828 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23832 $as_echo "$gcc_cv_lto_plugin" >&6; }
23835 # All TARGET_ABI_OSF targets.
23836 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23838 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23839 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23842 gcc_cv_as_alpha_explicit_relocs
=no
23843 if test $in_tree_gas = yes; then
23844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23845 then gcc_cv_as_alpha_explicit_relocs
=yes
23847 elif test x
$gcc_cv_as != x
; then
23848 $as_echo ' .set nomacro
23850 extbl $3, $2, $3 !lituse_bytoff!1
23851 ldq $2, a($29) !literal!1
23852 ldq $4, b($29) !literal!2
23853 ldq_u $3, 0($2) !lituse_base!1
23854 ldq $27, f($29) !literal!5
23855 jsr $26, ($27), f !lituse_jsr!5
23856 ldah $29, 0($26) !gpdisp!3
23857 lda $0, c($29) !gprel
23858 ldah $1, d($29) !gprelhigh
23859 lda $1, d($1) !gprellow
23860 lda $29, 0($29) !gpdisp!3' > conftest.s
23861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23863 (eval $ac_try) 2>&5
23865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23866 test $ac_status = 0; }; }
23868 gcc_cv_as_alpha_explicit_relocs
=yes
23870 echo "configure: failed program was" >&5
23873 rm -f conftest.o conftest.s
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23877 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23878 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23880 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23884 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23885 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23886 $as_echo_n "(cached) " >&6
23888 gcc_cv_as_alpha_jsrdirect_relocs
=no
23889 if test $in_tree_gas = yes; then
23890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23891 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23893 elif test x
$gcc_cv_as != x
; then
23894 $as_echo ' .set nomacro
23896 ldq $27, a($29) !literal!1
23897 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900 (eval $ac_try) 2>&5
23902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903 test $ac_status = 0; }; }
23905 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23907 echo "configure: failed program was" >&5
23910 rm -f conftest.o conftest.s
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23914 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23915 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23917 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23924 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23925 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23926 $as_echo_n "(cached) " >&6
23928 gcc_cv_as_cris_no_mul_bug
=no
23929 if test $in_tree_gas = yes; then
23930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23931 then gcc_cv_as_cris_no_mul_bug
=yes
23933 elif test x
$gcc_cv_as != x
; then
23934 $as_echo '.text' > conftest.s
23935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23937 (eval $ac_try) 2>&5
23939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940 test $ac_status = 0; }; }
23942 gcc_cv_as_cris_no_mul_bug
=yes
23944 echo "configure: failed program was" >&5
23947 rm -f conftest.o conftest.s
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23951 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23952 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23954 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23961 $as_echo_n "checking assembler for .register... " >&6; }
23962 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23963 $as_echo_n "(cached) " >&6
23965 gcc_cv_as_sparc_register_op
=no
23966 if test x
$gcc_cv_as != x
; then
23967 $as_echo '.register %g2, #scratch' > conftest.s
23968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }
23975 gcc_cv_as_sparc_register_op
=yes
23977 echo "configure: failed program was" >&5
23980 rm -f conftest.o conftest.s
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23984 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23985 if test $gcc_cv_as_sparc_register_op = yes; then
23987 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23992 $as_echo_n "checking assembler for #nobits... " >&6; }
23993 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23994 $as_echo_n "(cached) " >&6
23996 gcc_cv_as_sparc_nobits
=no
23997 if test x
$gcc_cv_as != x
; then
23998 $as_echo '.section "nobits",#alloc,#write,#nobits
23999 .section "progbits",#alloc,#write,#progbits' > conftest.s
24000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002 (eval $ac_try) 2>&5
24004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005 test $ac_status = 0; }; }
24007 gcc_cv_as_sparc_nobits
=yes
24009 echo "configure: failed program was" >&5
24012 rm -f conftest.o conftest.s
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24016 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24019 cat >>confdefs.h
<<_ACEOF
24020 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24025 $as_echo_n "checking assembler for -relax option... " >&6; }
24026 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24027 $as_echo_n "(cached) " >&6
24029 gcc_cv_as_sparc_relax
=no
24030 if test x
$gcc_cv_as != x
; then
24031 $as_echo '.text' > conftest.s
24032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24034 (eval $ac_try) 2>&5
24036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24037 test $ac_status = 0; }; }
24039 gcc_cv_as_sparc_relax
=yes
24041 echo "configure: failed program was" >&5
24044 rm -f conftest.o conftest.s
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24048 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24049 if test $gcc_cv_as_sparc_relax = yes; then
24051 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24056 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24057 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24060 gcc_cv_as_sparc_gotdata_op
=no
24061 if test x
$gcc_cv_as != x
; then
24067 sethi %gdop_hix22(foo), %g1
24068 xor %g1, %gdop_lox10(foo), %g1
24069 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24072 (eval $ac_try) 2>&5
24074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24075 test $ac_status = 0; }; }
24077 if test x
$gcc_cv_ld != x \
24078 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24079 if test x
$gcc_cv_objdump != x
; then
24080 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24081 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24082 gcc_cv_as_sparc_gotdata_op
=no
24084 gcc_cv_as_sparc_gotdata_op
=yes
24090 echo "configure: failed program was" >&5
24093 rm -f conftest.o conftest.s
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24097 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24098 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24100 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24105 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24106 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24109 gcc_cv_as_sparc_ua_pcrel
=no
24110 if test x
$gcc_cv_as != x
; then
24117 .uaword %r_disp32(foo)' > conftest.s
24118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24120 (eval $ac_try) 2>&5
24122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24123 test $ac_status = 0; }; }
24125 if test x
$gcc_cv_ld != x \
24126 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24127 gcc_cv_as_sparc_ua_pcrel
=yes
24131 echo "configure: failed program was" >&5
24134 rm -f conftest.o conftest.s
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24138 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24139 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24141 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24145 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24146 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24149 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24150 if test x
$gcc_cv_as != x
; then
24154 .uaword %r_disp32(foo)
24155 .byte 0x32, 0x33, 0x34
24159 .skip 4' > conftest.s
24160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24162 (eval $ac_try) 2>&5
24164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24165 test $ac_status = 0; }; }
24167 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24168 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24169 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24170 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24171 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24172 |
grep 'DISP32' > /dev
/null
2>&1; then
24175 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24180 echo "configure: failed program was" >&5
24183 rm -f conftest.o conftest.s
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24187 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24188 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24190 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24194 fi # unaligned pcrel relocs
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24197 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24198 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24201 gcc_cv_as_sparc_offsetable_lo10
=no
24202 if test x
$gcc_cv_as != x
; then
24204 or %g1, %lo(ab) + 12, %g1
24205 or %g1, %lo(ab + 12), %g1' > conftest.s
24206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }
24213 if test x
$gcc_cv_objdump != x \
24214 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24215 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24216 gcc_cv_as_sparc_offsetable_lo10
=yes
24219 echo "configure: failed program was" >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24226 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24227 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24229 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24234 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24235 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24238 gcc_cv_as_sparc_fmaf
=no
24239 if test x
$gcc_cv_as != x
; then
24241 .register %g2, #scratch
24242 .register %g3, #scratch
24244 fmaddd %f0, %f2, %f4, %f6
24245 addxccc %g1, %g2, %g3
24246 fsrl32 %f2, %f4, %f8
24247 fnaddd %f10, %f12, %f14' > conftest.s
24248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24255 gcc_cv_as_sparc_fmaf
=yes
24257 echo "configure: failed program was" >&5
24260 rm -f conftest.o conftest.s
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24264 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24265 if test $gcc_cv_as_sparc_fmaf = yes; then
24267 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24272 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24273 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24274 $as_echo_n "(cached) " >&6
24276 gcc_cv_as_sparc_sparc4
=no
24277 if test x
$gcc_cv_as != x
; then
24279 .register %g2, #scratch
24280 .register %g3, #scratch
24283 1: cwbneg %g2, %g3, 1f
24286 aes_kexpand0 %f4, %f6, %f8
24287 des_round %f38, %f40, %f42, %f44
24288 camellia_f %f54, %f56, %f58, %f60
24289 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24290 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24297 gcc_cv_as_sparc_sparc4
=yes
24299 echo "configure: failed program was" >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24306 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24307 if test $gcc_cv_as_sparc_sparc4 = yes; then
24309 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24314 i
[34567]86-*-* | x86_64-
*-*)
24317 # Full C++ conformance when using a shared libstdc++-v3 requires some
24318 # support from the Cygwin DLL, which in more recent versions exports
24319 # wrappers to aid in interposing and redirecting operators new, delete,
24320 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24321 # are configuring for a version of Cygwin that exports the wrappers.
24322 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24323 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24324 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24325 gcc_ac_cygwin_dll_wrappers
=yes
24327 gcc_ac_cygwin_dll_wrappers
=no
24331 # Can't check presence of libc functions during cross-compile, so
24332 # we just have to assume we're building for an up-to-date target.
24333 gcc_ac_cygwin_dll_wrappers
=yes
24336 cat >>confdefs.h
<<_ACEOF
24337 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24342 cygwin
* | pe | mingw32
* | interix
*)
24343 # Recent binutils allows the three-operand form of ".comm" on PE. This
24344 # definition is used unconditionally to initialise the default state of
24345 # the target option variable that governs usage of the feature.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24347 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24348 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24351 gcc_cv_as_comm_has_align
=no
24352 if test $in_tree_gas = yes; then
24353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24354 then gcc_cv_as_comm_has_align
=yes
24356 elif test x
$gcc_cv_as != x
; then
24357 $as_echo '.comm foo,1,32' > conftest.s
24358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24365 gcc_cv_as_comm_has_align
=yes
24367 echo "configure: failed program was" >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24374 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24377 cat >>confdefs.h
<<_ACEOF
24378 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24381 # Used for DWARF 2 in PE
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24383 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24384 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24387 gcc_cv_as_ix86_pe_secrel32
=no
24388 if test $in_tree_gas = yes; then
24389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24390 then gcc_cv_as_ix86_pe_secrel32
=yes
24392 elif test x
$gcc_cv_as != x
; then
24396 .secrel32 foo' > conftest.s
24397 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24399 (eval $ac_try) 2>&5
24401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24402 test $ac_status = 0; }; }
24404 if test x
$gcc_cv_ld != x \
24405 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24406 gcc_cv_as_ix86_pe_secrel32
=yes
24410 echo "configure: failed program was" >&5
24413 rm -f conftest.o conftest.s
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24417 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24418 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24420 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24423 # Test if the assembler supports the extended form of the .section
24424 # directive that specifies section alignment. LTO support uses this,
24425 # but normally only after installation, so we warn but don't fail the
24426 # configure if LTO is enabled but the assembler does not support it.
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24428 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24429 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24430 $as_echo_n "(cached) " >&6
24432 gcc_cv_as_section_has_align
=no
24433 if test $in_tree_gas = yes; then
24434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24435 then gcc_cv_as_section_has_align
=yes
24437 elif test x
$gcc_cv_as != x
; then
24438 $as_echo '.section lto_test,"dr0"' > conftest.s
24439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24446 gcc_cv_as_section_has_align
=yes
24448 echo "configure: failed program was" >&5
24451 rm -f conftest.o conftest.s
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24455 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24457 if test x
$gcc_cv_as_section_has_align != xyes
; then
24458 case ",$enable_languages," in
24460 { $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
24461 $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;}
24465 # Test if the assembler supports the section flag 'e' for specifying
24466 # an excluded section.
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24468 $as_echo_n "checking assembler for .section with e... " >&6; }
24469 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_as_section_has_e
=no
24473 if test $in_tree_gas = yes; then
24474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24475 then gcc_cv_as_section_has_e
=yes
24477 elif test x
$gcc_cv_as != x
; then
24478 $as_echo '.section foo1,"e"
24479 .byte 0,0,0,0' > conftest.s
24480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482 (eval $ac_try) 2>&5
24484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485 test $ac_status = 0; }; }
24487 gcc_cv_as_section_has_e
=yes
24489 echo "configure: failed program was" >&5
24492 rm -f conftest.o conftest.s
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24496 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24499 cat >>confdefs.h
<<_ACEOF
24500 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24507 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24508 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24511 gcc_cv_as_ix86_filds
=no
24512 if test x
$gcc_cv_as != x
; then
24513 $as_echo 'filds mem; fists mem' > conftest.s
24514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24521 gcc_cv_as_ix86_filds
=yes
24523 echo "configure: failed program was" >&5
24526 rm -f conftest.o conftest.s
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24530 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24531 if test $gcc_cv_as_ix86_filds = yes; then
24533 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24538 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24539 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24542 gcc_cv_as_ix86_fildq
=no
24543 if test x
$gcc_cv_as != x
; then
24544 $as_echo 'fildq mem; fistpq mem' > conftest.s
24545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24552 gcc_cv_as_ix86_fildq
=yes
24554 echo "configure: failed program was" >&5
24557 rm -f conftest.o conftest.s
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24561 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24562 if test $gcc_cv_as_ix86_fildq = yes; then
24564 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24569 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24570 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24573 gcc_cv_as_ix86_cmov_sun_syntax
=no
24574 if test x
$gcc_cv_as != x
; then
24575 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; }
24583 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24585 echo "configure: failed program was" >&5
24588 rm -f conftest.o conftest.s
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24592 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24593 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24595 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24600 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24601 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24602 $as_echo_n "(cached) " >&6
24604 gcc_cv_as_ix86_ffreep
=no
24605 if test x
$gcc_cv_as != x
; then
24606 $as_echo 'ffreep %st(1)' > conftest.s
24607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24609 (eval $ac_try) 2>&5
24611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24612 test $ac_status = 0; }; }
24614 gcc_cv_as_ix86_ffreep
=yes
24616 echo "configure: failed program was" >&5
24619 rm -f conftest.o conftest.s
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24623 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24624 if test $gcc_cv_as_ix86_ffreep = yes; then
24626 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24631 $as_echo_n "checking assembler for .quad directive... " >&6; }
24632 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24633 $as_echo_n "(cached) " >&6
24635 gcc_cv_as_ix86_quad
=no
24636 if test x
$gcc_cv_as != x
; then
24637 $as_echo '.quad 0' > conftest.s
24638 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24640 (eval $ac_try) 2>&5
24642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24643 test $ac_status = 0; }; }
24645 gcc_cv_as_ix86_quad
=yes
24647 echo "configure: failed program was" >&5
24650 rm -f conftest.o conftest.s
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24654 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24655 if test $gcc_cv_as_ix86_quad = yes; then
24657 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24662 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24663 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24664 $as_echo_n "(cached) " >&6
24666 gcc_cv_as_ix86_sahf
=no
24667 if test x
$gcc_cv_as != x
; then
24670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24672 (eval $ac_try) 2>&5
24674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24675 test $ac_status = 0; }; }
24677 gcc_cv_as_ix86_sahf
=yes
24679 echo "configure: failed program was" >&5
24682 rm -f conftest.o conftest.s
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24686 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24687 if test $gcc_cv_as_ix86_sahf = yes; then
24689 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24694 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24695 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24698 gcc_cv_as_ix86_interunit_movq
=no
24699 if test x
$gcc_cv_as != x
; then
24702 movq %rax, %xmm0' > conftest.s
24703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24705 (eval $ac_try) 2>&5
24707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24708 test $ac_status = 0; }; }
24710 gcc_cv_as_ix86_interunit_movq
=yes
24712 echo "configure: failed program was" >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24719 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24720 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24722 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24727 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24728 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24729 $as_echo_n "(cached) " >&6
24731 gcc_cv_as_ix86_hle
=no
24732 if test x
$gcc_cv_as != x
; then
24733 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24734 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24736 (eval $ac_try) 2>&5
24738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24739 test $ac_status = 0; }; }
24741 gcc_cv_as_ix86_hle
=yes
24743 echo "configure: failed program was" >&5
24746 rm -f conftest.o conftest.s
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24750 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24751 if test $gcc_cv_as_ix86_hle = yes; then
24753 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24758 $as_echo_n "checking assembler for swap suffix... " >&6; }
24759 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24760 $as_echo_n "(cached) " >&6
24762 gcc_cv_as_ix86_swap
=no
24763 if test x
$gcc_cv_as != x
; then
24764 $as_echo 'movl.s %esp, %ebp' > conftest.s
24765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767 (eval $ac_try) 2>&5
24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770 test $ac_status = 0; }; }
24772 gcc_cv_as_ix86_swap
=yes
24774 echo "configure: failed program was" >&5
24777 rm -f conftest.o conftest.s
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24781 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24782 if test $gcc_cv_as_ix86_swap = yes; then
24784 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24789 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24790 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24793 gcc_cv_as_ix86_diff_sect_delta
=no
24794 if test x
$gcc_cv_as != x
; then
24795 $as_echo '.section .rodata
24801 .L2: nop' > conftest.s
24802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24809 gcc_cv_as_ix86_diff_sect_delta
=yes
24811 echo "configure: failed program was" >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24818 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24819 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24821 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24825 # These two are used unconditionally by i386.[ch]; it is to be defined
24826 # to 1 if the feature is present, 0 otherwise.
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24828 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24829 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24830 $as_echo_n "(cached) " >&6
24832 gcc_cv_as_ix86_gotoff_in_data
=no
24833 if test $in_tree_gas = yes; then
24834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24835 then gcc_cv_as_ix86_gotoff_in_data
=yes
24837 elif test x
$gcc_cv_as != x
; then
24842 .long .L0@GOTOFF' > conftest.s
24843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24850 gcc_cv_as_ix86_gotoff_in_data
=yes
24852 echo "configure: failed program was" >&5
24855 rm -f conftest.o conftest.s
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24859 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24862 cat >>confdefs.h
<<_ACEOF
24863 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24868 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24869 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24872 gcc_cv_as_ix86_rep_lock_prefix
=no
24873 if test x
$gcc_cv_as != x
; then
24874 $as_echo 'rep movsl
24879 lock addl %edi, (%eax,%esi)
24880 lock orl $0, (%esp)' > conftest.s
24881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24888 gcc_cv_as_ix86_rep_lock_prefix
=yes
24890 echo "configure: failed program was" >&5
24893 rm -f conftest.o conftest.s
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24897 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24898 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24900 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24905 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24906 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24907 $as_echo_n "(cached) " >&6
24909 gcc_cv_as_ix86_tlsgdplt
=no
24910 if test x
$gcc_cv_as != x
; then
24911 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24919 if test x
$gcc_cv_ld != x \
24920 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24921 gcc_cv_as_ix86_tlsgdplt
=yes
24925 echo "configure: failed program was" >&5
24928 rm -f conftest.o conftest.s
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24932 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24933 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24935 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24940 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24941 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24942 $as_echo_n "(cached) " >&6
24944 gcc_cv_as_ix86_tlsldmplt
=no
24945 if test x
$gcc_cv_as != x
; then
24947 call tls_ld@tlsldmplt' > conftest.s
24948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24955 if test x
$gcc_cv_ld != x \
24956 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24957 gcc_cv_as_ix86_tlsldmplt
=yes
24961 echo "configure: failed program was" >&5
24964 rm -f conftest.o conftest.s
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24968 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24969 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24971 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24979 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24980 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24983 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24984 if test $in_tree_gas = yes; then
24985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24986 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24988 elif test x
$gcc_cv_as != x
; then
24990 addl r15 = @ltoffx(x#), gp
24992 ld8.mov r16 = [r15], x#' > conftest.s
24993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
25000 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25002 echo "configure: failed program was" >&5
25005 rm -f conftest.o conftest.s
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25009 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25010 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25012 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25020 *-*-aix*) conftest_s
=' .machine "pwr5"
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25025 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25026 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25027 $as_echo_n "(cached) " >&6
25029 gcc_cv_as_machine_directive
=no
25030 if test x
$gcc_cv_as != x
; then
25031 $as_echo ' .machine ppc7400' > conftest.s
25032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25034 (eval $ac_try) 2>&5
25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; }; }
25039 gcc_cv_as_machine_directive
=yes
25041 echo "configure: failed program was" >&5
25044 rm -f conftest.o conftest.s
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25048 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25050 if test x
$gcc_cv_as_machine_directive != xyes
; then
25051 echo "*** This target requires an assembler supporting \".machine\"" >&2
25052 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25053 test x
$build = x
$target && exit 1
25057 *) conftest_s
=' .machine power4
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25063 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25064 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25067 gcc_cv_as_powerpc_mfcrf
=no
25068 if test $in_tree_gas = yes; then
25069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25070 then gcc_cv_as_powerpc_mfcrf
=yes
25072 elif test x
$gcc_cv_as != x
; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25081 gcc_cv_as_powerpc_mfcrf
=yes
25083 echo "configure: failed program was" >&5
25086 rm -f conftest.o conftest.s
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25090 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25091 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25093 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25098 *-*-aix*) conftest_s
=' .machine "pwr5"
25101 *) conftest_s
=' .machine power5
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25107 $as_echo_n "checking assembler for popcntb support... " >&6; }
25108 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25111 gcc_cv_as_powerpc_popcntb
=no
25112 if test $in_tree_gas = yes; then
25113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25114 then gcc_cv_as_powerpc_popcntb
=yes
25116 elif test x
$gcc_cv_as != x
; then
25117 $as_echo "$conftest_s" > conftest.s
25118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25125 gcc_cv_as_powerpc_popcntb
=yes
25127 echo "configure: failed program was" >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25134 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25135 if test $gcc_cv_as_powerpc_popcntb = yes; then
25137 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25142 *-*-aix*) conftest_s
=' .machine "pwr5x"
25145 *) conftest_s
=' .machine power5
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25151 $as_echo_n "checking assembler for fp round support... " >&6; }
25152 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25155 gcc_cv_as_powerpc_fprnd
=no
25156 if test $in_tree_gas = yes; then
25157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25158 then gcc_cv_as_powerpc_fprnd
=yes
25160 elif test x
$gcc_cv_as != x
; then
25161 $as_echo "$conftest_s" > conftest.s
25162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25169 gcc_cv_as_powerpc_fprnd
=yes
25171 echo "configure: failed program was" >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25178 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25179 if test $gcc_cv_as_powerpc_fprnd = yes; then
25181 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25186 *-*-aix*) conftest_s
=' .machine "pwr6"
25189 *) conftest_s
=' .machine power6
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25195 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25196 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25199 gcc_cv_as_powerpc_mfpgpr
=no
25200 if test $in_tree_gas = yes; then
25201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25202 then gcc_cv_as_powerpc_mfpgpr
=yes
25204 elif test x
$gcc_cv_as != x
; then
25205 $as_echo "$conftest_s" > conftest.s
25206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }
25213 gcc_cv_as_powerpc_mfpgpr
=yes
25215 echo "configure: failed program was" >&5
25218 rm -f conftest.o conftest.s
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25222 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25223 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25225 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25230 *-*-aix*) conftest_s
=' .csect .text[PR]
25232 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25236 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25237 *) conftest_s
=' .text
25239 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25243 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25244 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25247 gcc_cv_as_powerpc_rel16
=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25250 then gcc_cv_as_powerpc_rel16
=yes
25252 elif test x
$gcc_cv_as != x
; then
25253 $as_echo "$conftest_s" > conftest.s
25254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25261 gcc_cv_as_powerpc_rel16
=yes
25263 echo "configure: failed program was" >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25270 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25271 if test $gcc_cv_as_powerpc_rel16 = yes; then
25273 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25278 *-*-aix*) conftest_s
=' .machine "pwr6"
25281 *) conftest_s
=' .machine power6
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25287 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25288 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25291 gcc_cv_as_powerpc_cmpb
=no
25292 if test $in_tree_gas = yes; then
25293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25294 then gcc_cv_as_powerpc_cmpb
=yes
25296 elif test x
$gcc_cv_as != x
; then
25297 $as_echo "$conftest_s" > conftest.s
25298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25305 gcc_cv_as_powerpc_cmpb
=yes
25307 echo "configure: failed program was" >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25314 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25315 if test $gcc_cv_as_powerpc_cmpb = yes; then
25317 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25322 *-*-aix*) conftest_s
=' .machine "pwr6"
25325 *) conftest_s
=' .machine power6
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25331 $as_echo_n "checking assembler for decimal float support... " >&6; }
25332 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25335 gcc_cv_as_powerpc_dfp
=no
25336 if test $in_tree_gas = yes; then
25337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25338 then gcc_cv_as_powerpc_dfp
=yes
25340 elif test x
$gcc_cv_as != x
; then
25341 $as_echo "$conftest_s" > conftest.s
25342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25349 gcc_cv_as_powerpc_dfp
=yes
25351 echo "configure: failed program was" >&5
25354 rm -f conftest.o conftest.s
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25358 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25359 if test $gcc_cv_as_powerpc_dfp = yes; then
25361 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25366 *-*-aix*) conftest_s
=' .machine "pwr7"
25369 *) conftest_s
=' .machine power7
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25375 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25376 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25379 gcc_cv_as_powerpc_vsx
=no
25380 if test $in_tree_gas = yes; then
25381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25382 then gcc_cv_as_powerpc_vsx
=yes
25384 elif test x
$gcc_cv_as != x
; then
25385 $as_echo "$conftest_s" > conftest.s
25386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25393 gcc_cv_as_powerpc_vsx
=yes
25395 echo "configure: failed program was" >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25402 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25403 if test $gcc_cv_as_powerpc_vsx = yes; then
25405 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25410 *-*-aix*) conftest_s
=' .machine "pwr7"
25413 *) conftest_s
=' .machine power7
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25419 $as_echo_n "checking assembler for popcntd support... " >&6; }
25420 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25423 gcc_cv_as_powerpc_popcntd
=no
25424 if test $in_tree_gas = yes; then
25425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25426 then gcc_cv_as_powerpc_popcntd
=yes
25428 elif test x
$gcc_cv_as != x
; then
25429 $as_echo "$conftest_s" > conftest.s
25430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25437 gcc_cv_as_powerpc_popcntd
=yes
25439 echo "configure: failed program was" >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25446 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25447 if test $gcc_cv_as_powerpc_popcntd = yes; then
25449 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25454 *-*-aix*) conftest_s
=' .machine "pwr8"
25455 .csect .text[PR]';;
25456 *) conftest_s
=' .machine power8
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25461 $as_echo_n "checking assembler for power8 support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_powerpc_power8
=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25468 then gcc_cv_as_powerpc_power8
=yes
25470 elif test x
$gcc_cv_as != x
; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25479 gcc_cv_as_powerpc_power8
=yes
25481 echo "configure: failed program was" >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25488 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25489 if test $gcc_cv_as_powerpc_power8 = yes; then
25491 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25496 *-*-aix*) conftest_s
=' .csect .text[PR]
25498 *) conftest_s
=' .text
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25503 $as_echo_n "checking assembler for lwsync support... " >&6; }
25504 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25507 gcc_cv_as_powerpc_lwsync
=no
25508 if test $in_tree_gas = yes; then
25509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25510 then gcc_cv_as_powerpc_lwsync
=yes
25512 elif test x
$gcc_cv_as != x
; then
25513 $as_echo "$conftest_s" > conftest.s
25514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25516 (eval $ac_try) 2>&5
25518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25519 test $ac_status = 0; }; }
25521 gcc_cv_as_powerpc_lwsync
=yes
25523 echo "configure: failed program was" >&5
25526 rm -f conftest.o conftest.s
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25530 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25531 if test $gcc_cv_as_powerpc_lwsync = yes; then
25533 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25538 *-*-aix*) conftest_s
=' .machine "476"
25541 *) conftest_s
=' .machine "476"
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25547 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25548 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25549 $as_echo_n "(cached) " >&6
25551 gcc_cv_as_powerpc_dci
=no
25552 if test $in_tree_gas = yes; then
25553 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25554 then gcc_cv_as_powerpc_dci
=yes
25556 elif test x
$gcc_cv_as != x
; then
25557 $as_echo "$conftest_s" > conftest.s
25558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25565 gcc_cv_as_powerpc_dci
=yes
25567 echo "configure: failed program was" >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25574 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25575 if test $gcc_cv_as_powerpc_dci = yes; then
25577 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25582 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25583 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25586 gcc_cv_as_powerpc_gnu_attribute
=no
25587 if test $in_tree_gas = yes; then
25588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25589 then gcc_cv_as_powerpc_gnu_attribute
=yes
25591 elif test x
$gcc_cv_as != x
; then
25592 $as_echo '.gnu_attribute 4,1' > conftest.s
25593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25600 gcc_cv_as_powerpc_gnu_attribute
=yes
25602 echo "configure: failed program was" >&5
25605 rm -f conftest.o conftest.s
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25609 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25610 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25612 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25617 $as_echo_n "checking assembler for tls marker support... " >&6; }
25618 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25621 gcc_cv_as_powerpc_tls_markers
=no
25622 if test $in_tree_gas = yes; then
25623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25624 then gcc_cv_as_powerpc_tls_markers
=yes
25626 elif test x
$gcc_cv_as != x
; then
25627 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25635 gcc_cv_as_powerpc_tls_markers
=yes
25637 echo "configure: failed program was" >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25644 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25645 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25647 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25654 $as_echo_n "checking assembler for .ref support... " >&6; }
25655 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25658 gcc_cv_as_aix_ref
=no
25659 if test $in_tree_gas = yes; then
25660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25661 then gcc_cv_as_aix_ref
=yes
25663 elif test x
$gcc_cv_as != x
; then
25664 $as_echo ' .csect stuff[rw]
25670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672 (eval $ac_try) 2>&5
25674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675 test $ac_status = 0; }; }
25677 gcc_cv_as_aix_ref
=yes
25679 echo "configure: failed program was" >&5
25682 rm -f conftest.o conftest.s
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25686 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25687 if test $gcc_cv_as_aix_ref = yes; then
25689 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25698 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25699 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25700 $as_echo_n "(cached) " >&6
25702 gcc_cv_as_mips_explicit_relocs
=no
25703 if test $in_tree_gas = yes; then
25704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25705 then gcc_cv_as_mips_explicit_relocs
=yes
25707 elif test x
$gcc_cv_as != x
; then
25708 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25711 (eval $ac_try) 2>&5
25713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714 test $ac_status = 0; }; }
25716 gcc_cv_as_mips_explicit_relocs
=yes
25718 echo "configure: failed program was" >&5
25721 rm -f conftest.o conftest.s
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25725 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25726 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25727 if test x
$target_cpu_default = x
25728 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25729 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25733 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25734 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25735 $as_echo_n "(cached) " >&6
25737 gcc_cv_as_mips_no_shared
=no
25738 if test $in_tree_gas = yes; then
25739 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25740 then gcc_cv_as_mips_no_shared
=yes
25742 elif test x
$gcc_cv_as != x
; then
25743 $as_echo 'nop' > conftest.s
25744 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25746 (eval $ac_try) 2>&5
25748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25749 test $ac_status = 0; }; }
25751 gcc_cv_as_mips_no_shared
=yes
25753 echo "configure: failed program was" >&5
25756 rm -f conftest.o conftest.s
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25760 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25761 if test $gcc_cv_as_mips_no_shared = yes; then
25763 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25768 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25769 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25770 $as_echo_n "(cached) " >&6
25772 gcc_cv_as_mips_gnu_attribute
=no
25773 if test $in_tree_gas = yes; then
25774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25775 then gcc_cv_as_mips_gnu_attribute
=yes
25777 elif test x
$gcc_cv_as != x
; then
25778 $as_echo '.gnu_attribute 4,1' > conftest.s
25779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781 (eval $ac_try) 2>&5
25783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784 test $ac_status = 0; }; }
25786 gcc_cv_as_mips_gnu_attribute
=yes
25788 echo "configure: failed program was" >&5
25791 rm -f conftest.o conftest.s
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25795 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25796 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25798 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25803 $as_echo_n "checking assembler for .micromips support... " >&6; }
25804 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25805 $as_echo_n "(cached) " >&6
25807 gcc_cv_as_micromips_support
=no
25808 if test x
$gcc_cv_as != x
; then
25809 $as_echo '.set micromips' > conftest.s
25810 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25812 (eval $ac_try) 2>&5
25814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25815 test $ac_status = 0; }; }
25817 gcc_cv_as_micromips_support
=yes
25819 echo "configure: failed program was" >&5
25822 rm -f conftest.o conftest.s
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25826 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25827 if test $gcc_cv_as_micromips_support = yes; then
25829 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25834 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25835 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25836 $as_echo_n "(cached) " >&6
25838 gcc_cv_as_mips_dtprelword
=no
25839 if test $in_tree_gas = yes; then
25840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25841 then gcc_cv_as_mips_dtprelword
=yes
25843 elif test x
$gcc_cv_as != x
; then
25844 $as_echo '.section .tdata,"awT",@progbits
25848 .dtprelword x+0x8000' > conftest.s
25849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25851 (eval $ac_try) 2>&5
25853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25854 test $ac_status = 0; }; }
25856 gcc_cv_as_mips_dtprelword
=yes
25858 echo "configure: failed program was" >&5
25861 rm -f conftest.o conftest.s
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25865 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25866 if test $gcc_cv_as_mips_dtprelword = yes; then
25868 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25873 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25874 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25875 $as_echo_n "(cached) " >&6
25877 gcc_cv_as_mips_dspr1_mult
=no
25878 if test x
$gcc_cv_as != x
; then
25879 $as_echo ' .set mips32r2
25887 multu $ac3,$4,$5' > conftest.s
25888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890 (eval $ac_try) 2>&5
25892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893 test $ac_status = 0; }; }
25895 gcc_cv_as_mips_dspr1_mult
=yes
25897 echo "configure: failed program was" >&5
25900 rm -f conftest.o conftest.s
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25904 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25905 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25907 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25912 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25913 gcc_cv_as_ld_jalr_reloc
=no
25914 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25915 if test $in_tree_ld = yes ; then
25916 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 \
25917 && test $in_tree_ld_is_elf = yes; then
25918 gcc_cv_as_ld_jalr_reloc
=yes
25920 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25921 echo ' .ent x' > conftest.s
25922 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25923 echo ' ld $25,%call16(y)($28)' >> conftest.s
25924 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25925 echo '1: jalr $25' >> conftest.s
25926 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25927 echo '1: jalr $25' >> conftest.s
25928 echo ' .end x' >> conftest.s
25929 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25930 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25931 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25932 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25933 gcc_cv_as_ld_jalr_reloc
=yes
25939 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25940 if test x
$target_cpu_default = x
; then
25941 target_cpu_default
=MASK_RELAX_PIC_CALLS
25943 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25947 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25950 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25951 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25954 gcc_cv_ld_mips_personality_relaxation
=no
25955 if test $in_tree_ld = yes ; then
25956 if test "$gcc_cv_gld_major_version" -eq 2 \
25957 -a "$gcc_cv_gld_minor_version" -ge 21 \
25958 -o "$gcc_cv_gld_major_version" -gt 2; then
25959 gcc_cv_ld_mips_personality_relaxation
=yes
25961 elif test x
$gcc_cv_as != x \
25962 -a x
$gcc_cv_ld != x \
25963 -a x
$gcc_cv_readelf != x
; then
25964 cat > conftest.s
<<EOF
25966 .cfi_personality 0x80,indirect_ptr
25973 .section .data,"aw",@progbits
25977 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25978 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25979 if $gcc_cv_readelf -d conftest
2>&1 \
25980 |
grep TEXTREL
> /dev
/null
2>&1; then
25982 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25983 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25986 gcc_cv_ld_mips_personality_relaxation
=yes
25990 rm -f conftest.s conftest.o conftest
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25993 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25994 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25996 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26002 # Mips and HP-UX need the GNU assembler.
26003 # Linux on IA64 might be able to use the Intel assembler.
26006 mips
*-*-* |
*-*-hpux* )
26007 if test x
$gas_flag = xyes \
26008 ||
test x
"$host" != x
"$build" \
26009 ||
test ! -x "$gcc_cv_as" \
26010 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26013 echo "*** This configuration requires the GNU assembler" >&2
26019 # ??? Not all targets support dwarf2 debug_line, even within a version
26020 # of gas. Moreover, we need to emit a valid instruction to trigger any
26021 # info to the output file. So, as supported targets are added to gas 2.11,
26022 # add some instruction here to (also) show we expect this might work.
26023 # ??? Once 2.11 is released, probably need to add first known working
26024 # version to the per-target configury.
26025 case "$cpu_type" in
26026 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26027 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26037 if test x
"$insn" != x
; then
26039 .file 1 \"conftest.s\"
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26043 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26044 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26045 $as_echo_n "(cached) " >&6
26047 gcc_cv_as_dwarf2_debug_line
=no
26048 if test $in_tree_gas = yes; then
26049 if test $in_tree_gas_is_elf = yes \
26050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26051 then gcc_cv_as_dwarf2_debug_line
=yes
26053 elif test x
$gcc_cv_as != x
; then
26054 $as_echo "$conftest_s" > conftest.s
26055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057 (eval $ac_try) 2>&5
26059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060 test $ac_status = 0; }; }
26062 if test x
$gcc_cv_objdump != x \
26063 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26064 |
grep debug_line
> /dev
/null
2>&1; then
26065 gcc_cv_as_dwarf2_debug_line
=yes
26068 echo "configure: failed program was" >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26075 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26078 # The .debug_line file table must be in the exact order that
26079 # we specified the files, since these indices are also used
26080 # by DW_AT_decl_file. Approximate this test by testing if
26081 # the assembler bitches if the same index is assigned twice.
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26083 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26084 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26087 gcc_cv_as_dwarf2_file_buggy
=no
26088 if test x
$gcc_cv_as != x
; then
26089 $as_echo ' .file 1 "foo.s"
26090 .file 1 "bar.s"' > conftest.s
26091 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26093 (eval $ac_try) 2>&5
26095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26096 test $ac_status = 0; }; }
26098 gcc_cv_as_dwarf2_file_buggy
=yes
26100 echo "configure: failed program was" >&5
26103 rm -f conftest.o conftest.s
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26107 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26110 if test $gcc_cv_as_dwarf2_debug_line = yes \
26111 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26113 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26118 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26119 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26120 $as_echo_n "(cached) " >&6
26122 gcc_cv_as_gdwarf2_flag
=no
26123 if test $in_tree_gas = yes; then
26124 if test $in_tree_gas_is_elf = yes \
26125 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26126 then gcc_cv_as_gdwarf2_flag
=yes
26128 elif test x
$gcc_cv_as != x
; then
26129 $as_echo "$insn" > conftest.s
26130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26132 (eval $ac_try) 2>&5
26134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26135 test $ac_status = 0; }; }
26137 gcc_cv_as_gdwarf2_flag
=yes
26139 echo "configure: failed program was" >&5
26142 rm -f conftest.o conftest.s
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26146 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26147 if test $gcc_cv_as_gdwarf2_flag = yes; then
26149 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26154 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26155 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26156 $as_echo_n "(cached) " >&6
26158 gcc_cv_as_gstabs_flag
=no
26159 if test $in_tree_gas = yes; then
26160 if test $in_tree_gas_is_elf = yes \
26161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26162 then gcc_cv_as_gstabs_flag
=yes
26164 elif test x
$gcc_cv_as != x
; then
26165 $as_echo "$insn" > conftest.s
26166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26173 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26174 # and warns about it, but still exits successfully. So check for
26176 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26183 else gcc_cv_as_gstabs_flag
=yes
26186 echo "configure: failed program was" >&5
26189 rm -f conftest.o conftest.s
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26193 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26194 if test $gcc_cv_as_gstabs_flag = yes; then
26196 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26201 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26202 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26203 $as_echo_n "(cached) " >&6
26205 gcc_cv_as_debug_prefix_map_flag
=no
26206 if test $in_tree_gas = yes; then
26207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26208 then gcc_cv_as_debug_prefix_map_flag
=yes
26210 elif test x
$gcc_cv_as != x
; then
26211 $as_echo "$insn" > conftest.s
26212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26214 (eval $ac_try) 2>&5
26216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26217 test $ac_status = 0; }; }
26219 gcc_cv_as_debug_prefix_map_flag
=yes
26221 echo "configure: failed program was" >&5
26224 rm -f conftest.o conftest.s
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26228 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26229 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26231 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26237 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26238 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26239 $as_echo_n "(cached) " >&6
26241 gcc_cv_as_lcomm_with_alignment
=no
26242 if test x
$gcc_cv_as != x
; then
26243 $as_echo '.lcomm bar,4,16' > conftest.s
26244 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246 (eval $ac_try) 2>&5
26248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249 test $ac_status = 0; }; }
26251 gcc_cv_as_lcomm_with_alignment
=yes
26253 echo "configure: failed program was" >&5
26256 rm -f conftest.o conftest.s
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26260 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26261 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26263 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26267 # Check whether --enable-gnu-unique-object was given.
26268 if test "${enable_gnu_unique_object+set}" = set; then :
26269 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26271 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26272 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26276 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26277 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26280 gcc_cv_as_gnu_unique_object
=no
26281 if test $in_tree_gas = yes; then
26282 if test $in_tree_gas_is_elf = yes \
26283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26284 then gcc_cv_as_gnu_unique_object
=yes
26286 elif test x
$gcc_cv_as != x
; then
26287 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26295 gcc_cv_as_gnu_unique_object
=yes
26297 echo "configure: failed program was" >&5
26300 rm -f conftest.o conftest.s
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26304 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26305 if test $gcc_cv_as_gnu_unique_object = yes; then
26306 # We need to unquote above to to use the definition from config.gcc.
26307 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26308 if test x
$host = x
$build -a x
$host = x
$target &&
26309 ldd
--version 2>/dev
/null
&&
26310 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26311 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26312 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26313 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26314 if test "$glibcnum" -ge 2011 ; then
26315 enable_gnu_unique_object
=yes
26321 if test x
$enable_gnu_unique_object = xyes
; then
26323 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26328 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26329 if test "${gcc_cv_as_line_zero+set}" = set; then :
26330 $as_echo_n "(cached) " >&6
26332 gcc_cv_as_line_zero
=no
26333 if test $in_tree_gas = yes; then
26334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26335 then gcc_cv_as_line_zero
=yes
26337 elif test "x$gcc_cv_as" != x
; then
26338 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26339 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; } &&
26345 test "x`cat conftest.out`" = x
26347 gcc_cv_as_line_zero
=yes
26349 echo "configure: failed program was" >&5
26351 echo "configure: error output was" >&5
26352 cat conftest.out
>&5
26354 rm -f conftest.o conftest.s conftest.out
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26358 $as_echo "$gcc_cv_as_line_zero" >&6; }
26359 if test "x$gcc_cv_as_line_zero" = xyes
; then
26361 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26366 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26367 gcc_cv_ld_eh_frame_hdr
=no
26368 if test $in_tree_ld = yes ; then
26369 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 \
26370 && test $in_tree_ld_is_elf = yes; then
26371 gcc_cv_ld_eh_frame_hdr
=yes
26373 elif test x
$gcc_cv_ld != x
; then
26374 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26375 # Check if linker supports --eh-frame-hdr option
26376 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26377 gcc_cv_ld_eh_frame_hdr
=yes
26382 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26383 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26384 gcc_cv_ld_eh_frame_hdr
=yes
26391 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26393 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26397 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26400 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26401 gcc_cv_ld_eh_frame_ciev3
=no
26402 if test $in_tree_ld = yes ; then
26403 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 \
26404 && test $in_tree_ld_is_elf = yes; then
26405 gcc_cv_ld_eh_frame_ciev3
=yes
26407 elif test x
$gcc_cv_ld != x
; then
26408 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26409 gcc_cv_ld_eh_frame_ciev3
=yes
26410 if test 0"$ld_date" -lt 20040513; then
26411 if test -n "$ld_date"; then
26412 # If there was date string, but was earlier than 2004-05-13, fail
26413 gcc_cv_ld_eh_frame_ciev3
=no
26414 elif test "$ld_vers_major" -lt 2; then
26415 gcc_cv_ld_eh_frame_ciev3
=no
26416 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26417 gcc_cv_ld_eh_frame_ciev3
=no
26423 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26424 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26425 gcc_cv_ld_eh_frame_ciev3
=yes
26432 cat >>confdefs.h
<<_ACEOF
26433 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26437 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26440 $as_echo_n "checking linker position independent executable support... " >&6; }
26442 if test $in_tree_ld = yes ; then
26443 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 \
26444 && test $in_tree_ld_is_elf = yes; then
26447 elif test x
$gcc_cv_ld != x
; then
26448 # Check if linker supports -pie option
26449 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26453 if test x
"$gcc_cv_ld_pie" = xyes
; then
26455 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26459 $as_echo "$gcc_cv_ld_pie" >&6; }
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26462 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26463 gcc_cv_ld_eh_gc_sections
=no
26464 if test $in_tree_ld = yes ; then
26465 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 \
26466 && test $in_tree_ld_is_elf = yes; then
26467 gcc_cv_ld_eh_gc_sections
=yes
26469 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26470 cat > conftest.s
<<EOF
26473 .type _start, @function
26476 .size _start, .-_start
26477 .section .text.foo,"ax",@progbits
26478 .type foo, @function
26482 .section .gcc_except_table.foo,"a",@progbits
26485 .section .eh_frame,"a",@progbits
26488 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26489 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26490 |
grep "gc-sections option ignored" > /dev
/null
; then
26491 gcc_cv_ld_eh_gc_sections
=no
26492 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26493 |
grep gcc_except_table
> /dev
/null
; then
26494 gcc_cv_ld_eh_gc_sections
=yes
26495 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26496 if test x
$gcc_cv_as_comdat_group != xyes
; then
26497 gcc_cv_ld_eh_gc_sections
=no
26498 cat > conftest.s
<<EOF
26501 .type _start, @function
26504 .size _start, .-_start
26505 .section .gnu.linkonce.t.foo,"ax",@progbits
26506 .type foo, @function
26510 .section .gcc_except_table.foo,"a",@progbits
26513 .section .eh_frame,"a",@progbits
26516 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26517 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26518 |
grep "gc-sections option ignored" > /dev
/null
; then
26519 gcc_cv_ld_eh_gc_sections
=no
26520 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26521 |
grep gcc_except_table
> /dev
/null
; then
26522 gcc_cv_ld_eh_gc_sections
=yes
26528 rm -f conftest.s conftest.o conftest
26532 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26533 gcc_cv_ld_eh_gc_sections
=no
26536 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26538 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26542 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26545 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26546 gcc_cv_ld_eh_gc_sections_bug
=no
26547 if test $in_tree_ld = yes ; then
26548 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 \
26549 && test $in_tree_ld_is_elf = yes; then
26550 gcc_cv_ld_eh_gc_sections_bug
=yes
26552 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
26553 gcc_cv_ld_eh_gc_sections_bug
=yes
26554 cat > conftest.s
<<EOF
26557 .type _start, @function
26560 .size _start, .-_start
26561 .section .text.startup.foo,"ax",@progbits
26562 .type foo, @function
26566 .section .gcc_except_table.foo,"a",@progbits
26569 .section .eh_frame,"a",@progbits
26572 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26573 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26574 |
grep "gc-sections option ignored" > /dev
/null
; then
26576 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26577 |
grep gcc_except_table
> /dev
/null
; then
26578 gcc_cv_ld_eh_gc_sections_bug
=no
26581 rm -f conftest.s conftest.o conftest
26583 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26585 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26589 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26596 $as_echo_n "checking linker --as-needed support... " >&6; }
26597 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26600 gcc_cv_ld_as_needed
=no
26601 gcc_cv_ld_as_needed_option
='--as-needed'
26602 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26603 if test $in_tree_ld = yes ; then
26604 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 \
26605 && test $in_tree_ld_is_elf = yes; then
26606 gcc_cv_ld_as_needed
=yes
26608 elif test x
$gcc_cv_ld != x
; then
26609 # Check if linker supports --as-needed and --no-as-needed options
26610 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26611 gcc_cv_ld_as_needed
=yes
26614 # Solaris 2 ld always supports -z ignore/-z record.
26616 gcc_cv_ld_as_needed
=yes
26617 gcc_cv_ld_as_needed_option
="-z ignore"
26618 gcc_cv_ld_no_as_needed_option
="-z record"
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26626 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26627 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26629 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26632 cat >>confdefs.h
<<_ACEOF
26633 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26637 cat >>confdefs.h
<<_ACEOF
26638 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26643 case "$target:$tm_file" in
26644 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26647 emul_name
="-melf64lppc"
26650 emul_name
="-melf64ppc"
26653 emul_name
="-melf64ppc_fbsd"
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26657 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26658 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26661 gcc_cv_ld_no_dot_syms
=no
26662 if test x
"$ld_is_gold" = xyes
; then
26663 gcc_cv_ld_no_dot_syms
=yes
26664 elif test $in_tree_ld = yes ; then
26665 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
26666 gcc_cv_ld_no_dot_syms
=yes
26668 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26669 cat > conftest1.s
<<EOF
26673 cat > conftest2.s
<<EOF
26674 .section ".opd","aw"
26677 .type foo,@function
26679 .quad .LEfoo,.TOC.@tocbase,0
26685 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26686 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26687 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26688 gcc_cv_ld_no_dot_syms
=yes
26690 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26695 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26696 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26698 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26703 $as_echo_n "checking linker large toc support... " >&6; }
26704 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26707 gcc_cv_ld_large_toc
=no
26708 if test x
"$ld_is_gold" = xyes
; then
26709 gcc_cv_ld_large_toc
=yes
26710 elif test $in_tree_ld = yes ; then
26711 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
26712 gcc_cv_ld_large_toc
=yes
26714 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26715 cat > conftest.s
<<EOF
26716 .section ".tbss","awT",@nobits
26722 addis 9,13,ie0@got@tprel@ha
26723 ld 9,ie0@got@tprel@l(9)
26725 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26726 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26727 gcc_cv_ld_large_toc
=yes
26729 rm -f conftest conftest.o conftest.s
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26734 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26735 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26737 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26746 $as_echo_n "checking linker large toc support... " >&6; }
26747 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26748 $as_echo_n "(cached) " >&6
26750 gcc_cv_ld_large_toc
=no
26751 if test x
$gcc_cv_as != x
; then
26752 cat > conftest.s
<<EOF
26762 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26763 gcc_cv_ld_large_toc
=yes
26765 rm -f conftest conftest.o conftest.s
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26770 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26771 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26773 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26780 $as_echo_n "checking linker --build-id support... " >&6; }
26781 if test "${gcc_cv_ld_buildid+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26784 gcc_cv_ld_buildid
=no
26785 if test $in_tree_ld = yes ; then
26786 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26787 "$gcc_cv_gld_minor_version" -ge 18 -o \
26788 "$gcc_cv_gld_major_version" -gt 2 \
26789 && test $in_tree_ld_is_elf = yes; then
26790 gcc_cv_ld_buildid
=yes
26792 elif test x
$gcc_cv_ld != x
; then
26793 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26794 gcc_cv_ld_buildid
=yes
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26799 $as_echo "$gcc_cv_ld_buildid" >&6; }
26800 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26802 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26806 # Check whether --enable-linker-build-id was given.
26807 if test "${enable_linker_build_id+set}" = set; then :
26808 enableval
=$enable_linker_build_id;
26810 enable_linker_build_id
=no
26814 if test x
"$enable_linker_build_id" = xyes
; then
26815 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26817 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26821 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26825 # In binutils 2.21, GNU ld gained support for new emulations fully
26826 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26828 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26829 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26830 $as_echo_n "(cached) " >&6
26832 gcc_cv_ld_sol2_emulation
=no
26833 if test $in_tree_ld = yes ; then
26834 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26835 "$gcc_cv_gld_minor_version" -ge 21 -o \
26836 "$gcc_cv_gld_major_version" -gt 2 \
26837 && test $in_tree_ld_is_elf = yes; then
26838 gcc_cv_ld_sol2_emulation
=yes
26840 elif test x
$gcc_cv_ld != x
; then
26841 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26842 grep _sol2
> /dev
/null
; then
26843 gcc_cv_ld_sol2_emulation
=yes
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26848 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26849 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26851 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26856 $as_echo_n "checking linker --sysroot support... " >&6; }
26857 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26860 gcc_cv_ld_sysroot
=no
26861 if test $in_tree_ld = yes ; then
26862 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
26863 gcc_cv_ld_sysroot
=yes
26865 elif test x
$gcc_cv_ld != x
; then
26866 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26867 gcc_cv_ld_sysroot
=yes
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26872 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26873 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26875 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26879 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26880 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26881 && test "$prefix" != "NONE"; then
26883 cat >>confdefs.h
<<_ACEOF
26884 #define PREFIX_INCLUDE_DIR "$prefix/include"
26889 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26890 if test "x$with_headers" != x
; then
26891 target_header_dir
=$with_headers
26892 elif test "x$with_sysroot" = x
; then
26893 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26894 elif test "x$with_build_sysroot" != "x"; then
26895 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26896 elif test "x$with_sysroot" = xyes
; then
26897 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26899 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26902 target_header_dir
=${native_system_header_dir}
26905 # Test for stack protector support in target C library.
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26907 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26908 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26911 gcc_cv_libc_provides_ssp
=no
26913 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26914 # glibc 2.4 and later provides __stack_chk_fail and
26915 # either __stack_chk_guard, or TLS access to stack guard canary.
26916 if test -f $target_header_dir/features.h \
26917 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26918 $target_header_dir/features.h
> /dev
/null
; then
26919 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26920 $target_header_dir/features.h
> /dev
/null
; then
26921 gcc_cv_libc_provides_ssp
=yes
26922 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26923 $target_header_dir/features.h
> /dev
/null \
26924 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26925 $target_header_dir/features.h
> /dev
/null
; then
26926 gcc_cv_libc_provides_ssp
=yes
26927 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26928 $target_header_dir/features.h
> /dev
/null
&& \
26929 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26930 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26931 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26932 gcc_cv_libc_provides_ssp
=yes
26934 # all versions of Bionic support stack protector
26935 elif test -f $target_header_dir/sys
/cdefs.h \
26936 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26937 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26938 gcc_cv_libc_provides_ssp
=yes
26942 # Avoid complicated tests (see
26943 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26944 # simply assert that glibc does provide this, which is true for all
26945 # realistically usable GNU/Hurd configurations.
26946 gcc_cv_libc_provides_ssp
=yes;;
26947 *-*-darwin* |
*-*-freebsd*)
26948 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26949 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26950 gcc_cv_libc_provides_ssp
=yes
26952 echo "no __stack_chk_fail on this target"
26956 *) gcc_cv_libc_provides_ssp
=no
;;
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26960 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26962 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26964 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26968 # Test for <sys/sdt.h> on the target.
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26971 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26973 if test -f $target_header_dir/sys
/sdt.h
; then
26976 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26980 $as_echo "$have_sys_sdt_h" >&6; }
26982 # Check if TFmode long double should be used by default or not.
26983 # Some glibc targets used DFmode long double, but with glibc 2.4
26984 # and later they can use TFmode.
26986 powerpc
*-*-linux* | \
26987 sparc
*-*-linux* | \
26991 # Check whether --with-long-double-128 was given.
26992 if test "${with_long_double_128+set}" = set; then :
26993 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26995 gcc_cv_target_ldbl128
=no
26996 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26997 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26998 && gcc_cv_target_ldbl128
=yes
27004 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27006 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27011 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27012 gcc_cv_target_dl_iterate_phdr
=unknown
27014 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27015 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27016 # libdl there, both complicating its use and breaking compatibility
27017 # between Solaris 10 updates.
27018 *-*-solaris2.1
[1-9]*)
27019 # <link.h> needs both a dl_iterate_phdr declaration and support for
27020 # compilation with largefile support.
27021 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27022 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27023 gcc_cv_target_dl_iterate_phdr
=yes
27025 gcc_cv_target_dl_iterate_phdr
=no
27030 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27032 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27036 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27038 # We no longer support different GC mechanisms. Emit an error if
27039 # the user configures with --with-gc.
27041 # Check whether --with-gc was given.
27042 if test "${with_gc+set}" = set; then :
27043 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27047 # Libraries to use on the host. This will normally be set by the top
27048 # level Makefile. Here we simply capture the value for our Makefile.
27049 if test -z "${HOST_LIBS+set}"; then
27054 # Use the system's zlib library.
27056 zlibinc
="-I\$(srcdir)/../zlib"
27058 # Check whether --with-system-zlib was given.
27059 if test "${with_system_zlib+set}" = set; then :
27060 withval
=$with_system_zlib; zlibdir
=
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27070 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27071 # Check whether --enable-maintainer-mode was given.
27072 if test "${enable_maintainer_mode+set}" = set; then :
27073 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27080 $as_echo "$maintainer_mode" >&6; }
27082 if test "$maintainer_mode" = "yes"; then
27092 # Make empty files to contain the specs and options for each language.
27093 # Then add #include lines to for a compiler that has specs and/or options.
27099 # These (without "all_") are set in each config-lang.in.
27100 # `language' must be a single word so is spelled singularly.
27103 all_outputs
='Makefile'
27104 # List of language makefile fragments.
27105 all_lang_makefrags
=
27106 # Additional files for gengtype
27107 all_gtfiles
="$target_gtfiles"
27109 # These are the languages that are set in --enable-languages,
27110 # and are available in the GCC tree.
27111 all_selected_languages
=
27113 # Add the language fragments.
27114 # Languages are added via two mechanisms. Some information must be
27115 # recorded in makefile variables, these are defined in config-lang.in.
27116 # We accumulate them and plug them into the main Makefile.
27117 # The other mechanism is a set of hooks for each of the main targets
27118 # like `clean', `install', etc.
27120 language_hooks
="Make-hooks"
27122 for lang
in ${srcdir}/*/config-lang.
in
27124 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27126 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27127 if test "x$lang_alias" = x
27129 echo "$lang doesn't set \$language." 1>&2
27132 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27133 subdirs
="$subdirs $subdir"
27135 # $gcc_subdir is where the gcc integration files are to be found
27136 # for a language, both for internal compiler purposes (compiler
27137 # sources implementing front-end to GCC tree converters), and for
27138 # build infrastructure purposes (Make-lang.in, etc.)
27140 # This will be <subdir> (relative to $srcdir) if a line like
27141 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27142 # is found in <langdir>/config-lang.in, and will remain <langdir>
27145 # Except for the language alias (fetched above), the regular
27146 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27147 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27148 # only this and the language alias.
27150 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27151 if [ "$gcc_subdir" = "" ]; then
27152 gcc_subdir
="$subdir"
27155 case ",$enable_languages," in
27157 all_selected_languages
="$all_selected_languages $lang_alias"
27158 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27159 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27170 .
${srcdir}/$gcc_subdir/config-lang.
in
27171 if test "x$language" = x
27173 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27178 case ",$enable_languages," in
27179 *,$lang_alias,*) ;;
27181 for i
in $subdir_requires; do
27182 test -f "${srcdir}/$i/config-lang.in" && continue
27190 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27191 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27192 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27193 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27195 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27196 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27198 all_languages
="$all_languages $language"
27199 all_compilers
="$all_compilers $compilers"
27200 all_outputs
="$all_outputs $outputs"
27201 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27202 case ",$enable_languages," in
27205 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27215 for language
in $all_selected_languages
27217 check_languages
="$check_languages check-$language"
27220 # We link each language in with a set of hooks, reached indirectly via
27221 # lang.${target}. Only do so for selected languages.
27225 target_list
="all.cross start.encap rest.encap tags \
27226 install-common install-man install-info install-pdf install-html dvi \
27227 pdf html uninstall info man srcextra srcman srcinfo \
27228 mostlyclean clean distclean maintainer-clean install-plugin"
27230 for t
in $target_list
27233 for lang
in $all_selected_languages
27237 echo "lang.$t: $x" >> Make-hooks
27241 # Option include files
27244 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27245 option_includes
="option-includes.mk"
27254 echo "dir ." > .gdbinit
27255 echo "dir ${srcdir}" >> .gdbinit
27256 if test x
$gdb_needs_out_file_path = xyes
27258 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27260 if test "x$subdirs" != x
; then
27263 echo "dir ${srcdir}/$s" >> .gdbinit
27266 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27268 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27272 # Find a directory in which to install a shared libgcc.
27274 # Check whether --enable-version-specific-runtime-libs was given.
27275 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27276 enableval
=$enable_version_specific_runtime_libs;
27280 # Set default prefix canonicalization.
27282 # Check whether --enable-canonical-prefixes was given.
27283 if test "${enable_canonical_prefixes+set}" = set; then :
27284 enableval
=$enable_canonical_prefixes;
27286 enable_canonical_prefixes
=yes
27289 if test x
"$enable_canonical_prefixes" = xyes
; then
27291 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27295 # Substitute configuration variables
27359 if test x
${build} = x
${host} ; then
27360 if test x
${host} = x
${target} ; then
27361 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27363 echo "Links are now set up to build a cross-compiler" 1>&2
27364 echo " from ${host} to ${target}." 1>&2
27367 if test x
${host} = x
${target} ; then
27368 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27369 echo " for ${target}." 1>&2
27371 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27372 echo " from ${host} to ${target}." 1>&2
27384 if test "x${CLOOGLIBS}" != "x" ; then
27386 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27390 # Check for plugin support
27391 # Check whether --enable-plugin was given.
27392 if test "${enable_plugin+set}" = set; then :
27393 enableval
=$enable_plugin; enable_plugin
=$enableval
27395 enable_plugin
=yes; default_plugin
=yes
27403 if test x
$build = x
$host; then
27404 export_sym_check
="nm${exeext} -g"
27405 elif test x
$host = x
$target; then
27406 export_sym_check
="$gcc_cv_nm -g"
27412 if test x
$build = x
$host; then
27413 export_sym_check
="objdump${exeext} -T"
27414 elif test x
$host = x
$target; then
27415 export_sym_check
="$gcc_cv_objdump -T"
27422 if test x
"$enable_plugin" = x
"yes"; then
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27425 $as_echo_n "checking for exported symbols... " >&6; }
27426 if test "x$export_sym_check" != x
; then
27427 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27428 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27429 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27430 : # No need to use a flag
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27432 $as_echo "yes" >&6; }
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27435 $as_echo "yes" >&6; }
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27437 $as_echo_n "checking for -rdynamic... " >&6; }
27438 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27439 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27440 plugin_rdynamic
=yes
27441 pluginlibs
="-rdynamic"
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27447 $as_echo "$plugin_rdynamic" >&6; }
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27451 $as_echo "unable to check" >&6; }
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27457 $as_echo_n "checking for library containing dlopen... " >&6; }
27458 if test "${ac_cv_search_dlopen+set}" = set; then :
27459 $as_echo_n "(cached) " >&6
27461 ac_func_search_save_LIBS
=$LIBS
27462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27463 /* end confdefs.h. */
27465 /* Override any GCC internal prototype to avoid an error.
27466 Use char because int might match the return type of a GCC
27467 builtin and then its argument prototype would still apply. */
27480 for ac_lib
in '' dl
; do
27481 if test -z "$ac_lib"; then
27482 ac_res
="none required"
27485 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27487 if ac_fn_c_try_link
"$LINENO"; then :
27488 ac_cv_search_dlopen
=$ac_res
27490 rm -f core conftest.err conftest.
$ac_objext \
27492 if test "${ac_cv_search_dlopen+set}" = set; then :
27496 if test "${ac_cv_search_dlopen+set}" = set; then :
27499 ac_cv_search_dlopen
=no
27501 rm conftest.
$ac_ext
27502 LIBS
=$ac_func_search_save_LIBS
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27505 $as_echo "$ac_cv_search_dlopen" >&6; }
27506 ac_res
=$ac_cv_search_dlopen
27507 if test "$ac_res" != no
; then :
27508 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27512 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27513 pluginlibs
="$pluginlibs -ldl"
27517 # Check that we can build shared objects with -fPIC -shared
27518 saved_LDFLAGS
="$LDFLAGS"
27519 saved_CFLAGS
="$CFLAGS"
27522 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27523 CFLAGS
="$CFLAGS -fPIC"
27524 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27527 CFLAGS
="$CFLAGS -fPIC"
27528 LDFLAGS
="$LDFLAGS -fPIC -shared"
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27532 $as_echo_n "checking for -fPIC -shared... " >&6; }
27533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27534 /* end confdefs.h. */
27544 if ac_fn_c_try_link
"$LINENO"; then :
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27546 $as_echo "yes" >&6; }; have_pic_shared
=yes
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27549 $as_echo "no" >&6; }; have_pic_shared
=no
27551 rm -f core conftest.err conftest.
$ac_objext \
27552 conftest
$ac_exeext conftest.
$ac_ext
27553 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27557 LDFLAGS
="$saved_LDFLAGS"
27558 CFLAGS
="$saved_CFLAGS"
27560 # If plugin support had been requested but not available, fail.
27561 if test x
"$enable_plugin" = x
"no" ; then
27562 if test x
"$default_plugin" != x
"yes"; then
27564 Building GCC with plugin support requires a host that supports
27565 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27572 if test x
"$enable_plugin" = x
"yes"; then
27574 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27579 # Check whether --enable-libquadmath-support was given.
27580 if test "${enable_libquadmath_support+set}" = set; then :
27581 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27583 ENABLE_LIBQUADMATH_SUPPORT
=yes
27586 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27588 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27593 # Specify what hash style to use by default.
27595 # Check whether --with-linker-hash-style was given.
27596 if test "${with_linker_hash_style+set}" = set; then :
27597 withval
=$with_linker_hash_style; case x
"$withval" in
27599 LINKER_HASH_STYLE
=sysv
27602 LINKER_HASH_STYLE
=gnu
27605 LINKER_HASH_STYLE
=both
27608 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27612 LINKER_HASH_STYLE
=''
27615 if test x
"${LINKER_HASH_STYLE}" != x
; then
27617 cat >>confdefs.h
<<_ACEOF
27618 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27623 # Configure the subdirectories
27624 # AC_CONFIG_SUBDIRS($subdirs)
27626 # Create the Makefile
27627 # and configure language subdirectories
27628 ac_config_files
="$ac_config_files $all_outputs"
27631 ac_config_commands
="$ac_config_commands default"
27633 cat >confcache
<<\_ACEOF
27634 # This file is a shell script that caches the results of configure
27635 # tests run on this system so they can be shared between configure
27636 # scripts and configure runs, see configure's option --config-cache.
27637 # It is not useful on other systems. If it contains results you don't
27638 # want to keep, you may remove or edit it.
27640 # config.status only pays attention to the cache file if you give it
27641 # the --recheck option to rerun configure.
27643 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27645 # following values.
27649 # The following way of writing the cache mishandles newlines in values,
27650 # but we know of no workaround that is simple, portable, and efficient.
27651 # So, we kill variables containing newlines.
27652 # Ultrix sh set writes to stderr and can't be redirected directly,
27653 # and sets the high bit in the cache file unless we assign to the vars.
27655 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27656 eval ac_val
=\$
$ac_var
27660 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27661 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27664 _ | IFS | as_nl
) ;; #(
27665 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27666 *) { eval $ac_var=; unset $ac_var;} ;;
27672 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27673 *${as_nl}ac_space
=\
*)
27674 # `set' does not quote correctly, so add quotes: double-quote
27675 # substitution turns \\\\ into \\, and sed turns \\ into \.
27678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27681 # `set' quotes correctly as required by POSIX, so do not add quotes.
27682 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27693 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27695 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27696 if test -w "$cache_file"; then
27697 test "x$cache_file" != "x/dev/null" &&
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27699 $as_echo "$as_me: updating cache $cache_file" >&6;}
27700 cat confcache
>$cache_file
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27703 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27708 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27709 # Let make expand exec_prefix.
27710 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27712 DEFS
=-DHAVE_CONFIG_H
27716 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27717 # 1. Remove the extension, and $U if already installed.
27718 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27719 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27721 # will be set to the directory where LIBOBJS objects are built.
27722 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27723 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27725 LIBOBJS
=$ac_libobjs
27727 LTLIBOBJS
=$ac_ltlibobjs
27732 : ${CONFIG_STATUS=./config.status}
27734 ac_clean_files_save
=$ac_clean_files
27735 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27737 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27739 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27741 # Generated by $as_me.
27742 # Run this file to recreate the current configuration.
27743 # Compiler output produced by configure, useful for debugging
27744 # configure, is in config.log if it exists.
27747 ac_cs_recheck=false
27750 SHELL=\${CONFIG_SHELL-$SHELL}
27753 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27754 ## -------------------- ##
27755 ## M4sh Initialization. ##
27756 ## -------------------- ##
27758 # Be more Bourne compatible
27759 DUALCASE
=1; export DUALCASE
# for MKS sh
27760 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27764 # is contrary to our usage. Disable this feature.
27765 alias -g '${1+"$@"}'='"$@"'
27766 setopt NO_GLOB_SUBST
27768 case `(set -o) 2>/dev/null` in #(
27780 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27781 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27782 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27784 # Prefer a ksh shell builtin over an external printf program on Solaris,
27785 # but without wasting forks for bash or zsh.
27786 if test -z "$BASH_VERSION$ZSH_VERSION" \
27787 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27788 as_echo='print
-r --'
27789 as_echo_n='print
-rn --'
27790 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27791 as_echo='printf %s
\n'
27792 as_echo_n='printf %s
'
27794 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27795 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27796 as_echo_n='/usr
/ucb
/echo -n'
27798 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27799 as_echo_n_body='eval
27803 expr "X$arg" : "X\\(.*\\)$as_nl";
27804 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27806 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27808 export as_echo_n_body
27809 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27811 export as_echo_body
27812 as_echo='sh
-c $as_echo_body as_echo
'
27815 # The user is always right.
27816 if test "${PATH_SEPARATOR+set}" != set; then
27818 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27819 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27826 # We need space, tab and new line, in precisely that order. Quoting is
27827 # there to prevent editors from complaining about space-tab.
27828 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27829 # splitting by setting IFS to empty value.)
27832 # Find who we are. Look in the path if we contain no directory separator.
27834 *[\\/]* ) as_myself=$0 ;;
27835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 for as_dir in $PATH
27839 test -z "$as_dir" && as_dir=.
27840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27846 # We did not find ourselves, most probably we were run as `sh COMMAND'
27847 # in which case we are not to be found in the path.
27848 if test "x$as_myself" = x
; then
27851 if test ! -f "$as_myself"; then
27852 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27856 # Unset variables that we do not need and which cause bugs (e.g. in
27857 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27858 # suppresses any "Segmentation fault" message there. '((' could
27859 # trigger a bug in pdksh 5.2.14.
27860 for as_var
in BASH_ENV ENV MAIL MAILPATH
27861 do eval test x\
${$as_var+set} = xset \
27862 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27875 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27878 # as_fn_error ERROR [LINENO LOG_FD]
27879 # ---------------------------------
27880 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27881 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27882 # script with status $?, using 1 if that was 0.
27885 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27887 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27888 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27890 $as_echo "$as_me: error: $1" >&2
27891 as_fn_exit
$as_status
27895 # as_fn_set_status STATUS
27896 # -----------------------
27897 # Set $? to STATUS, without forking.
27898 as_fn_set_status
()
27901 } # as_fn_set_status
27903 # as_fn_exit STATUS
27904 # -----------------
27905 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27909 as_fn_set_status
$1
27915 # Portably unset VAR.
27918 { eval $1=; unset $1;}
27920 as_unset
=as_fn_unset
27921 # as_fn_append VAR VALUE
27922 # ----------------------
27923 # Append the text in VALUE to the end of the definition contained in VAR. Take
27924 # advantage of any shell optimizations that allow amortized linear growth over
27925 # repeated appends, instead of the typical quadratic growth present in naive
27927 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27928 eval 'as_fn_append ()
27939 # as_fn_arith ARG...
27940 # ------------------
27941 # Perform arithmetic evaluation on the ARGs, and store the result in the
27942 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27943 # must be portable across $(()) and expr.
27944 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27945 eval 'as_fn_arith ()
27952 as_val
=`expr "$@" || test $? -eq 1`
27957 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27958 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27964 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27965 as_basename
=basename
27970 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27976 as_me
=`$as_basename -- "$0" ||
27977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27978 X"$0" : 'X\(//\)$' \| \
27979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27981 sed '/^.*\/\([^/][^/]*\)\/*$/{
27995 # Avoid depending upon Character Ranges.
27996 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27997 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27998 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27999 as_cr_digits
='0123456789'
28000 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28002 ECHO_C
= ECHO_N
= ECHO_T
=
28003 case `echo -n x` in #(((((
28005 case `echo 'xy\c'` in
28006 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28008 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28015 rm -f conf$$ conf$$.exe conf$$.
file
28016 if test -d conf$$.dir
; then
28017 rm -f conf$$.dir
/conf$$.
file
28020 mkdir conf$$.dir
2>/dev
/null
28022 if (echo >conf$$.
file) 2>/dev
/null
; then
28023 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28025 # ... but there are two gotchas:
28026 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28027 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28028 # In both cases, we have to default to `cp -p'.
28029 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28031 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28039 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28040 rmdir conf$$.dir
2>/dev
/null
28045 # Create "$as_dir" as a directory, including parents if necessary.
28050 -*) as_dir
=.
/$as_dir;;
28052 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28056 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28057 *) as_qdir
=$as_dir;;
28059 as_dirs
="'$as_qdir' $as_dirs"
28060 as_dir
=`$as_dirname -- "$as_dir" ||
28061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28062 X"$as_dir" : 'X\(//\)[^/]' \| \
28063 X"$as_dir" : 'X\(//\)$' \| \
28064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28065 $as_echo X"$as_dir" |
28066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28070 /^X\(\/\/\)[^/].*/{
28083 test -d "$as_dir" && break
28085 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28086 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28090 if mkdir
-p .
2>/dev
/null
; then
28091 as_mkdir_p
='mkdir -p "$as_dir"'
28093 test -d .
/-p && rmdir .
/-p
28097 if test -x / >/dev
/null
2>&1; then
28098 as_test_x
='test -x'
28100 if ls -dL / >/dev
/null
2>&1; then
28107 if test -d "$1"; then
28113 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28114 ???[sx]*):;;*)false;;esac;fi
28118 as_executable_p
=$as_test_x
28120 # Sed expression to map a string onto a valid CPP name.
28121 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28123 # Sed expression to map a string onto a valid variable name.
28124 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28128 ## ----------------------------------- ##
28129 ## Main body of $CONFIG_STATUS script. ##
28130 ## ----------------------------------- ##
28132 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28135 # Save the log message, to keep $0 and so on meaningful, and to
28136 # report actual input values of CONFIG_FILES etc. instead of their
28137 # values after options handling.
28139 This file was extended by $as_me, which was
28140 generated by GNU Autoconf 2.64. Invocation command line was
28142 CONFIG_FILES = $CONFIG_FILES
28143 CONFIG_HEADERS = $CONFIG_HEADERS
28144 CONFIG_LINKS = $CONFIG_LINKS
28145 CONFIG_COMMANDS = $CONFIG_COMMANDS
28148 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28153 case $ac_config_files in *"
28154 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28157 case $ac_config_headers in *"
28158 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28163 # Files that config.status was made for.
28164 config_files="$ac_config_files"
28165 config_headers="$ac_config_headers"
28166 config_commands="$ac_config_commands"
28170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28172 \`$as_me' instantiates files and other configuration actions
28173 from templates according to the current configuration. Unless the files
28174 and actions are specified as TAGs, all are instantiated by default.
28176 Usage: $0 [OPTION]... [TAG]...
28178 -h, --help print this help, then exit
28179 -V, --version print version number and configuration settings, then exit
28180 -q, --quiet, --silent
28181 do not print progress messages
28182 -d, --debug don't remove temporary files
28183 --recheck update $as_me by reconfiguring in the same conditions
28184 --file=FILE[:TEMPLATE]
28185 instantiate the configuration file FILE
28186 --header=FILE[:TEMPLATE]
28187 instantiate the configuration header FILE
28189 Configuration files:
28192 Configuration headers:
28195 Configuration commands:
28198 Report bugs to the package provider."
28201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28204 configured by $0, generated by GNU Autoconf 2.64,
28205 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28207 Copyright (C) 2009 Free Software Foundation, Inc.
28208 This config.status script is free software; the Free Software Foundation
28209 gives unlimited permission to copy, distribute and modify it."
28214 test -n "\$AWK" || AWK=awk
28217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28218 # The default lists apply if the user does not specify any file.
28224 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28225 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28236 # Handling of the options.
28237 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28239 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28240 $as_echo "$ac_cs_version"; exit ;;
28241 --debug |
--debu |
--deb |
--de |
--d |
-d )
28243 --file |
--fil |
--fi |
--f )
28246 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28248 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28249 ac_need_defaults
=false
;;
28250 --header |
--heade |
--head |
--hea )
28253 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28255 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28256 ac_need_defaults
=false
;;
28258 # Conflict between --help and --header
28259 as_fn_error
"ambiguous option: \`$1'
28260 Try \`$0 --help' for more information.";;
28261 --help |
--hel |
-h )
28262 $as_echo "$ac_cs_usage"; exit ;;
28263 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28264 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28267 # This is an error.
28268 -*) as_fn_error
"unrecognized option: \`$1'
28269 Try \`$0 --help' for more information." ;;
28271 *) as_fn_append ac_config_targets
" $1"
28272 ac_need_defaults
=false
;;
28278 ac_configure_extra_args
=
28280 if $ac_cs_silent; then
28282 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28287 if \$ac_cs_recheck; then
28288 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28291 CONFIG_SHELL='$SHELL'
28292 export CONFIG_SHELL
28297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28302 ## Running $as_me. ##
28308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28318 # Handling of arguments.
28319 for ac_config_target
in $ac_config_targets
28321 case $ac_config_target in
28322 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28323 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28324 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28325 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28326 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28327 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28329 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28334 # If the user did not use the arguments to specify the items to instantiate,
28335 # then the envvar interface is used. Set only those that are not.
28336 # We use the long form for the default assignment because of an extremely
28337 # bizarre bug on SunOS 4.1.3.
28338 if $ac_need_defaults; then
28339 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28340 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28341 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28344 # Have a temporary directory for convenience. Make it in the build tree
28345 # simply because there is no reason against having it here, and in addition,
28346 # creating and moving files from /tmp can sometimes cause problems.
28347 # Hook for its removal unless debugging.
28348 # Note that there is a small window in which the directory will not be cleaned:
28349 # after its creation but before its name has been assigned to `$tmp'.
28353 trap 'exit_status=$?
28354 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28356 trap 'as_fn_exit 1' 1 2 13 15
28358 # Create a (secure) tmp directory for tmp files.
28361 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28362 test -n "$tmp" && test -d "$tmp"
28365 tmp
=.
/conf$$
-$RANDOM
28366 (umask 077 && mkdir
"$tmp")
28367 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28369 # Set up the scripts for CONFIG_FILES section.
28370 # No need to generate them if there are no CONFIG_FILES.
28371 # This happens for instance with `./config.status config.h'.
28372 if test -n "$CONFIG_FILES"; then
28374 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28375 ac_cs_awk_getline
=:
28376 ac_cs_awk_pipe_init
=
28377 ac_cs_awk_read_file
='
28378 while ((getline aline < (F[key])) > 0)
28381 ac_cs_awk_pipe_fini
=
28383 ac_cs_awk_getline
=false
28384 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28385 ac_cs_awk_read_file
='
28387 print "cat " F[key] " &&"
28388 '$ac_cs_awk_pipe_init
28389 # The final `:' finishes the AND list.
28390 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28392 ac_cr
=`echo X | tr X '\015'`
28393 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28394 # But we know of no other shell where ac_cr would be empty at this
28395 # point, so we can use a bashism as a fallback.
28396 if test "x$ac_cr" = x
; then
28397 eval ac_cr
=\$
\'\\r
\'
28399 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28400 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28403 ac_cs_awk_cr
=$ac_cr
28406 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28409 # Create commands to substitute file output variables.
28411 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28412 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28413 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28416 } >conf$
$files.sh
&&
28417 . .
/conf$
$files.sh ||
28418 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28419 rm -f conf$
$files.sh
28422 echo "cat >conf$$subs.awk <<_ACEOF" &&
28423 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28425 } >conf$$subs.sh ||
28426 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28429 for ac_last_try in false false false false false :; do
28430 . ./conf$$subs.sh ||
28431 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28433 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28434 if test $ac_delim_n = $ac_delim_num; then
28436 elif $ac_last_try; then
28437 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28439 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28442 rm -f conf$$subs.sh
28444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28445 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28449 s/^/S["/; s
/!.
*/"]=/
28459 s/\(.\{148\}\).*/\1/
28461 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28466 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28473 s/\(.\{148\}\).*/\1/
28475 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28479 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28484 ' <conf$$subs.awk | sed '
28489 ' >>$CONFIG_STATUS || ac_write_fail=1
28490 rm -f conf$$subs.awk
28491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28493 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28494 for (key in S) S_is_set[key] = 1
28496 \$ac_cs_awk_pipe_init
28500 nfields = split(line, field, "@
")
28502 len = length(field[1])
28503 for (i = 2; i < nfields; i++) {
28505 keylen = length(key)
28506 if (S_is_set[key]) {
28508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28509 len += length(value) + length(field[++i])
28514 if (nfields == 3 && !substed) {
28516 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28517 \$ac_cs_awk_read_file
28523 \$ac_cs_awk_pipe_fini
28526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28527 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28528 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28531 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28532 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28537 # trailing colons and then remove the whole line if VPATH becomes empty
28538 # (actually we leave an empty line to preserve line numbers).
28539 if test "x
$srcdir" = x.; then
28540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28541 s/:*\$(srcdir):*/:/
28542 s/:*\${srcdir}:*/:/
28544 s/^\([^=]*=[ ]*\):*/\1/
28550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28551 fi # test -n "$CONFIG_FILES"
28553 # Set up the scripts for CONFIG_HEADERS section.
28554 # No need to generate them if there are no CONFIG_HEADERS.
28555 # This happens for instance with `./config.status Makefile'.
28556 if test -n "$CONFIG_HEADERS"; then
28557 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28561 # Transform confdefs.h into an awk script `defines.awk', embedded as
28562 # here-document in config.status, that substitutes the proper values into
28563 # config.h.in to produce config.h.
28565 # Create a delimiter string that does not exist in confdefs.h, to ease
28566 # handling of long lines.
28568 for ac_last_try in false false :; do
28569 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28570 if test -z "$ac_t"; then
28572 elif $ac_last_try; then
28573 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28575 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28579 # For the awk script, D is an array of macro values keyed by name,
28580 # likewise P contains macro parameters if any. Preserve backslash
28581 # newline sequences.
28583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28585 s/.\{148\}/&'"$ac_delim"'/g
28588 s/^[ ]*#[ ]*define[ ][ ]*/ /
28595 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28597 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28602 D["\
1"]=" \
3\\\\\\n
"\\/p
28604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28609 s/.\{148\}/&'"$ac_delim"'/g
28614 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28617 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28619 ' <confdefs.h | sed '
28620 s/'"$ac_delim"'/"\\\
28621 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28624 for (key in D) D_is_set[key] = 1
28627 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28629 split(line, arg, " ")
28630 if (arg[1] == "#") {
28634 defundef
= substr
(arg
[1], 2)
28637 split(mac1
, mac2
, "(") #)
28639 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28640 if (D_is_set
[macro
]) {
28641 # Preserve the white space surrounding the "#".
28642 print prefix
"define", macro P
[macro
] D
[macro
]
28645 # Replace #undef with comments. This is necessary, for example,
28646 # in the case of _POSIX_SOURCE, which is predefined and required
28647 # on some systems where configure will not decide to define it.
28648 if (defundef
== "undef") {
28649 print
"/*", prefix defundef
, macro
, "*/"
28657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28658 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28659 fi # test -n "$CONFIG_HEADERS"
28662 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28667 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28669 case $ac_mode$ac_tag in
28671 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28672 :[FH
]-) ac_tag
=-:-;;
28673 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28690 -) ac_f
="$tmp/stdin";;
28691 *) # Look for the file first in the build tree, then in the source tree
28692 # (if the path is not absolute). The absolute path cannot be DOS-style,
28693 # because $ac_f cannot contain `:'.
28697 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28699 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28701 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28702 as_fn_append ac_file_inputs
" '$ac_f'"
28705 # Let's still pretend it is `configure' which instantiates (i.e., don't
28706 # use $as_me), people would be surprised to read:
28707 # /* config.h. Generated by config.status. */
28708 configure_input
='Generated from '`
28709 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28711 if test x
"$ac_file" != x-
; then
28712 configure_input
="$ac_file. $configure_input"
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28714 $as_echo "$as_me: creating $ac_file" >&6;}
28716 # Neutralize special characters interpreted by sed in replacement strings.
28717 case $configure_input in #(
28718 *\
&* |
*\|
* |
*\\* )
28719 ac_sed_conf_input
=`$as_echo "$configure_input" |
28720 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28721 *) ac_sed_conf_input
=$configure_input;;
28725 *:-:* |
*:-) cat >"$tmp/stdin" \
28726 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28731 ac_dir
=`$as_dirname -- "$ac_file" ||
28732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28733 X"$ac_file" : 'X\(//\)[^/]' \| \
28734 X"$ac_file" : 'X\(//\)$' \| \
28735 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28736 $as_echo X"$ac_file" |
28737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28741 /^X\(\/\/\)[^/].*/{
28754 as_dir
="$ac_dir"; as_fn_mkdir_p
28758 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28760 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28761 # A ".." for each directory in $ac_dir_suffix.
28762 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28763 case $ac_top_builddir_sub in
28764 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28765 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28768 ac_abs_top_builddir
=$ac_pwd
28769 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28770 # for backward compatibility:
28771 ac_top_builddir
=$ac_top_build_prefix
28774 .
) # We are building in place.
28776 ac_top_srcdir
=$ac_top_builddir_sub
28777 ac_abs_top_srcdir
=$ac_pwd ;;
28778 [\\/]* | ?
:[\\/]* ) # Absolute name.
28779 ac_srcdir
=$srcdir$ac_dir_suffix;
28780 ac_top_srcdir
=$srcdir
28781 ac_abs_top_srcdir
=$srcdir ;;
28782 *) # Relative name.
28783 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28784 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28785 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28787 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28799 # If the template does not know about datarootdir, expand it.
28800 # FIXME: This hack should be removed a few years after 2.60.
28801 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28813 *datarootdir
*) ac_datarootdir_seen
=yes;;
28814 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28816 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28819 ac_datarootdir_hack='
28820 s&@datadir@&$datadir&g
28821 s&@docdir@&$docdir&g
28822 s&@infodir@&$infodir&g
28823 s&@localedir@&$localedir&g
28824 s&@mandir@&$mandir&g
28825 s&\\\${datarootdir}&$datarootdir&g' ;;
28829 # Neutralize VPATH when `$srcdir' = `.'.
28830 # Shell code in configure.ac might set extrasub.
28831 # FIXME: do we really want to maintain this feature?
28832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28833 ac_sed_extra="$ac_vpsub
28836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28838 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28839 s|@configure_input@|
$ac_sed_conf_input|
;t t
28840 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28841 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28842 s
&@srcdir@
&$ac_srcdir&;t t
28843 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28844 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28845 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28846 s
&@builddir@
&$ac_builddir&;t t
28847 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28848 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28849 $ac_datarootdir_hack
28851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28852 if $ac_cs_awk_getline; then
28853 $AWK -f "$tmp/subs.
awk"
28855 $AWK -f "$tmp/subs.
awk" | $SHELL
28857 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28860 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28863 which seems to be undefined. Please make sure it is defined." >&5
28864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28865 which seems to be undefined. Please make sure it is defined." >&2;}
28869 -) cat "$tmp/out" && rm -f "$tmp/out";;
28870 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28872 || as_fn_error "could not create $ac_file" "$LINENO" 5
28878 if test x"$ac_file" != x-; then
28880 $as_echo "/* $configure_input */" \
28881 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28882 } >"$tmp/config.h" \
28883 || as_fn_error "could not create $ac_file" "$LINENO" 5
28884 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28889 mv "$tmp/config.h" "$ac_file" \
28890 || as_fn_error "could not create $ac_file" "$LINENO" 5
28893 $as_echo "/* $configure_input */" \
28894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28895 || as_fn_error "could not create -" "$LINENO" 5
28899 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28900 $as_echo "$as_me: executing $ac_file commands" >&6;}
28905 case $ac_file$ac_mode in
28906 "as":F) chmod +x as ;;
28907 "collect-ld":F) chmod +x collect-ld ;;
28908 "nm":F) chmod +x nm ;;
28910 case ${CONFIG_HEADERS} in
28911 *auto-host.h:config.in*)
28914 # Make sure all the subdirs exist.
28915 for d in $subdirs doc build common c-family
28917 test -d $d || mkdir $d
28927 ac_clean_files=$ac_clean_files_save
28929 test $ac_write_fail = 0 ||
28930 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28933 # configure is writing to config.log, and then calls config.status.
28934 # config.status does its own redirection, appending to config.log.
28935 # Unfortunately, on DOS this fails, as config.log is still kept open
28936 # by configure, so config.status won't be able to
write to it
; its
28937 # output is simply discarded. So we exec the FD to /dev/null,
28938 # effectively closing config.log, so it can be properly (re)opened and
28939 # appended to by config.status. When coming back to configure, we
28940 # need to make the FD available again.
28941 if test "$no_create" != yes; then
28943 ac_config_status_args
=
28944 test "$silent" = yes &&
28945 ac_config_status_args
="$ac_config_status_args --quiet"
28947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28950 # would make configure fail if this is the last instruction.
28951 $ac_cs_success || as_fn_exit $?
28953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}