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
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
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
762 SYSROOT_CFLAGS_FOR_TARGET
763 RUNTIME_ROOT_PREFIX_DEFINE
764 NATIVE_SYSTEM_HEADER_DIR
769 ENABLE_BUILD_WITH_CXX
772 valgrind_path_defines
844 program_transform_name
855 ac_subst_files
='option_includes
858 enable_option_checking
863 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
885 with_native_system_header_dir
886 with_runtime_root_prefix
896 enable_initfini_array
897 enable_sjlj_exceptions
898 with_system_libunwind
900 enable_leading_mingw64_underscores
903 enable_win32_registry
909 enable_gnu_indirect_function
911 enable_gnu_unique_object
912 enable_linker_build_id
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
919 enable_canonical_prefixes
921 enable_libquadmath_support
923 ac_precious_vars
='build_alias
944 # Initialize some variables set by options.
946 ac_init_version
=false
947 ac_unrecognized_opts
=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name
=s
,x
,x
,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir
='${exec_prefix}/bin'
973 sbindir
='${exec_prefix}/sbin'
974 libexecdir
='${exec_prefix}/libexec'
975 datarootdir
='${prefix}/share'
976 datadir
='${datarootdir}'
977 sysconfdir
='${prefix}/etc'
978 sharedstatedir
='${prefix}/com'
979 localstatedir
='${prefix}/var'
980 includedir
='${prefix}/include'
981 oldincludedir
='/usr/include'
982 docdir
='${datarootdir}/doc/${PACKAGE}'
983 infodir
='${datarootdir}/info'
988 libdir
='${exec_prefix}/lib'
989 localedir
='${datarootdir}/locale'
990 mandir
='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\
$ac_option
1004 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1016 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1017 bindir
=$ac_optarg ;;
1019 -build |
--build |
--buil |
--bui |
--bu)
1020 ac_prev
=build_alias
;;
1021 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1022 build_alias
=$ac_optarg ;;
1024 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1025 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1026 ac_prev
=cache_file
;;
1027 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1028 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1029 cache_file
=$ac_optarg ;;
1031 --config-cache |
-C)
1032 cache_file
=config.cache
;;
1034 -datadir |
--datadir |
--datadi |
--datad)
1036 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1037 datadir
=$ac_optarg ;;
1039 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1040 |
--dataroo |
--dataro |
--datar)
1041 ac_prev
=datarootdir
;;
1042 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1043 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1044 datarootdir
=$ac_optarg ;;
1046 -disable-* |
--disable-*)
1047 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1050 as_fn_error
"invalid feature name: $ac_useropt"
1051 ac_useropt_orig
=$ac_useropt
1052 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_
$ac_useropt"
1057 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep
=', ';;
1060 eval enable_
$ac_useropt=no
;;
1062 -docdir |
--docdir |
--docdi |
--doc |
--do)
1064 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1065 docdir
=$ac_optarg ;;
1067 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1069 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1070 dvidir
=$ac_optarg ;;
1072 -enable-* |
--enable-*)
1073 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error
"invalid feature name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_
$ac_useropt"
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval enable_
$ac_useropt=\
$ac_optarg ;;
1088 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1089 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1090 |
--exec |
--exe |
--ex)
1091 ac_prev
=exec_prefix
;;
1092 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1093 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1094 |
--exec=* |
--exe=* |
--ex=*)
1095 exec_prefix
=$ac_optarg ;;
1097 -gas |
--gas |
--ga |
--g)
1098 # Obsolete; use --with-gas.
1101 -help |
--help |
--hel |
--he |
-h)
1102 ac_init_help
=long
;;
1103 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1104 ac_init_help
=recursive
;;
1105 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1106 ac_init_help
=short
;;
1108 -host |
--host |
--hos |
--ho)
1109 ac_prev
=host_alias
;;
1110 -host=* |
--host=* |
--hos=* |
--ho=*)
1111 host_alias
=$ac_optarg ;;
1113 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1115 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1117 htmldir
=$ac_optarg ;;
1119 -includedir |
--includedir |
--includedi |
--included |
--include \
1120 |
--includ |
--inclu |
--incl |
--inc)
1121 ac_prev
=includedir
;;
1122 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1123 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1124 includedir
=$ac_optarg ;;
1126 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1128 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1129 infodir
=$ac_optarg ;;
1131 -libdir |
--libdir |
--libdi |
--libd)
1133 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1134 libdir
=$ac_optarg ;;
1136 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1137 |
--libexe |
--libex |
--libe)
1138 ac_prev
=libexecdir
;;
1139 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1140 |
--libexe=* |
--libex=* |
--libe=*)
1141 libexecdir
=$ac_optarg ;;
1143 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1144 ac_prev
=localedir
;;
1145 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1146 localedir
=$ac_optarg ;;
1148 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1149 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1150 ac_prev
=localstatedir
;;
1151 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1152 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1153 localstatedir
=$ac_optarg ;;
1155 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1157 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1158 mandir
=$ac_optarg ;;
1160 -nfp |
--nfp |
--nf)
1161 # Obsolete; use --without-fp.
1164 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1165 |
--no-cr |
--no-c |
-n)
1168 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1169 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1172 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1173 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1174 |
--oldin |
--oldi |
--old |
--ol |
--o)
1175 ac_prev
=oldincludedir
;;
1176 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1177 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1178 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1179 oldincludedir
=$ac_optarg ;;
1181 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1183 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1184 prefix
=$ac_optarg ;;
1186 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1187 |
--program-pre |
--program-pr |
--program-p)
1188 ac_prev
=program_prefix
;;
1189 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1190 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1191 program_prefix
=$ac_optarg ;;
1193 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1194 |
--program-suf |
--program-su |
--program-s)
1195 ac_prev
=program_suffix
;;
1196 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1197 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1198 program_suffix
=$ac_optarg ;;
1200 -program-transform-name |
--program-transform-name \
1201 |
--program-transform-nam |
--program-transform-na \
1202 |
--program-transform-n |
--program-transform- \
1203 |
--program-transform |
--program-transfor \
1204 |
--program-transfo |
--program-transf \
1205 |
--program-trans |
--program-tran \
1206 |
--progr-tra |
--program-tr |
--program-t)
1207 ac_prev
=program_transform_name
;;
1208 -program-transform-name=* |
--program-transform-name=* \
1209 |
--program-transform-nam=* |
--program-transform-na=* \
1210 |
--program-transform-n=* |
--program-transform-=* \
1211 |
--program-transform=* |
--program-transfor=* \
1212 |
--program-transfo=* |
--program-transf=* \
1213 |
--program-trans=* |
--program-tran=* \
1214 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1215 program_transform_name
=$ac_optarg ;;
1217 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1219 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1220 pdfdir
=$ac_optarg ;;
1222 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1224 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1228 |
-silent |
--silent |
--silen |
--sile |
--sil)
1231 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1233 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1235 sbindir
=$ac_optarg ;;
1237 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1238 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1239 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1241 ac_prev
=sharedstatedir
;;
1242 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1243 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1244 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1246 sharedstatedir
=$ac_optarg ;;
1248 -site |
--site |
--sit)
1250 -site=* |
--site=* |
--sit=*)
1253 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1255 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1256 srcdir
=$ac_optarg ;;
1258 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1259 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1260 ac_prev
=sysconfdir
;;
1261 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1262 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1263 sysconfdir
=$ac_optarg ;;
1265 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1266 ac_prev
=target_alias
;;
1267 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1268 target_alias
=$ac_optarg ;;
1270 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1273 -version |
--version |
--versio |
--versi |
--vers |
-V)
1274 ac_init_version
=: ;;
1277 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1280 as_fn_error
"invalid package name: $ac_useropt"
1281 ac_useropt_orig
=$ac_useropt
1282 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep
=', ';;
1290 eval with_
$ac_useropt=\
$ac_optarg ;;
1292 -without-* |
--without-*)
1293 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=no
;;
1309 # Obsolete; use --with-x.
1312 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1313 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1314 ac_prev
=x_includes
;;
1315 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1316 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1317 x_includes
=$ac_optarg ;;
1319 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1320 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1321 ac_prev
=x_libraries
;;
1322 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1323 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1324 x_libraries
=$ac_optarg ;;
1326 -*) as_fn_error
"unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1331 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1335 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\
$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error
"missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val
=\$
$ac_var
1371 # Remove trailing slashes.
1374 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\
$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$
]* | ?
:[\\/]* ) continue;;
1380 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1382 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target
=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x
; then
1394 if test "x$build_alias" = x
; then
1395 cross_compiling
=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error
"working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error
"pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted
=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir
=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted
=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1453 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var
in $ac_precious_vars; do
1470 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1472 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1546 --build=BUILD configure
for building on BUILD
[guessed
]
1547 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1548 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1552 if test -n "$ac_init_help"; then
1557 --disable-option-checking ignore unrecognized
--enable/--with options
1558 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1559 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files
in source dir
1562 intended
for creating
source tarballs
for users
1563 without texinfo bison or flex.
1564 --disable-largefile omit support
for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking=LIST
1567 enable expensive run-time checks. With LIST
,
1568 enable only specific categories of checks.
1569 Categories are
: yes,no
,all
,none
,release.
1570 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1571 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1572 --enable-coverage=LEVEL
1573 enable compiler
's code coverage collection.
1574 Use to measure compiler performance and locate
1575 unused parts of the compiler. With LEVEL, specify
1576 optimization. Values are opt, noopt,
1578 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid
'
1584 or 'dpd
' choses which decimal floating point format
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads enable thread usage for target GCC
1588 --enable-threads=LIB use LIB thread package for target GCC
1589 --enable-tls enable or disable generation of tls code
1590 overriding the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with
1592 the GNU Objective-C runtime
1593 --disable-shared don
't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 Enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1604 --disable-win32-registry
1605 disable lookup of installation paths in the
1606 Registry on Windows hosts
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful
1627 (and sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be
1630 installed in a compiler-specific directory
1631 --enable-canonical-prefixes
1632 enable or disable prefix canonicalization
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld.
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld.
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-runtime-root-prefix=prefix
1658 prepend prefix to paths used by the compiler to
1659 name the dynamic linker and other files used at
1660 runtime. Defaults to empty (no prefix).
1661 --with-build-sysroot=SYSROOT
1662 use sysroot as the system root during the build
1663 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list Select multilibs (SH only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1671 --with-system-libunwind use installed libunwind
1672 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1674 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1675 --with-plugin-ld=[ARG
] specify the plugin linker
1676 --with-long-double-128 Use
128-bit long double by default.
1677 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1679 --with-system-zlib use installed libz
1680 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1682 Some influential environment variables
:
1683 CC C compiler
command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1686 nonstandard directory
<lib dir
>
1687 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1688 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1689 you have headers
in a nonstandard directory
<include dir
>
1690 CXX C
++ compiler
command
1691 CXXFLAGS C
++ compiler flags
1693 CXXCPP C
++ preprocessor
1694 GMPLIBS How to link GMP
1695 GMPINC How to
find GMP include files
1696 PPLLIBS How to link PPL
1697 PPLINC How to
find PPL include files
1698 CLOOGLIBS How to link CLOOG
1699 CLOOGINC How to
find CLOOG include files
1701 Use these variables to override the choices made by
`configure' or to help
1702 it to find libraries and programs with nonstandard names/locations.
1704 Report bugs to the package provider.
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1728 ac_abs_top_builddir=$ac_pwd
1729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir=$ac_top_build_prefix
1734 .) # We are building in place.
1736 ac_top_srcdir=$ac_top_builddir_sub
1737 ac_abs_top_srcdir=$ac_pwd ;;
1738 [\\/]* | ?:[\\/]* ) # Absolute name.
1739 ac_srcdir=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir=$srcdir
1741 ac_abs_top_srcdir=$srcdir ;;
1743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749 cd "$ac_dir" || { ac_status=$?; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 cd "$ac_pwd" || { ac_status=$?; break; }
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1768 generated by GNU Autoconf 2.64
1770 Copyright (C) 2009 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1781 # ac_fn_c_try_compile LINENO
1782 # --------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_compile ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext
1788 if { { ac_try="$ac_compile"
1790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1791 *) ac_try_echo
=$ac_try;;
1793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1797 if test -s conftest.err
; then
1798 grep -v '^ *+' conftest.err
>conftest.er1
1799 cat conftest.er1
>&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.
$ac_objext; then :
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.
$ac_ext >&5
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1817 } # ac_fn_c_try_compile
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile
()
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 rm -f conftest.
$ac_objext
1826 if { { ac_try
="$ac_compile"
1828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1866 *) ac_try_echo
=$ac_try;;
1868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 if test -s conftest.err
; then
1873 grep -v '^ *+' conftest.err
>conftest.er1
1874 cat conftest.er1
>&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } >/dev
/null
&& {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.
$ac_ext >&5
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1899 ac_fn_c_check_header_mongrel
()
1901 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1902 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 $as_echo_n "(cached) " >&6
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1920 if ac_fn_c_try_compile
"$LINENO"; then :
1921 ac_header_compiler
=yes
1923 ac_header_compiler
=no
1925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 if ac_fn_c_try_cpp
"$LINENO"; then :
1937 ac_header_preproc
=yes
1939 ac_header_preproc
=no
1941 rm -f conftest.err conftest.
$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1971 eval "$3=\$ac_header_compiler"
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1979 } # ac_fn_c_check_header_mongrel
1981 # ac_fn_c_try_run LINENO
1982 # ----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1984 # that executables *can* be run.
1987 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1988 if { { ac_try
="$ac_link"
1990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>&5
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1999 { { case "(($ac_try" in
2000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2001 *) ac_try_echo
=$ac_try;;
2003 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_try") 2>&5
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; }; }; then :
2011 $as_echo "$as_me: program exited with status $ac_status" >&5
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.
$ac_ext >&5
2015 ac_retval
=$ac_status
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2023 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists and can be compiled using the include files in
2026 # INCLUDES, setting the cache variable VAR accordingly.
2027 ac_fn_c_check_header_compile
()
2029 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2040 if ac_fn_c_try_compile
"$LINENO"; then :
2045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2052 } # ac_fn_c_check_header_compile
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 ac_fn_c_compute_int
()
2061 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2077 if ac_fn_c_try_compile
"$LINENO"; then :
2080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 if ac_fn_c_try_compile
"$LINENO"; then :
2094 ac_hi
=$ac_mid; break
2096 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2097 if test $ac_lo -le $ac_mid; then
2101 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) < 0)];
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 if ac_fn_c_try_compile
"$LINENO"; then :
2136 ac_lo
=$ac_mid; break
2138 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2139 if test $ac_mid -le $ac_hi; then
2143 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 if ac_fn_c_try_compile
"$LINENO"; then :
2172 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2177 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2184 static long int longval () { return $2; }
2185 static unsigned long int ulongval () { return $2; }
2192 FILE *f = fopen ("conftest.val", "w");
2197 long int i = longval ();
2200 fprintf (f, "%ld", i);
2204 unsigned long int i = ulongval ();
2207 fprintf (f, "%lu", i);
2209 /* Do not output a trailing newline, as this causes \r\n confusion
2210 on some platforms. */
2211 return ferror (f) || fclose (f) != 0;
2217 if ac_fn_c_try_run
"$LINENO"; then :
2218 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2230 } # ac_fn_c_compute_int
2232 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2233 # -------------------------------------------
2234 # Tests whether TYPE exists after having included INCLUDES, setting cache
2235 # variable VAR accordingly.
2236 ac_fn_c_check_type
()
2238 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2257 if ac_fn_c_try_compile
"$LINENO"; then :
2258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2270 if ac_fn_c_try_compile
"$LINENO"; then :
2275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2284 } # ac_fn_c_check_type
2286 # ac_fn_c_find_intX_t LINENO BITS VAR
2287 # -----------------------------------
2288 # Finds a signed integer type with width BITS, setting cache variable VAR
2290 ac_fn_c_find_intX_t
()
2292 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2294 $as_echo_n "checking for int$2_t... " >&6; }
2295 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 $as_echo_n "(cached) " >&6
2299 for ac_type
in int
$2_t 'int' 'long int' \
2300 'long long int' 'short int' 'signed char'; do
2301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $ac_includes_default
2307 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2314 if ac_fn_c_try_compile
"$LINENO"; then :
2315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $ac_includes_default
2321 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2322 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2329 if ac_fn_c_try_compile
"$LINENO"; then :
2336 eval "$3=\$ac_type" ;;
2339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2343 if test "x$as_val" = x
""no
; then :
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2355 } # ac_fn_c_find_intX_t
2357 # ac_fn_c_try_link LINENO
2358 # -----------------------
2359 # Try to link conftest.$ac_ext, and return whether this succeeded.
2362 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2363 rm -f conftest.
$ac_objext conftest
$ac_exeext
2364 if { { ac_try
="$ac_link"
2366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest$ac_exeext && {
2383 test "$cross_compiling" = yes ||
2384 $as_test_x conftest$ac_exeext
2388 $as_echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 } # ac_fn_c_try_link
2403 # ac_fn_c_find_uintX_t LINENO BITS VAR
2404 # ------------------------------------
2405 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2407 ac_fn_c_find_uintX_t ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2411 $as_echo_n "checking for uint$2_t... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2416 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $ac_includes_default
2424 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2431 if ac_fn_c_try_compile "$LINENO"; then :
2436 eval "$3=\$ac_type" ;;
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 if test "x$as_val" = x""no; then :
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453 } # ac_fn_c_find_uintX_t
2455 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2456 # ----------------------------------------------
2457 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2458 ac_fn_c_check_header_preproc ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2470 if ac_fn_c_try_cpp "$LINENO"; then :
2475 rm -f conftest.err conftest.$ac_ext
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482 } # ac_fn_c_check_header_preproc
2484 # ac_fn_cxx_try_cpp LINENO
2485 # ------------------------
2486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2487 ac_fn_cxx_try_cpp ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 if { { ac_try="$ac_cpp conftest.$ac_ext"
2492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2493 *) ac_try_echo
=$ac_try;;
2495 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499 if test -s conftest.err
; then
2500 grep -v '^ *+' conftest.err
>conftest.er1
2501 cat conftest.er1
>&5
2502 mv -f conftest.er1 conftest.err
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } >/dev
/null
&& {
2506 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.
$ac_ext >&5
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2519 } # ac_fn_cxx_try_cpp
2521 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2522 # ------------------------------------------------
2523 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2524 ac_fn_cxx_check_header_preproc
()
2526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530 $as_echo_n "(cached) " >&6
2532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2536 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2541 rm -f conftest.err conftest.
$ac_ext
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2548 } # ac_fn_cxx_check_header_preproc
2550 # ac_fn_c_check_func LINENO FUNC VAR
2551 # ----------------------------------
2552 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2553 ac_fn_c_check_func
()
2555 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2565 #define $2 innocuous_$2
2567 /* System header to define __stub macros and hopefully few prototypes,
2568 which can conflict with char $2 (); below.
2569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2570 <limits.h> exists even on freestanding compilers. */
2573 # include <limits.h>
2575 # include <assert.h>
2580 /* Override any GCC internal prototype to avoid an error.
2581 Use char because int might match the return type of a GCC
2582 builtin and then its argument prototype would still apply. */
2587 /* The GNU C library defines this for functions which it implements
2588 to always fail with ENOSYS. Some functions are actually named
2589 something starting with __ and the normal name is an alias. */
2590 #if defined __stub_$2 || defined __stub___$2
2602 if ac_fn_c_try_link
"$LINENO"; then :
2607 rm -f core conftest.err conftest.
$ac_objext \
2608 conftest
$ac_exeext conftest.
$ac_ext
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2615 } # ac_fn_c_check_func
2617 # ac_fn_cxx_try_link LINENO
2618 # -------------------------
2619 # Try to link conftest.$ac_ext, and return whether this succeeded.
2620 ac_fn_cxx_try_link
()
2622 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2623 rm -f conftest.
$ac_objext conftest
$ac_exeext
2624 if { { ac_try
="$ac_link"
2626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2633 if test -s conftest.err; then
2634 grep -v '^ *+' conftest.err >conftest.er1
2635 cat conftest.er1 >&5
2636 mv -f conftest.er1 conftest.err
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_cxx_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 $as_test_x conftest$ac_exeext
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 } # ac_fn_cxx_try_link
2662 cat >config.log <<_ACEOF
2663 This file contains any messages produced by compilers while
2664 running configure, to aid debugging if configure makes a mistake.
2666 It was created by $as_me, which was
2667 generated by GNU Autoconf 2.64. Invocation command line was
2679 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2680 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2681 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2682 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2683 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2686 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2688 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2689 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2690 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2691 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2692 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2693 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2694 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 $as_echo "PATH: $as_dir"
2719 # Keep a trace of the command line.
2720 # Strip out --no-create and --no-recursion so they do not pile up.
2721 # Strip out --silent because we don't want to record it for future runs.
2722 # Also quote any args containing shell meta-characters.
2723 # Make two passes to allow for proper duplicate-argument suppression.
2727 ac_must_keep_next=false
2733 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2735 | -silent | --silent | --silen | --sile | --sil)
2738 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2741 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2743 as_fn_append ac_configure_args1 " '$ac_arg'"
2744 if test $ac_must_keep_next = true; then
2745 ac_must_keep_next=false # Got value, back to normal.
2748 *=* | --config-cache | -C | -disable-* | --disable-* \
2749 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2750 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2751 | -with-* | --with-* | -without-* | --without-* | --x)
2752 case "$ac_configure_args0 " in
2753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2756 -* ) ac_must_keep_next=true ;;
2759 as_fn_append ac_configure_args " '$ac_arg'"
2764 { ac_configure_args0=; unset ac_configure_args0;}
2765 { ac_configure_args1=; unset ac_configure_args1;}
2767 # When interrupted or exit'd, cleanup temporary files, and complete
2768 # config.log. We remove comments because anyway the quotes in there
2769 # would cause problems or look ugly.
2770 # WARNING: Use '\'' to represent an apostrophe within the trap.
2771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2772 trap 'exit_status=$?
2773 # Save into config.log some information that might help in debugging.
2778 ## ---------------- ##
2779 ## Cache variables. ##
2780 ## ---------------- ##
2783 # The following way of writing the cache mishandles newlines in values,
2785 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2786 eval ac_val=\$$ac_var
2790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2794 _ | IFS | as_nl) ;; #(
2795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2796 *) { eval $ac_var=; unset $ac_var;} ;;
2801 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2802 *${as_nl}ac_space=\ *)
2804 "s/'\''/'\''\\\\'\'''\''/g;
2805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 ## ----------------- ##
2817 ## Output variables. ##
2818 ## ----------------- ##
2821 for ac_var in $ac_subst_vars
2823 eval ac_val=\$$ac_var
2825 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2827 $as_echo "$ac_var='\''$ac_val'\''"
2831 if test -n "$ac_subst_files"; then
2833 ## ------------------- ##
2834 ## File substitutions. ##
2835 ## ------------------- ##
2838 for ac_var in $ac_subst_files
2840 eval ac_val=\$$ac_var
2842 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 $as_echo "$ac_var='\''$ac_val'\''"
2849 if test -s confdefs.h; then
2859 test "$ac_signal" != 0 &&
2860 $as_echo "$as_me: caught signal $ac_signal"
2861 $as_echo "$as_me: exit $exit_status"
2863 rm -f core *.core core.conftest.* &&
2864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2867 for ac_signal in 1 2 13 15; do
2868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2873 rm -f -r conftest* confdefs.h
2875 $as_echo "/* confdefs.h */" > confdefs.h
2877 # Predefined preprocessor variables.
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_NAME "$PACKAGE_NAME"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_STRING "$PACKAGE_STRING"
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_URL "$PACKAGE_URL"
2904 # Let the site file select an alternate cache file if it wants to.
2905 # Prefer an explicitly selected file to automatically selected ones.
2908 if test -n "$CONFIG_SITE"; then
2909 ac_site_file1=$CONFIG_SITE
2910 elif test "x$prefix" != xNONE; then
2911 ac_site_file1=$prefix/share/config.site
2912 ac_site_file2=$prefix/etc/config.site
2914 ac_site_file1=$ac_default_prefix/share/config.site
2915 ac_site_file2=$ac_default_prefix/etc/config.site
2917 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2919 test "x$ac_site_file" = xNONE && continue
2920 if test -r "$ac_site_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2923 sed 's/^/| /' "$ac_site_file" >&5
2928 if test -r "$cache_file"; then
2929 # Some versions of bash will fail to source /dev/null (special
2930 # files actually), so we avoid doing that.
2931 if test -f "$cache_file"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2933 $as_echo "$as_me: loading cache $cache_file" >&6;}
2935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2936 *) . "./$cache_file";;
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2945 # Check that the precious variables saved in the cache have kept the same
2947 ac_cache_corrupted=false
2948 for ac_var in $ac_precious_vars; do
2949 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2950 eval ac_new_set=\$ac_env_${ac_var}_set
2951 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2952 eval ac_new_val=\$ac_env_${ac_var}_value
2953 case $ac_old_set,$ac_new_set in
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2956 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2957 ac_cache_corrupted=: ;;
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2960 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2961 ac_cache_corrupted=: ;;
2964 if test "x$ac_old_val" != "x$ac_new_val"; then
2965 # differences in whitespace do not lead to failure.
2966 ac_old_val_w=`echo x
$ac_old_val`
2967 ac_new_val_w=`echo x
$ac_new_val`
2968 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2970 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2971 ac_cache_corrupted=:
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2974 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2975 eval $ac_var=\$ac_old_val
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2978 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2980 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2983 # Pass precious variables to config.status.
2984 if test "$ac_new_set" = set; then
2986 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2987 *) ac_arg=$ac_var=$ac_new_val ;;
2989 case " $ac_configure_args " in
2990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2991 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2995 if $ac_cache_corrupted; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2999 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3000 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3002 ## -------------------- ##
3003 ## Main body of script. ##
3004 ## -------------------- ##
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3020 gcc_version=`cat $srcdir/BASE-VER
`
3022 # Determine the host, build, and target systems
3024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3025 for ac_t in install-sh install.sh shtool; do
3026 if test -f "$ac_dir/$ac_t"; then
3028 ac_install_sh="$ac_aux_dir/$ac_t -c"
3033 if test -z "$ac_aux_dir"; then
3034 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3037 # These three variables are undocumented and unsupported,
3038 # and are intended to be withdrawn in a future Autoconf release.
3039 # They can cause serious problems if a builder's source tree is in a directory
3040 # whose full name contains unusual characters.
3041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3046 # Make sure we can run config.sub.
3047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3048 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3051 $as_echo_n "checking build system type... " >&6; }
3052 if test "${ac_cv_build+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 ac_build_alias=$build_alias
3056 test "x$ac_build_alias" = x &&
3057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3058 test "x$ac_build_alias" = x &&
3059 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3060 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3061 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3065 $as_echo "$ac_cv_build" >&6; }
3066 case $ac_cv_build in
3068 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3071 ac_save_IFS=$IFS; IFS='-'
3077 # Remember, the first character of IFS is used to create $*,
3078 # except with old shells:
3081 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3085 $as_echo_n "checking host system type... " >&6; }
3086 if test "${ac_cv_host+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 if test "x$host_alias" = x; then
3090 ac_cv_host=$ac_cv_build
3092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3093 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3098 $as_echo "$ac_cv_host" >&6; }
3101 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3104 ac_save_IFS=$IFS; IFS='-'
3110 # Remember, the first character of IFS is used to create $*,
3111 # except with old shells:
3114 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3118 $as_echo_n "checking target system type... " >&6; }
3119 if test "${ac_cv_target+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3122 if test "x$target_alias" = x; then
3123 ac_cv_target=$ac_cv_host
3125 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3126 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3131 $as_echo "$ac_cv_target" >&6; }
3132 case $ac_cv_target in
3134 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3136 target=$ac_cv_target
3137 ac_save_IFS=$IFS; IFS='-'
3143 # Remember, the first character of IFS is used to create $*,
3144 # except with old shells:
3147 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3150 # The aliases save the names the user supplied, while $host etc.
3151 # will get canonicalized.
3152 test -n "$target_alias" &&
3153 test "$program_prefix$program_suffix$program_transform_name" = \
3155 program_prefix=${target_alias}-
3157 # Determine the noncanonical target name, for directory use.
3158 case ${build_alias} in
3159 "") build_noncanonical=${build} ;;
3160 *) build_noncanonical=${build_alias} ;;
3163 case ${host_alias} in
3164 "") host_noncanonical=${build_noncanonical} ;;
3165 *) host_noncanonical=${host_alias} ;;
3168 case ${target_alias} in
3169 "") target_noncanonical=${host_noncanonical} ;;
3170 *) target_noncanonical=${target_alias} ;;
3176 # Determine the target- and build-specific subdirectories
3178 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3179 # have matching libraries, they should use host libraries: Makefile.tpl
3180 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3181 # However, they still use the build modules, because the corresponding
3182 # host modules (e.g. bison) are only built for the host when bootstrap
3184 # - build_subdir is where we find build modules, and never changes.
3185 # - build_libsubdir is where we find build libraries, and can be overridden.
3187 # Prefix 'build-' so this never conflicts with target_subdir.
3188 build_subdir="build-${build_noncanonical}"
3190 # Check whether --with-build-libsubdir was given.
3191 if test "${with_build_libsubdir+set}" = set; then :
3192 withval=$with_build_libsubdir; build_libsubdir="$withval"
3194 build_libsubdir="$build_subdir"
3197 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3198 if ( test $srcdir = . && test -d gcc ) \
3199 || test -d $srcdir/../host-${host_noncanonical}; then
3200 host_subdir="host-${host_noncanonical}"
3205 target_subdir=${target_noncanonical}
3208 # Set program_transform_name
3209 test "$program_prefix" != NONE &&
3210 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3211 # Use a double $ so make ignores it.
3212 test "$program_suffix" != NONE &&
3213 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3214 # Double any \ or $.
3215 # By default was `s
,x
,x
', remove it if useless.
3216 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3217 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3220 # Check for bogus environment variables.
3221 # Test if LIBRARY_PATH contains the notation for the current directory
3222 # since this would lead to problems installing/building glibc.
3223 # LIBRARY_PATH contains the current directory if one of the following
3225 # - one of the terminals (":" and ";") is the first or last sign
3226 # - two terminals occur directly after each other
3227 # - the path contains an element with a dot in it
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3229 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3230 case ${LIBRARY_PATH} in
3231 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3232 library_path_setting="contains current directory"
3235 library_path_setting="ok"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3239 $as_echo "$library_path_setting" >&6; }
3240 if test "$library_path_setting" != "ok"; then
3242 *** LIBRARY_PATH shouldn't contain the current directory when
3243 *** building gcc. Please change the environment variable
3244 *** and run configure again.
" "$LINENO" 5
3247 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3248 # since this would lead to problems installing/building glibc.
3249 # GCC_EXEC_PREFIX contains the current directory if one of the following
3251 # - one of the terminals (":" and ";") is the first or last sign
3252 # - two terminals occur directly after each other
3253 # - the path contains an element with a dot in it
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3255 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3256 case ${GCC_EXEC_PREFIX} in
3257 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3258 gcc_exec_prefix_setting="contains current directory
"
3261 gcc_exec_prefix_setting="ok
"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3265 $as_echo "$gcc_exec_prefix_setting" >&6; }
3266 if test "$gcc_exec_prefix_setting" != "ok
"; then
3268 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3269 *** building gcc. Please change the environment variable
3270 *** and run configure again." "$LINENO" 5
3277 # Specify the local prefix
3280 # Check whether --with-local-prefix was given.
3281 if test "${with_local_prefix+set}" = set; then :
3282 withval=$with_local_prefix; case "${withval}" in
3283 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3285 *) local_prefix=$with_local_prefix ;;
3290 # Default local prefix if it is empty
3291 if test x$local_prefix = x; then
3292 local_prefix=/usr/local
3295 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3296 # passed in by the toplevel make and thus we'd get different behavior
3297 # depending on where we built the sources.
3298 gcc_gxx_include_dir
=
3299 # Specify the g++ header file directory
3301 # Check whether --with-gxx-include-dir was given.
3302 if test "${with_gxx_include_dir+set}" = set; then :
3303 withval
=$with_gxx_include_dir; case "${withval}" in
3304 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3306 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3311 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3312 if test x
${gcc_gxx_include_dir} = x
; then
3313 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3314 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3316 libstdcxx_incdir
='include/c++/$(version)'
3317 if test x
$host != x
$target; then
3318 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3320 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3328 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x
$withval != xno
; then
3330 cpp_install_dir
=$withval
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3347 generated_files_in_srcdir
=no
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3354 if test "$generated_files_in_srcdir" = "yes"; then
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3375 # With pre-defined ld
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3382 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3389 cat >>confdefs.h
<<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3395 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3397 cat >>confdefs.h
<<_ACEOF
3398 #define HAVE_GNU_LD $gnu_ld
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3403 $as_echo_n "checking whether a default linker was specified... " >&6; }
3404 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3405 if test x
"$gnu_ld_flag" = x
"no"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3417 # With demangler in GNU ld
3419 # Check whether --with-demangler-in-ld was given.
3420 if test "${with_demangler_in_ld+set}" = set; then :
3421 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3427 # ----------------------
3428 # Find default assembler
3429 # ----------------------
3433 # Check whether --with-gnu-as was given.
3434 if test "${with_gnu_as+set}" = set; then :
3435 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3442 # Check whether --with-as was given.
3443 if test "${with_as+set}" = set; then :
3444 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3447 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3448 if test ! -x "$DEFAULT_ASSEMBLER"; then
3449 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3450 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3454 cat >>confdefs.h
<<_ACEOF
3455 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3460 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3462 cat >>confdefs.h
<<_ACEOF
3463 #define HAVE_GNU_AS $gnu_as
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3468 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3469 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3470 if test x
"$gas_flag" = x
"no"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3472 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3475 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3486 # If a non-executable a.out is present (e.g. created by GNU as above even if
3487 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3488 # file, even when creating an executable, so an execution test fails.
3489 # Remove possible default executable files to avoid this.
3491 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3492 # Autoconf includes it.
3493 rm -f a.out a.exe b.out
3495 # Find the native compiler
3497 ac_cpp
='$CPP $CPPFLAGS'
3498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3501 if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3503 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_CC+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC
="$CC" # Let the user override the test.
3512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir
=.
3517 for ac_exec_ext
in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test -n "$CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3540 if test -z "$ac_cv_prog_CC"; then
3542 # Extract the first word of "gcc", so it can be a program name with args.
3543 set dummy gcc
; ac_word
=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir
=.
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CC
="gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3578 if test "x$ac_ct_CC" = x
; then
3581 case $cross_compiling:$ac_tool_warned in
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned
=yes ;;
3593 if test -z "$CC"; then
3594 if test -n "$ac_tool_prefix"; then
3595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3596 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_CC+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC
="$CC" # Let the user override the test.
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_exec_ext
in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3634 if test -z "$CC"; then
3635 # Extract the first word of "cc", so it can be a program name with args.
3636 set dummy cc
; ac_word
=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_CC+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC
="$CC" # Let the user override the test.
3646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir
=.
3651 for ac_exec_ext
in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654 ac_prog_rejected
=yes
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 if test $ac_prog_rejected = yes; then
3666 # We found a bogon in the path, so make sure we never use it.
3667 set dummy
$ac_cv_prog_CC
3669 if test $# != 0; then
3670 # We chose a different compiler from the bogus one.
3671 # However, it has the same basename, so the bogon will be chosen
3672 # first if we set CC to just the basename; use the full file name.
3674 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog
in cl.exe
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC
="$CC" # Let the user override the test.
3704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir
=.
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$CC" && break
3734 if test -z "$CC"; then
3736 for ac_prog
in cl.exe
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy
$ac_prog; ac_word
=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir
=.
3753 for ac_exec_ext
in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_ac_ct_CC
="$ac_prog"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3766 if test -n "$ac_ct_CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768 $as_echo "$ac_ct_CC" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3775 test -n "$ac_ct_CC" && break
3778 if test "x$ac_ct_CC" = x
; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned
=yes ;;
3794 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error
"no acceptable C compiler found in \$PATH
3797 See \`config.log' for more details." "$LINENO" 5; }
3799 # Provide some information about the compiler.
3800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3803 for ac_option
in --version -v -V -qversion; do
3804 { { ac_try
="$ac_compiler $ac_option >&5"
3806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 if test -s conftest.err; then
3815 ... rest of stderr output deleted ...
3816 10q' conftest.err >conftest.er1
3817 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 ac_clean_files_save=$ac_clean_files
3836 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3837 # Try to create an executable without -o first, disregard a.out.
3838 # It will help us diagnose broken compilers, and finding out an intuition
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3841 $as_echo_n "checking for C compiler default output file name... " >&6; }
3842 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3844 # The possible output files:
3845 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848 for ac_file in $ac_files
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3857 if { { ac_try="$ac_link_default"
3859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3860 *) ac_try_echo
=$ac_try;;
3862 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_link_default") 2>&5
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }; then :
3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3871 # so that the user can short-circuit this test for compilers unknown to
3873 for ac_file
in $ac_files ''
3875 test -f "$ac_file" ||
continue
3877 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3880 # We found the default executable, but exeext='' is most
3884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3886 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 # We set ac_cv_exeext here because the later test for it is not
3889 # safe: cross compilers may not add the suffix if given an `-o'
3890 # argument, so we may need to know it at that point already.
3891 # Even if this section looks crufty: it has the advantage of
3898 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3904 $as_echo "$ac_file" >&6; }
3905 if test -z "$ac_file"; then :
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.
$ac_ext >&5
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 { as_fn_set_status
77
3912 as_fn_error
"C compiler cannot create executables
3913 See \`config.log' for more details." "$LINENO" 5; }; }
3915 ac_exeext
=$ac_cv_exeext
3917 # Check that the compiler produces executables we can run. If not, either
3918 # the compiler is broken, or we cross compile.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3920 $as_echo_n "checking whether the C compiler works... " >&6; }
3921 # If not cross compiling, check that we can run a simple program.
3922 if test "$cross_compiling" != yes; then
3923 if { ac_try
='./$ac_file'
3924 { { case "(($ac_try" in
3925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_try") 2>&5
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; }; then
3936 if test "$cross_compiling" = maybe; then
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error "cannot run C compiled programs.
3942 If you meant to cross compile
, use \
`--host'.
3943 See \`config.log
' for more details." "$LINENO" 5; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3951 ac_clean_files=$ac_clean_files_save
3952 # Check that the compiler produces executables we can run. If not, either
3953 # the compiler is broken, or we cross compile.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3955 $as_echo_n "checking whether we are cross compiling... " >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3957 $as_echo "$cross_compiling" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3973 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3976 for ac_file
in conftest.exe conftest conftest.
*; do
3977 test -f "$ac_file" ||
continue
3979 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3980 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest
$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3995 rm -f conftest.
$ac_ext
3996 EXEEXT
=$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999 $as_echo_n "checking for suffix of object files... " >&6; }
4000 if test "${ac_cv_objext+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4014 rm -f conftest.o conftest.obj
4015 if { { ac_try
="$ac_compile"
4017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compile") 2>&5
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 for ac_file in conftest.o conftest.obj conftest.*; do
4027 test -f "$ac_file" || continue;
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error "cannot compute suffix of object files
: cannot compile
4041 See \
`config.log' for more details." "$LINENO" 5; }
4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046 $as_echo "$ac_cv_objext" >&6; }
4047 OBJEXT=$ac_cv_objext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4084 ac_test_CFLAGS=${CFLAGS+set}
4085 ac_save_CFLAGS=$CFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4088 if test "${ac_cv_prog_cc_g+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4091 ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4106 if ac_fn_c_try_compile "$LINENO"; then :
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4121 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4158 if test "$GCC" = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4169 ac_cv_prog_cc_c89=no
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 #include <sys/types.h>
4176 #include <sys/stat.h>
4177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4178 struct buf { int x; };
4179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4180 static char *e (p, i)
4186 static char *f (char * (*g) (char **, int), char **p, ...)
4191 s = g (p, va_arg (v,int));
4196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4197 function prototypes and stuff, but not '\xHH' hex character constants.
4198 These don't provoke an error unfortunately, instead are silently treated
4199 as 'x'. The following induces an error, until -std is added to get
4200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4201 array size at least. It's necessary to write '\x00'==0 to get something
4202 that's true only with -std. */
4203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4206 inside strings and character constants. */
4208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210 int test (int i, double x);
4211 struct s1 {int (*f) (int a);};
4212 struct s2 {int (*f) (double a);};
4213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 CC="$ac_save_CC $ac_arg"
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_prog_cc_c89=$ac_arg
4231 rm -f core conftest.err conftest.$ac_objext
4232 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 rm -f conftest.$ac_ext
4239 case "x$ac_cv_prog_cc_c89" in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 $as_echo "none needed" >&6; } ;;
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4245 $as_echo "unsupported" >&6; } ;;
4247 CC="$CC $ac_cv_prog_cc_c89"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4249 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 if test "x$ac_cv_prog_cc_c89" != xno; then :
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 if test "x$CC" != xcc; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4263 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4266 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4268 set dummy $CC; ac_cc=`$as_echo "$2" |
4269 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4270 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4271 $as_echo_n "(cached) " >&6
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4284 # Make sure it works both with $CC and with simple cc.
4285 # We do the test twice because some compilers refuse to overwrite an
4286 # existing .o file with -o, though they will create one.
4287 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4289 if { { case "(($ac_try" in
4290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4291 *) ac_try_echo
=$ac_try;;
4293 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; } &&
4299 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_try") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; };
4310 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4311 if test "x$CC" != xcc; then
4312 # Test first that cc exists at all.
4313 if { ac_try='cc -c conftest.$ac_ext >&5'
4314 { { case "(($ac_try" in
4315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4316 *) ac_try_echo
=$ac_try;;
4318 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320 (eval "$ac_try") 2>&5
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }; }; then
4324 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 if { { case "(($ac_try" in
4327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; } &&
4336 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4338 *) ac_try_echo
=$ac_try;;
4340 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342 (eval "$ac_try") 2>&5
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; };
4350 # cc exists but doesn't like -o.
4351 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4356 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4358 rm -f core conftest
*
4361 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4368 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4372 # expand $ac_aux_dir to an absolute path
4373 am_aux_dir
=`cd $ac_aux_dir && pwd`
4375 # FIXME: we rely on the cache variable name because
4376 # there is no other way.
4378 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4379 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4380 if test "$am_t" != yes; then
4381 # Losing compiler, so override with the script.
4382 # FIXME: It is wrong to rewrite CC.
4383 # But if we don't then we get into trouble of one sort or another.
4384 # A longer-term fix would be to have automake use am__CC in this case,
4385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4386 CC
="$am_aux_dir/compile $CC"
4391 ac_cpp
='$CXXCPP $CPPFLAGS'
4392 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4395 if test -z "$CXX"; then
4396 if test -n "$CCC"; then
4399 if test -n "$ac_tool_prefix"; then
4400 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4403 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$CXX"; then
4410 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir
=.
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 if test -n "$CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4432 $as_echo "$CXX" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$CXX" && break
4442 if test -z "$CXX"; then
4444 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy
$ac_prog; ac_word
=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4453 if test -n "$ac_ct_CXX"; then
4454 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir
=.
4461 for ac_exec_ext
in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4474 if test -n "$ac_ct_CXX"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4476 $as_echo "$ac_ct_CXX" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4483 test -n "$ac_ct_CXX" && break
4486 if test "x$ac_ct_CXX" = x
; then
4489 case $cross_compiling:$ac_tool_warned in
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned
=yes ;;
4501 # Provide some information about the compiler.
4502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4505 for ac_option
in --version -v -V -qversion; do
4506 { { ac_try
="$ac_compiler $ac_option >&5"
4508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 if test -s conftest.err; then
4517 ... rest of stderr output deleted ...
4518 10q' conftest.err >conftest.er1
4519 cat conftest.er1 >&5
4520 rm -f conftest.er1 conftest.err
4522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4527 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4528 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4545 if ac_fn_cxx_try_compile "$LINENO"; then :
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4555 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4556 if test $ac_compiler_gnu = yes; then
4561 ac_test_CXXFLAGS=${CXXFLAGS+set}
4562 ac_save_CXXFLAGS=$CXXFLAGS
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4564 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4565 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4569 ac_cxx_werror_flag=yes
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4584 ac_cv_prog_cxx_g=yes
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4598 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4615 ac_cv_prog_cxx_g=yes
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4625 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4626 if test "$ac_test_CXXFLAGS" = set; then
4627 CXXFLAGS=$ac_save_CXXFLAGS
4628 elif test $ac_cv_prog_cxx_g = yes; then
4629 if test "$GXX" = yes; then
4635 if test "$GXX" = yes; then
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4652 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$GNATBIND"; then
4659 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 GNATBIND=$ac_cv_prog_GNATBIND
4679 if test -n "$GNATBIND"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4681 $as_echo "$GNATBIND" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4689 if test -z "$ac_cv_prog_GNATBIND"; then
4690 ac_ct_GNATBIND=$GNATBIND
4691 # Extract the first word of "gnatbind", so it can be a program name with args.
4692 set dummy gnatbind; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$ac_ct_GNATBIND"; then
4699 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4719 if test -n "$ac_ct_GNATBIND"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4721 $as_echo "$ac_ct_GNATBIND" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4727 if test "x$ac_ct_GNATBIND" = x; then
4730 case $cross_compiling:$ac_tool_warned in
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4736 GNATBIND=$ac_ct_GNATBIND
4739 GNATBIND="$ac_cv_prog_GNATBIND"
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$GNATMAKE"; then
4751 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 GNATMAKE=$ac_cv_prog_GNATMAKE
4771 if test -n "$GNATMAKE"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4773 $as_echo "$GNATMAKE" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4781 if test -z "$ac_cv_prog_GNATMAKE"; then
4782 ac_ct_GNATMAKE=$GNATMAKE
4783 # Extract the first word of "gnatmake", so it can be a program name with args.
4784 set dummy gnatmake; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$ac_ct_GNATMAKE"; then
4791 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4811 if test -n "$ac_ct_GNATMAKE"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4813 $as_echo "$ac_ct_GNATMAKE" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4819 if test "x$ac_ct_GNATMAKE" = x; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4828 GNATMAKE=$ac_ct_GNATMAKE
4831 GNATMAKE="$ac_cv_prog_GNATMAKE"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4835 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4836 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 cat >conftest.adb <<EOF
4840 procedure conftest is begin null; end conftest;
4842 acx_cv_cc_gcc_supports_ada=no
4843 # There is a bug in old released versions of GCC which causes the
4844 # driver to exit successfully when the appropriate language module
4845 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4846 # Therefore we must check for the error message as well as an
4847 # unsuccessful exit.
4848 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4849 # given a .adb file, but produce no object file. So we must check
4850 # if an object file was really produced to guard against this.
4851 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4852 if test x"$errors" = x && test -f conftest.$ac_objext; then
4853 acx_cv_cc_gcc_supports_ada=yes
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4858 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4860 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4867 # autoconf is lame and doesn't give us any substitution variable for this.
4868 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4869 NO_MINUS_C_MINUS_O=yes
4871 OUTPUT_OPTION='-o $@'
4876 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4877 # optimizations to be activated explicitly by the toplevel.
4879 */prev-gcc/xgcc*) ;;
4880 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4884 # -------------------------
4885 # Check C compiler features
4886 # -------------------------
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4895 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4904 # Double quotes because CPP needs to be expanded
4905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 for ac_c_preproc_warn_flag in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4919 # include <limits.h>
4921 # include <assert.h>
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4928 # Broken: fails on valid input.
4931 rm -f conftest.err conftest.$ac_ext
4933 # OK, works on sane cases. Now check whether nonexistent headers
4934 # can be detected and how.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 #include <ac_nonexistent.h>
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940 # Broken: success on invalid input.
4943 # Passes both tests.
4947 rm -f conftest.err conftest.$ac_ext
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.err conftest.
$ac_ext
4952 if $ac_preproc_ok; then :
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4965 $as_echo "$CPP" >&6; }
4967 for ac_c_preproc_warn_flag
in '' yes
4969 # Use a header file that comes with gcc, so configuring glibc
4970 # with a fresh cross-compiler works.
4971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4972 # <limits.h> exists even on freestanding compilers.
4973 # On the NeXT, cc -E runs the code through the compiler's parser,
4974 # not just through cpp. "Syntax error" is here to catch this case.
4975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4978 # include <limits.h>
4980 # include <assert.h>
4984 if ac_fn_c_try_cpp
"$LINENO"; then :
4987 # Broken: fails on valid input.
4990 rm -f conftest.err conftest.
$ac_ext
4992 # OK, works on sane cases. Now check whether nonexistent headers
4993 # can be detected and how.
4994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <ac_nonexistent.h>
4998 if ac_fn_c_try_cpp
"$LINENO"; then :
4999 # Broken: success on invalid input.
5002 # Passes both tests.
5006 rm -f conftest.err conftest.
$ac_ext
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.
$ac_ext
5011 if $ac_preproc_ok; then :
5014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5016 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5017 See \`config.log' for more details." "$LINENO" 5; }
5021 ac_cpp
='$CPP $CPPFLAGS'
5022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5028 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5029 if test "${ac_cv_path_GREP+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5032 if test -z "$GREP"; then
5033 ac_path_GREP_found
=false
5034 # Loop through the user's path and test for each of PROGNAME-LIST
5035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5036 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5039 test -z "$as_dir" && as_dir
=.
5040 for ac_prog
in grep ggrep
; do
5041 for ac_exec_ext
in '' $ac_executable_extensions; do
5042 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5044 # Check for GNU ac_path_GREP and select it if it is found.
5045 # Check for GNU $ac_path_GREP
5046 case `"$ac_path_GREP" --version 2>&1` in
5048 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5051 $as_echo_n 0123456789 >"conftest.in"
5054 cat "conftest.in" "conftest.in" >"conftest.tmp"
5055 mv "conftest.tmp" "conftest.in"
5056 cp "conftest.in" "conftest.nl"
5057 $as_echo 'GREP' >> "conftest.nl"
5058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5059 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5060 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5062 # Best one so far, save it but keep looking for a better one
5063 ac_cv_path_GREP
="$ac_path_GREP"
5064 ac_path_GREP_max
=$ac_count
5066 # 10*(2^10) chars as input seems more than enough
5067 test $ac_count -gt 10 && break
5069 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5072 $ac_path_GREP_found && break 3
5077 if test -z "$ac_cv_path_GREP"; then
5078 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5081 ac_cv_path_GREP
=$GREP
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5086 $as_echo "$ac_cv_path_GREP" >&6; }
5087 GREP
="$ac_cv_path_GREP"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5091 $as_echo_n "checking for egrep... " >&6; }
5092 if test "${ac_cv_path_EGREP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5095 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5096 then ac_cv_path_EGREP
="$GREP -E"
5098 if test -z "$EGREP"; then
5099 ac_path_EGREP_found
=false
5100 # Loop through the user's path and test for each of PROGNAME-LIST
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_prog
in egrep; do
5107 for ac_exec_ext
in '' $ac_executable_extensions; do
5108 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5110 # Check for GNU ac_path_EGREP and select it if it is found.
5111 # Check for GNU $ac_path_EGREP
5112 case `"$ac_path_EGREP" --version 2>&1` in
5114 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5117 $as_echo_n 0123456789 >"conftest.in"
5120 cat "conftest.in" "conftest.in" >"conftest.tmp"
5121 mv "conftest.tmp" "conftest.in"
5122 cp "conftest.in" "conftest.nl"
5123 $as_echo 'EGREP' >> "conftest.nl"
5124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5125 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5126 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5128 # Best one so far, save it but keep looking for a better one
5129 ac_cv_path_EGREP
="$ac_path_EGREP"
5130 ac_path_EGREP_max
=$ac_count
5132 # 10*(2^10) chars as input seems more than enough
5133 test $ac_count -gt 10 && break
5135 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5138 $ac_path_EGREP_found && break 3
5143 if test -z "$ac_cv_path_EGREP"; then
5144 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 ac_cv_path_EGREP
=$EGREP
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5153 $as_echo "$ac_cv_path_EGREP" >&6; }
5154 EGREP
="$ac_cv_path_EGREP"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5158 $as_echo_n "checking for ANSI C header files... " >&6; }
5159 if test "${ac_cv_header_stdc+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5177 if ac_fn_c_try_compile
"$LINENO"; then :
5178 ac_cv_header_stdc
=yes
5180 ac_cv_header_stdc
=no
5182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5184 if test $ac_cv_header_stdc = yes; then
5185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 $EGREP "memchr" >/dev
/null
2>&1; then :
5195 ac_cv_header_stdc
=no
5201 if test $ac_cv_header_stdc = yes; then
5202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "free" >/dev
/null
2>&1; then :
5212 ac_cv_header_stdc
=no
5218 if test $ac_cv_header_stdc = yes; then
5219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5220 if test "$cross_compiling" = yes; then :
5223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5227 #if ((' ' & 0x0FF) == 0x020)
5228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5231 # define ISLOWER(c) \
5232 (('a' <= (c) && (c) <= 'i') \
5233 || ('j' <= (c) && (c) <= 'r') \
5234 || ('s' <= (c) && (c) <= 'z'))
5235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5243 for (i = 0; i < 256; i++)
5244 if (XOR (islower (i), ISLOWER (i))
5245 || toupper (i) != TOUPPER (i))
5250 if ac_fn_c_try_run
"$LINENO"; then :
5253 ac_cv_header_stdc
=no
5255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5262 $as_echo "$ac_cv_header_stdc" >&6; }
5263 if test $ac_cv_header_stdc = yes; then
5265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5271 inttypes.h stdint.h unistd.h
5273 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5276 eval as_val
=\$
$as_ac_Header
5277 if test "x$as_val" = x
""yes; then :
5278 cat >>confdefs.h
<<_ACEOF
5279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5288 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5289 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5296 if test "$MINIX" = yes; then
5298 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5304 $as_echo "#define _MINIX 1" >>confdefs.h
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5310 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5311 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5317 # define __EXTENSIONS__ 1
5318 $ac_includes_default
5327 if ac_fn_c_try_compile
"$LINENO"; then :
5328 ac_cv_safe_to_define___extensions__
=yes
5330 ac_cv_safe_to_define___extensions__
=no
5332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5335 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5336 test $ac_cv_safe_to_define___extensions__ = yes &&
5337 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5339 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5343 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5345 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5349 ac_cpp
='$CPP $CPPFLAGS'
5350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5355 # On Suns, sometimes $CPP names a directory.
5356 if test -n "$CPP" && test -d "$CPP"; then
5359 if test -z "$CPP"; then
5360 if test "${ac_cv_prog_CPP+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5363 # Double quotes because CPP needs to be expanded
5364 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5367 for ac_c_preproc_warn_flag
in '' yes
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5378 # include <limits.h>
5380 # include <assert.h>
5384 if ac_fn_c_try_cpp
"$LINENO"; then :
5387 # Broken: fails on valid input.
5390 rm -f conftest.err conftest.
$ac_ext
5392 # OK, works on sane cases. Now check whether nonexistent headers
5393 # can be detected and how.
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <ac_nonexistent.h>
5398 if ac_fn_c_try_cpp
"$LINENO"; then :
5399 # Broken: success on invalid input.
5402 # Passes both tests.
5406 rm -f conftest.err conftest.
$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.
$ac_ext
5411 if $ac_preproc_ok; then :
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424 $as_echo "$CPP" >&6; }
5426 for ac_c_preproc_warn_flag
in '' yes
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5437 # include <limits.h>
5439 # include <assert.h>
5443 if ac_fn_c_try_cpp
"$LINENO"; then :
5446 # Broken: fails on valid input.
5449 rm -f conftest.err conftest.
$ac_ext
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #include <ac_nonexistent.h>
5457 if ac_fn_c_try_cpp
"$LINENO"; then :
5458 # Broken: success on invalid input.
5461 # Passes both tests.
5465 rm -f conftest.err conftest.
$ac_ext
5468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469 rm -f conftest.err conftest.
$ac_ext
5470 if $ac_preproc_ok; then :
5473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5475 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5476 See \`config.log' for more details." "$LINENO" 5; }
5480 ac_cpp
='$CPP $CPPFLAGS'
5481 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5486 $as_echo_n "checking for inline... " >&6; }
5487 if test "${ac_cv_c_inline+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5491 for ac_kw
in inline __inline__ __inline
; do
5492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5496 static $ac_kw foo_t static_foo () {return 0; }
5497 $ac_kw foo_t foo () {return 0; }
5501 if ac_fn_c_try_compile
"$LINENO"; then :
5502 ac_cv_c_inline
=$ac_kw
5504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5505 test "$ac_cv_c_inline" != no
&& break
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5510 $as_echo "$ac_cv_c_inline" >&6; }
5512 case $ac_cv_c_inline in
5515 case $ac_cv_c_inline in
5517 *) ac_val
=$ac_cv_c_inline;;
5519 cat >>confdefs.h
<<_ACEOF
5521 #define inline $ac_val
5528 # Check whether --enable-largefile was given.
5529 if test "${enable_largefile+set}" = set; then :
5530 enableval
=$enable_largefile;
5533 if test "$enable_largefile" != no
; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5536 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5537 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 ac_cv_sys_largefile_CC
=no
5541 if test "$GCC" != yes; then
5544 # IRIX 6.2 and later do not support large files by default,
5545 # so use the C compiler's -n32 option if that helps.
5546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5565 if ac_fn_c_try_compile
"$LINENO"; then :
5568 rm -f core conftest.err conftest.
$ac_objext
5570 if ac_fn_c_try_compile
"$LINENO"; then :
5571 ac_cv_sys_largefile_CC
=' -n32'; break
5573 rm -f core conftest.err conftest.
$ac_objext
5577 rm -f conftest.
$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5581 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5582 if test "$ac_cv_sys_largefile_CC" != no
; then
5583 CC
=$CC$ac_cv_sys_largefile_CC
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5587 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5588 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 /* Check that off_t can represent 2**63 - 1 correctly.
5596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5597 since some C++ compilers masquerading as C compilers
5598 incorrectly reject 9223372036854775807. */
5599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5601 && LARGE_OFF_T % 2147483647 == 1)
5611 if ac_fn_c_try_compile
"$LINENO"; then :
5612 ac_cv_sys_file_offset_bits
=no
; break
5614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #define _FILE_OFFSET_BITS 64
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5635 if ac_fn_c_try_compile
"$LINENO"; then :
5636 ac_cv_sys_file_offset_bits
=64; break
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5639 ac_cv_sys_file_offset_bits
=unknown
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5644 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5645 case $ac_cv_sys_file_offset_bits in #(
5648 cat >>confdefs.h
<<_ACEOF
5649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5654 if test $ac_cv_sys_file_offset_bits = unknown
; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5656 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5657 if test "${ac_cv_sys_large_files+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <sys/types.h>
5664 /* Check that off_t can represent 2**63 - 1 correctly.
5665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666 since some C++ compilers masquerading as C compilers
5667 incorrectly reject 9223372036854775807. */
5668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670 && LARGE_OFF_T % 2147483647 == 1)
5680 if ac_fn_c_try_compile
"$LINENO"; then :
5681 ac_cv_sys_large_files
=no
; break
5683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5704 if ac_fn_c_try_compile
"$LINENO"; then :
5705 ac_cv_sys_large_files
=1; break
5707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5708 ac_cv_sys_large_files
=unknown
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5713 $as_echo "$ac_cv_sys_large_files" >&6; }
5714 case $ac_cv_sys_large_files in #(
5717 cat >>confdefs.h
<<_ACEOF
5718 #define _LARGE_FILES $ac_cv_sys_large_files
5727 # sizeof(char) is 1 by definition.
5728 # The cast to long int works around a bug in the HP C Compiler
5729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5731 # This bug is HP SR number 8606223364.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5733 $as_echo_n "checking size of void *... " >&6; }
5734 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5740 if test "$ac_cv_type_void_p" = yes; then
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 { as_fn_set_status
77
5744 as_fn_error
"cannot compute sizeof (void *)
5745 See \`config.log' for more details." "$LINENO" 5; }; }
5747 ac_cv_sizeof_void_p
=0
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5753 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5757 cat >>confdefs.h
<<_ACEOF
5758 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5762 # The cast to long int works around a bug in the HP C Compiler
5763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5765 # This bug is HP SR number 8606223364.
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5767 $as_echo_n "checking size of short... " >&6; }
5768 if test "${ac_cv_sizeof_short+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5771 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5774 if test "$ac_cv_type_short" = yes; then
5775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5777 { as_fn_set_status
77
5778 as_fn_error
"cannot compute sizeof (short)
5779 See \`config.log' for more details." "$LINENO" 5; }; }
5781 ac_cv_sizeof_short
=0
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5787 $as_echo "$ac_cv_sizeof_short" >&6; }
5791 cat >>confdefs.h
<<_ACEOF
5792 #define SIZEOF_SHORT $ac_cv_sizeof_short
5796 # The cast to long int works around a bug in the HP C Compiler
5797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5799 # This bug is HP SR number 8606223364.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5801 $as_echo_n "checking size of int... " >&6; }
5802 if test "${ac_cv_sizeof_int+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5805 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5808 if test "$ac_cv_type_int" = yes; then
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 { as_fn_set_status
77
5812 as_fn_error
"cannot compute sizeof (int)
5813 See \`config.log' for more details." "$LINENO" 5; }; }
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5821 $as_echo "$ac_cv_sizeof_int" >&6; }
5825 cat >>confdefs.h
<<_ACEOF
5826 #define SIZEOF_INT $ac_cv_sizeof_int
5830 # The cast to long int works around a bug in the HP C Compiler
5831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833 # This bug is HP SR number 8606223364.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5835 $as_echo_n "checking size of long... " >&6; }
5836 if test "${ac_cv_sizeof_long+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5839 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5842 if test "$ac_cv_type_long" = yes; then
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 { as_fn_set_status
77
5846 as_fn_error
"cannot compute sizeof (long)
5847 See \`config.log' for more details." "$LINENO" 5; }; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5855 $as_echo "$ac_cv_sizeof_long" >&6; }
5859 cat >>confdefs.h
<<_ACEOF
5860 #define SIZEOF_LONG $ac_cv_sizeof_long
5864 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5865 if test "x$ac_cv_type_long_long" = x
""yes; then :
5867 cat >>confdefs.h
<<_ACEOF
5868 #define HAVE_LONG_LONG 1
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5876 $as_echo_n "checking size of long long... " >&6; }
5877 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5880 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5883 if test "$ac_cv_type_long_long" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status
77
5887 as_fn_error
"cannot compute sizeof (long long)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5890 ac_cv_sizeof_long_long
=0
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5896 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5900 cat >>confdefs.h
<<_ACEOF
5901 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5907 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5908 if test "x$ac_cv_type___int64" = x
""yes; then :
5910 cat >>confdefs.h
<<_ACEOF
5911 #define HAVE___INT64 1
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 __int64" >&5
5919 $as_echo_n "checking size of __int64... " >&6; }
5920 if test "${ac_cv_sizeof___int64+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5923 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5926 if test "$ac_cv_type___int64" = 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 (__int64)
5931 See \`config.log' for more details." "$LINENO" 5; }; }
5933 ac_cv_sizeof___int64
=0
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5939 $as_echo "$ac_cv_sizeof___int64" >&6; }
5943 cat >>confdefs.h
<<_ACEOF
5944 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5950 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5951 case $ac_cv_c_int8_t in #(
5955 cat >>confdefs.h
<<_ACEOF
5956 #define int8_t $ac_cv_c_int8_t
5961 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5962 case $ac_cv_c_int16_t in #(
5966 cat >>confdefs.h
<<_ACEOF
5967 #define int16_t $ac_cv_c_int16_t
5972 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5973 case $ac_cv_c_int32_t in #(
5977 cat >>confdefs.h
<<_ACEOF
5978 #define int32_t $ac_cv_c_int32_t
5983 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5984 case $ac_cv_c_int64_t in #(
5988 cat >>confdefs.h
<<_ACEOF
5989 #define int64_t $ac_cv_c_int64_t
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5996 $as_echo_n "checking for long long int... " >&6; }
5997 if test "${ac_cv_type_long_long_int+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6003 /* For now, do not test the preprocessor; as of 2007 there are too many
6004 implementations with broken preprocessors. Perhaps this can
6005 be revisited in 2012. In the meantime, code should not expect
6006 #if to work with literals wider than 32 bits. */
6007 /* Test literals. */
6008 long long int ll = 9223372036854775807ll;
6009 long long int nll = -9223372036854775807LL;
6010 unsigned long long int ull = 18446744073709551615ULL;
6011 /* Test constant expressions. */
6012 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6014 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6020 /* Test availability of runtime routines for shift and division. */
6021 long long int llmax = 9223372036854775807ll;
6022 unsigned long long int ullmax = 18446744073709551615ull;
6023 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6024 | (llmax / ll) | (llmax % ll)
6025 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6026 | (ullmax / ull) | (ullmax % ull));
6032 if ac_fn_c_try_link
"$LINENO"; then :
6033 if test "$cross_compiling" = yes; then :
6034 ac_cv_type_long_long_int
=yes
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6042 # define LLONG_MAX (HALF - 1 + HALF)
6047 long long int n = 1;
6051 long long int m = n << i;
6054 if (LLONG_MAX / 2 < m)
6062 if ac_fn_c_try_run
"$LINENO"; then :
6063 ac_cv_type_long_long_int
=yes
6065 ac_cv_type_long_long_int
=no
6067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6072 ac_cv_type_long_long_int
=no
6074 rm -f core conftest.err conftest.
$ac_objext \
6075 conftest
$ac_exeext conftest.
$ac_ext
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6078 $as_echo "$ac_cv_type_long_long_int" >&6; }
6079 if test $ac_cv_type_long_long_int = yes; then
6081 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6087 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6088 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6090 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6093 test $ac_cv_type_long_long_int = yes \
6094 && ac_type
='long long int' \
6095 || ac_type
='long int'
6097 cat >>confdefs.h
<<_ACEOF
6098 #define intmax_t $ac_type
6105 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6106 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6108 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6111 for ac_type
in 'int' 'long int' 'long long int'; do
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 $ac_includes_default
6118 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6125 if ac_fn_c_try_compile
"$LINENO"; then :
6127 cat >>confdefs.h
<<_ACEOF
6128 #define intptr_t $ac_type
6133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6134 test -z "$ac_type" && break
6139 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6140 case $ac_cv_c_uint8_t in #(
6144 $as_echo "#define _UINT8_T 1" >>confdefs.h
6147 cat >>confdefs.h
<<_ACEOF
6148 #define uint8_t $ac_cv_c_uint8_t
6153 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6154 case $ac_cv_c_uint16_t in #(
6159 cat >>confdefs.h
<<_ACEOF
6160 #define uint16_t $ac_cv_c_uint16_t
6165 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6166 case $ac_cv_c_uint32_t in #(
6170 $as_echo "#define _UINT32_T 1" >>confdefs.h
6173 cat >>confdefs.h
<<_ACEOF
6174 #define uint32_t $ac_cv_c_uint32_t
6179 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6180 case $ac_cv_c_uint64_t in #(
6184 $as_echo "#define _UINT64_T 1" >>confdefs.h
6187 cat >>confdefs.h
<<_ACEOF
6188 #define uint64_t $ac_cv_c_uint64_t
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6195 $as_echo_n "checking for unsigned long long int... " >&6; }
6196 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6202 /* For now, do not test the preprocessor; as of 2007 there are too many
6203 implementations with broken preprocessors. Perhaps this can
6204 be revisited in 2012. In the meantime, code should not expect
6205 #if to work with literals wider than 32 bits. */
6206 /* Test literals. */
6207 long long int ll = 9223372036854775807ll;
6208 long long int nll = -9223372036854775807LL;
6209 unsigned long long int ull = 18446744073709551615ULL;
6210 /* Test constant expressions. */
6211 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6213 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6219 /* Test availability of runtime routines for shift and division. */
6220 long long int llmax = 9223372036854775807ll;
6221 unsigned long long int ullmax = 18446744073709551615ull;
6222 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6223 | (llmax / ll) | (llmax % ll)
6224 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6225 | (ullmax / ull) | (ullmax % ull));
6231 if ac_fn_c_try_link
"$LINENO"; then :
6232 ac_cv_type_unsigned_long_long_int
=yes
6234 ac_cv_type_unsigned_long_long_int
=no
6236 rm -f core conftest.err conftest.
$ac_objext \
6237 conftest
$ac_exeext conftest.
$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6240 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6241 if test $ac_cv_type_unsigned_long_long_int = yes; then
6243 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6249 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6250 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6252 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6255 test $ac_cv_type_unsigned_long_long_int = yes \
6256 && ac_type
='unsigned long long int' \
6257 || ac_type
='unsigned long int'
6259 cat >>confdefs.h
<<_ACEOF
6260 #define uintmax_t $ac_type
6267 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6268 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6270 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6273 for ac_type
in 'unsigned int' 'unsigned long int' \
6274 'unsigned long long int'; do
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 $ac_includes_default
6281 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6288 if ac_fn_c_try_compile
"$LINENO"; then :
6290 cat >>confdefs.h
<<_ACEOF
6291 #define uintptr_t $ac_type
6296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 test -z "$ac_type" && break
6315 # ---------------------
6316 # Warnings and checking
6317 # ---------------------
6319 # Check $CC warning features (if it's GCC).
6320 # We want to use -pedantic, but we don't want warnings about
6323 # * overlong strings
6324 # So, we only use -pedantic if we can disable those warnings.
6327 save_CFLAGS
="$CFLAGS"
6328 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6329 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6332 $as_echo_n "checking whether $CC supports $option... " >&6; }
6333 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6334 $as_echo_n "(cached) " >&6
6337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6348 if ac_fn_c_try_compile
"$LINENO"; then :
6349 eval "$as_acx_Woption=yes"
6351 eval "$as_acx_Woption=no"
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6356 eval ac_res
=\$
$as_acx_Woption
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6358 $as_echo "$ac_res" >&6; }
6359 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6360 loose_warn
="$loose_warn${loose_warn:+ }$option"
6363 CFLAGS
="$save_CFLAGS"
6366 save_CFLAGS
="$CFLAGS"
6367 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6368 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6371 $as_echo_n "checking whether $CC supports $option... " >&6; }
6372 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6373 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6387 if ac_fn_c_try_compile
"$LINENO"; then :
6388 eval "$as_acx_Woption=yes"
6390 eval "$as_acx_Woption=no"
6392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 eval ac_res
=\$
$as_acx_Woption
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6399 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6402 CFLAGS
="$save_CFLAGS"
6405 save_CFLAGS
="$CFLAGS"
6406 for option
in -Wmissing-format-attribute; do
6407 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6410 $as_echo_n "checking whether $CC supports $option... " >&6; }
6411 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6412 $as_echo_n "(cached) " >&6
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6426 if ac_fn_c_try_compile
"$LINENO"; then :
6427 eval "$as_acx_Woption=yes"
6429 eval "$as_acx_Woption=no"
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6434 eval ac_res
=\$
$as_acx_Woption
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438 strict_warn
="$strict_warn${strict_warn:+ }$option"
6441 CFLAGS
="$save_CFLAGS"
6444 save_CFLAGS
="$CFLAGS"
6445 for option
in -Wold-style-definition -Wc++-compat; do
6446 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6449 $as_echo_n "checking whether $CC supports $option... " >&6; }
6450 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6451 $as_echo_n "(cached) " >&6
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6465 if ac_fn_c_try_compile
"$LINENO"; then :
6466 eval "$as_acx_Woption=yes"
6468 eval "$as_acx_Woption=no"
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 eval ac_res
=\$
$as_acx_Woption
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6475 $as_echo "$ac_res" >&6; }
6476 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6477 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6480 CFLAGS
="$save_CFLAGS"
6482 if test "$GCC" = yes; then :
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6484 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6485 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 save_CFLAGS
="$CFLAGS"
6489 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6504 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6507 CFLAGS
="$save_CFLAGS"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6510 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6511 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6512 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6517 # Check whether --enable-werror-always was given.
6518 if test "${enable_werror_always+set}" = set; then :
6519 enableval
=$enable_werror_always;
6521 enable_werror_always
=no
6524 if test $enable_werror_always = yes; then :
6525 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6530 # The above macros do nothing if the compiler is not GCC. However, the
6531 # Makefile has more goo to add other flags, so these variables are used
6532 # to enable warnings only for GCC.
6535 if test "x$GCC" = "xyes"; then
6536 warn_cflags
='$(GCC_WARN_CFLAGS)'
6537 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6542 # Enable expensive internal checks
6544 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6548 # Check whether --enable-checking was given.
6549 if test "${enable_checking+set}" = set; then :
6550 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6553 # Determine the default checks.
6554 if test x
$is_release = x
; then
6555 ac_checking_flags
=yes
6557 ac_checking_flags
=release
6561 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6562 for check
in release
$ac_checking_flags
6565 # these set all the flags to specific states
6566 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6567 ac_fold_checking
= ; ac_gc_checking
=1 ;
6568 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6569 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6570 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6571 ac_types_checking
=1 ;;
6572 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6573 ac_fold_checking
= ; ac_gc_checking
= ;
6574 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6575 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6576 ac_tree_checking
= ; ac_valgrind_checking
= ;
6577 ac_types_checking
= ;;
6578 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6579 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6580 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6581 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6582 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6583 ac_types_checking
=1 ;;
6584 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6585 ac_fold_checking
= ; ac_gc_checking
= ;
6586 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6587 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6588 ac_tree_checking
= ; ac_valgrind_checking
= ;
6589 ac_types_checking
= ;;
6590 # these enable particular checks
6591 assert
) ac_assert_checking
=1 ;;
6592 df
) ac_df_checking
=1 ;;
6593 fold) ac_fold_checking
=1 ;;
6594 gc
) ac_gc_checking
=1 ;;
6595 gcac
) ac_gc_always_collect
=1 ;;
6596 gimple
) ac_gimple_checking
=1 ;;
6597 misc
) ac_checking
=1 ;;
6598 rtl
) ac_rtl_checking
=1 ;;
6599 rtlflag
) ac_rtlflag_checking
=1 ;;
6600 runtime
) ac_runtime_checking
=1 ;;
6601 tree
) ac_tree_checking
=1 ;;
6602 types
) ac_types_checking
=1 ;;
6603 valgrind
) ac_valgrind_checking
=1 ;;
6604 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6610 if test x
$ac_checking != x
; then
6612 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6614 nocommon_flag
=-fno-common
6617 if test x
$ac_df_checking != x
; then
6619 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6622 if test x
$ac_assert_checking != x
; then
6624 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6627 if test x
$ac_gimple_checking != x
; then
6629 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6633 if test x
$ac_runtime_checking != x
; then
6635 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6638 if test x
$ac_tree_checking != x
; then
6640 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6642 TREEBROWSER
=tree-browser.o
6644 if test x
$ac_types_checking != x
; then
6646 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6650 if test x
$ac_rtl_checking != x
; then
6652 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6655 if test x
$ac_rtlflag_checking != x
; then
6657 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6660 if test x
$ac_gc_checking != x
; then
6662 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6665 if test x
$ac_gc_always_collect != x
; then
6667 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6670 if test x
$ac_fold_checking != x
; then
6672 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6675 valgrind_path_defines
=
6678 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6679 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6687 if test x
$ac_valgrind_checking != x
; then
6688 # It is certainly possible that there's valgrind but no valgrind.h.
6689 # GCC relies on making annotations so we must have both.
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6691 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <valgrind/memcheck.h>
6695 #ifndef VALGRIND_DISCARD
6696 #error VALGRIND_DISCARD not defined
6699 if ac_fn_c_try_cpp
"$LINENO"; then :
6700 gcc_cv_header_valgrind_memcheck_h
=yes
6702 gcc_cv_header_valgrind_memcheck_h
=no
6704 rm -f conftest.err conftest.
$ac_ext
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6706 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6708 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #include <memcheck.h>
6712 #ifndef VALGRIND_DISCARD
6713 #error VALGRIND_DISCARD not defined
6716 if ac_fn_c_try_cpp
"$LINENO"; then :
6717 gcc_cv_header_memcheck_h
=yes
6719 gcc_cv_header_memcheck_h
=no
6721 rm -f conftest.err conftest.
$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6723 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6725 # Prepare PATH_SEPARATOR.
6726 # The user is always right.
6727 if test "${PATH_SEPARATOR+set}" != set; then
6728 echo "#! /bin/sh" >conf$$.sh
6729 echo "exit 0" >>conf$$.sh
6731 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6739 # Find out how to test for executable files. Don't use a zero-byte file,
6740 # as systems may use methods other than mode bits to determine executability.
6741 cat >conf$$.
file <<_ASEOF
6745 chmod +x conf$$.
file
6746 if test -x conf$$.
file >/dev
/null
2>&1; then
6747 ac_executable_p
="test -x"
6749 ac_executable_p
="test -f"
6753 # Extract the first word of "valgrind", so it can be a program name with args.
6754 set dummy valgrind
; ac_word
=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6760 case "$valgrind_path" in
6762 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6765 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6766 for ac_dir
in $PATH; do
6768 test -z "$ac_dir" && ac_dir
=.
6769 for ac_exec_ext
in '' $ac_executable_extensions; do
6770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6771 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6772 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6782 valgrind_path
="$ac_cv_path_valgrind_path"
6783 if test -n "$valgrind_path"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6785 $as_echo "$valgrind_path" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$valgrind_path" = "x" \
6792 ||
(test $have_valgrind_h = no \
6793 && test $gcc_cv_header_memcheck_h = no \
6794 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6795 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6797 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6798 valgrind_command
="$valgrind_path -q"
6800 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6802 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6804 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6807 if test $gcc_cv_header_memcheck_h = yes; then
6809 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6816 # Enable code coverage collection
6817 # Check whether --enable-coverage was given.
6818 if test "${enable_coverage+set}" = set; then :
6819 enableval
=$enable_coverage; case "${enableval}" in
6821 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6824 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6827 # a.k.a. --disable-coverage
6831 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6840 # Check whether --enable-gather-detailed-mem-stats was given.
6841 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6842 enableval
=$enable_gather_detailed_mem_stats;
6844 enable_gather_detailed_mem_stats
=no
6847 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6849 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6853 # -------------------------------
6854 # Miscenalleous configure options
6855 # -------------------------------
6857 # See if we are building gcc with C++.
6858 # Check whether --enable-build-with-cxx was given.
6859 if test "${enable_build_with_cxx+set}" = set; then :
6860 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6862 ENABLE_BUILD_WITH_CXX
=no
6866 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6868 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6874 # Check whether --with-stabs was given.
6875 if test "${with_stabs+set}" = set; then :
6876 withval
=$with_stabs; stabs
="$with_stabs"
6882 # Determine whether or not multilibs are enabled.
6883 # Check whether --enable-multilib was given.
6884 if test "${enable_multilib+set}" = set; then :
6885 enableval
=$enable_multilib;
6892 # Enable __cxa_atexit for C++.
6893 # Check whether --enable-__cxa_atexit was given.
6894 if test "${enable___cxa_atexit+set}" = set; then :
6895 enableval
=$enable___cxa_atexit;
6899 # Enable C extension for decimal float if target supports it.
6901 # Check whether --enable-decimal-float was given.
6902 if test "${enable_decimal_float+set}" = set; then :
6903 enableval
=$enable_decimal_float;
6904 case $enable_decimal_float in
6905 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6906 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6907 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6913 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6914 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6916 enable_decimal_float
=yes
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6920 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6921 enable_decimal_float
=no
6928 # x86's use BID format instead of DPD
6929 case x
$enable_decimal_float in
6932 i?
86*-*-* | x86_64
*-*-*)
6933 enable_decimal_float
=bid
6936 enable_decimal_float
=dpd
6939 default_decimal_float
=$enable_decimal_float
6942 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6943 # dependency on libdecnumber.
6944 default_decimal_float
=dpd
6951 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6953 cat >>confdefs.h
<<_ACEOF
6954 #define ENABLE_DECIMAL_FLOAT $dfp
6958 # Use default_decimal_float for dependency.
6959 enable_decimal_float
=$default_decimal_float
6961 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6963 cat >>confdefs.h
<<_ACEOF
6964 #define ENABLE_DECIMAL_BID_FORMAT $bid
6968 # Enable C extension for fixed-point arithmetic.
6969 # Check whether --enable-fixed-point was given.
6970 if test "${enable_fixed_point+set}" = set; then :
6971 enableval
=$enable_fixed_point;
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6980 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6981 enable_fixed_point
=no
6984 enable_fixed_point
=yes
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6990 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6991 enable_fixed_point
=no
6999 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7001 cat >>confdefs.h
<<_ACEOF
7002 #define ENABLE_FIXED_POINT $fixedpoint
7007 # Pass with no value to take the default
7008 # Pass with a value to specify a thread package
7009 # Check whether --enable-threads was given.
7010 if test "${enable_threads+set}" = set; then :
7011 enableval
=$enable_threads;
7017 # Check whether --enable-tls was given.
7018 if test "${enable_tls+set}" = set; then :
7019 enableval
=$enable_tls;
7022 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7023 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7031 # Check whether --enable-objc-gc was given.
7032 if test "${enable_objc_gc+set}" = set; then :
7033 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7044 # Check whether --with-dwarf2 was given.
7045 if test "${with_dwarf2+set}" = set; then :
7046 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7052 # Check whether --enable-shared was given.
7053 if test "${enable_shared+set}" = set; then :
7054 enableval
=$enable_shared;
7055 case $enable_shared in
7059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7060 for pkg
in $enableval; do
7061 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7075 # The use of native_system_header_dir here is for the value (optionally)
7076 # configured here. Uses of NATIVE_SYSTEM_HEADER_DIR in this file refer
7077 # to the make variable defined in Makefile or in target make fragments.
7079 # Check whether --with-native-system-header-dir was given.
7080 if test "${with_native_system_header_dir+set}" = set; then :
7081 withval
=$with_native_system_header_dir;
7082 case ${with_native_system_header_dir} in
7083 yes|no
) as_fn_error
"bad value ${withval} given for native system include directory" "$LINENO" 5 ;;
7085 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7087 native_system_header_dir
="${withval}"
7090 native_system_header_dir
=/usr
/include
7093 NATIVE_SYSTEM_HEADER_DIR
=$native_system_header_dir
7097 # Check whether --with-runtime-root-prefix was given.
7098 if test "${with_runtime_root_prefix+set}" = set; then :
7099 withval
=$with_runtime_root_prefix;
7100 case ${with_runtime_root_prefix} in
7101 yes|no
) as_fn_error
"bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7103 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7105 RUNTIME_ROOT_PREFIX_DEFINE
="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7108 RUNTIME_ROOT_PREFIX_DEFINE
=""
7114 # Check whether --with-build-sysroot was given.
7115 if test "${with_build_sysroot+set}" = set; then :
7116 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7117 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7120 SYSROOT_CFLAGS_FOR_TARGET
=
7126 # Check whether --with-sysroot was given.
7127 if test "${with_sysroot+set}" = set; then :
7128 withval
=$with_sysroot;
7129 case ${with_sysroot} in
7130 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7131 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7134 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7135 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7137 if test "x$prefix" = xNONE
; then
7138 test_prefix
=/usr
/local
7142 if test "x$exec_prefix" = xNONE
; then
7143 test_exec_prefix
=$test_prefix
7145 test_exec_prefix
=$exec_prefix
7147 case ${TARGET_SYSTEM_ROOT} in
7148 "${test_prefix}"|
"${test_prefix}/"*|\
7149 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7150 '${prefix}'|
'${prefix}/'*|\
7151 '${exec_prefix}'|
'${exec_prefix}/'*)
7152 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7153 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7160 TARGET_SYSTEM_ROOT_DEFINE
=
7161 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7170 # Check whether --with-specs was given.
7171 if test "${with_specs+set}" = set; then :
7172 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7182 # Check whether --with-pkgversion was given.
7183 if test "${with_pkgversion+set}" = set; then :
7184 withval
=$with_pkgversion; case "$withval" in
7185 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7187 *) PKGVERSION
="($withval) " ;;
7198 # Check whether --with-bugurl was given.
7199 if test "${with_bugurl+set}" = set; then :
7200 withval
=$with_bugurl; case "$withval" in
7201 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7204 *) BUGURL
="$withval"
7208 BUGURL
="http://gcc.gnu.org/bugs.html"
7218 REPORT_BUGS_TO
="<$BUGURL>"
7219 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7226 # Sanity check enable_languages in case someone does not run the toplevel
7227 # configure # script.
7228 # Check whether --enable-languages was given.
7229 if test "${enable_languages+set}" = set; then :
7230 enableval
=$enable_languages; case ,${enable_languages}, in
7232 # go safe -- we cannot be much sure without the toplevel
7234 # analysis of which target libs are present and usable
7238 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7243 enable_languages
=c
,${enable_languages}
7252 # Check whether --with-multilib-list was given.
7253 if test "${with_multilib_list+set}" = set; then :
7254 withval
=$with_multilib_list; :
7256 with_multilib_list
=default
7260 # -------------------------
7261 # Checks for other programs
7262 # -------------------------
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7267 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7268 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7269 $as_echo_n "(cached) " >&6
7271 cat >conftest.
make <<\_ACEOF
7274 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7279 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7281 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7285 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287 $as_echo "yes" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 SET_MAKE
="MAKE=${MAKE-make}"
7296 # Find some useful tools
7297 for ac_prog
in gawk mawk nawk
awk
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy
$ac_prog; ac_word
=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_AWK+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7306 if test -n "$AWK"; then
7307 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir
=.
7314 for ac_exec_ext
in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_AWK
="$ac_prog"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 if test -n "$AWK"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7329 $as_echo "$AWK" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7336 test -n "$AWK" && break
7339 # We need awk to create options.c and options.h.
7340 # Bail out if it's missing.
7342 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7346 $as_echo_n "checking whether ln -s works... " >&6; }
7347 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7350 rm -f conftestdata_t
7351 echo >conftestdata_f
7352 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7354 gcc_cv_prog_LN_S
="ln -s"
7356 if ln conftestdata_f conftestdata_t
2>/dev
/null
7360 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7362 gcc_cv_prog_LN_S
="cp -p"
7368 rm -f conftestdata_f conftestdata_t
7371 LN_S
="$gcc_cv_prog_LN_S"
7372 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7374 $as_echo "yes" >&6; }
7376 if test "$gcc_cv_prog_LN_S" = "ln"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7378 $as_echo "no, using ln" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7381 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7386 $as_echo_n "checking whether ln works... " >&6; }
7387 if test "${acx_cv_prog_LN+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7390 rm -f conftestdata_t
7391 echo >conftestdata_f
7392 if ln conftestdata_f conftestdata_t
2>/dev
/null
7398 rm -f conftestdata_f conftestdata_t
7401 if test $acx_cv_prog_LN = no
; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7404 $as_echo "no, using $LN" >&6; }
7406 LN
="$acx_cv_prog_LN"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7408 $as_echo "yes" >&6; }
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7413 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 if test -n "$RANLIB"; then
7420 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir
=.
7427 for ac_exec_ext
in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 RANLIB
=$ac_cv_prog_RANLIB
7440 if test -n "$RANLIB"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7442 $as_echo "$RANLIB" >&6; }
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7450 if test -z "$ac_cv_prog_RANLIB"; then
7451 ac_ct_RANLIB
=$RANLIB
7452 # Extract the first word of "ranlib", so it can be a program name with args.
7453 set dummy ranlib
; ac_word
=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7459 if test -n "$ac_ct_RANLIB"; then
7460 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir
=.
7467 for ac_exec_ext
in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7480 if test -n "$ac_ct_RANLIB"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7482 $as_echo "$ac_ct_RANLIB" >&6; }
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7488 if test "x$ac_ct_RANLIB" = x
; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned
=yes ;;
7497 RANLIB
=$ac_ct_RANLIB
7500 RANLIB
="$ac_cv_prog_RANLIB"
7505 # By default, the Darwin ranlib will not treat common symbols as
7506 # definitions when building the archive table of contents. Other
7507 # ranlibs do that; pass an option to the Darwin ranlib that makes
7508 # it behave similarly.
7516 # Find a good install program. We prefer a C program (faster),
7517 # so one script is as good as another. But avoid the broken or
7518 # incompatible versions:
7519 # SysV /etc/install, /usr/sbin/install
7520 # SunOS /usr/etc/install
7521 # IRIX /sbin/install
7523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7525 # ./install, which can be erroneously created by make from ./install.sh.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7527 $as_echo_n "checking for a BSD compatible install... " >&6; }
7528 if test -z "$INSTALL"; then
7529 if test "${ac_cv_path_install+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7532 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7533 for ac_dir
in $PATH; do
7534 # Account for people who put trailing slashes in PATH elements.
7536 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7538 # OSF1 and SCO ODT 3.0 have their own names for install.
7539 for ac_prog
in ginstall scoinst
install; do
7540 if test -f $ac_dir/$ac_prog; then
7541 if test $ac_prog = install &&
7542 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7543 # AIX install. It has an incompatible calling convention.
7544 # OSF/1 installbsd also uses dspmsg, but is usable.
7547 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7558 if test "${ac_cv_path_install+set}" = set; then
7559 INSTALL
="$ac_cv_path_install"
7561 # As a last resort, use the slow shell script. We don't cache a
7562 # path for INSTALL within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the path is relative.
7565 INSTALL
="$ac_install_sh"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7569 $as_echo "$INSTALL" >&6; }
7571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572 # It thinks the first close brace ends the variable substitution.
7573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7575 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7578 # See if cmp has --ignore-initial.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7580 $as_echo_n "checking for cmp's capabilities... " >&6; }
7581 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7586 gcc_cv_prog_cmp_skip
=slowcompare
7587 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7588 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7591 gcc_cv_prog_cmp_skip
=gnucompare
7594 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7595 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7596 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7599 gcc_cv_prog_cmp_skip
=fastcompare
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7607 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7608 make_compare_target
=$gcc_cv_prog_cmp_skip
7612 # See if we have the mktemp command.
7613 # Extract the first word of "mktemp", so it can be a program name with args.
7614 set dummy mktemp
; ac_word
=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$have_mktemp_command"; then
7621 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir
=.
7628 for ac_exec_ext
in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_have_mktemp_command
="yes"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7641 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7642 if test -n "$have_mktemp_command"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7644 $as_echo "$have_mktemp_command" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7652 # See if makeinfo has been installed and is modern enough
7653 # that we can use it.
7655 # Extract the first word of "makeinfo", so it can be a program name with args.
7656 set dummy makeinfo
; ac_word
=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7662 if test -n "$MAKEINFO"; then
7663 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir
=.
7670 for ac_exec_ext
in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_MAKEINFO
="makeinfo"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 MAKEINFO
=$ac_cv_prog_MAKEINFO
7683 if test -n "$MAKEINFO"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7685 $as_echo "$MAKEINFO" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7692 if test -n "$MAKEINFO"; then
7693 # Found it, now check the version.
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7695 $as_echo_n "checking for modern makeinfo... " >&6; }
7696 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7699 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7700 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7702 case $ac_prog_version in
7703 '') gcc_cv_prog_makeinfo_modern
=no
;;
7704 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7705 *) gcc_cv_prog_makeinfo_modern
=no
;;
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7710 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7712 gcc_cv_prog_makeinfo_modern
=no
7714 if test $gcc_cv_prog_makeinfo_modern = no
; then
7715 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7718 if test $gcc_cv_prog_makeinfo_modern = no
; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7720 *** Makeinfo is missing or too old.
7721 *** Info documentation will not be built." >&5
7722 $as_echo "$as_me: WARNING:
7723 *** Makeinfo is missing or too old.
7724 *** Info documentation will not be built." >&2;}
7731 # Is pod2man recent enough to regenerate manpages?
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7733 $as_echo_n "checking for recent Pod::Man... " >&6; }
7734 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7736 $as_echo "yes" >&6; }
7737 GENERATED_MANPAGES
=generated-manpages
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7745 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7750 # Extract the first word of "$ac_prog", so it can be a program name with args.
7751 set dummy
$ac_prog; ac_word
=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_FLEX+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$FLEX"; then
7758 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir
=.
7765 for ac_exec_ext
in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_FLEX
="$ac_prog"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 FLEX
=$ac_cv_prog_FLEX
7778 if test -n "$FLEX"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7780 $as_echo "$FLEX" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7787 test -n "$FLEX" && break
7789 test -n "$FLEX" || FLEX
="$MISSING flex"
7793 for ac_prog
in bison
7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
7796 set dummy
$ac_prog; ac_word
=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_prog_BISON+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7802 if test -n "$BISON"; then
7803 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir
=.
7810 for ac_exec_ext
in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_BISON
="$ac_prog"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 BISON
=$ac_cv_prog_BISON
7823 if test -n "$BISON"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7825 $as_echo "$BISON" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7832 test -n "$BISON" && break
7834 test -n "$BISON" || BISON
="$MISSING bison"
7837 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7838 # check for build == host before using them.
7841 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7842 && test -d ..
/binutils
; then
7843 NM
='${objdir}/../binutils/nm-new'
7845 # Extract the first word of "nm", so it can be a program name with args.
7846 set dummy nm
; ac_word
=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_NM+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$NM"; then
7853 ac_cv_prog_NM
="$NM" # Let the user override the test.
7855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir
=.
7860 for ac_exec_ext
in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7874 if test -n "$NM"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7876 $as_echo "$NM" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7886 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7887 && test -d ..
/binutils
; then
7888 AR
='${objdir}/../binutils/ar'
7890 # Extract the first word of "ar", so it can be a program name with args.
7891 set dummy
ar; ac_word
=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_prog_AR+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 if test -n "$AR"; then
7898 ac_cv_prog_AR
="$AR" # Let the user override the test.
7900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir
=.
7905 for ac_exec_ext
in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7919 if test -n "$AR"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7921 $as_echo "$AR" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7931 # --------------------
7932 # Checks for C headers
7933 # --------------------
7935 # Need to reject headers which give warnings, so that the -Werror bootstrap
7936 # works later. *sigh* This needs to come before all header checks.
7938 ac_c_preproc_warn_flag
=yes
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7941 $as_echo_n "checking for ANSI C header files... " >&6; }
7942 if test "${ac_cv_header_stdc+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7960 if ac_fn_c_try_compile
"$LINENO"; then :
7961 ac_cv_header_stdc
=yes
7963 ac_cv_header_stdc
=no
7965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "memchr" >/dev
/null
2>&1; then :
7978 ac_cv_header_stdc
=no
7984 if test $ac_cv_header_stdc = yes; then
7985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7992 $EGREP "free" >/dev
/null
2>&1; then :
7995 ac_cv_header_stdc
=no
8001 if test $ac_cv_header_stdc = yes; then
8002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8003 if test "$cross_compiling" = yes; then :
8006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8010 #if ((' ' & 0x0FF) == 0x020)
8011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8014 # define ISLOWER(c) \
8015 (('a' <= (c) && (c) <= 'i') \
8016 || ('j' <= (c) && (c) <= 'r') \
8017 || ('s' <= (c) && (c) <= 'z'))
8018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8026 for (i = 0; i < 256; i++)
8027 if (XOR (islower (i), ISLOWER (i))
8028 || toupper (i) != TOUPPER (i))
8033 if ac_fn_c_try_run
"$LINENO"; then :
8036 ac_cv_header_stdc
=no
8038 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8039 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8045 $as_echo "$ac_cv_header_stdc" >&6; }
8046 if test $ac_cv_header_stdc = yes; then
8048 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8053 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8054 if test "${ac_cv_header_time+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <sys/time.h>
8066 if ((struct tm *) 0)
8072 if ac_fn_c_try_compile
"$LINENO"; then :
8073 ac_cv_header_time
=yes
8075 ac_cv_header_time
=no
8077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8080 $as_echo "$ac_cv_header_time" >&6; }
8081 if test $ac_cv_header_time = yes; then
8083 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8088 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8089 if test "${gcc_cv_header_string+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8095 #include <strings.h>
8104 if ac_fn_c_try_compile
"$LINENO"; then :
8105 gcc_cv_header_string
=yes
8107 gcc_cv_header_string
=no
8109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8112 $as_echo "$gcc_cv_header_string" >&6; }
8113 if test $gcc_cv_header_string = yes; then
8115 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8121 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8127 #include <sys/wait.h>
8129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8145 if ac_fn_c_try_compile
"$LINENO"; then :
8146 ac_cv_header_sys_wait_h
=yes
8148 ac_cv_header_sys_wait_h
=no
8150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8154 if test $ac_cv_header_sys_wait_h = yes; then
8156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8160 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8161 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8162 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8163 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8165 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8167 eval as_val
=\$
$as_ac_Header
8168 if test "x$as_val" = x
""yes; then :
8169 cat >>confdefs.h
<<_ACEOF
8170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8177 # Check for thread headers.
8178 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8179 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8185 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8186 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8193 # These tests can't be done till we know if we have limits.h.
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8195 $as_echo_n "checking for CHAR_BIT... " >&6; }
8196 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #ifdef HAVE_LIMITS_H
8208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209 $EGREP "found" >/dev
/null
2>&1; then :
8210 gcc_cv_decl_char_bit
=yes
8212 gcc_cv_decl_char_bit
=no
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8219 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8220 if test $gcc_cv_decl_char_bit = no
; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8222 $as_echo_n "checking number of bits in a byte... " >&6; }
8223 if test "${gcc_cv_c_nbby+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8228 while test $i -lt 65; do
8229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8236 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8237 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8243 if ac_fn_c_try_compile
"$LINENO"; then :
8244 gcc_cv_c_nbby
=$i; break
8246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8249 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8253 $as_echo "$gcc_cv_c_nbby" >&6; }
8254 if test $gcc_cv_c_nbby = failed
; then
8255 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8258 cat >>confdefs.h
<<_ACEOF
8259 #define CHAR_BIT $gcc_cv_c_nbby
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8265 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8266 if test "${ac_cv_c_bigendian+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8269 ac_cv_c_bigendian
=unknown
8270 # See if we're dealing with a universal compiler.
8271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #ifndef __APPLE_CC__
8274 not a universal capable compiler
8279 if ac_fn_c_try_compile
"$LINENO"; then :
8281 # Check for potential -arch flags. It is not universal unless
8282 # there are at least two -arch flags with different values.
8285 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8286 if test -n "$ac_prev"; then
8288 i?
86 | x86_64 | ppc | ppc64
)
8289 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8292 ac_cv_c_bigendian
=universal
8298 elif test "x$ac_word" = "x-arch"; then
8303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 if test $ac_cv_c_bigendian = unknown
; then
8305 # See if sys/param.h defines the BYTE_ORDER macro.
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <sys/types.h>
8309 #include <sys/param.h>
8314 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8315 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8324 if ac_fn_c_try_compile
"$LINENO"; then :
8325 # It does; now see whether it defined to BIG_ENDIAN or not.
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/param.h>
8334 #if BYTE_ORDER != BIG_ENDIAN
8342 if ac_fn_c_try_compile
"$LINENO"; then :
8343 ac_cv_c_bigendian
=yes
8345 ac_cv_c_bigendian
=no
8347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8351 if test $ac_cv_c_bigendian = unknown
; then
8352 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8360 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8368 if ac_fn_c_try_compile
"$LINENO"; then :
8369 # It does; now see whether it defined to _BIG_ENDIAN or not.
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8385 if ac_fn_c_try_compile
"$LINENO"; then :
8386 ac_cv_c_bigendian
=yes
8388 ac_cv_c_bigendian
=no
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8394 if test $ac_cv_c_bigendian = unknown
; then
8395 # Compile a test program.
8396 if test "$cross_compiling" = yes; then :
8397 # Try to guess by grepping values from an object file.
8398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 short int ascii_mm[] =
8401 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8402 short int ascii_ii[] =
8403 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8404 int use_ascii (int i) {
8405 return ascii_mm[i] + ascii_ii[i];
8407 short int ebcdic_ii[] =
8408 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8409 short int ebcdic_mm[] =
8410 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8411 int use_ebcdic (int i) {
8412 return ebcdic_mm[i] + ebcdic_ii[i];
8419 return use_ascii (foo) == use_ebcdic (foo);
8424 if ac_fn_c_try_compile
"$LINENO"; then :
8425 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8426 ac_cv_c_bigendian
=yes
8428 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8429 if test "$ac_cv_c_bigendian" = unknown
; then
8430 ac_cv_c_bigendian
=no
8432 # finding both strings is unlikely to happen, but who knows?
8433 ac_cv_c_bigendian
=unknown
8437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 $ac_includes_default
8446 /* Are we little or big endian? From Harbison&Steele. */
8450 char c[sizeof (long int)];
8453 return u.c[sizeof (long int) - 1] == 1;
8459 if ac_fn_c_try_run
"$LINENO"; then :
8460 ac_cv_c_bigendian
=no
8462 ac_cv_c_bigendian
=yes
8464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8471 $as_echo "$ac_cv_c_bigendian" >&6; }
8472 case $ac_cv_c_bigendian in #(
8474 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8480 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8484 as_fn_error
"unknown endianness
8485 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8489 # ----------------------
8490 # Checks for C++ headers
8491 # ----------------------
8494 ac_cpp
='$CXXCPP $CPPFLAGS'
8495 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8496 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8497 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8499 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8500 if test -z "$CXXCPP"; then
8501 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8504 # Double quotes because CXXCPP needs to be expanded
8505 for CXXCPP
in "$CXX -E" "/lib/cpp"
8508 for ac_cxx_preproc_warn_flag
in '' yes
8510 # Use a header file that comes with gcc, so configuring glibc
8511 # with a fresh cross-compiler works.
8512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8513 # <limits.h> exists even on freestanding compilers.
8514 # On the NeXT, cc -E runs the code through the compiler's parser,
8515 # not just through cpp. "Syntax error" is here to catch this case.
8516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8519 # include <limits.h>
8521 # include <assert.h>
8525 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8528 # Broken: fails on valid input.
8531 rm -f conftest.err conftest.
$ac_ext
8533 # OK, works on sane cases. Now check whether nonexistent headers
8534 # can be detected and how.
8535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #include <ac_nonexistent.h>
8539 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8540 # Broken: success on invalid input.
8543 # Passes both tests.
8547 rm -f conftest.err conftest.
$ac_ext
8550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8551 rm -f conftest.err conftest.
$ac_ext
8552 if $ac_preproc_ok; then :
8557 ac_cv_prog_CXXCPP
=$CXXCPP
8560 CXXCPP
=$ac_cv_prog_CXXCPP
8562 ac_cv_prog_CXXCPP
=$CXXCPP
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8565 $as_echo "$CXXCPP" >&6; }
8567 for ac_cxx_preproc_warn_flag
in '' yes
8569 # Use a header file that comes with gcc, so configuring glibc
8570 # with a fresh cross-compiler works.
8571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 # <limits.h> exists even on freestanding compilers.
8573 # On the NeXT, cc -E runs the code through the compiler's parser,
8574 # not just through cpp. "Syntax error" is here to catch this case.
8575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8578 # include <limits.h>
8580 # include <assert.h>
8584 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8587 # Broken: fails on valid input.
8590 rm -f conftest.err conftest.
$ac_ext
8592 # OK, works on sane cases. Now check whether nonexistent headers
8593 # can be detected and how.
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <ac_nonexistent.h>
8598 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8599 # Broken: success on invalid input.
8602 # Passes both tests.
8606 rm -f conftest.err conftest.
$ac_ext
8609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8610 rm -f conftest.err conftest.
$ac_ext
8611 if $ac_preproc_ok; then :
8614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8617 See \`config.log' for more details." >&5
8618 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8619 See \`config.log' for more details." >&2;}; }
8623 ac_cpp
='$CPP $CPPFLAGS'
8624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8630 ac_cpp
='$CXXCPP $CPPFLAGS'
8631 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8638 for ac_header
in unordered_map
8640 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8641 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8642 cat >>confdefs.h
<<_ACEOF
8643 #define HAVE_UNORDERED_MAP 1
8649 for ac_header
in tr1/unordered_map
8651 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8652 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8653 cat >>confdefs.h
<<_ACEOF
8654 #define HAVE_TR1_UNORDERED_MAP 1
8660 for ac_header
in ext
/hash_map
8662 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8663 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8664 cat >>confdefs.h
<<_ACEOF
8665 #define HAVE_EXT_HASH_MAP 1
8673 ac_cpp
='$CPP $CPPFLAGS'
8674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8684 # These libraries may be used by collect2.
8685 # We may need a special search path to get them linked.
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8687 $as_echo_n "checking for collect2 libraries... " >&6; }
8688 if test "${gcc_cv_collect2_libs+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8692 for libs
in '' -lld -lmld \
8693 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8694 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8700 /* Override any GCC internal prototype to avoid an error.
8701 Use char because int might match the return type of a GCC
8702 builtin and then its argument prototype would still apply. */
8715 if ac_fn_c_try_link
"$LINENO"; then :
8716 gcc_cv_collect2_libs
="$libs"; break
8718 rm -f core conftest.err conftest.
$ac_objext \
8719 conftest
$ac_exeext conftest.
$ac_ext
8722 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8725 $as_echo "$gcc_cv_collect2_libs" >&6; }
8726 case $gcc_cv_collect2_libs in
8728 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8732 # When building Ada code on Alpha, we need exc_resume which is usually in
8733 # -lexc. So test for it.
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8737 $as_echo_n "checking for library containing exc_resume... " >&6; }
8738 if test "${ac_cv_search_exc_resume+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8741 ac_func_search_save_LIBS
=$LIBS
8742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8755 return exc_resume ();
8760 for ac_lib
in '' exc
; do
8761 if test -z "$ac_lib"; then
8762 ac_res
="none required"
8765 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8767 if ac_fn_c_try_link
"$LINENO"; then :
8768 ac_cv_search_exc_resume
=$ac_res
8770 rm -f core conftest.err conftest.
$ac_objext \
8772 if test "${ac_cv_search_exc_resume+set}" = set; then :
8776 if test "${ac_cv_search_exc_resume+set}" = set; then :
8779 ac_cv_search_exc_resume
=no
8782 LIBS
=$ac_func_search_save_LIBS
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8785 $as_echo "$ac_cv_search_exc_resume" >&6; }
8786 ac_res
=$ac_cv_search_exc_resume
8787 if test "$ac_res" != no
; then :
8788 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8796 # Some systems put ldexp and frexp in libm instead of libc; assume
8797 # they're both in the same place. jcf-dump needs them.
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8801 $as_echo_n "checking for library containing ldexp... " >&6; }
8802 if test "${ac_cv_search_ldexp+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8805 ac_func_search_save_LIBS
=$LIBS
8806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8809 /* Override any GCC internal prototype to avoid an error.
8810 Use char because int might match the return type of a GCC
8811 builtin and then its argument prototype would still apply. */
8824 for ac_lib
in '' m
; do
8825 if test -z "$ac_lib"; then
8826 ac_res
="none required"
8829 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8831 if ac_fn_c_try_link
"$LINENO"; then :
8832 ac_cv_search_ldexp
=$ac_res
8834 rm -f core conftest.err conftest.
$ac_objext \
8836 if test "${ac_cv_search_ldexp+set}" = set; then :
8840 if test "${ac_cv_search_ldexp+set}" = set; then :
8843 ac_cv_search_ldexp
=no
8846 LIBS
=$ac_func_search_save_LIBS
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8849 $as_echo "$ac_cv_search_ldexp" >&6; }
8850 ac_res
=$ac_cv_search_ldexp
8851 if test "$ac_res" != no
; then :
8852 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8860 # Use <inttypes.h> only if it exists,
8861 # doesn't clash with <sys/types.h>, and declares intmax_t.
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8863 $as_echo_n "checking for inttypes.h... " >&6; }
8864 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <sys/types.h>
8870 #include <inttypes.h>
8879 if ac_fn_c_try_compile
"$LINENO"; then :
8880 gcc_cv_header_inttypes_h
=yes
8882 gcc_cv_header_inttypes_h
=no
8884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8888 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8889 if test $gcc_cv_header_inttypes_h = yes; then
8891 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8897 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8898 sysconf strsignal getrusage nl_langinfo \
8899 gettimeofday mbstowcs wcswidth mmap setlocale \
8900 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
8902 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8903 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8904 eval as_val
=\$
$as_ac_var
8905 if test "x$as_val" = x
""yes; then :
8906 cat >>confdefs.h
<<_ACEOF
8907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8914 if test x
$ac_cv_func_mbstowcs = xyes
; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8916 $as_echo_n "checking whether mbstowcs works... " >&6; }
8917 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8920 if test "$cross_compiling" = yes; then :
8921 gcc_cv_func_mbstowcs_works
=yes
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8932 if ac_fn_c_try_run
"$LINENO"; then :
8933 gcc_cv_func_mbstowcs_works
=yes
8935 gcc_cv_func_mbstowcs_works
=no
8937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8943 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8944 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8946 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8951 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8952 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8956 cat >>confdefs.h
<<_ACEOF
8962 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8963 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8967 cat >>confdefs.h
<<_ACEOF
8968 #define caddr_t char *
8975 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8976 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8977 gcc_header_sys_mman_h
=yes
8979 gcc_header_sys_mman_h
=no
8982 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8983 if test "x$ac_cv_func_mmap" = x
""yes; then :
8989 if test "$gcc_header_sys_mman_h" != yes \
8990 ||
test "$gcc_func_mmap" != yes; then
8991 gcc_cv_func_mmap_file
=no
8992 gcc_cv_func_mmap_dev_zero
=no
8993 gcc_cv_func_mmap_anon
=no
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8996 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8997 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 # Add a system to this blacklist if
9001 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9002 # memory area containing the same data that you'd get if you applied
9003 # read() to the same fd. The only system known to have a problem here
9004 # is VMS, where text files have record structure.
9007 gcc_cv_func_mmap_file
=no
;;
9009 gcc_cv_func_mmap_file
=yes;;
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9013 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9015 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9016 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9019 # Add a system to this blacklist if it has mmap() but /dev/zero
9020 # does not exist, or if mmapping /dev/zero does not give anonymous
9021 # zeroed pages with both the following properties:
9022 # 1. If you map N consecutive pages in with one call, and then
9023 # unmap any subset of those pages, the pages that were not
9024 # explicitly unmapped remain accessible.
9025 # 2. If you map two adjacent blocks of memory and then unmap them
9026 # both at once, they must both go away.
9027 # Systems known to be in this category are Windows (all variants),
9030 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9031 gcc_cv_func_mmap_dev_zero
=no
;;
9033 gcc_cv_func_mmap_dev_zero
=yes;;
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9037 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9039 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9041 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9042 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <sys/types.h>
9048 #include <sys/mman.h>
9051 #ifndef MAP_ANONYMOUS
9052 #define MAP_ANONYMOUS MAP_ANON
9058 int n = MAP_ANONYMOUS;
9063 if ac_fn_c_try_compile
"$LINENO"; then :
9064 gcc_cv_decl_map_anon
=yes
9066 gcc_cv_decl_map_anon
=no
9068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9071 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9073 if test $gcc_cv_decl_map_anon = no
; then
9074 gcc_cv_func_mmap_anon
=no
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9077 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9078 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9081 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9082 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9083 # doesn't give anonymous zeroed pages with the same properties listed
9084 # above for use of /dev/zero.
9085 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9087 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9088 gcc_cv_func_mmap_anon
=no
;;
9090 gcc_cv_func_mmap_anon
=yes;;
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9094 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9098 if test $gcc_cv_func_mmap_file = yes; then
9100 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9103 if test $gcc_cv_func_mmap_dev_zero = yes; then
9105 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9108 if test $gcc_cv_func_mmap_anon = yes; then
9110 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9117 # Under VMS, vfork works very differently than on Unix. The standard test
9118 # won't work, and it isn't easily adaptable. It makes more sense to
9120 ac_cv_func_vfork_works
=yes
9123 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9124 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9128 cat >>confdefs.h
<<_ACEOF
9134 for ac_header
in vfork.h
9136 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9137 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9138 cat >>confdefs.h
<<_ACEOF
9139 #define HAVE_VFORK_H 1
9145 for ac_func
in fork vfork
9147 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9148 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9149 eval as_val
=\$
$as_ac_var
9150 if test "x$as_val" = x
""yes; then :
9151 cat >>confdefs.h
<<_ACEOF
9152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9158 if test "x$ac_cv_func_fork" = xyes
; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9160 $as_echo_n "checking for working fork... " >&6; }
9161 if test "${ac_cv_func_fork_works+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9164 if test "$cross_compiling" = yes; then :
9165 ac_cv_func_fork_works
=cross
9167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 $ac_includes_default
9174 /* By Ruediger Kuhlmann. */
9181 if ac_fn_c_try_run
"$LINENO"; then :
9182 ac_cv_func_fork_works
=yes
9184 ac_cv_func_fork_works
=no
9186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9192 $as_echo "$ac_cv_func_fork_works" >&6; }
9195 ac_cv_func_fork_works
=$ac_cv_func_fork
9197 if test "x$ac_cv_func_fork_works" = xcross
; then
9199 *-*-amigaos* |
*-*-msdosdjgpp*)
9200 # Override, as these systems have only a dummy fork() stub
9201 ac_cv_func_fork_works
=no
9204 ac_cv_func_fork_works
=yes
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9208 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9210 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9211 if test "x$ac_cv_func_vfork" = xyes
; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9213 $as_echo_n "checking for working vfork... " >&6; }
9214 if test "${ac_cv_func_vfork_works+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 if test "$cross_compiling" = yes; then :
9218 ac_cv_func_vfork_works
=cross
9220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 /* Thanks to Paul Eggert for this test. */
9223 $ac_includes_default
9224 #include <sys/wait.h>
9228 /* On some sparc systems, changes by the child to local and incoming
9229 argument registers are propagated back to the parent. The compiler
9230 is told about this with #include <vfork.h>, but some compilers
9231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9232 static variable whose address is put into a register that is
9233 clobbered by the vfork. */
9236 sparc_address_test (int arg)
9238 sparc_address_test (arg) int arg;
9259 pid_t parent = getpid ();
9262 sparc_address_test (0);
9267 /* Here is another test for sparc vfork register problems. This
9268 test uses lots of local variables, at least as many local
9269 variables as main has allocated so far including compiler
9270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9272 reuse the register of parent for one of the local variables,
9273 since it will think that parent can't possibly be used any more
9274 in this routine. Assigning to the local variable will thus
9275 munge parent in the parent process. */
9277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9279 /* Convince the compiler that p..p7 are live; otherwise, it might
9280 use the same hardware register for all 8 local variables. */
9281 if (p != p1 || p != p2 || p != p3 || p != p4
9282 || p != p5 || p != p6 || p != p7)
9285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9286 from child file descriptors. If the child closes a descriptor
9287 before it execs or exits, this munges the parent's descriptor
9288 as well. Test for this by closing stdout in the child. */
9289 _exit(close(fileno(stdout)) != 0);
9294 while (wait(&status) != child)
9297 /* Was there some problem with vforking? */
9300 /* Did the child fail? (This shouldn't happen.) */
9303 /* Did the vfork/compiler bug occur? */
9304 || parent != getpid()
9306 /* Did the file descriptor bug occur? */
9307 || fstat(fileno(stdout), &st) != 0
9312 if ac_fn_c_try_run
"$LINENO"; then :
9313 ac_cv_func_vfork_works
=yes
9315 ac_cv_func_vfork_works
=no
9317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9323 $as_echo "$ac_cv_func_vfork_works" >&6; }
9326 if test "x$ac_cv_func_fork_works" = xcross
; then
9327 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9329 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9332 if test "x$ac_cv_func_vfork_works" = xyes
; then
9334 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9338 $as_echo "#define vfork fork" >>confdefs.h
9341 if test "x$ac_cv_func_fork_works" = xyes
; then
9343 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9349 if test "X$prefix" = "XNONE"; then
9350 acl_final_prefix
="$ac_default_prefix"
9352 acl_final_prefix
="$prefix"
9354 if test "X$exec_prefix" = "XNONE"; then
9355 acl_final_exec_prefix
='${prefix}'
9357 acl_final_exec_prefix
="$exec_prefix"
9359 acl_save_prefix
="$prefix"
9360 prefix
="$acl_final_prefix"
9361 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9362 prefix
="$acl_save_prefix"
9365 # Check whether --with-gnu-ld was given.
9366 if test "${with_gnu_ld+set}" = set; then :
9367 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9372 # Prepare PATH_SEPARATOR.
9373 # The user is always right.
9374 if test "${PATH_SEPARATOR+set}" != set; then
9375 echo "#! /bin/sh" >conf$$.sh
9376 echo "exit 0" >>conf$$.sh
9378 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9386 if test "$GCC" = yes; then
9387 # Check if gcc -print-prog-name=ld gives a path.
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9389 $as_echo_n "checking for ld used by GCC... " >&6; }
9392 # gcc leaves a trailing carriage return which upsets mingw
9393 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9395 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9398 # Accept absolute paths.
9399 [\\/]* |
[A-Za-z
]:[\\/]*)
9400 re_direlt
='/[^/][^/]*/\.\./'
9401 # Canonicalize the path of ld
9402 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9403 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9404 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9406 test -z "$LD" && LD
="$ac_prog"
9409 # If it fails, then pretend we aren't using GCC.
9413 # If it is relative, then search for the first ld in PATH.
9417 elif test "$with_gnu_ld" = yes; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9419 $as_echo_n "checking for GNU ld... " >&6; }
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9422 $as_echo_n "checking for non-GNU ld... " >&6; }
9424 if test "${acl_cv_path_LD+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9427 if test -z "$LD"; then
9428 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9429 for ac_dir
in $PATH; do
9430 test -z "$ac_dir" && ac_dir
=.
9431 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9432 acl_cv_path_LD
="$ac_dir/$ac_prog"
9433 # Check to see if the program is GNU ld. I'd rather use --version,
9434 # but apparently some GNU ld's only accept -v.
9435 # Break only if it was the GNU/non-GNU ld that we prefer.
9436 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9437 test "$with_gnu_ld" != no
&& break
9439 test "$with_gnu_ld" != yes && break
9445 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9449 LD
="$acl_cv_path_LD"
9450 if test -n "$LD"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9452 $as_echo "$LD" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9457 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9459 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9460 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9463 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9464 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9465 acl_cv_prog_gnu_ld
=yes
9467 acl_cv_prog_gnu_ld
=no
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9471 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9472 with_gnu_ld
=$acl_cv_prog_gnu_ld
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9477 $as_echo_n "checking for shared library run path origin... " >&6; }
9478 if test "${acl_cv_rpath+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9482 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9483 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9490 $as_echo "$acl_cv_rpath" >&6; }
9492 libext
="$acl_cv_libext"
9493 shlibext
="$acl_cv_shlibext"
9494 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9495 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9496 hardcode_direct
="$acl_cv_hardcode_direct"
9497 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9498 # Check whether --enable-rpath was given.
9499 if test "${enable_rpath+set}" = set; then :
9500 enableval
=$enable_rpath; :
9514 acl_save_prefix
="$prefix"
9515 prefix
="$acl_final_prefix"
9516 acl_save_exec_prefix
="$exec_prefix"
9517 exec_prefix
="$acl_final_exec_prefix"
9519 eval additional_includedir
=\"$includedir\"
9520 eval additional_libdir
=\"$libdir\"
9522 exec_prefix
="$acl_save_exec_prefix"
9523 prefix
="$acl_save_prefix"
9526 # Check whether --with-libiconv-prefix was given.
9527 if test "${with_libiconv_prefix+set}" = set; then :
9528 withval
=$with_libiconv_prefix;
9529 if test "X$withval" = "Xno"; then
9532 if test "X$withval" = "X"; then
9534 acl_save_prefix
="$prefix"
9535 prefix
="$acl_final_prefix"
9536 acl_save_exec_prefix
="$exec_prefix"
9537 exec_prefix
="$acl_final_exec_prefix"
9539 eval additional_includedir
=\"$includedir\"
9540 eval additional_libdir
=\"$libdir\"
9542 exec_prefix
="$acl_save_exec_prefix"
9543 prefix
="$acl_save_prefix"
9546 additional_includedir
="$withval/include"
9547 additional_libdir
="$withval/lib"
9558 names_already_handled
=
9559 names_next_round
='iconv '
9560 while test -n "$names_next_round"; do
9561 names_this_round
="$names_next_round"
9563 for name
in $names_this_round; do
9565 for n
in $names_already_handled; do
9566 if test "$n" = "$name"; then
9571 if test -z "$already_handled"; then
9572 names_already_handled
="$names_already_handled $name"
9573 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9574 eval value
=\"\
$HAVE_LIB$uppername\"
9575 if test -n "$value"; then
9576 if test "$value" = yes; then
9577 eval value
=\"\
$LIB$uppername\"
9578 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9579 eval value
=\"\
$LTLIB$uppername\"
9580 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9589 if test $use_additional = yes; then
9590 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9591 found_dir
="$additional_libdir"
9592 found_so
="$additional_libdir/lib$name.$shlibext"
9593 if test -f "$additional_libdir/lib$name.la"; then
9594 found_la
="$additional_libdir/lib$name.la"
9597 if test -f "$additional_libdir/lib$name.$libext"; then
9598 found_dir
="$additional_libdir"
9599 found_a
="$additional_libdir/lib$name.$libext"
9600 if test -f "$additional_libdir/lib$name.la"; then
9601 found_la
="$additional_libdir/lib$name.la"
9606 if test "X$found_dir" = "X"; then
9607 for x
in $LDFLAGS $LTLIBICONV; do
9609 acl_save_prefix
="$prefix"
9610 prefix
="$acl_final_prefix"
9611 acl_save_exec_prefix
="$exec_prefix"
9612 exec_prefix
="$acl_final_exec_prefix"
9614 exec_prefix
="$acl_save_exec_prefix"
9615 prefix
="$acl_save_prefix"
9619 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9620 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9622 found_so
="$dir/lib$name.$shlibext"
9623 if test -f "$dir/lib$name.la"; then
9624 found_la
="$dir/lib$name.la"
9627 if test -f "$dir/lib$name.$libext"; then
9629 found_a
="$dir/lib$name.$libext"
9630 if test -f "$dir/lib$name.la"; then
9631 found_la
="$dir/lib$name.la"
9637 if test "X$found_dir" != "X"; then
9642 if test "X$found_dir" != "X"; then
9643 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9644 if test "X$found_so" != "X"; then
9645 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9646 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9649 for x
in $ltrpathdirs; do
9650 if test "X$x" = "X$found_dir"; then
9655 if test -z "$haveit"; then
9656 ltrpathdirs
="$ltrpathdirs $found_dir"
9658 if test "$hardcode_direct" = yes; then
9659 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9661 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9662 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9664 for x
in $rpathdirs; do
9665 if test "X$x" = "X$found_dir"; then
9670 if test -z "$haveit"; then
9671 rpathdirs
="$rpathdirs $found_dir"
9675 for x
in $LDFLAGS $LIBICONV; do
9677 acl_save_prefix
="$prefix"
9678 prefix
="$acl_final_prefix"
9679 acl_save_exec_prefix
="$exec_prefix"
9680 exec_prefix
="$acl_final_exec_prefix"
9682 exec_prefix
="$acl_save_exec_prefix"
9683 prefix
="$acl_save_prefix"
9685 if test "X$x" = "X-L$found_dir"; then
9690 if test -z "$haveit"; then
9691 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9693 if test "$hardcode_minus_L" != no
; then
9694 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9696 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9702 if test "X$found_a" != "X"; then
9703 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9705 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9708 additional_includedir
=
9709 case "$found_dir" in
9711 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9712 additional_includedir
="$basedir/include"
9715 if test "X$additional_includedir" != "X"; then
9716 if test "X$additional_includedir" != "X/usr/include"; then
9718 if test "X$additional_includedir" = "X/usr/local/include"; then
9719 if test -n "$GCC"; then
9721 linux
*) haveit
=yes;;
9725 if test -z "$haveit"; then
9726 for x
in $CPPFLAGS $INCICONV; do
9728 acl_save_prefix
="$prefix"
9729 prefix
="$acl_final_prefix"
9730 acl_save_exec_prefix
="$exec_prefix"
9731 exec_prefix
="$acl_final_exec_prefix"
9733 exec_prefix
="$acl_save_exec_prefix"
9734 prefix
="$acl_save_prefix"
9736 if test "X$x" = "X-I$additional_includedir"; then
9741 if test -z "$haveit"; then
9742 if test -d "$additional_includedir"; then
9743 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9749 if test -n "$found_la"; then
9750 save_libdir
="$libdir"
9752 */* |
*\\*) .
"$found_la" ;;
9753 *) .
"./$found_la" ;;
9755 libdir
="$save_libdir"
9756 for dep
in $dependency_libs; do
9759 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9760 if test "X$additional_libdir" != "X/usr/lib"; then
9762 if test "X$additional_libdir" = "X/usr/local/lib"; then
9763 if test -n "$GCC"; then
9765 linux
*) haveit
=yes;;
9769 if test -z "$haveit"; then
9771 for x
in $LDFLAGS $LIBICONV; do
9773 acl_save_prefix
="$prefix"
9774 prefix
="$acl_final_prefix"
9775 acl_save_exec_prefix
="$exec_prefix"
9776 exec_prefix
="$acl_final_exec_prefix"
9778 exec_prefix
="$acl_save_exec_prefix"
9779 prefix
="$acl_save_prefix"
9781 if test "X$x" = "X-L$additional_libdir"; then
9786 if test -z "$haveit"; then
9787 if test -d "$additional_libdir"; then
9788 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9792 for x
in $LDFLAGS $LTLIBICONV; do
9794 acl_save_prefix
="$prefix"
9795 prefix
="$acl_final_prefix"
9796 acl_save_exec_prefix
="$exec_prefix"
9797 exec_prefix
="$acl_final_exec_prefix"
9799 exec_prefix
="$acl_save_exec_prefix"
9800 prefix
="$acl_save_prefix"
9802 if test "X$x" = "X-L$additional_libdir"; then
9807 if test -z "$haveit"; then
9808 if test -d "$additional_libdir"; then
9809 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9816 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9817 if test "$enable_rpath" != no
; then
9819 for x
in $rpathdirs; do
9820 if test "X$x" = "X$dir"; then
9825 if test -z "$haveit"; then
9826 rpathdirs
="$rpathdirs $dir"
9829 for x
in $ltrpathdirs; do
9830 if test "X$x" = "X$dir"; then
9835 if test -z "$haveit"; then
9836 ltrpathdirs
="$ltrpathdirs $dir"
9841 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9844 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9847 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9848 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9854 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9855 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9861 if test "X$rpathdirs" != "X"; then
9862 if test -n "$hardcode_libdir_separator"; then
9864 for found_dir
in $rpathdirs; do
9865 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9867 acl_save_libdir
="$libdir"
9869 eval flag
=\"$hardcode_libdir_flag_spec\"
9870 libdir
="$acl_save_libdir"
9871 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9873 for found_dir
in $rpathdirs; do
9874 acl_save_libdir
="$libdir"
9876 eval flag
=\"$hardcode_libdir_flag_spec\"
9877 libdir
="$acl_save_libdir"
9878 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9882 if test "X$ltrpathdirs" != "X"; then
9883 for found_dir
in $ltrpathdirs; do
9884 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9894 am_save_CPPFLAGS
="$CPPFLAGS"
9896 for element
in $INCICONV; do
9898 for x
in $CPPFLAGS; do
9900 acl_save_prefix
="$prefix"
9901 prefix
="$acl_final_prefix"
9902 acl_save_exec_prefix
="$exec_prefix"
9903 exec_prefix
="$acl_final_exec_prefix"
9905 exec_prefix
="$acl_save_exec_prefix"
9906 prefix
="$acl_save_prefix"
9908 if test "X$x" = "X$element"; then
9913 if test -z "$haveit"; then
9914 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9920 $as_echo_n "checking for iconv... " >&6; }
9921 if test "${am_cv_func_iconv+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9925 am_cv_func_iconv
="no, consider installing GNU libiconv"
9927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9934 iconv_t cd = iconv_open("","");
9935 iconv(cd,NULL,NULL,NULL,NULL);
9941 if ac_fn_c_try_link
"$LINENO"; then :
9942 am_cv_func_iconv
=yes
9944 rm -f core conftest.err conftest.
$ac_objext \
9945 conftest
$ac_exeext conftest.
$ac_ext
9946 if test "$am_cv_func_iconv" != yes; then
9947 am_save_LIBS
="$LIBS"
9948 LIBS
="$LIBS $LIBICONV"
9949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9956 iconv_t cd = iconv_open("","");
9957 iconv(cd,NULL,NULL,NULL,NULL);
9963 if ac_fn_c_try_link
"$LINENO"; then :
9965 am_cv_func_iconv
=yes
9967 rm -f core conftest.err conftest.
$ac_objext \
9968 conftest
$ac_exeext conftest.
$ac_ext
9969 LIBS
="$am_save_LIBS"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9974 $as_echo "$am_cv_func_iconv" >&6; }
9975 if test "$am_cv_func_iconv" = yes; then
9977 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9980 if test "$am_cv_lib_iconv" = yes; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9982 $as_echo_n "checking how to link with libiconv... " >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9984 $as_echo "$LIBICONV" >&6; }
9986 CPPFLAGS
="$am_save_CPPFLAGS"
9993 if test "$am_cv_func_iconv" = yes; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9995 $as_echo_n "checking for iconv declaration... " >&6; }
9996 if test "${am_cv_proto_iconv+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
10000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 #include <stdlib.h>
10009 #if defined(__STDC__) || defined(__cplusplus)
10010 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10023 if ac_fn_c_try_compile
"$LINENO"; then :
10024 am_cv_proto_iconv_arg1
=""
10026 am_cv_proto_iconv_arg1
="const"
10028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10029 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);"
10032 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10034 }$am_cv_proto_iconv" >&5
10036 }$am_cv_proto_iconv" >&6; }
10038 cat >>confdefs.h
<<_ACEOF
10039 #define ICONV_CONST $am_cv_proto_iconv_arg1
10044 # Until we have in-tree GNU iconv:
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10050 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10051 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <locale.h>
10065 if ac_fn_c_try_link
"$LINENO"; then :
10066 am_cv_val_LC_MESSAGES
=yes
10068 am_cv_val_LC_MESSAGES
=no
10070 rm -f core conftest.err conftest.
$ac_objext \
10071 conftest
$ac_exeext conftest.
$ac_ext
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10074 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10075 if test $am_cv_val_LC_MESSAGES = yes; then
10077 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10084 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10085 if test "${am_cv_langinfo_codeset+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 #include <langinfo.h>
10094 char* cs = nl_langinfo(CODESET);
10099 if ac_fn_c_try_link
"$LINENO"; then :
10100 am_cv_langinfo_codeset
=yes
10102 am_cv_langinfo_codeset
=no
10104 rm -f core conftest.err conftest.
$ac_objext \
10105 conftest
$ac_exeext conftest.
$ac_ext
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10109 $as_echo "$am_cv_langinfo_codeset" >&6; }
10110 if test $am_cv_langinfo_codeset = yes; then
10112 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10117 # We will need to find libiberty.h and ansidecl.h
10118 saved_CFLAGS
="$CFLAGS"
10119 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10120 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10121 strsignal strstr strverscmp \
10122 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10123 free
basename getopt
clock getpagesize 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
10125 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10127 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10128 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10129 $as_echo_n "(cached) " >&6
10131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10134 #define $ac_tr_decl 1
10136 #include "ansidecl.h"
10137 #include "system.h"
10143 char *(*pfn) = (char *(*)) $ac_func ;
10149 if ac_fn_c_try_compile
"$LINENO"; then :
10150 eval "gcc_cv_have_decl_$ac_func=yes"
10152 eval "gcc_cv_have_decl_$ac_func=no"
10154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10157 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10160 #define $ac_tr_decl 1
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10166 #define $ac_tr_decl 0
10174 for ac_func
in getrlimit setrlimit getrusage
10176 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10178 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10179 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10180 $as_echo_n "(cached) " >&6
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 #define $ac_tr_decl 1
10187 #include "ansidecl.h"
10188 #include "system.h"
10189 #ifdef HAVE_SYS_RESOURCE_H
10190 #include <sys/resource.h>
10198 char *(*pfn) = (char *(*)) $ac_func ;
10204 if ac_fn_c_try_compile
"$LINENO"; then :
10205 eval "gcc_cv_have_decl_$ac_func=yes"
10207 eval "gcc_cv_have_decl_$ac_func=no"
10209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10214 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10215 #define $ac_tr_decl 1
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10221 #define $ac_tr_decl 0
10229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 #include "ansidecl.h"
10233 #include "system.h"
10234 #ifdef HAVE_SYS_RESOURCE_H
10235 #include <sys/resource.h>
10246 if ac_fn_c_try_compile
"$LINENO"; then :
10250 $as_echo "#define rlim_t long" >>confdefs.h
10253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10255 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10256 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10257 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10258 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10259 for ac_func
in ldgetname
10261 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10264 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10265 $as_echo_n "(cached) " >&6
10267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10270 #define $ac_tr_decl 1
10272 #include "ansidecl.h"
10273 #include "system.h"
10274 #ifdef HAVE_LDFCN_H
10285 char *(*pfn) = (char *(*)) $ac_func ;
10291 if ac_fn_c_try_compile
"$LINENO"; then :
10292 eval "gcc_cv_have_decl_$ac_func=yes"
10294 eval "gcc_cv_have_decl_$ac_func=no"
10296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10302 #define $ac_tr_decl 1
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10308 #define $ac_tr_decl 0
10316 for ac_func
in times
10318 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10320 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10321 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10322 $as_echo_n "(cached) " >&6
10324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10327 #define $ac_tr_decl 1
10329 #include "ansidecl.h"
10330 #include "system.h"
10331 #ifdef HAVE_SYS_TIMES_H
10332 #include <sys/times.h>
10340 char *(*pfn) = (char *(*)) $ac_func ;
10346 if ac_fn_c_try_compile
"$LINENO"; then :
10347 eval "gcc_cv_have_decl_$ac_func=yes"
10349 eval "gcc_cv_have_decl_$ac_func=no"
10351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10354 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10357 #define $ac_tr_decl 1
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10363 #define $ac_tr_decl 0
10371 for ac_func
in sigaltstack
10373 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10375 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10376 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10377 $as_echo_n "(cached) " >&6
10379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10382 #define $ac_tr_decl 1
10384 #include "ansidecl.h"
10385 #include "system.h"
10386 #include <signal.h>
10393 char *(*pfn) = (char *(*)) $ac_func ;
10399 if ac_fn_c_try_compile
"$LINENO"; then :
10400 eval "gcc_cv_have_decl_$ac_func=yes"
10402 eval "gcc_cv_have_decl_$ac_func=no"
10404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10407 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10409 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10410 #define $ac_tr_decl 1
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10416 #define $ac_tr_decl 0
10424 # More time-related stuff.
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10426 $as_echo_n "checking for struct tms... " >&6; }
10427 if test "${ac_cv_struct_tms+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10434 #include "ansidecl.h"
10435 #include "system.h"
10436 #ifdef HAVE_SYS_TIMES_H
10437 #include <sys/times.h>
10448 if ac_fn_c_try_compile
"$LINENO"; then :
10449 ac_cv_struct_tms
=yes
10451 ac_cv_struct_tms
=no
10453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10456 $as_echo "$ac_cv_struct_tms" >&6; }
10457 if test $ac_cv_struct_tms = yes; then
10459 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10463 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10464 # revisit after autoconf 2.50.
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10466 $as_echo_n "checking for clock_t... " >&6; }
10467 if test "${gcc_cv_type_clock_t+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 #include "ansidecl.h"
10475 #include "system.h"
10485 if ac_fn_c_try_compile
"$LINENO"; then :
10486 gcc_cv_type_clock_t
=yes
10488 gcc_cv_type_clock_t
=no
10490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10493 $as_echo "$gcc_cv_type_clock_t" >&6; }
10494 if test $gcc_cv_type_clock_t = yes; then
10496 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10500 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10501 CFLAGS
="$saved_CFLAGS"
10503 # Check whether --enable-initfini-array was given.
10504 if test "${enable_initfini_array+set}" = set; then :
10505 enableval
=$enable_initfini_array;
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10509 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10510 if test "${gcc_cv_initfini_array+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10513 if test "$cross_compiling" = yes; then :
10514 gcc_cv_initfini_array
=no
10516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10520 int main (void) { return x; }
10521 int foo (void) { x = 0; }
10522 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10524 if ac_fn_c_try_run
"$LINENO"; then :
10525 gcc_cv_initfini_array
=yes
10527 gcc_cv_initfini_array
=no
10529 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10530 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10535 $as_echo "$gcc_cv_initfini_array" >&6; }
10536 enable_initfini_array
=$gcc_cv_initfini_array
10540 if test $enable_initfini_array = yes; then
10542 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10546 # mkdir takes a single argument on some systems.
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10548 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10549 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10550 $as_echo_n "(cached) " >&6
10552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10555 #include <sys/types.h>
10556 #ifdef HAVE_SYS_STAT_H
10557 # include <sys/stat.h>
10559 #ifdef HAVE_UNISTD_H
10560 # include <unistd.h>
10562 #ifdef HAVE_DIRECT_H
10563 # include <direct.h>
10573 if ac_fn_c_try_compile
"$LINENO"; then :
10574 gcc_cv_mkdir_takes_one_arg
=no
10576 gcc_cv_mkdir_takes_one_arg
=yes
10578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10581 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10582 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10584 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10595 # With Setjmp/Longjmp based exception handling.
10596 # Check whether --enable-sjlj-exceptions was given.
10597 if test "${enable_sjlj_exceptions+set}" = set; then :
10598 enableval
=$enable_sjlj_exceptions; case $target in
10600 if test $enableval != yes; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10602 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10607 force_sjlj_exceptions
=yes
10611 force_sjlj_exceptions
=yes
10615 force_sjlj_exceptions
=no
10620 if test $force_sjlj_exceptions = yes; then
10621 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10623 cat >>confdefs.h
<<_ACEOF
10624 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10629 # For platforms with the unwind ABI which includes an unwind library,
10630 # libunwind, we can choose to use the system libunwind.
10631 # config.gcc also contains tests of with_system_libunwind.
10634 # Check whether --with-system-libunwind was given.
10635 if test "${with_system_libunwind+set}" = set; then :
10636 withval
=$with_system_libunwind;
10639 # If system-libunwind was not specifically set, pick a default setting.
10640 if test x
$with_system_libunwind = x
; then
10642 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10643 *) with_system_libunwind
=no
;;
10646 # Based on system-libunwind and target, do we have ipinfo?
10647 if test x
$with_system_libunwind = xyes
; then
10649 ia64-
*-*) have_unwind_getipinfo
=no
;;
10650 *) have_unwind_getipinfo
=yes ;;
10653 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10656 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10657 *) have_unwind_getipinfo
=yes ;;
10662 if test x
$have_unwind_getipinfo = xyes
; then
10664 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10669 # --------------------------------------------------------
10670 # Build, host, and target specific configuration fragments
10671 # --------------------------------------------------------
10673 # Collect build-machine-specific information.
10674 .
${srcdir}/config.build
10676 # Collect host-machine-specific information.
10677 .
${srcdir}/config.
host
10681 # Collect target-machine-specific information.
10682 .
${srcdir}/config.gcc
10684 extra_objs
="${host_extra_objs} ${extra_objs}"
10685 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10687 # Default the target-machine variables that were not explicitly set.
10688 if test x
"$tm_file" = x
10689 then tm_file
=$cpu_type/$cpu_type.h
; fi
10691 if test x
"$extra_headers" = x
10692 then extra_headers
=; fi
10694 if test x
$md_file = x
10695 then md_file
=$cpu_type/$cpu_type.md
; fi
10697 if test x
$out_file = x
10698 then out_file
=$cpu_type/$cpu_type.c
; fi
10700 if test x
"$tmake_file" = x
10701 then tmake_file
=$cpu_type/t-
$cpu_type
10704 if test x
"$dwarf2" = xyes
10705 then tm_file
="$tm_file tm-dwarf2.h"
10708 # Say what files are being used for the output code and MD file.
10709 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10710 echo "Using \`$srcdir/config/$md_file' as machine description file."
10712 # If any of the xm_file variables contain nonexistent files, warn
10713 # about them and drop them.
10716 for x
in $build_xm_file; do
10717 if test -f $srcdir/config
/$x
10719 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10720 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10723 build_xm_file
="$bx"
10726 for x
in $host_xm_file; do
10727 if test -f $srcdir/config
/$x
10729 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10730 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10736 for x
in $xm_file; do
10737 if test -f $srcdir/config
/$x
10739 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10740 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10746 for f
in $tm_file; do
10749 if test $count = ax
; then
10750 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10752 echo "Using the following target machine macro files:"
10753 for f
in $tm_file; do
10754 echo " $srcdir/config/$f"
10758 if test x
$need_64bit_hwint = xyes
; then
10760 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10764 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10766 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10771 for f
in $host_xm_file; do
10774 if test $count = a
; then
10776 elif test $count = ax
; then
10777 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10779 echo "Using the following host machine macro files:"
10780 for f
in $host_xm_file; do
10781 echo " $srcdir/config/$f"
10784 echo "Using ${out_host_hook_obj} for host machine hooks."
10786 if test "$host_xm_file" != "$build_xm_file"; then
10788 for f
in $build_xm_file; do
10791 if test $count = a
; then
10793 elif test $count = ax
; then
10794 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10796 echo "Using the following build machine macro files:"
10797 for f
in $build_xm_file; do
10798 echo " $srcdir/config/$f"
10804 powerpc
*-*-darwin*)
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10806 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10807 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 #include <sys/cdefs.h>
10814 #include <sys/signal.h>
10815 #include <ucontext.h>
10816 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10819 if ac_fn_c_try_compile
"$LINENO"; then :
10820 gcc_cv_mcontext_underscores
=no
10822 gcc_cv_mcontext_underscores
=yes
10824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10827 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10828 if test $gcc_cv_mcontext_underscores = yes; then
10830 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10840 # Check if a valid thread package
10841 case ${enable_threads} in
10844 target_thread_file
='single'
10848 target_thread_file
='single'
10850 aix | dce | gnat | irix | posix | posix95 | rtems | \
10851 single | vxworks | win32 | mipssde
)
10852 target_thread_file
=${enable_threads}
10855 echo "${enable_threads} is an unknown thread package" 1>&2
10860 if test x
${thread_file} = x
; then
10861 # No thread file set by target-specific clauses in config.gcc,
10862 # so use file chosen by default logic above
10863 thread_file
=${target_thread_file}
10866 # Make gthr-default.h if we have a thread file.
10868 if test $thread_file != single
; then
10869 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10870 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10871 rm -f gthr-default.h-t
10873 mv -f gthr-default.h-t gthr-default.h
10875 gthread_flags
=-DHAVE_GTHR_DEFAULT
10884 if test x
$enable___cxa_atexit = xyes || \
10885 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10886 if test x
$host = x
$target; then
10888 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10889 # keyed to flag_use_cxa_atexit
10894 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10895 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10898 echo "__cxa_atexit can't be enabled on this target"
10904 # We can't check for __cxa_atexit when building a cross, so assume
10908 if test x
$use_cxa_atexit = xyes
; then
10910 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10915 # Look for a file containing extra machine modes.
10916 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10917 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10920 cat >>confdefs.h
<<_ACEOF
10921 #define EXTRA_MODES_FILE "config/$extra_modes"
10926 # Convert extra_options into a form suitable for Makefile use.
10929 for f
in $extra_options; do
10930 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10931 all_opt_files
="$all_opt_files $srcdir/config/$f"
10935 # auto-host.h is the file containing items generated by autoconf and is
10936 # the first file included by config.h.
10937 # If host=build, it is correct to have bconfig include auto-host.h
10938 # as well. If host!=build, we are in error and need to do more
10939 # work to find out the build config parameters.
10940 if test x
$host = x
$build
10942 build_auto
=auto-host.h
10944 # We create a subdir, then run autoconf in the subdir.
10945 # To prevent recursion we set host and build for the new
10946 # invocation of configure to the build for this invocation
10953 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10954 *) realsrcdir
=..
/${srcdir};;
10956 saved_CFLAGS
="${CFLAGS}"
10957 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10958 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10959 ${realsrcdir}/configure \
10960 --enable-languages=${enable_languages-all} \
10961 --target=$target_alias --host=$build_alias --build=$build_alias
10962 CFLAGS
="${saved_CFLAGS}"
10964 # We just finished tests for the build machine, so rename
10965 # the file auto-build.h in the gcc directory.
10966 mv auto-host.h ..
/auto-build.h
10969 build_auto
=auto-build.h
10973 tm_file
="${tm_file} defaults.h"
10974 tm_p_file
="${tm_p_file} tm-preds.h"
10975 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10976 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10977 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10978 # put this back in temporarily.
10979 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10985 # Compile in configure arguments.
10986 if test -f configargs.h
; then
10987 # Being re-configured.
10988 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10989 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10991 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10994 # Double all backslashes and backslash all quotes to turn
10995 # gcc_config_arguments into a C string.
10996 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10997 $gcc_config_arguments
10999 gcc_config_arguments_str
=`cat conftest.out`
11002 cat > configargs.h
<<EOF
11003 /* Generated automatically. */
11004 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11005 static const char thread_model[] = "$thread_file";
11007 static const struct {
11008 const char *name, *value;
11009 } configure_default_options[] = $configure_default_options;
11012 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11013 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11014 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11015 if test -f $srcdir/REVISION
; then
11016 gcc_REVISION
=`cat $srcdir/REVISION`
11020 cat > plugin-version.h
<<EOF
11021 #include "configargs.h"
11023 static char basever[] = "$gcc_BASEVER";
11024 static char datestamp[] = "$gcc_DATESTAMP";
11025 static char devphase[] = "$gcc_DEVPHASE";
11026 static char revision[] = "$gcc_REVISION";
11028 /* FIXME plugins: We should make the version information more precise.
11029 One way to do is to add a checksum. */
11031 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11032 devphase, revision,
11033 configuration_arguments};
11036 # Internationalization
11037 # If we haven't got the data from the intl directory,
11038 # assume NLS is disabled.
11047 if test -f ..
/intl
/config.intl
; then
11048 . ..
/intl
/config.intl
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11051 $as_echo_n "checking whether NLS is requested... " >&6; }
11052 if test x
"$USE_NLS" != xyes
; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; }
11059 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11063 $as_echo_n "checking for catalogs to be installed... " >&6; }
11064 # Look for .po and .gmo files in the source directory.
11067 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11068 # If there aren't any .gmo files the shell will give us the
11069 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11071 case "$cat" in *\
**)
11074 # The quadruple backslash is collapsed to a double backslash
11075 # by the backticks, then collapsed again by the double quotes,
11076 # leaving us with one backslash in the sed expression (right
11077 # before the dot that mustn't act as a wildcard).
11078 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11079 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11080 # The user is allowed to set LINGUAS to a list of languages to
11081 # install catalogs for. If it's empty that means "all of them."
11082 if test "x$LINGUAS" = x
; then
11083 CATALOGS
="$CATALOGS $cat"
11084 XLINGUAS
="$XLINGUAS $lang"
11086 case "$LINGUAS" in *$lang*)
11087 CATALOGS
="$CATALOGS $cat"
11088 XLINGUAS
="$XLINGUAS $lang"
11093 LINGUAS
="$XLINGUAS"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11095 $as_echo "$LINGUAS" >&6; }
11108 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11109 # -liconv on the link line twice.
11110 case "$LIBINTL" in *$LIBICONV*)
11114 # Check whether --enable-secureplt was given.
11115 if test "${enable_secureplt+set}" = set; then :
11116 enableval
=$enable_secureplt;
11120 # Check whether --enable-leading-mingw64-underscores was given.
11121 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11122 enableval
=$enable_leading_mingw64_underscores;
11125 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11127 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11131 # Check whether --enable-cld was given.
11132 if test "${enable_cld+set}" = set; then :
11133 enableval
=$enable_cld;
11139 # Check whether --enable-frame-pointer was given.
11140 if test "${enable_frame_pointer+set}" = set; then :
11141 enableval
=$enable_frame_pointer;
11145 linux
* | darwin
[8912]*)
11146 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11148 enable_frame_pointer
=no
11151 enable_frame_pointer
=yes
11158 # Windows32 Registry support for specifying GCC installation paths.
11159 # Check whether --enable-win32-registry was given.
11160 if test "${enable_win32_registry+set}" = set; then :
11161 enableval
=$enable_win32_registry;
11166 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11167 if test "x$enable_win32_registry" != xno
; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11169 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11170 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11173 ac_func_search_save_LIBS
=$LIBS
11174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11183 char RegOpenKeyExA ();
11187 return RegOpenKeyExA ();
11192 for ac_lib
in '' advapi32
; do
11193 if test -z "$ac_lib"; then
11194 ac_res
="none required"
11197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11199 if ac_fn_c_try_link
"$LINENO"; then :
11200 ac_cv_search_RegOpenKeyExA
=$ac_res
11202 rm -f core conftest.err conftest.
$ac_objext \
11204 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11208 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11211 ac_cv_search_RegOpenKeyExA
=no
11213 rm conftest.
$ac_ext
11214 LIBS
=$ac_func_search_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11217 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11218 ac_res
=$ac_cv_search_RegOpenKeyExA
11219 if test "$ac_res" != no
; then :
11220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11223 enable_win32_registry
=no
11228 if test "x$enable_win32_registry" != xno
; then
11230 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11233 if test "x$enable_win32_registry" != xyes \
11234 && test "x$enable_win32_registry" != x
; then
11236 cat >>confdefs.h
<<_ACEOF
11237 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11245 # Get an absolute path to the GCC top-level source directory
11246 holddir
=`${PWDCMD-pwd}`
11248 topdir
=`${PWDCMD-pwd}`
11251 # Conditionalize the makefile for this host machine.
11253 for f
in ${host_xmake_file}
11255 if test -f ${srcdir}/config
/$f
11257 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11261 # Conditionalize the makefile for this target machine.
11263 for f
in ${tmake_file}
11265 if test -f ${srcdir}/config
/$f
11267 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11270 tmake_file
="${tmake_file_}"
11272 out_object_file
=`basename $out_file .c`.o
11274 tm_file_list
="options.h"
11275 tm_include_list
="options.h insn-constants.h"
11276 for f
in $tm_file; do
11279 f
=`echo $f | sed 's/^..//'`
11280 tm_file_list
="${tm_file_list} $f"
11281 tm_include_list
="${tm_include_list} $f"
11284 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11285 tm_include_list
="${tm_include_list} $f"
11288 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11289 tm_include_list
="${tm_include_list} config/$f"
11296 for f
in $tm_p_file; do
11299 tm_p_file_list
="${tm_p_file_list} $f"
11300 tm_p_include_list
="${tm_p_include_list} $f"
11303 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11304 tm_p_include_list
="${tm_p_include_list} config/$f"
11310 for f
in $xm_file; do
11313 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11314 xm_include_list
="${xm_include_list} $f"
11317 xm_file_list
="${xm_file_list} $f"
11318 xm_include_list
="${xm_include_list} $f"
11321 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11322 xm_include_list
="${xm_include_list} config/$f"
11328 host_xm_include_list
=
11329 for f
in $host_xm_file; do
11332 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11333 host_xm_include_list
="${host_xm_include_list} $f"
11336 host_xm_file_list
="${host_xm_file_list} $f"
11337 host_xm_include_list
="${host_xm_include_list} $f"
11340 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11341 host_xm_include_list
="${host_xm_include_list} config/$f"
11346 build_xm_file_list
=
11347 for f
in $build_xm_file; do
11350 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11351 build_xm_include_list
="${build_xm_include_list} $f"
11353 auto-build.h | auto-host.h
)
11354 build_xm_file_list
="${build_xm_file_list} $f"
11355 build_xm_include_list
="${build_xm_include_list} $f"
11358 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11359 build_xm_include_list
="${build_xm_include_list} config/$f"
11364 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11365 # cross-compiler which does not use the native headers and libraries.
11366 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11369 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11371 if test "x$with_build_sysroot" != x
; then
11372 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11374 # This value is used, even on a native system, because
11375 # CROSS_SYSTEM_HEADER_DIR is just
11376 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11377 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11380 if test x
$host != x
$target
11382 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11384 SYSTEM_HEADER_DIR
=$build_system_header_dir
11385 case "$host","$target" in
11386 # Darwin crosses can use the host system's libraries and headers,
11387 # because of the fat library support. Of course, it must be the
11388 # same version of Darwin on both sides. Allow the user to
11389 # just say --target=foo-darwin without a version number to mean
11390 # "the version on this system".
11391 *-*-darwin*,*-*-darwin*)
11392 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11393 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11394 if test $hostos = $targetos -o $targetos = darwin
; then
11396 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11401 i?
86-*-*,x86_64-
*-* \
11402 | powerpc
*-*-*,powerpc64
*-*-*)
11403 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11408 if test "x$with_headers" = x
; then
11415 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11416 SYSTEM_HEADER_DIR
=$build_system_header_dir
11419 # If this is a cross-compiler that does not
11420 # have its own set of headers then define
11423 # If this is using newlib, without having the headers available now,
11424 # then define inhibit_libc in LIBGCC2_CFLAGS.
11425 # This prevents libgcc2 from containing any code which requires libc
11427 : ${inhibit_libc=false}
11428 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11429 test x
$with_newlib = xyes
; } &&
11430 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11435 # When building gcc with a cross-compiler, we need to adjust things so
11436 # that the generator programs are still built with the native compiler.
11437 # Also, we cannot run fixincludes.
11439 # These are the normal (build=host) settings:
11440 CC_FOR_BUILD
='$(CC)'
11441 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11442 BUILD_LDFLAGS
='$(LDFLAGS)'
11443 STMP_FIXINC
=stmp-fixinc
11445 # And these apply if build != host, or we are generating coverage data
11446 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11448 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11449 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11452 # Expand extra_headers to include complete path.
11453 # This substitutes for lots of t-* files.
11454 extra_headers_list
=
11455 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11456 for file in ${extra_headers} ; do
11457 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11460 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11461 if test x
"$use_gcc_tgmath" = xyes
11462 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11465 # Define collect2 in Makefile.
11466 case $host_can_use_collect2 in
11468 *) collect2
='collect2$(exeext)' ;;
11472 # Add a definition of USE_COLLECT2 if system wants one.
11473 case $use_collect2 in
11474 no
) use_collect2
= ;;
11477 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11478 xm_defines
="${xm_defines} USE_COLLECT2"
11479 case $host_can_use_collect2 in
11481 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11488 cat >>confdefs.h
<<_ACEOF
11489 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11493 # ---------------------------
11494 # Assembler & linker features
11495 # ---------------------------
11497 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11498 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11499 # However when ld-new is first executed from the build tree, libtool will
11500 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11501 # to the build tree. While doing this we need to use the previous-stage
11502 # linker, or we have an infinite loop. The presence of a shell script as
11503 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11504 # the gcc/collect-ld script. So we need to know how libtool works, or
11505 # exec-tool will fail.
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11511 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11516 macro_version
='2.2.7a'
11517 macro_revision
='1.3134'
11531 ltmain
="$ac_aux_dir/ltmain.sh"
11533 # Backslashify metacharacters that are still active within
11534 # double-quoted strings.
11535 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11537 # Same as above, but do not quote variable references.
11538 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11540 # Sed substitution to delay expansion of an escaped shell variable in a
11541 # double_quote_subst'ed string.
11542 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11544 # Sed substitution to delay expansion of an escaped single quote.
11545 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11547 # Sed substitution to avoid accidental globbing in evaled expressions
11548 no_glob_subst
='s/\*/\\\*/g'
11550 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11552 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11555 $as_echo_n "checking how to print strings... " >&6; }
11556 # Test print first, because it will be a builtin if present.
11557 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11558 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11560 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11563 # Use this function as a fallback that always works.
11564 func_fallback_echo ()
11566 eval 'cat <<_LTECHO_EOF
11570 ECHO='func_fallback_echo
'
11573 # func_echo_all arg...
11574 # Invoke $ECHO with all args, space-separated.
11581 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11582 $as_echo "printf" >&6; } ;;
11583 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11584 $as_echo "print -r" >&6; } ;;
11585 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11586 $as_echo "cat" >&6; } ;;
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11603 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11604 if test "${ac_cv_path_SED+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11608 for ac_i in 1 2 3 4 5 6 7; do
11609 ac_script="$ac_script$as_nl$ac_script"
11611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11612 { ac_script=; unset ac_script;}
11613 if test -z "$SED"; then
11614 ac_path_SED_found=false
11615 # Loop through the user's path and
test for each of PROGNAME-LIST
11616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11617 for as_dir
in $PATH
11620 test -z "$as_dir" && as_dir
=.
11621 for ac_prog
in sed gsed
; do
11622 for ac_exec_ext
in '' $ac_executable_extensions; do
11623 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11624 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11625 # Check for GNU ac_path_SED and select it if it is found.
11626 # Check for GNU $ac_path_SED
11627 case `"$ac_path_SED" --version 2>&1` in
11629 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11632 $as_echo_n 0123456789 >"conftest.in"
11635 cat "conftest.in" "conftest.in" >"conftest.tmp"
11636 mv "conftest.tmp" "conftest.in"
11637 cp "conftest.in" "conftest.nl"
11638 $as_echo '' >> "conftest.nl"
11639 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11640 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11641 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11642 if test $ac_count -gt ${ac_path_SED_max-0}; then
11643 # Best one so far, save it but keep looking for a better one
11644 ac_cv_path_SED
="$ac_path_SED"
11645 ac_path_SED_max
=$ac_count
11647 # 10*(2^10) chars as input seems more than enough
11648 test $ac_count -gt 10 && break
11650 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11653 $ac_path_SED_found && break 3
11658 if test -z "$ac_cv_path_SED"; then
11659 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11662 ac_cv_path_SED
=$SED
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11667 $as_echo "$ac_cv_path_SED" >&6; }
11668 SED
="$ac_cv_path_SED"
11671 test -z "$SED" && SED
=sed
11672 Xsed
="$SED -e 1s/^X//"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11685 $as_echo_n "checking for fgrep... " >&6; }
11686 if test "${ac_cv_path_FGREP+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11689 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11690 then ac_cv_path_FGREP
="$GREP -F"
11692 if test -z "$FGREP"; then
11693 ac_path_FGREP_found
=false
11694 # Loop through the user's path and test for each of PROGNAME-LIST
11695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11696 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11699 test -z "$as_dir" && as_dir
=.
11700 for ac_prog
in fgrep
; do
11701 for ac_exec_ext
in '' $ac_executable_extensions; do
11702 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11703 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11704 # Check for GNU ac_path_FGREP and select it if it is found.
11705 # Check for GNU $ac_path_FGREP
11706 case `"$ac_path_FGREP" --version 2>&1` in
11708 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11711 $as_echo_n 0123456789 >"conftest.in"
11714 cat "conftest.in" "conftest.in" >"conftest.tmp"
11715 mv "conftest.tmp" "conftest.in"
11716 cp "conftest.in" "conftest.nl"
11717 $as_echo 'FGREP' >> "conftest.nl"
11718 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11719 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11720 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11721 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11722 # Best one so far, save it but keep looking for a better one
11723 ac_cv_path_FGREP
="$ac_path_FGREP"
11724 ac_path_FGREP_max
=$ac_count
11726 # 10*(2^10) chars as input seems more than enough
11727 test $ac_count -gt 10 && break
11729 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11732 $ac_path_FGREP_found && break 3
11737 if test -z "$ac_cv_path_FGREP"; then
11738 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11741 ac_cv_path_FGREP
=$FGREP
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11747 $as_echo "$ac_cv_path_FGREP" >&6; }
11748 FGREP
="$ac_cv_path_FGREP"
11751 test -z "$GREP" && GREP
=grep
11771 # Check whether --with-gnu-ld was given.
11772 if test "${with_gnu_ld+set}" = set; then :
11773 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11779 if test "$GCC" = yes; then
11780 # Check if gcc -print-prog-name=ld gives a path.
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11782 $as_echo_n "checking for ld used by $CC... " >&6; }
11785 # gcc leaves a trailing carriage return which upsets mingw
11786 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11788 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11791 # Accept absolute paths.
11793 re_direlt
='/[^/][^/]*/\.\./'
11794 # Canonicalize the pathname of ld
11795 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11796 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11797 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11799 test -z "$LD" && LD
="$ac_prog"
11802 # If it fails, then pretend we aren't using GCC.
11806 # If it is relative, then search for the first ld in PATH.
11807 with_gnu_ld
=unknown
11810 elif test "$with_gnu_ld" = yes; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11812 $as_echo_n "checking for GNU ld... " >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11815 $as_echo_n "checking for non-GNU ld... " >&6; }
11817 if test "${lt_cv_path_LD+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11820 if test -z "$LD"; then
11821 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11822 for ac_dir
in $PATH; do
11824 test -z "$ac_dir" && ac_dir
=.
11825 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11826 lt_cv_path_LD
="$ac_dir/$ac_prog"
11827 # Check to see if the program is GNU ld. I'd rather use --version,
11828 # but apparently some variants of GNU ld only accept -v.
11829 # Break only if it was the GNU/non-GNU ld that we prefer.
11830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11831 *GNU
* |
*'with BFD'*)
11832 test "$with_gnu_ld" != no
&& break
11835 test "$with_gnu_ld" != yes && break
11842 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11846 LD
="$lt_cv_path_LD"
11847 if test -n "$LD"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11849 $as_echo "$LD" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11854 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11857 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11861 case `$LD -v 2>&1 </dev/null` in
11862 *GNU
* |
*'with BFD'*)
11863 lt_cv_prog_gnu_ld
=yes
11866 lt_cv_prog_gnu_ld
=no
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11871 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11872 with_gnu_ld
=$lt_cv_prog_gnu_ld
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11883 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11884 if test "${lt_cv_path_NM+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 if test -n "$NM"; then
11888 # Let the user override the test.
11889 lt_cv_path_NM
="$NM"
11891 lt_nm_to_check
="${ac_tool_prefix}nm"
11892 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11893 lt_nm_to_check
="$lt_nm_to_check nm"
11895 for lt_tmp_nm
in $lt_nm_to_check; do
11896 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11897 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11899 test -z "$ac_dir" && ac_dir
=.
11900 tmp_nm
="$ac_dir/$lt_tmp_nm"
11901 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11902 # Check to see if the nm accepts a BSD-compat flag.
11903 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11904 # nm: unknown option "B" ignored
11905 # Tru64's nm complains that /dev/null is an invalid object file
11906 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11907 */dev
/null
* |
*'Invalid file or object type'*)
11908 lt_cv_path_NM
="$tmp_nm -B"
11912 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11914 lt_cv_path_NM
="$tmp_nm -p"
11918 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11919 continue # so that we can try to find one that supports BSD flags
11928 : ${lt_cv_path_NM=no}
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11932 $as_echo "$lt_cv_path_NM" >&6; }
11933 if test "$lt_cv_path_NM" != "no"; then
11934 NM
="$lt_cv_path_NM"
11936 # Didn't find any BSD compatible name lister, look for dumpbin.
11937 if test -n "$DUMPBIN"; then :
11938 # Let the user override the test.
11940 if test -n "$ac_tool_prefix"; then
11941 for ac_prog
in dumpbin
"link -dump"
11943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11944 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11950 if test -n "$DUMPBIN"; then
11951 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11954 for as_dir
in $PATH
11957 test -z "$as_dir" && as_dir
=.
11958 for ac_exec_ext
in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11960 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 DUMPBIN
=$ac_cv_prog_DUMPBIN
11971 if test -n "$DUMPBIN"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11973 $as_echo "$DUMPBIN" >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11980 test -n "$DUMPBIN" && break
11983 if test -z "$DUMPBIN"; then
11984 ac_ct_DUMPBIN
=$DUMPBIN
11985 for ac_prog
in dumpbin
"link -dump"
11987 # Extract the first word of "$ac_prog", so it can be a program name with args.
11988 set dummy
$ac_prog; ac_word
=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11994 if test -n "$ac_ct_DUMPBIN"; then
11995 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11998 for as_dir
in $PATH
12001 test -z "$as_dir" && as_dir
=.
12002 for ac_exec_ext
in '' $ac_executable_extensions; do
12003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12004 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12015 if test -n "$ac_ct_DUMPBIN"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12017 $as_echo "$ac_ct_DUMPBIN" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12024 test -n "$ac_ct_DUMPBIN" && break
12027 if test "x$ac_ct_DUMPBIN" = x
; then
12030 case $cross_compiling:$ac_tool_warned in
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12034 ac_tool_warned
=yes ;;
12036 DUMPBIN
=$ac_ct_DUMPBIN
12040 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12042 DUMPBIN
="$DUMPBIN -symbols"
12050 if test "$DUMPBIN" != ":"; then
12054 test -z "$NM" && NM
=nm
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12062 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12063 if test "${lt_cv_nm_interface+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12066 lt_cv_nm_interface
="BSD nm"
12067 echo "int some_variable = 0;" > conftest.
$ac_ext
12068 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12069 (eval "$ac_compile" 2>conftest.err
)
12070 cat conftest.err
>&5
12071 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12072 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12073 cat conftest.err
>&5
12074 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12075 cat conftest.out
>&5
12076 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12077 lt_cv_nm_interface
="MS dumpbin"
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12082 $as_echo "$lt_cv_nm_interface" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12085 $as_echo_n "checking whether ln -s works... " >&6; }
12087 if test "$LN_S" = "ln -s"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; }
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12092 $as_echo "no, using $LN_S" >&6; }
12095 # find the maximum length of command line arguments
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12097 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12098 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12106 # On DJGPP, this test can blow up pretty badly due to problems in libc
12107 # (any single argument exceeding 2000 bytes causes a buffer overrun
12108 # during glob expansion). Even if it were fixed, the result of this
12109 # check would be larger than it should be.
12110 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12114 # Under GNU Hurd, this test is not required because there is
12115 # no limit to the length of command line arguments.
12116 # Libtool will interpret -1 as no limit whatsoever
12117 lt_cv_sys_max_cmd_len
=-1;
12120 cygwin
* | mingw
* | cegcc
*)
12121 # On Win9x/ME, this test blows up -- it succeeds, but takes
12122 # about 5 minutes as the teststring grows exponentially.
12123 # Worse, since 9x/ME are not pre-emptively multitasking,
12124 # you end up with a "frozen" computer, even though with patience
12125 # the test eventually succeeds (with a max line length of 256k).
12126 # Instead, let's just punt: use the minimum linelength reported by
12127 # all of the supported platforms: 8192 (on NT/2K/XP).
12128 lt_cv_sys_max_cmd_len
=8192;
12132 # On MiNT this can take a long time and run out of memory.
12133 lt_cv_sys_max_cmd_len
=8192;
12137 # On AmigaOS with pdksh, this test takes hours, literally.
12138 # So we just punt and use a minimum line length of 8192.
12139 lt_cv_sys_max_cmd_len
=8192;
12142 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12143 # This has been around since 386BSD, at least. Likely further.
12144 if test -x /sbin
/sysctl
; then
12145 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12146 elif test -x /usr
/sbin
/sysctl
; then
12147 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12149 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12151 # And add a safety zone
12152 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12153 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12157 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12158 lt_cv_sys_max_cmd_len
=196608
12162 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12163 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12164 # nice to cause kernel panics so lets avoid the loop below.
12165 # First set a reasonable default.
12166 lt_cv_sys_max_cmd_len
=16384
12168 if test -x /sbin
/sysconfig
; then
12169 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12170 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12175 lt_cv_sys_max_cmd_len
=102400
12177 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12178 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12179 if test -n "$kargmax"; then
12180 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12182 lt_cv_sys_max_cmd_len
=32768
12186 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12187 if test -n "$lt_cv_sys_max_cmd_len"; then
12188 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12189 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12191 # Make teststring a little bigger before we do anything with it.
12192 # a 1K string should be a reasonable start.
12193 for i
in 1 2 3 4 5 6 7 8 ; do
12194 teststring
=$teststring$teststring
12196 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12197 # If test is not a shell built-in, we'll probably end up computing a
12198 # maximum length that is only half of the actual maximum length, but
12200 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12201 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12202 test $i != 17 # 1/2 MB should be enough
12205 teststring
=$teststring$teststring
12207 # Only check the string length outside the loop.
12208 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12210 # Add a significant safety factor because C++ compilers can tack on
12211 # massive amounts of additional arguments before passing them to the
12212 # linker. It appears as though 1/2 is a usable value.
12213 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12220 if test -n $lt_cv_sys_max_cmd_len ; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12222 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12225 $as_echo "none" >&6; }
12227 max_cmd_len
=$lt_cv_sys_max_cmd_len
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12239 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12240 # Try some XSI features
12242 ( _lt_dummy
="a/b/c"
12243 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12245 && eval 'test $(( 1 + 1 )) -eq 2 \
12246 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12249 $as_echo "$xsi_shell" >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12253 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12255 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12257 && lt_shell_append=yes
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12259 $as_echo "$lt_shell_append" >&6; }
12262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12272 # test EBCDIC or ASCII
12273 case `echo X|tr X '\101'` in
12274 A) # ASCII based system
12275 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12276 lt_SP2NL='tr \040 \012'
12277 lt_NL2SP='tr \015\012 \040\040'
12279 *) # EBCDIC based system
12280 lt_SP2NL='tr \100 \n'
12281 lt_NL2SP='tr \r\n \100\100'
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12294 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12295 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12296 $as_echo_n "(cached
) " >&6
12298 lt_cv_ld_reload_flag='-r'
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12301 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12302 reload_flag=$lt_cv_ld_reload_flag
12303 case $reload_flag in
12305 *) reload_flag=" $reload_flag" ;;
12307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12310 if test "$GCC" = yes; then
12311 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12326 if test -n "$ac_tool_prefix"; then
12327 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12328 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12330 $as_echo_n "checking
for $ac_word...
" >&6; }
12331 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12332 $as_echo_n "(cached
) " >&6
12334 if test -n "$OBJDUMP"; then
12335 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12354 OBJDUMP=$ac_cv_prog_OBJDUMP
12355 if test -n "$OBJDUMP"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12357 $as_echo "$OBJDUMP" >&6; }
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12360 $as_echo "no
" >&6; }
12365 if test -z "$ac_cv_prog_OBJDUMP"; then
12366 ac_ct_OBJDUMP=$OBJDUMP
12367 # Extract the first word of "objdump
", so it can be a program name with args.
12368 set dummy objdump; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12370 $as_echo_n "checking
for $ac_word...
" >&6; }
12371 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12372 $as_echo_n "(cached
) " >&6
12374 if test -n "$ac_ct_OBJDUMP"; then
12375 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12394 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12395 if test -n "$ac_ct_OBJDUMP"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12397 $as_echo "$ac_ct_OBJDUMP" >&6; }
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12400 $as_echo "no
" >&6; }
12403 if test "x
$ac_ct_OBJDUMP" = x; then
12406 case $cross_compiling:$ac_tool_warned in
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12409 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12410 ac_tool_warned=yes ;;
12412 OBJDUMP=$ac_ct_OBJDUMP
12415 OBJDUMP="$ac_cv_prog_OBJDUMP"
12418 test -z "$OBJDUMP" && OBJDUMP=objdump
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12429 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12430 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12431 $as_echo_n "(cached
) " >&6
12433 lt_cv_file_magic_cmd='$MAGIC_CMD'
12434 lt_cv_file_magic_test_file=
12435 lt_cv_deplibs_check_method='unknown'
12436 # Need to set the preceding variable on all platforms that support
12437 # interlibrary dependencies.
12438 # 'none' -- dependencies not supported.
12439 # `unknown' -- same as none, but documents that we really don't know.
12440 # 'pass_all' -- all dependencies passed with no checks.
12441 # 'test_compile' -- check by making test program.
12442 # 'file_magic [[regex]]' -- check by looking for files in library path
12443 # which responds to the $file_magic_cmd with a given extended regex.
12444 # If you have `file' or equivalent on your system and you're not sure
12445 # whether `pass_all' will *always* work, you probably want this one.
12449 lt_cv_deplibs_check_method=pass_all
12453 lt_cv_deplibs_check_method=pass_all
12457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12458 lt_cv_file_magic_cmd='/usr/bin/file -L'
12459 lt_cv_file_magic_test_file=/shlib/libc.so
12463 # func_win32_libid is a shell function defined in ltmain.sh
12464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12465 lt_cv_file_magic_cmd='func_win32_libid'
12469 # Base MSYS/MinGW do not provide the 'file' command needed by
12470 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12471 # unless we find 'file', for example because we are cross-compiling.
12472 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12473 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12475 lt_cv_file_magic_cmd='func_win32_libid'
12477 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12478 lt_cv_file_magic_cmd='$OBJDUMP -f'
12483 # use the weaker test based on 'objdump'. See mingw*.
12484 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12485 lt_cv_file_magic_cmd='$OBJDUMP -f'
12488 darwin* | rhapsody*)
12489 lt_cv_deplibs_check_method=pass_all
12492 freebsd* | dragonfly*)
12493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12496 # Not sure whether the presence of OpenBSD here was a mistake.
12497 # Let's accept both of them until this is cleared up.
12498 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12499 lt_cv_file_magic_cmd=/usr/bin/file
12500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12504 lt_cv_deplibs_check_method=pass_all
12509 lt_cv_deplibs_check_method=pass_all
12513 lt_cv_deplibs_check_method=pass_all
12516 hpux10.20* | hpux11*)
12517 lt_cv_file_magic_cmd=/usr/bin/file
12520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12521 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12524 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]'
12525 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12529 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12535 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12539 irix5* | irix6* | nonstopux*)
12541 *-32|*"-32 ") libmagic=32-bit;;
12542 *-n32|*"-n32 ") libmagic=N32;;
12543 *-64|*"-64 ") libmagic=64-bit;;
12544 *) libmagic=never-match;;
12546 lt_cv_deplibs_check_method=pass_all
12549 # This must be Linux ELF.
12550 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12551 lt_cv_deplibs_check_method=pass_all
12555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12564 lt_cv_file_magic_cmd=/usr/bin/file
12565 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12569 lt_cv_deplibs_check_method=pass_all
12573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12580 osf3* | osf4* | osf5*)
12581 lt_cv_deplibs_check_method=pass_all
12585 lt_cv_deplibs_check_method=pass_all
12589 lt_cv_deplibs_check_method=pass_all
12592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593 lt_cv_deplibs_check_method=pass_all
12597 case $host_vendor in
12599 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]'
12600 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12603 lt_cv_deplibs_check_method=pass_all
12606 lt_cv_file_magic_cmd='/bin/file'
12607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12610 lt_cv_file_magic_cmd='/bin/file'
12611 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12612 lt_cv_file_magic_test_file=/lib/libc.so
12615 lt_cv_deplibs_check_method=pass_all
12618 lt_cv_deplibs_check_method=pass_all
12624 lt_cv_deplibs_check_method=pass_all
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12630 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12631 file_magic_cmd=$lt_cv_file_magic_cmd
12632 deplibs_check_method=$lt_cv_deplibs_check_method
12633 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12646 if test -n "$ac_tool_prefix"; then
12647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12648 set dummy ${ac_tool_prefix}ar; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12650 $as_echo_n "checking
for $ac_word...
" >&6; }
12651 if test "${ac_cv_prog_AR+set}" = set; then :
12652 $as_echo_n "(cached
) " >&6
12654 if test -n "$AR"; then
12655 ac_cv_prog_AR="$AR" # Let the user override the test.
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12664 ac_cv_prog_AR="${ac_tool_prefix}ar"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12675 if test -n "$AR"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12677 $as_echo "$AR" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12680 $as_echo "no
" >&6; }
12685 if test -z "$ac_cv_prog_AR"; then
12687 # Extract the first word of "ar", so it can be a program name with args.
12688 set dummy ar; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12690 $as_echo_n "checking
for $ac_word...
" >&6; }
12691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12692 $as_echo_n "(cached
) " >&6
12694 if test -n "$ac_ct_AR"; then
12695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_prog_ac_ct_AR="ar"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12714 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12715 if test -n "$ac_ct_AR"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12717 $as_echo "$ac_ct_AR" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12720 $as_echo "no
" >&6; }
12723 if test "x
$ac_ct_AR" = x; then
12726 case $cross_compiling:$ac_tool_warned in
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12729 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12730 ac_tool_warned=yes ;;
12735 AR="$ac_cv_prog_AR"
12738 test -z "$AR" && AR=ar
12739 test -z "$AR_FLAGS" && AR_FLAGS=cru
12751 if test -n "$ac_tool_prefix"; then
12752 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12753 set dummy ${ac_tool_prefix}strip; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12755 $as_echo_n "checking
for $ac_word...
" >&6; }
12756 if test "${ac_cv_prog_STRIP+set}" = set; then :
12757 $as_echo_n "(cached
) " >&6
12759 if test -n "$STRIP"; then
12760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12779 STRIP=$ac_cv_prog_STRIP
12780 if test -n "$STRIP"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12782 $as_echo "$STRIP" >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12785 $as_echo "no
" >&6; }
12790 if test -z "$ac_cv_prog_STRIP"; then
12792 # Extract the first word of "strip
", so it can be a program name with args.
12793 set dummy strip; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12795 $as_echo_n "checking
for $ac_word...
" >&6; }
12796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12797 $as_echo_n "(cached
) " >&6
12799 if test -n "$ac_ct_STRIP"; then
12800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12809 ac_cv_prog_ac_ct_STRIP="strip
"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12820 if test -n "$ac_ct_STRIP"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12822 $as_echo "$ac_ct_STRIP" >&6; }
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12825 $as_echo "no
" >&6; }
12828 if test "x
$ac_ct_STRIP" = x; then
12831 case $cross_compiling:$ac_tool_warned in
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12834 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12835 ac_tool_warned=yes ;;
12840 STRIP="$ac_cv_prog_STRIP"
12843 test -z "$STRIP" && STRIP=:
12850 if test -n "$ac_tool_prefix"; then
12851 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12854 $as_echo_n "checking
for $ac_word...
" >&6; }
12855 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12856 $as_echo_n "(cached
) " >&6
12858 if test -n "$RANLIB"; then
12859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12878 RANLIB=$ac_cv_prog_RANLIB
12879 if test -n "$RANLIB"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12881 $as_echo "$RANLIB" >&6; }
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12884 $as_echo "no
" >&6; }
12889 if test -z "$ac_cv_prog_RANLIB"; then
12890 ac_ct_RANLIB=$RANLIB
12891 # Extract the first word of "ranlib
", so it can be a program name with args.
12892 set dummy ranlib; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12894 $as_echo_n "checking
for $ac_word...
" >&6; }
12895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12896 $as_echo_n "(cached
) " >&6
12898 if test -n "$ac_ct_RANLIB"; then
12899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12919 if test -n "$ac_ct_RANLIB"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12921 $as_echo "$ac_ct_RANLIB" >&6; }
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12924 $as_echo "no
" >&6; }
12927 if test "x
$ac_ct_RANLIB" = x; then
12930 case $cross_compiling:$ac_tool_warned in
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12933 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12934 ac_tool_warned=yes ;;
12936 RANLIB=$ac_ct_RANLIB
12939 RANLIB="$ac_cv_prog_RANLIB"
12942 test -z "$RANLIB" && RANLIB=:
12949 # Determine commands to create old-style static archives.
12950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12951 old_postinstall_cmds='chmod 644 $oldlib'
12952 old_postuninstall_cmds=
12954 if test -n "$RANLIB"; then
12957 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12960 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12963 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12968 lock_old_archive_extraction=yes ;;
12970 lock_old_archive_extraction=no ;;
13011 # If no C compiler was specified, use CC.
13014 # If no C compiler flags were specified, use CFLAGS.
13015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13017 # Allow CC to be a program name with arguments.
13021 # Check for command to grab the raw symbol name followed by C symbol from nm.
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13023 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13024 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13025 $as_echo_n "(cached
) " >&6
13028 # These are sane defaults that work on at least a few old systems.
13029 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13031 # Character class describing NM global symbol codes.
13032 symcode='[BCDEGRST]'
13034 # Regexp to match symbols that can be accessed directly from C.
13035 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13037 # Define system-specific variables.
13042 cygwin* | mingw* | pw32* | cegcc*)
13043 symcode='[ABCDGISTW]'
13046 if test "$host_cpu" = ia64; then
13047 symcode='[ABCDEGRST]'
13050 irix* | nonstopux*)
13051 symcode='[BCDEGRST]'
13054 symcode='[BCDEGQRST]'
13065 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13073 # If we're using GNU nm, then use its standard symbol codes.
13074 case `$NM -V 2>&1` in
13075 *GNU* | *'with BFD'*)
13076 symcode='[ABCDGIRSTW]' ;;
13079 # Transform an extracted symbol line into a proper C declaration.
13080 # Some systems (esp. on ia64) link data and code symbols differently,
13081 # so use this general approach.
13082 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13084 # Transform an extracted symbol line into symbol name and symbol address
13085 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13086 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'"
13088 # Handle CRLF in mingw tool chain
13092 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13096 # Try without a prefix underscore, then with it.
13097 for ac_symprfx in "" "_
"; do
13099 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13100 symxfrm="\\1 $ac_symprfx\\2 \\2"
13102 # Write the raw and C identifiers.
13103 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13104 # Fake it for dumpbin and say T for any non-static function
13105 # and D for any global variable.
13106 # Also find C++ and __fastcall symbols from MSVC++,
13107 # which start with @ or ?.
13108 lt_cv_sys_global_symbol_pipe="$AWK '"\
13109 " {last_section=section; section=\$ 3};"\
13110 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13111 " \$ 0!~/External *\|/{next};"\
13112 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13113 " {if(hide[section]) next};"\
13114 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13115 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13116 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13117 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13118 " ' prfx
=^
$ac_symprfx"
13120 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13123 # Check to see that the pipe works correctly.
13127 cat > conftest.$ac_ext <<_LT_EOF
13132 void nm_test_func(void);
13133 void nm_test_func(void){}
13137 int main(){nm_test_var='a';nm_test_func();return(0);}
13140 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13141 (eval $ac_compile) 2>&5
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13144 test $ac_status = 0; }; then
13145 # Now try to grab the symbols.
13147 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13148 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13150 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13151 test $ac_status = 0; } && test -s "$nlist"; then
13152 # Try sorting and uniquifying the output.
13153 if sort "$nlist" | uniq > "$nlist"T; then
13154 mv -f "$nlist"T "$nlist"
13159 # Make sure that we snagged all the symbols we need.
13160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13162 cat <<_LT_EOF > conftest.$ac_ext
13168 # Now generate the symbol file.
13169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13171 cat <<_LT_EOF >> conftest.$ac_ext
13173 /* The mapping between symbol names and symbols. */
13178 lt__PROGRAM__LTX_preloaded_symbols[] =
13180 { "@PROGRAM@
", (void *) 0 },
13182 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13183 cat <<\_LT_EOF >> conftest.$ac_ext
13187 /* This works around a problem in FreeBSD linker */
13188 #ifdef FREEBSD_WORKAROUND
13189 static const void *lt_preloaded_setup() {
13190 return lt__PROGRAM__LTX_preloaded_symbols;
13198 # Now try linking the two files.
13199 mv conftest.$ac_objext conftstm.$ac_objext
13200 lt_save_LIBS="$LIBS"
13201 lt_save_CFLAGS="$CFLAGS"
13202 LIBS="conftstm.
$ac_objext"
13203 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13204 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13205 (eval $ac_link) 2>&5
13207 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13208 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13211 LIBS="$lt_save_LIBS"
13212 CFLAGS="$lt_save_CFLAGS"
13214 echo "cannot
find nm_test_func
in $nlist" >&5
13217 echo "cannot
find nm_test_var
in $nlist" >&5
13220 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13223 echo "$progname: failed program was
:" >&5
13224 cat conftest.$ac_ext >&5
13226 rm -rf conftest* conftst*
13228 # Do not use the global_symbol_pipe unless it works.
13229 if test "$pipe_works" = yes; then
13232 lt_cv_sys_global_symbol_pipe=
13238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13239 lt_cv_sys_global_symbol_to_cdecl=
13241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13243 $as_echo "failed
" >&6; }
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13246 $as_echo "ok
" >&6; }
13270 # Check whether --enable-libtool-lock was given.
13271 if test "${enable_libtool_lock+set}" = set; then :
13272 enableval=$enable_libtool_lock;
13275 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13277 # Some flags need to be propagated to the compiler or linker for good
13281 # Find out which ABI we are using.
13282 echo 'int i;' > conftest.$ac_ext
13283 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13284 (eval $ac_compile) 2>&5
13286 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13287 test $ac_status = 0; }; then
13288 case `/usr/bin/file conftest.$ac_objext` in
13290 HPUX_IA64_MODE="32"
13293 HPUX_IA64_MODE="64"
13300 # Find out which ABI we are using.
13301 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13302 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13303 (eval $ac_compile) 2>&5
13305 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13306 test $ac_status = 0; }; then
13307 if test "$lt_cv_prog_gnu_ld" = yes; then
13308 case `/usr/bin/file conftest.$ac_objext` in
13310 LD="${LD-ld} -melf32bsmip"
13313 LD="${LD-ld} -melf32bmipn32"
13316 LD="${LD-ld} -melf64bmip"
13320 case `/usr/bin/file conftest.$ac_objext` in
13336 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13337 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13338 # Find out which ABI we are using.
13339 echo 'int i;' > conftest.$ac_ext
13340 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13341 (eval $ac_compile) 2>&5
13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13344 test $ac_status = 0; }; then
13345 case `/usr/bin/file conftest.o` in
13348 x86_64-*kfreebsd*-gnu)
13349 LD="${LD-ld} -m elf_i386_fbsd
"
13352 LD="${LD-ld} -m elf_i386
"
13354 ppc64-*linux*|powerpc64-*linux*)
13355 LD="${LD-ld} -m elf32ppclinux
"
13358 LD="${LD-ld} -m elf_s390
"
13361 LD="${LD-ld} -m elf32_sparc
"
13367 x86_64-*kfreebsd*-gnu)
13368 LD="${LD-ld} -m elf_x86_64_fbsd
"
13371 LD="${LD-ld} -m elf_x86_64
"
13373 ppc*-*linux*|powerpc*-*linux*)
13374 LD="${LD-ld} -m elf64ppc
"
13376 s390*-*linux*|s390*-*tpf*)
13377 LD="${LD-ld} -m elf64_s390
"
13380 LD="${LD-ld} -m elf64_sparc
"
13390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13391 SAVE_CFLAGS="$CFLAGS"
13392 CFLAGS="$CFLAGS -belf"
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13394 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13395 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13396 $as_echo_n "(cached
) " >&6
13399 ac_cpp='$CPP $CPPFLAGS'
13400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 lt_cv_cc_needs_belf=yes
13418 lt_cv_cc_needs_belf=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13423 ac_cpp='$CPP $CPPFLAGS'
13424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13430 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13433 CFLAGS="$SAVE_CFLAGS"
13437 # Find out which ABI we are using.
13438 echo 'int i;' > conftest.$ac_ext
13439 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13440 (eval $ac_compile) 2>&5
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13443 test $ac_status = 0; }; then
13444 case `/usr/bin/file conftest.o` in
13446 case $lt_cv_prog_gnu_ld in
13447 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13449 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13461 need_locks="$enable_libtool_lock"
13465 rhapsody* | darwin*)
13466 if test -n "$ac_tool_prefix"; then
13467 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13468 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13470 $as_echo_n "checking
for $ac_word...
" >&6; }
13471 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13472 $as_echo_n "(cached
) " >&6
13474 if test -n "$DSYMUTIL"; then
13475 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13494 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13495 if test -n "$DSYMUTIL"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13497 $as_echo "$DSYMUTIL" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13500 $as_echo "no
" >&6; }
13505 if test -z "$ac_cv_prog_DSYMUTIL"; then
13506 ac_ct_DSYMUTIL=$DSYMUTIL
13507 # Extract the first word of "dsymutil
", so it can be a program name with args.
13508 set dummy dsymutil; ac_word=$2
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13510 $as_echo_n "checking
for $ac_word...
" >&6; }
13511 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13512 $as_echo_n "(cached
) " >&6
13514 if test -n "$ac_ct_DSYMUTIL"; then
13515 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13534 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13535 if test -n "$ac_ct_DSYMUTIL"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13537 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13540 $as_echo "no
" >&6; }
13543 if test "x
$ac_ct_DSYMUTIL" = x; then
13546 case $cross_compiling:$ac_tool_warned in
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13549 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13550 ac_tool_warned=yes ;;
13552 DSYMUTIL=$ac_ct_DSYMUTIL
13555 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13558 if test -n "$ac_tool_prefix"; then
13559 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13560 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13562 $as_echo_n "checking
for $ac_word...
" >&6; }
13563 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13564 $as_echo_n "(cached
) " >&6
13566 if test -n "$NMEDIT"; then
13567 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13586 NMEDIT=$ac_cv_prog_NMEDIT
13587 if test -n "$NMEDIT"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13589 $as_echo "$NMEDIT" >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13592 $as_echo "no
" >&6; }
13597 if test -z "$ac_cv_prog_NMEDIT"; then
13598 ac_ct_NMEDIT=$NMEDIT
13599 # Extract the first word of "nmedit
", so it can be a program name with args.
13600 set dummy nmedit; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13602 $as_echo_n "checking
for $ac_word...
" >&6; }
13603 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13604 $as_echo_n "(cached
) " >&6
13606 if test -n "$ac_ct_NMEDIT"; then
13607 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13626 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13627 if test -n "$ac_ct_NMEDIT"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13629 $as_echo "$ac_ct_NMEDIT" >&6; }
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13632 $as_echo "no
" >&6; }
13635 if test "x
$ac_ct_NMEDIT" = x; then
13638 case $cross_compiling:$ac_tool_warned in
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13641 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13642 ac_tool_warned=yes ;;
13644 NMEDIT=$ac_ct_NMEDIT
13647 NMEDIT="$ac_cv_prog_NMEDIT"
13650 if test -n "$ac_tool_prefix"; then
13651 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13652 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13654 $as_echo_n "checking
for $ac_word...
" >&6; }
13655 if test "${ac_cv_prog_LIPO+set}" = set; then :
13656 $as_echo_n "(cached
) " >&6
13658 if test -n "$LIPO"; then
13659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13668 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13678 LIPO=$ac_cv_prog_LIPO
13679 if test -n "$LIPO"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13681 $as_echo "$LIPO" >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13684 $as_echo "no
" >&6; }
13689 if test -z "$ac_cv_prog_LIPO"; then
13691 # Extract the first word of "lipo
", so it can be a program name with args.
13692 set dummy lipo; ac_word=$2
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13694 $as_echo_n "checking
for $ac_word...
" >&6; }
13695 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13696 $as_echo_n "(cached
) " >&6
13698 if test -n "$ac_ct_LIPO"; then
13699 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13708 ac_cv_prog_ac_ct_LIPO="lipo
"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13718 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13719 if test -n "$ac_ct_LIPO"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13721 $as_echo "$ac_ct_LIPO" >&6; }
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13724 $as_echo "no
" >&6; }
13727 if test "x
$ac_ct_LIPO" = x; then
13730 case $cross_compiling:$ac_tool_warned in
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13733 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13734 ac_tool_warned=yes ;;
13739 LIPO="$ac_cv_prog_LIPO"
13742 if test -n "$ac_tool_prefix"; then
13743 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13744 set dummy ${ac_tool_prefix}otool; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13746 $as_echo_n "checking
for $ac_word...
" >&6; }
13747 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13748 $as_echo_n "(cached
) " >&6
13750 if test -n "$OTOOL"; then
13751 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13770 OTOOL=$ac_cv_prog_OTOOL
13771 if test -n "$OTOOL"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13773 $as_echo "$OTOOL" >&6; }
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13776 $as_echo "no
" >&6; }
13781 if test -z "$ac_cv_prog_OTOOL"; then
13783 # Extract the first word of "otool
", so it can be a program name with args.
13784 set dummy otool; ac_word=$2
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13786 $as_echo_n "checking
for $ac_word...
" >&6; }
13787 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13788 $as_echo_n "(cached
) " >&6
13790 if test -n "$ac_ct_OTOOL"; then
13791 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13797 test -z "$as_dir" && as_dir=.
13798 for ac_exec_ext in '' $ac_executable_extensions; do
13799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13800 ac_cv_prog_ac_ct_OTOOL="otool
"
13801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13810 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13811 if test -n "$ac_ct_OTOOL"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13813 $as_echo "$ac_ct_OTOOL" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13816 $as_echo "no
" >&6; }
13819 if test "x
$ac_ct_OTOOL" = x; then
13822 case $cross_compiling:$ac_tool_warned in
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13825 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13826 ac_tool_warned=yes ;;
13831 OTOOL="$ac_cv_prog_OTOOL"
13834 if test -n "$ac_tool_prefix"; then
13835 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13836 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13838 $as_echo_n "checking
for $ac_word...
" >&6; }
13839 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13840 $as_echo_n "(cached
) " >&6
13842 if test -n "$OTOOL64"; then
13843 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13862 OTOOL64=$ac_cv_prog_OTOOL64
13863 if test -n "$OTOOL64"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13865 $as_echo "$OTOOL64" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13868 $as_echo "no
" >&6; }
13873 if test -z "$ac_cv_prog_OTOOL64"; then
13874 ac_ct_OTOOL64=$OTOOL64
13875 # Extract the first word of "otool64
", so it can be a program name with args.
13876 set dummy otool64; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13878 $as_echo_n "checking
for $ac_word...
" >&6; }
13879 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13880 $as_echo_n "(cached
) " >&6
13882 if test -n "$ac_ct_OTOOL64"; then
13883 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13892 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13902 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13903 if test -n "$ac_ct_OTOOL64"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13905 $as_echo "$ac_ct_OTOOL64" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13908 $as_echo "no
" >&6; }
13911 if test "x
$ac_ct_OTOOL64" = x; then
13914 case $cross_compiling:$ac_tool_warned in
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13917 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13918 ac_tool_warned=yes ;;
13920 OTOOL64=$ac_ct_OTOOL64
13923 OTOOL64="$ac_cv_prog_OTOOL64"
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13953 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13954 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13955 $as_echo_n "(cached
) " >&6
13957 lt_cv_apple_cc_single_mod=no
13958 if test -z "${LT_MULTI_MODULE}"; then
13959 # By default we will add the -single_module flag. You can override
13960 # by either setting the environment variable LT_MULTI_MODULE
13961 # non-empty at configure time, or by adding -multi_module to the
13963 rm -rf libconftest.dylib*
13964 echo "int foo
(void
){return 1;}" > conftest.c
13965 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13966 -dynamiclib -Wl,-single_module conftest.c
" >&5
13967 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13968 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13970 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13971 lt_cv_apple_cc_single_mod=yes
13973 cat conftest.err >&5
13975 rm -rf libconftest.dylib*
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13980 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13982 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13983 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13984 $as_echo_n "(cached
) " >&6
13986 lt_cv_ld_exported_symbols_list=no
13987 save_LDFLAGS=$LDFLAGS
13988 echo "_main
" > conftest.sym
13989 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h. */
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 lt_cv_ld_exported_symbols_list=yes
14004 lt_cv_ld_exported_symbols_list=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LDFLAGS="$save_LDFLAGS"
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14012 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14014 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14015 if test "${lt_cv_ld_force_load+set}" = set; then :
14016 $as_echo_n "(cached
) " >&6
14018 lt_cv_ld_force_load=no
14019 cat > conftest.c << _LT_EOF
14020 int forced_loaded() { return 2;}
14022 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14023 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14024 echo "$AR cru libconftest.a conftest.o
" >&5
14025 $AR cru libconftest.a conftest.o 2>&5
14026 cat > conftest.c << _LT_EOF
14027 int main() { return 0;}
14029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14032 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14033 lt_cv_ld_force_load=yes
14035 cat conftest.err >&5
14037 rm -f conftest.err libconftest.a conftest conftest.c
14038 rm -rf conftest.dSYM
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14042 $as_echo "$lt_cv_ld_force_load" >&6; }
14044 rhapsody* | darwin1.[012])
14045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14048 darwin*) # darwin 5.x on
14049 # if running on 10.5 or later, the deployment target defaults
14050 # to the OS version, if on x86, and 10.4, the deployment
14051 # target defaults to 10.4. Don't you love it?
14052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14053 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14063 _lt_dar_single_mod='$single_module'
14065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14071 _lt_dsymutil='~$DSYMUTIL $lib || :'
14078 for ac_header in dlfcn.h
14080 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14081 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_DLFCN_H 1
14100 enable_win32_dll=no
14103 # Check whether --enable-shared was given.
14104 if test "${enable_shared+set}" = set; then :
14105 enableval=$enable_shared; p=${PACKAGE-default}
14107 yes) enable_shared=yes ;;
14108 no) enable_shared=no ;;
14111 # Look at the argument we got. We use all the common list separators.
14112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14113 for pkg in $enableval; do
14115 if test "X
$pkg" = "X
$p"; then
14134 # Check whether --enable-static was given.
14135 if test "${enable_static+set}" = set; then :
14136 enableval=$enable_static; p=${PACKAGE-default}
14138 yes) enable_static=yes ;;
14139 no) enable_static=no ;;
14142 # Look at the argument we got. We use all the common list separators.
14143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14144 for pkg in $enableval; do
14146 if test "X
$pkg" = "X
$p"; then
14166 # Check whether --with-pic was given.
14167 if test "${with_pic+set}" = set; then :
14168 withval=$with_pic; p=${PACKAGE-default}
14170 yes|no) pic_mode="$withval" ;;
14173 # Look at the argument we got. We use all the common list separators.
14174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14175 for pkg in $withval; do
14177 if test "X
$pkg" = "X
$p"; then
14189 test -z "$pic_mode" && pic_mode=default
14197 # Check whether --enable-fast-install was given.
14198 if test "${enable_fast_install+set}" = set; then :
14199 enableval=$enable_fast_install; p=${PACKAGE-default}
14201 yes) enable_fast_install=yes ;;
14202 no) enable_fast_install=no ;;
14204 enable_fast_install=no
14205 # Look at the argument we got. We use all the common list separators.
14206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14207 for pkg in $enableval; do
14209 if test "X
$pkg" = "X
$p"; then
14210 enable_fast_install=yes
14217 enable_fast_install=yes
14230 # This can be used to rebuild libtool when needed
14231 LIBTOOL_DEPS="$ltmain"
14233 # Always use our own libtool.
14234 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14261 test -z "$LN_S" && LN_S="ln -s"
14276 if test -n "${ZSH_VERSION+set}" ; then
14277 setopt NO_GLOB_SUBST
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14281 $as_echo_n "checking
for objdir...
" >&6; }
14282 if test "${lt_cv_objdir+set}" = set; then :
14283 $as_echo_n "(cached
) " >&6
14285 rm -f .libs 2>/dev/null
14286 mkdir .libs 2>/dev/null
14287 if test -d .libs; then
14290 # MS-DOS does not allow filenames that begin with a dot.
14293 rmdir .libs 2>/dev/null
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14296 $as_echo "$lt_cv_objdir" >&6; }
14297 objdir=$lt_cv_objdir
14303 cat >>confdefs.h <<_ACEOF
14304 #define LT_OBJDIR "$lt_cv_objdir/"
14312 # AIX sometimes has problems with the GCC collect2 program. For some
14313 # reason, if we set the COLLECT_NAMES environment variable, the problems
14314 # vanish in a puff of smoke.
14315 if test "X
${COLLECT_NAMES+set}" != Xset; then
14317 export COLLECT_NAMES
14322 # Global variables:
14324 can_build_shared=yes
14326 # All known linkers require a `.a' archive for static linking (except MSVC,
14327 # which needs '.lib').
14330 with_gnu_ld="$lt_cv_prog_gnu_ld"
14333 old_CFLAGS="$CFLAGS"
14335 # Set sane defaults for various variables
14336 test -z "$CC" && CC=cc
14337 test -z "$LTCC" && LTCC=$CC
14338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14339 test -z "$LD" && LD=ld
14340 test -z "$ac_objext" && ac_objext=o
14342 for cc_temp in $compiler""; do
14344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14350 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14353 # Only perform the check for file, if the check method requires it
14354 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14355 case $deplibs_check_method in
14357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14359 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14360 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14361 $as_echo_n "(cached
) " >&6
14365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14368 lt_save_MAGIC_CMD="$MAGIC_CMD"
14369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14370 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14371 for ac_dir in $ac_dummy; do
14373 test -z "$ac_dir" && ac_dir=.
14374 if test -f $ac_dir/${ac_tool_prefix}file; then
14375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14376 if test -n "$file_magic_test_file"; then
14377 case $deplibs_check_method in
14379 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14382 $EGREP "$file_magic_regex" > /dev/null; then
14387 *** Warning: the command libtool uses to detect shared libraries,
14388 *** $file_magic_cmd, produces output that libtool cannot recognize.
14389 *** The result is that libtool may fail to recognize shared libraries
14390 *** as such. This will affect the creation of libtool libraries that
14391 *** depend on shared libraries, but programs linked with such libtool
14392 *** libraries will work regardless of this problem. Nevertheless, you
14393 *** may want to report the problem to your system manager and/or to
14394 *** bug-libtool@gnu.org
14404 MAGIC_CMD="$lt_save_MAGIC_CMD"
14409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14410 if test -n "$MAGIC_CMD"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14412 $as_echo "$MAGIC_CMD" >&6; }
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14415 $as_echo "no
" >&6; }
14422 if test -z "$lt_cv_path_MAGIC_CMD"; then
14423 if test -n "$ac_tool_prefix"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14425 $as_echo_n "checking
for file...
" >&6; }
14426 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14427 $as_echo_n "(cached
) " >&6
14431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14434 lt_save_MAGIC_CMD="$MAGIC_CMD"
14435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14436 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14437 for ac_dir in $ac_dummy; do
14439 test -z "$ac_dir" && ac_dir=.
14440 if test -f $ac_dir/file; then
14441 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14442 if test -n "$file_magic_test_file"; then
14443 case $deplibs_check_method in
14445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14448 $EGREP "$file_magic_regex" > /dev/null; then
14453 *** Warning: the command libtool uses to detect shared libraries,
14454 *** $file_magic_cmd, produces output that libtool cannot recognize.
14455 *** The result is that libtool may fail to recognize shared libraries
14456 *** as such. This will affect the creation of libtool libraries that
14457 *** depend on shared libraries, but programs linked with such libtool
14458 *** libraries will work regardless of this problem. Nevertheless, you
14459 *** may want to report the problem to your system manager and/or to
14460 *** bug-libtool@gnu.org
14470 MAGIC_CMD="$lt_save_MAGIC_CMD"
14475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14476 if test -n "$MAGIC_CMD"; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14478 $as_echo "$MAGIC_CMD" >&6; }
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14481 $as_echo "no
" >&6; }
14494 # Use C for the default configuration in the libtool script
14498 ac_cpp='$CPP $CPPFLAGS'
14499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14504 # Source file extension for C test sources.
14507 # Object file extension for compiled C test sources.
14511 # Code to be used in simple compile tests
14512 lt_simple_compile_test_code="int some_variable
= 0;"
14514 # Code to be used in simple link tests
14515 lt_simple_link_test_code='int main(){return(0);}'
14523 # If no C compiler was specified, use CC.
14526 # If no C compiler flags were specified, use CFLAGS.
14527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14529 # Allow CC to be a program name with arguments.
14532 # Save the default compiler, since it gets overwritten when the other
14533 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14534 compiler_DEFAULT=$CC
14536 # save warnings/boilerplate of simple test code
14537 ac_outfile=conftest.$ac_objext
14538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14540 _lt_compiler_boilerplate=`cat conftest.err`
14543 ac_outfile=conftest.$ac_objext
14544 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14546 _lt_linker_boilerplate=`cat conftest.err`
14551 ## There is no encapsulation within the following macros, do not change
14552 ## the running order or otherwise move them around unless you know exactly
14553 ## what you are doing...
14554 if test -n "$compiler"; then
14556 lt_prog_compiler_no_builtin_flag=
14558 if test "$GCC" = yes; then
14559 case $cc_basename in
14561 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14567 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14568 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14569 $as_echo_n "(cached
) " >&6
14571 lt_cv_prog_compiler_rtti_exceptions=no
14572 ac_outfile=conftest.$ac_objext
14573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="-fno-rtti -fno-exceptions"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.
", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 # The option is referenced via a variable to avoid confusing sed.
14580 lt_compile=`echo "$ac_compile" | $SED \
14581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
14584 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14585 (eval "$lt_compile" 2>conftest.err)
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14589 if (exit $ac_status) && test -s "$ac_outfile"; then
14590 # The compiler can only warn and ignore the option if not recognized
14591 # So say no if there are warnings other than the usual output.
14592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595 lt_cv_prog_compiler_rtti_exceptions=yes
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14617 lt_prog_compiler_wl=
14618 lt_prog_compiler_pic=
14619 lt_prog_compiler_static=
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14622 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14624 if test "$GCC" = yes; then
14625 lt_prog_compiler_wl='-Wl,'
14626 lt_prog_compiler_static='-static'
14630 # All AIX code is PIC.
14631 if test "$host_cpu" = ia64; then
14632 # AIX 5 now supports IA64 processor
14633 lt_prog_compiler_static='-Bstatic'
14640 # see comment about AmigaOS4 .so support
14641 lt_prog_compiler_pic='-fPIC'
14644 # FIXME: we need at least 68020 code to build shared libraries, but
14645 # adding the `-m68020' flag to GCC prevents building anything better,
14647 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14652 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14653 # PIC is the default for these OSes.
14656 mingw* | cygwin* | pw32* | os2* | cegcc*)
14657 # This hack is so that the source file can tell whether it is being
14658 # built for inclusion in a dll (and should export symbols for example).
14659 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14660 # (--disable-auto-import) libraries
14661 lt_prog_compiler_pic='-DDLL_EXPORT'
14664 darwin* | rhapsody*)
14665 # PIC is the default on this platform
14666 # Common symbols not allowed in MH_DYLIB files
14667 lt_prog_compiler_pic='-fno-common'
14671 # PIC is the default for Haiku.
14672 # The "-static" flag exists, but is broken.
14673 lt_prog_compiler_static=
14677 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14678 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14679 # sets the default TLS model and affects inlining.
14685 lt_prog_compiler_pic='-fPIC'
14691 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14692 # Instead, we relocate shared libraries at runtime.
14696 # Just because we use GCC doesn't mean we suddenly get shared libraries
14697 # on systems that don't support them.
14698 lt_prog_compiler_can_build_shared=no
14703 # QNX uses GNU C++, but need to define -shared option too, otherwise
14704 # it will coredump.
14705 lt_prog_compiler_pic='-fPIC -shared'
14709 if test -d /usr/nec; then
14710 lt_prog_compiler_pic=-Kconform_pic
14715 lt_prog_compiler_pic='-fPIC'
14719 case $cc_basename in
14720 nvcc*) # Cuda Compiler Driver 2.2
14721 lt_prog_compiler_wl='-Xlinker '
14722 lt_prog_compiler_pic='-Xcompiler -fPIC'
14726 # PORTME Check for flag to pass linker flags through the system compiler.
14729 lt_prog_compiler_wl='-Wl,'
14730 if test "$host_cpu" = ia64; then
14731 # AIX 5 now supports IA64 processor
14732 lt_prog_compiler_static='-Bstatic'
14734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14738 mingw* | cygwin* | pw32* | os2* | cegcc*)
14739 # This hack is so that the source file can tell whether it is being
14740 # built for inclusion in a dll (and should export symbols for example).
14741 lt_prog_compiler_pic='-DDLL_EXPORT'
14744 hpux9* | hpux10* | hpux11*)
14745 lt_prog_compiler_wl='-Wl,'
14746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14747 # not for PA HP-UX.
14753 lt_prog_compiler_pic='+Z'
14756 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14757 lt_prog_compiler_static='${wl}-a ${wl}archive'
14760 irix5* | irix6* | nonstopux*)
14761 lt_prog_compiler_wl='-Wl,'
14762 # PIC (with -KPIC) is the default.
14763 lt_prog_compiler_static='-non_shared'
14766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14767 case $cc_basename in
14768 # old Intel for x86_64 which still supported -KPIC.
14770 lt_prog_compiler_wl='-Wl,'
14771 lt_prog_compiler_pic='-KPIC'
14772 lt_prog_compiler_static='-static'
14774 # icc used to be incompatible with GCC.
14775 # ICC 10 doesn't accept -KPIC any more.
14777 lt_prog_compiler_wl='-Wl,'
14778 lt_prog_compiler_pic='-fPIC'
14779 lt_prog_compiler_static='-static'
14781 # Lahey Fortran 8.1.
14783 lt_prog_compiler_wl='-Wl,'
14784 lt_prog_compiler_pic='--shared'
14785 lt_prog_compiler_static='--static'
14787 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14788 # Portland Group compilers (*not* the Pentium gcc compiler,
14789 # which looks to be a dead project)
14790 lt_prog_compiler_wl='-Wl,'
14791 lt_prog_compiler_pic='-fpic'
14792 lt_prog_compiler_static='-Bstatic'
14795 lt_prog_compiler_wl='-Wl,'
14796 # All Alpha code is PIC.
14797 lt_prog_compiler_static='-non_shared'
14799 xl* | bgxl* | bgf* | mpixl*)
14800 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14801 lt_prog_compiler_wl='-Wl,'
14802 lt_prog_compiler_pic='-qpic'
14803 lt_prog_compiler_static='-qstaticlink'
14806 case `$CC -V 2>&1 | sed 5q` in
14807 *Sun\ F* | *Sun*Fortran*)
14808 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14809 lt_prog_compiler_pic='-KPIC'
14810 lt_prog_compiler_static='-Bstatic'
14811 lt_prog_compiler_wl=''
14815 lt_prog_compiler_pic='-KPIC'
14816 lt_prog_compiler_static='-Bstatic'
14817 lt_prog_compiler_wl='-Wl,'
14825 lt_prog_compiler_pic='-KPIC'
14826 lt_prog_compiler_static='-Bstatic'
14830 # QNX uses GNU C++, but need to define -shared option too, otherwise
14831 # it will coredump.
14832 lt_prog_compiler_pic='-fPIC -shared'
14835 osf3* | osf4* | osf5*)
14836 lt_prog_compiler_wl='-Wl,'
14837 # All OSF/1 code is PIC.
14838 lt_prog_compiler_static='-non_shared'
14842 lt_prog_compiler_static='-non_shared'
14846 lt_prog_compiler_pic='-KPIC'
14847 lt_prog_compiler_static='-Bstatic'
14848 case $cc_basename in
14849 f77* | f90* | f95*)
14850 lt_prog_compiler_wl='-Qoption ld ';;
14852 lt_prog_compiler_wl='-Wl,';;
14857 lt_prog_compiler_wl='-Qoption ld '
14858 lt_prog_compiler_pic='-PIC'
14859 lt_prog_compiler_static='-Bstatic'
14862 sysv4 | sysv4.2uw2* | sysv4.3*)
14863 lt_prog_compiler_wl='-Wl,'
14864 lt_prog_compiler_pic='-KPIC'
14865 lt_prog_compiler_static='-Bstatic'
14869 if test -d /usr/nec ;then
14870 lt_prog_compiler_pic='-Kconform_pic'
14871 lt_prog_compiler_static='-Bstatic'
14875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14876 lt_prog_compiler_wl='-Wl,'
14877 lt_prog_compiler_pic='-KPIC'
14878 lt_prog_compiler_static='-Bstatic'
14882 lt_prog_compiler_wl='-Wl,'
14883 lt_prog_compiler_can_build_shared=no
14887 lt_prog_compiler_pic='-pic'
14888 lt_prog_compiler_static='-Bstatic'
14892 lt_prog_compiler_can_build_shared=no
14898 # For platforms which do not support PIC, -DPIC is meaningless:
14900 lt_prog_compiler_pic=
14903 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14907 $as_echo "$lt_prog_compiler_pic" >&6; }
14915 # Check to make sure the PIC flag actually works.
14917 if test -n "$lt_prog_compiler_pic"; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14919 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14920 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14921 $as_echo_n "(cached
) " >&6
14923 lt_cv_prog_compiler_pic_works=no
14924 ac_outfile=conftest.$ac_objext
14925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14927 # Insert the option either (1) after the last *FLAGS variable, or
14928 # (2) before a word containing "conftest.
", or (3) at the end.
14929 # Note that $ac_compile itself does not contain backslashes and begins
14930 # with a dollar sign (not a hyphen), so the echo should work correctly.
14931 # The option is referenced via a variable to avoid confusing sed.
14932 lt_compile=`echo "$ac_compile" | $SED \
14933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14935 -e 's:$: $lt_compiler_flag:'`
14936 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14937 (eval "$lt_compile" 2>conftest.err)
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14941 if (exit $ac_status) && test -s "$ac_outfile"; then
14942 # The compiler can only warn and ignore the option if not recognized
14943 # So say no if there are warnings other than the usual output.
14944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14947 lt_cv_prog_compiler_pic_works=yes
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14954 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14956 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14957 case $lt_prog_compiler_pic in
14959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14962 lt_prog_compiler_pic=
14963 lt_prog_compiler_can_build_shared=no
14974 # Check to make sure the static flag actually works.
14976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14978 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14979 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14980 $as_echo_n "(cached
) " >&6
14982 lt_cv_prog_compiler_static_works=no
14983 save_LDFLAGS="$LDFLAGS"
14984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14987 # The linker can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
14989 if test -s conftest.err; then
14990 # Append any errors to the config.log.
14991 cat conftest.err 1>&5
14992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14994 if diff conftest.exp conftest.er2 >/dev/null; then
14995 lt_cv_prog_compiler_static_works=yes
14998 lt_cv_prog_compiler_static_works=yes
15002 LDFLAGS="$save_LDFLAGS"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15008 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15011 lt_prog_compiler_static=
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15021 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15023 $as_echo_n "(cached
) " >&6
15025 lt_cv_prog_compiler_c_o=no
15026 $RM -r conftest 2>/dev/null
15030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15032 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15033 # Insert the option either (1) after the last *FLAGS variable, or
15034 # (2) before a word containing "conftest.
", or (3) at the end.
15035 # Note that $ac_compile itself does not contain backslashes and begins
15036 # with a dollar sign (not a hyphen), so the echo should work correctly.
15037 lt_compile=`echo "$ac_compile" | $SED \
15038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
15041 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15042 (eval "$lt_compile" 2>out/conftest.err)
15044 cat out/conftest.err >&5
15045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15048 # The compiler can only warn and ignore the option if not recognized
15049 # So say no if there are warnings
15050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15053 lt_cv_prog_compiler_c_o=yes
15058 # SGI C++ compiler will create directory out/ii_files/ for
15059 # template instantiation
15060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15061 $RM out/* && rmdir out
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15076 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15077 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15078 $as_echo_n "(cached
) " >&6
15080 lt_cv_prog_compiler_c_o=no
15081 $RM -r conftest 2>/dev/null
15085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15087 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15088 # Insert the option either (1) after the last *FLAGS variable, or
15089 # (2) before a word containing "conftest.
", or (3) at the end.
15090 # Note that $ac_compile itself does not contain backslashes and begins
15091 # with a dollar sign (not a hyphen), so the echo should work correctly.
15092 lt_compile=`echo "$ac_compile" | $SED \
15093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15095 -e 's:$: $lt_compiler_flag:'`
15096 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15097 (eval "$lt_compile" 2>out/conftest.err)
15099 cat out/conftest.err >&5
15100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15103 # The compiler can only warn and ignore the option if not recognized
15104 # So say no if there are warnings
15105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15108 lt_cv_prog_compiler_c_o=yes
15113 # SGI C++ compiler will create directory out/ii_files/ for
15114 # template instantiation
15115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15116 $RM out/* && rmdir out
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15128 hard_links="nottested
"
15129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15130 # do not overwrite the value of need_locks provided by the user
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15132 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15137 ln conftest.a conftest.b 2>&5 || hard_links=no
15138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15140 $as_echo "$hard_links" >&6; }
15141 if test "$hard_links" = no; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15143 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15156 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15159 allow_undefined_flag=
15160 always_export_symbols=no
15162 archive_expsym_cmds=
15163 compiler_needs_object=no
15164 enable_shared_with_static_runtimes=no
15165 export_dynamic_flag_spec=
15166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15167 hardcode_automatic=no
15169 hardcode_direct_absolute=no
15170 hardcode_libdir_flag_spec=
15171 hardcode_libdir_flag_spec_ld=
15172 hardcode_libdir_separator=
15173 hardcode_minus_L=no
15174 hardcode_shlibpath_var=unsupported
15176 link_all_deplibs=unknown
15178 module_expsym_cmds=
15179 old_archive_from_new_cmds=
15180 old_archive_from_expsyms_cmds=
15181 thread_safe_flag_spec=
15182 whole_archive_flag_spec=
15183 # include_expsyms should be a list of space-separated symbols to be *always*
15184 # included in the symbol list
15186 # exclude_expsyms can be an extended regexp of symbols to exclude
15187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15189 # as well as any symbol that contains `d'.
15190 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15192 # platforms (ab)use it in PIC code, but their linkers get confused if
15193 # the symbol is explicitly referenced. Since portable code cannot
15194 # rely on this symbol name, it's probably fine to never include it in
15195 # preloaded symbol tables.
15196 # Exclude shared library initialization/finalization symbols.
15197 extract_expsyms_cmds=
15200 cygwin* | mingw* | pw32* | cegcc*)
15201 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15202 # When not using gcc, we currently assume that we are using
15203 # Microsoft Visual C++.
15204 if test "$GCC" != yes; then
15209 # we just hope/assume this is gcc and not c89 (= MSVC++)
15219 # On some targets, GNU ld is compatible enough with the native linker
15220 # that we're better off using the native interface for both.
15221 lt_use_gnu_ld_interface=no
15222 if test "$with_gnu_ld" = yes; then
15225 # The AIX port of GNU ld has always aspired to compatibility
15226 # with the native linker. However, as the warning in the GNU ld
15227 # block says, versions before 2.19.5* couldn't really create working
15228 # shared libraries, regardless of the interface used.
15229 case `$LD -v 2>&1` in
15230 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15231 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15232 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15234 lt_use_gnu_ld_interface=yes
15239 lt_use_gnu_ld_interface=yes
15244 if test "$lt_use_gnu_ld_interface" = yes; then
15245 # If archive_cmds runs LD, not CC, wlarc should be empty
15248 # Set some defaults for GNU ld with shared library support. These
15249 # are reset later if shared libraries are not supported. Putting them
15250 # here allows them to be overridden if necessary.
15251 runpath_var=LD_RUN_PATH
15252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15253 export_dynamic_flag_spec='${wl}--export-dynamic'
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15256 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15258 whole_archive_flag_spec=
15260 supports_anon_versioning=no
15261 case `$LD -v 2>&1` in
15262 *GNU\ gold*) supports_anon_versioning=yes ;;
15263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15266 *\ 2.11.*) ;; # other 2.11 versions
15267 *) supports_anon_versioning=yes ;;
15270 # See if GNU ld supports shared libraries.
15273 # On AIX/PPC, the GNU linker is very broken
15274 if test "$host_cpu" != ia64; then
15278 *** Warning: the GNU linker, at least up to release 2.19, is reported
15279 *** to be unable to reliably create shared libraries on AIX.
15280 *** Therefore, libtool is disabling shared libraries support. If you
15281 *** really care for shared libraries, you may want to install binutils
15282 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15283 *** You will then need to restart the configuration process.
15292 # see comment about AmigaOS4 .so support
15293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294 archive_expsym_cmds=''
15297 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)'
15298 hardcode_libdir_flag_spec
='-L$libdir'
15299 hardcode_minus_L
=yes
15305 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15306 allow_undefined_flag
=unsupported
15307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15308 # support --undefined. This deserves some investigation. FIXME
15309 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315 cygwin
* | mingw
* | pw32
* | cegcc
*)
15316 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15317 # as there is no search path for DLLs.
15318 hardcode_libdir_flag_spec
='-L$libdir'
15319 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15320 allow_undefined_flag
=unsupported
15321 always_export_symbols
=no
15322 enable_shared_with_static_runtimes
=yes
15323 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15325 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15326 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15327 # If the export-symbols file already is a .def file (1st line
15328 # is EXPORTS), use it as is; otherwise, prepend...
15329 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15330 cp $export_symbols $output_objdir/$soname.def;
15332 echo EXPORTS > $output_objdir/$soname.def;
15333 cat $export_symbols >> $output_objdir/$soname.def;
15335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15342 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15343 link_all_deplibs
=yes
15348 hardcode_shlibpath_var
=no
15349 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15350 export_dynamic_flag_spec
='${wl}-E'
15351 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15352 # Instead, shared libraries are loaded at an image base (0x10000000 by
15353 # default) and relocated if they conflict, which is a slow very memory
15354 # consuming and fragmenting process. To avoid this, we pick a random,
15355 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15356 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15357 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15358 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'
15361 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15363 if test "$host_os" = linux-dietlibc
; then
15364 case $cc_basename in
15365 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15368 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15369 && test "$tmp_diet" = no
15372 tmp_sharedflag
='-shared'
15373 case $cc_basename,$host_cpu in
15374 pgcc
*) # Portland Group C compiler
15375 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'
15376 tmp_addflag
=' $pic_flag'
15378 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15379 # Portland Group f77 and f90 compilers
15380 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'
15381 tmp_addflag
=' $pic_flag -Mnomain' ;;
15382 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15383 tmp_addflag
=' -i_dynamic' ;;
15384 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15385 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15386 ifc
* | ifort
*) # Intel Fortran compiler
15387 tmp_addflag
=' -nofor_main' ;;
15388 lf95
*) # Lahey Fortran 8.1
15389 whole_archive_flag_spec
=
15390 tmp_sharedflag
='--shared' ;;
15391 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15392 tmp_sharedflag
='-qmkshrobj'
15394 nvcc
*) # Cuda Compiler Driver 2.2
15395 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'
15396 compiler_needs_object
=yes
15399 case `$CC -V 2>&1 | sed 5q` in
15400 *Sun\ C
*) # Sun C 5.9
15401 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'
15402 compiler_needs_object
=yes
15403 tmp_sharedflag
='-G' ;;
15404 *Sun\ F
*) # Sun Fortran 8.3
15405 tmp_sharedflag
='-G' ;;
15407 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 if test "x$supports_anon_versioning" = xyes
; then
15410 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15412 echo "local: *; };" >> $output_objdir/$libname.ver~
15413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15416 case $cc_basename in
15417 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15418 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15419 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15420 hardcode_libdir_flag_spec
=
15421 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15422 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15423 if test "x$supports_anon_versioning" = xyes
; then
15424 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15426 echo "local: *; };" >> $output_objdir/$libname.ver~
15427 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15437 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15438 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15441 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15442 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15447 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15452 *** create shared libraries on Solaris systems. Therefore, libtool
15453 *** is disabling shared libraries support. We urge you to upgrade GNU
15454 *** binutils to release 2.9.1 or newer. Another option is to modify
15455 *** your PATH or compiler configuration so that the native linker is
15456 *** used, and then restart.
15459 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15460 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15467 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15468 case `$LD -v 2>&1` in
15469 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15474 *** reliably create shared libraries on SCO systems. Therefore, libtool
15475 *** is disabling shared libraries support. We urge you to upgrade GNU
15476 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15477 *** your PATH or compiler configuration so that the native linker is
15478 *** used, and then restart.
15483 # For security reasons, it is highly recommended that you always
15484 # use absolute paths for naming shared libraries, and exclude the
15485 # DT_RUNPATH tag from executables and libraries. But doing so
15486 # requires that you compile everything twice, which is a pain.
15487 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15488 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15489 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15490 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15499 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15501 hardcode_direct
=yes
15502 hardcode_shlibpath_var
=no
15506 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15507 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15515 if test "$ld_shlibs" = no
; then
15517 hardcode_libdir_flag_spec
=
15518 export_dynamic_flag_spec
=
15519 whole_archive_flag_spec
=
15522 # PORTME fill in a description of your system's linker (not GNU ld)
15525 allow_undefined_flag
=unsupported
15526 always_export_symbols
=yes
15527 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'
15528 # Note: this linker hardcodes the directories in LIBPATH if there
15529 # are no directories specified by -L.
15530 hardcode_minus_L
=yes
15531 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15532 # Neither direct hardcoding nor static linking is supported with a
15534 hardcode_direct
=unsupported
15539 if test "$host_cpu" = ia64
; then
15540 # On IA64, the linker does run time linking by default, so we don't
15541 # have to do anything special.
15542 aix_use_runtimelinking
=no
15543 exp_sym_flag
='-Bexport'
15546 # If we're using GNU nm, then we don't want the "-C" option.
15547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15548 # Also, AIX nm treats weak defined symbols like other global
15549 # defined symbols, whereas GNU nm marks them as "W".
15550 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15551 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'
15553 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'
15555 aix_use_runtimelinking
=no
15557 # Test if we are trying to use run time linking or normal
15558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15559 # need to do runtime linking.
15560 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15561 for ld_flag
in $LDFLAGS; do
15562 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15563 aix_use_runtimelinking
=yes
15570 exp_sym_flag
='-bexport'
15571 no_entry_flag
='-bnoentry'
15574 # When large executables or shared objects are built, AIX ld can
15575 # have problems creating the table of contents. If linking a library
15576 # or program results in "error TOC overflow" add -mminimal-toc to
15577 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15578 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15581 hardcode_direct
=yes
15582 hardcode_direct_absolute
=yes
15583 hardcode_libdir_separator
=':'
15584 link_all_deplibs
=yes
15585 file_list_spec
='${wl}-f,'
15587 if test "$GCC" = yes; then
15588 case $host_os in aix4.
[012]|aix4.
[012].
*)
15589 # We only want to do this on AIX 4.2 and lower, the check
15590 # below for broken collect2 doesn't work under 4.3+
15591 collect2name
=`${CC} -print-prog-name=collect2`
15592 if test -f "$collect2name" &&
15593 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15595 # We have reworked collect2
15598 # We have old collect2
15599 hardcode_direct
=unsupported
15600 # It fails to find uninstalled libraries when the uninstalled
15601 # path is not listed in the libpath. Setting hardcode_minus_L
15602 # to unsupported forces relinking
15603 hardcode_minus_L
=yes
15604 hardcode_libdir_flag_spec
='-L$libdir'
15605 hardcode_libdir_separator
=
15609 shared_flag
='-shared'
15610 if test "$aix_use_runtimelinking" = yes; then
15611 shared_flag
="$shared_flag "'${wl}-G'
15615 if test "$host_cpu" = ia64
; then
15616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15617 # chokes on -Wl,-G. The following line is correct:
15620 if test "$aix_use_runtimelinking" = yes; then
15621 shared_flag
='${wl}-G'
15623 shared_flag
='${wl}-bM:SRE'
15628 export_dynamic_flag_spec
='${wl}-bexpall'
15629 # It seems that -bexpall does not export symbols beginning with
15630 # underscore (_), so it is better to generate a list of symbols to export.
15631 always_export_symbols
=yes
15632 if test "$aix_use_runtimelinking" = yes; then
15633 # Warning - without using the other runtime loading flags (-brtl),
15634 # -berok will link without error, but may produce a broken library.
15635 allow_undefined_flag
='-berok'
15636 # Determine the default libpath from the value encoded in an
15637 # empty executable.
15638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15649 if ac_fn_c_try_link
"$LINENO"; then :
15651 lt_aix_libpath_sed
='
15652 /Import File Strings/,/^$/ {
15658 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15659 # Check for a 64-bit object if we didn't find anything.
15660 if test -z "$aix_libpath"; then
15661 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15664 rm -f core conftest.err conftest.
$ac_objext \
15665 conftest
$ac_exeext conftest.
$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15668 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15669 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"
15671 if test "$host_cpu" = ia64
; then
15672 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15673 allow_undefined_flag
="-z nodefs"
15674 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"
15676 # Determine the default libpath from the value encoded in an
15677 # empty executable.
15678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15689 if ac_fn_c_try_link
"$LINENO"; then :
15691 lt_aix_libpath_sed
='
15692 /Import File Strings/,/^$/ {
15698 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15699 # Check for a 64-bit object if we didn't find anything.
15700 if test -z "$aix_libpath"; then
15701 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15704 rm -f core conftest.err conftest.
$ac_objext \
15705 conftest
$ac_exeext conftest.
$ac_ext
15706 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15708 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15709 # Warning - without using the other run time loading flags,
15710 # -berok will link without error, but may produce a broken library.
15711 no_undefined_flag
=' ${wl}-bernotok'
15712 allow_undefined_flag
=' ${wl}-berok'
15713 if test "$with_gnu_ld" = yes; then
15714 # We only use this code for GNU lds that support --whole-archive.
15715 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15717 # Exported symbols can be pulled into shared objects from archives
15718 whole_archive_flag_spec
='$convenience'
15720 archive_cmds_need_lc
=yes
15721 # This is similar to how AIX traditionally builds its shared libraries.
15722 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'
15730 # see comment about AmigaOS4 .so support
15731 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15732 archive_expsym_cmds
=''
15735 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)'
15736 hardcode_libdir_flag_spec
='-L$libdir'
15737 hardcode_minus_L
=yes
15743 export_dynamic_flag_spec
=-rdynamic
15746 cygwin
* | mingw
* | pw32
* | cegcc
*)
15747 # When not using gcc, we currently assume that we are using
15748 # Microsoft Visual C++.
15749 # hardcode_libdir_flag_spec is actually meaningless, as there is
15750 # no search path for DLLs.
15751 hardcode_libdir_flag_spec
=' '
15752 allow_undefined_flag
=unsupported
15753 # Tell ltmain to make .lib files, not .a files.
15755 # Tell ltmain to make .dll files, not .so files.
15757 # FIXME: Setting linknames here is a bad hack.
15758 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15759 # The linker will automatically build a .lib file if we build a DLL.
15760 old_archive_from_new_cmds
='true'
15761 # FIXME: Should let the user specify the lib program.
15762 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15763 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15764 enable_shared_with_static_runtimes
=yes
15767 darwin
* | rhapsody
*)
15770 archive_cmds_need_lc
=no
15772 hardcode_automatic
=yes
15773 hardcode_shlibpath_var
=unsupported
15774 if test "$lt_cv_ld_force_load" = "yes"; then
15775 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\"`'
15777 whole_archive_flag_spec
=''
15779 link_all_deplibs
=yes
15780 allow_undefined_flag
="$_lt_dar_allow_undefined"
15781 case $cc_basename in
15782 ifort
*) _lt_dar_can_shared
=yes ;;
15783 *) _lt_dar_can_shared
=$GCC ;;
15785 if test "$_lt_dar_can_shared" = "yes"; then
15786 output_verbose_link_cmd
=func_echo_all
15787 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15788 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15789 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}"
15790 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}"
15799 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 hardcode_libdir_flag_spec
='-L$libdir'
15801 hardcode_shlibpath_var
=no
15804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15805 # support. Future versions do this automatically, but an explicit c++rt0.o
15806 # does not break anything, and helps significantly (at the cost of a little
15809 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15810 hardcode_libdir_flag_spec
='-R$libdir'
15811 hardcode_direct
=yes
15812 hardcode_shlibpath_var
=no
15815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15817 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_direct
=yes
15819 hardcode_minus_L
=yes
15820 hardcode_shlibpath_var
=no
15823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15824 freebsd
* | dragonfly
*)
15825 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15826 hardcode_libdir_flag_spec
='-R$libdir'
15827 hardcode_direct
=yes
15828 hardcode_shlibpath_var
=no
15832 if test "$GCC" = yes; then
15833 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'
15835 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'
15837 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15838 hardcode_libdir_separator
=:
15839 hardcode_direct
=yes
15841 # hardcode_minus_L: Not really in the search PATH,
15842 # but as the default location of the library.
15843 hardcode_minus_L
=yes
15844 export_dynamic_flag_spec
='${wl}-E'
15848 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15849 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15851 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15853 if test "$with_gnu_ld" = no
; then
15854 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15855 hardcode_libdir_flag_spec_ld
='+b $libdir'
15856 hardcode_libdir_separator
=:
15857 hardcode_direct
=yes
15858 hardcode_direct_absolute
=yes
15859 export_dynamic_flag_spec
='${wl}-E'
15860 # hardcode_minus_L: Not really in the search PATH,
15861 # but as the default location of the library.
15862 hardcode_minus_L
=yes
15867 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15870 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15876 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15885 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15889 # Older versions of the 11.00 compiler do not understand -b yet
15890 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15892 $as_echo_n "checking if $CC understands -b... " >&6; }
15893 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15894 $as_echo_n "(cached) " >&6
15896 lt_cv_prog_compiler__b
=no
15897 save_LDFLAGS
="$LDFLAGS"
15898 LDFLAGS
="$LDFLAGS -b"
15899 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15900 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15901 # The linker can only warn and ignore the option if not recognized
15902 # So say no if there are warnings
15903 if test -s conftest.err
; then
15904 # Append any errors to the config.log.
15905 cat conftest.err
1>&5
15906 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15907 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15908 if diff conftest.exp conftest.er2
>/dev
/null
; then
15909 lt_cv_prog_compiler__b
=yes
15912 lt_cv_prog_compiler__b
=yes
15916 LDFLAGS
="$save_LDFLAGS"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15920 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15922 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15923 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15931 if test "$with_gnu_ld" = no
; then
15932 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15933 hardcode_libdir_separator
=:
15938 hardcode_shlibpath_var
=no
15941 hardcode_direct
=yes
15942 hardcode_direct_absolute
=yes
15943 export_dynamic_flag_spec
='${wl}-E'
15945 # hardcode_minus_L: Not really in the search PATH,
15946 # but as the default location of the library.
15947 hardcode_minus_L
=yes
15953 irix5
* | irix6
* | nonstopux
*)
15954 if test "$GCC" = yes; then
15955 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'
15956 # Try to use the -exported_symbol ld option, if it does not
15957 # work, assume that -exports_file does not work either and
15958 # implicitly export all symbols.
15959 save_LDFLAGS
="$LDFLAGS"
15960 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15965 if ac_fn_c_try_link
"$LINENO"; then :
15966 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'
15969 rm -f core conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15971 LDFLAGS
="$save_LDFLAGS"
15973 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'
15974 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'
15976 archive_cmds_need_lc
='no'
15977 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator
=:
15980 link_all_deplibs
=yes
15984 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15985 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15987 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15989 hardcode_libdir_flag_spec
='-R$libdir'
15990 hardcode_direct
=yes
15991 hardcode_shlibpath_var
=no
15995 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996 hardcode_direct
=yes
15997 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15998 hardcode_libdir_separator
=:
15999 hardcode_shlibpath_var
=no
16006 if test -f /usr
/libexec
/ld.so
; then
16007 hardcode_direct
=yes
16008 hardcode_shlibpath_var
=no
16009 hardcode_direct_absolute
=yes
16010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16013 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16014 export_dynamic_flag_spec
='${wl}-E'
16017 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16018 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_libdir_flag_spec
='-R$libdir'
16022 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16033 hardcode_libdir_flag_spec
='-L$libdir'
16034 hardcode_minus_L
=yes
16035 allow_undefined_flag
=unsupported
16036 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'
16037 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16041 if test "$GCC" = yes; then
16042 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16043 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'
16045 allow_undefined_flag
=' -expect_unresolved \*'
16046 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'
16048 archive_cmds_need_lc
='no'
16049 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16050 hardcode_libdir_separator
=:
16053 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16054 if test "$GCC" = yes; then
16055 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16056 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'
16057 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16059 allow_undefined_flag
=' -expect_unresolved \*'
16060 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'
16061 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~
16062 $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'
16064 # Both c and cxx compiler support -rpath directly
16065 hardcode_libdir_flag_spec
='-rpath $libdir'
16067 archive_cmds_need_lc
='no'
16068 hardcode_libdir_separator
=:
16072 no_undefined_flag
=' -z defs'
16073 if test "$GCC" = yes; then
16075 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16076 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16077 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16079 case `$CC -V 2>&1` in
16082 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16083 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16088 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16090 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16094 hardcode_libdir_flag_spec
='-R$libdir'
16095 hardcode_shlibpath_var
=no
16097 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16099 # The compiler driver will combine and reorder linker options,
16100 # but understands `-z linker_flag'. GCC discards it without `$wl',
16101 # but is careful enough not to reorder.
16102 # Supported since Solaris 2.6 (maybe 2.5.1?)
16103 if test "$GCC" = yes; then
16104 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16106 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16110 link_all_deplibs
=yes
16114 if test "x$host_vendor" = xsequent
; then
16115 # Use $CC to link under sequent, because it throws in some extra .o
16116 # files that make .init and .fini sections work.
16117 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16119 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_libdir_flag_spec
='-L$libdir'
16122 hardcode_direct
=yes
16123 hardcode_minus_L
=yes
16124 hardcode_shlibpath_var
=no
16128 case $host_vendor in
16130 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_direct
=yes # is this really true???
16134 ## LD is ld it makes a PLAMLIB
16135 ## CC just makes a GrossModule.
16136 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16137 reload_cmds
='$CC -r -o $output$reload_objs'
16141 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16145 runpath_var
='LD_RUN_PATH'
16146 hardcode_shlibpath_var
=no
16150 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_shlibpath_var
=no
16152 export_dynamic_flag_spec
='-Bexport'
16156 if test -d /usr
/nec
; then
16157 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158 hardcode_shlibpath_var
=no
16159 runpath_var
=LD_RUN_PATH
16160 hardcode_runpath_var
=yes
16165 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16166 no_undefined_flag
='${wl}-z,text'
16167 archive_cmds_need_lc
=no
16168 hardcode_shlibpath_var
=no
16169 runpath_var
='LD_RUN_PATH'
16171 if test "$GCC" = yes; then
16172 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16173 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16175 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16176 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16180 sysv5
* | sco3.2v5
* | sco5v6
*)
16181 # Note: We can NOT use -z defs as we might desire, because we do not
16182 # link with -lc, and that would cause any symbols used from libc to
16183 # always be unresolved, which means just about no library would
16184 # ever link correctly. If we're not using GNU ld we use -z text
16185 # though, which does catch some bad symbols but isn't as heavy-handed
16187 no_undefined_flag
='${wl}-z,text'
16188 allow_undefined_flag
='${wl}-z,nodefs'
16189 archive_cmds_need_lc
=no
16190 hardcode_shlibpath_var
=no
16191 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16192 hardcode_libdir_separator
=':'
16193 link_all_deplibs
=yes
16194 export_dynamic_flag_spec
='${wl}-Bexport'
16195 runpath_var
='LD_RUN_PATH'
16197 if test "$GCC" = yes; then
16198 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16199 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16207 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_libdir_flag_spec
='-L$libdir'
16209 hardcode_shlibpath_var
=no
16217 if test x
$host_vendor = xsni
; then
16219 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16220 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16227 $as_echo "$ld_shlibs" >&6; }
16228 test "$ld_shlibs" = no
&& can_build_shared
=no
16230 with_gnu_ld
=$with_gnu_ld
16247 # Do we need to explicitly link libc?
16249 case "x$archive_cmds_need_lc" in
16251 # Assume -lc should be added
16252 archive_cmds_need_lc
=yes
16254 if test "$enable_shared" = yes && test "$GCC" = yes; then
16255 case $archive_cmds in
16257 # FIXME: we may have to deal with multi-command sequences.
16260 # Test whether the compiler implicitly links with -lc since on some
16261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16262 # to ld, don't add -lc before -lgcc.
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16264 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16265 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16266 $as_echo_n "(cached) " >&6
16269 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16272 (eval $ac_compile) 2>&5
16274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16275 test $ac_status = 0; } 2>conftest.err
; then
16278 libobjs
=conftest.
$ac_objext
16280 wl
=$lt_prog_compiler_wl
16281 pic_flag
=$lt_prog_compiler_pic
16287 lt_save_allow_undefined_flag
=$allow_undefined_flag
16288 allow_undefined_flag
=
16289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16290 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 test $ac_status = 0; }
16295 lt_cv_archive_cmds_need_lc
=no
16297 lt_cv_archive_cmds_need_lc
=yes
16299 allow_undefined_flag
=$lt_save_allow_undefined_flag
16301 cat conftest.err
1>&5
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16307 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16308 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16472 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16474 if test "$GCC" = yes; then
16476 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16477 *) lt_awk_arg
="/^libraries:/" ;;
16480 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16481 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16483 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16484 case $lt_search_path_spec in
16486 # if the path contains ";" then we assume it to be the separator
16487 # otherwise default to the standard path separator (i.e. ":") - it is
16488 # assumed that no part of a normal pathname contains ";" but that should
16489 # okay in the real world where ";" in dirpaths is itself problematic.
16490 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16493 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16496 # Ok, now we have the path, separated by spaces, we can step through it
16497 # and add multilib dir if necessary.
16498 lt_tmp_lt_search_path_spec
=
16499 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16500 for lt_sys_path
in $lt_search_path_spec; do
16501 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16502 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16504 test -d "$lt_sys_path" && \
16505 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16508 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16509 BEGIN {RS=" "; FS="/|\n";} {
16512 for (lt_i = NF; lt_i > 0; lt_i--) {
16513 if ($lt_i != "" && $lt_i != ".") {
16514 if ($lt_i == "..") {
16517 if (lt_count == 0) {
16518 lt_foo="/" $lt_i lt_foo;
16525 if (lt_foo != "") { lt_freq[lt_foo]++; }
16526 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16528 # AWK program above erroneously prepends '/' to C:/dos/paths
16531 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16532 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16534 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16536 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16538 library_names_spec
=
16539 libname_spec
='lib$name'
16543 postuninstall_cmds
=
16547 shlibpath_overrides_runpath
=unknown
16549 dynamic_linker
="$host_os ld.so"
16550 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16551 need_lib_prefix
=unknown
16552 hardcode_into_libs
=no
16554 # when you set need_version to no, make sure it does not cause -set_version
16555 # flags to be left without arguments
16556 need_version
=unknown
16561 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16562 shlibpath_var
=LIBPATH
16564 # AIX 3 has no versioning support, so we append a major version to the name.
16565 soname_spec
='${libname}${release}${shared_ext}$major'
16572 hardcode_into_libs
=yes
16573 if test "$host_cpu" = ia64
; then
16574 # AIX 5 supports IA64
16575 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16576 shlibpath_var
=LD_LIBRARY_PATH
16578 # With GCC up to 2.95.x, collect2 would create an import file
16579 # for dependence libraries. The import file would start with
16580 # the line `#! .'. This would cause the generated library to
16581 # depend on `.', always an invalid library. This was fixed in
16582 # development snapshots of GCC prior to 3.0.
16584 aix4 | aix4.
[01] | aix4.
[01].
*)
16585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16587 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16590 can_build_shared
=no
16594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16595 # soname into executable. Probably we can add versioning support to
16596 # collect2, so additional links can be useful in future.
16597 if test "$aix_use_runtimelinking" = yes; then
16598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16599 # instead of lib<name>.a to let people know that these are not
16600 # typical AIX shared libraries.
16601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 # We preserve .a as extension for shared libraries through AIX4.2
16604 # and later when we are not doing run time linking.
16605 library_names_spec
='${libname}${release}.a $libname.a'
16606 soname_spec
='${libname}${release}${shared_ext}$major'
16608 shlibpath_var
=LIBPATH
16615 # Since July 2007 AmigaOS4 officially supports .so libraries.
16616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 library_names_spec
='$libname.ixlibrary $libname.a'
16621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16622 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'
16628 library_names_spec
='${libname}${shared_ext}'
16629 dynamic_linker
="$host_os ld.so"
16630 shlibpath_var
=LIBRARY_PATH
16636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637 soname_spec
='${libname}${release}${shared_ext}$major'
16638 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16639 shlibpath_var
=LD_LIBRARY_PATH
16640 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16641 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16642 # the default ld.so.conf also contains /usr/contrib/lib and
16643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16644 # libtool to hard-code these into programs
16647 cygwin
* | mingw
* | pw32
* | cegcc
*)
16648 version_type
=windows
16653 case $GCC,$host_os in
16654 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16655 library_names_spec
='$libname.dll.a'
16656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16657 postinstall_cmds
='base_file=`basename \${file}`~
16658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16659 dldir=$destdir/`dirname \$dlpath`~
16660 test -d \$dldir || mkdir -p \$dldir~
16661 $install_prog $dir/$dlname \$dldir/$dlname~
16662 chmod a+x \$dldir/$dlname~
16663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16666 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16667 dlpath=$dir/\$dldll~
16669 shlibpath_overrides_runpath
=yes
16673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16674 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16676 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16679 # MinGW DLLs use traditional 'lib' prefix
16680 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16683 # pw32 DLLs use 'pw' prefix rather than 'lib'
16684 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16690 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16693 dynamic_linker
='Win32 ld.exe'
16694 # FIXME: first we should search . and the directory the executable is in
16698 darwin
* | rhapsody
*)
16699 dynamic_linker
="$host_os dyld"
16700 version_type
=darwin
16703 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16704 soname_spec
='${libname}${release}${major}$shared_ext'
16705 shlibpath_overrides_runpath
=yes
16706 shlibpath_var
=DYLD_LIBRARY_PATH
16707 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16709 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16710 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16718 soname_spec
='${libname}${release}${shared_ext}$major'
16719 shlibpath_var
=LD_LIBRARY_PATH
16722 freebsd
* | dragonfly
*)
16723 # DragonFly does not have aout. When/if they implement a new
16724 # versioning mechanism, adjust this.
16725 if test -x /usr
/bin
/objformat
; then
16726 objformat
=`/usr/bin/objformat`
16729 freebsd
[123]*) objformat
=aout
;;
16730 *) objformat
=elf
;;
16733 version_type
=freebsd-
$objformat
16734 case $version_type in
16736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16741 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16745 shlibpath_var
=LD_LIBRARY_PATH
16748 shlibpath_overrides_runpath
=yes
16750 freebsd3.
[01]* | freebsdelf3.
[01]*)
16751 shlibpath_overrides_runpath
=yes
16752 hardcode_into_libs
=yes
16754 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16755 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16756 shlibpath_overrides_runpath
=no
16757 hardcode_into_libs
=yes
16759 *) # from 4.6 on, and DragonFly
16760 shlibpath_overrides_runpath
=yes
16761 hardcode_into_libs
=yes
16770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16771 soname_spec
='${libname}${release}${shared_ext}$major'
16772 shlibpath_var
=LD_LIBRARY_PATH
16773 hardcode_into_libs
=yes
16780 dynamic_linker
="$host_os runtime_loader"
16781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16782 soname_spec
='${libname}${release}${shared_ext}$major'
16783 shlibpath_var
=LIBRARY_PATH
16784 shlibpath_overrides_runpath
=yes
16785 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16786 hardcode_into_libs
=yes
16789 hpux9
* | hpux10
* | hpux11
*)
16790 # Give a soname corresponding to the major version so that dld.sl refuses to
16791 # link against other versions.
16798 hardcode_into_libs
=yes
16799 dynamic_linker
="$host_os dld.so"
16800 shlibpath_var
=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec
='${libname}${release}${shared_ext}$major'
16804 if test "X$HPUX_IA64_MODE" = X32
; then
16805 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16807 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16809 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16813 hardcode_into_libs
=yes
16814 dynamic_linker
="$host_os dld.sl"
16815 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16816 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec
='${libname}${release}${shared_ext}$major'
16819 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16820 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16824 dynamic_linker
="$host_os dld.sl"
16825 shlibpath_var
=SHLIB_PATH
16826 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec
='${libname}${release}${shared_ext}$major'
16831 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16832 postinstall_cmds
='chmod 555 $lib'
16833 # or fails outright, so override atomically:
16834 install_override_mode
=555
16841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842 soname_spec
='${libname}${release}${shared_ext}$major'
16843 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16844 shlibpath_var
=LD_LIBRARY_PATH
16845 shlibpath_overrides_runpath
=no
16846 hardcode_into_libs
=yes
16849 irix5
* | irix6
* | nonstopux
*)
16851 nonstopux
*) version_type
=nonstopux
;;
16853 if test "$lt_cv_prog_gnu_ld" = yes; then
16861 soname_spec
='${libname}${release}${shared_ext}$major'
16862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16864 irix5
* | nonstopux
*)
16865 libsuff
= shlibsuff
=
16868 case $LD in # libtool.m4 will add one of these switches to LD
16869 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16870 libsuff
= shlibsuff
= libmagic
=32-bit;;
16871 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16872 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16873 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16874 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16875 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16879 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16880 shlibpath_overrides_runpath
=no
16881 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16882 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16883 hardcode_into_libs
=yes
16886 # No shared lib support for Linux oldld, aout, or coff.
16887 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16891 # This must be Linux ELF.
16892 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897 soname_spec
='${libname}${release}${shared_ext}$major'
16898 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16899 shlibpath_var
=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath
=no
16902 # Some binutils ld are patched to set DT_RUNPATH
16903 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16904 $as_echo_n "(cached) " >&6
16906 lt_cv_shlibpath_overrides_runpath
=no
16907 save_LDFLAGS
=$LDFLAGS
16908 save_libdir
=$libdir
16909 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16910 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16922 if ac_fn_c_try_link
"$LINENO"; then :
16923 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16924 lt_cv_shlibpath_overrides_runpath
=yes
16927 rm -f core conftest.err conftest.
$ac_objext \
16928 conftest
$ac_exeext conftest.
$ac_ext
16929 LDFLAGS
=$save_LDFLAGS
16930 libdir
=$save_libdir
16934 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16936 # This implies no fast_install, which is unacceptable.
16937 # Some rework will be needed to allow for fast_install
16938 # before this can be enabled.
16939 hardcode_into_libs
=yes
16941 # Append ld.so.conf contents to the search path
16942 if test -f /etc
/ld.so.conf
; then
16943 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' ' '`
16944 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16947 # We used to test for /lib/ld.so.1 and disable shared libraries on
16948 # powerpc, because MkLinux only supported shared libraries with the
16949 # GNU dynamic linker. Since this was broken with cross compilers,
16950 # most powerpc-linux boxes support dynamic linking these days and
16951 # people can always --disable-shared, the test was removed, and we
16952 # assume the GNU/Linux dynamic linker is in use.
16953 dynamic_linker
='GNU/Linux ld.so'
16960 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16962 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16963 dynamic_linker
='NetBSD (a.out) ld.so'
16965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16966 soname_spec
='${libname}${release}${shared_ext}$major'
16967 dynamic_linker
='NetBSD ld.elf_so'
16969 shlibpath_var
=LD_LIBRARY_PATH
16970 shlibpath_overrides_runpath
=yes
16971 hardcode_into_libs
=yes
16976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977 shlibpath_var
=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath
=yes
16985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986 soname_spec
='${libname}${release}${shared_ext}$major'
16987 shlibpath_var
=LD_LIBRARY_PATH
16988 shlibpath_overrides_runpath
=no
16989 hardcode_into_libs
=yes
16990 dynamic_linker
='ldqnx.so'
16995 sys_lib_dlsearch_path_spec
="/usr/lib"
16997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16999 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17000 *) need_version
=no
;;
17002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17003 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17004 shlibpath_var
=LD_LIBRARY_PATH
17005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17007 openbsd2.
[89] | openbsd2.
[89].
*)
17008 shlibpath_overrides_runpath
=no
17011 shlibpath_overrides_runpath
=yes
17015 shlibpath_overrides_runpath
=yes
17020 libname_spec
='$name'
17023 library_names_spec
='$libname${shared_ext} $libname.a'
17024 dynamic_linker
='OS/2 ld.exe'
17025 shlibpath_var
=LIBPATH
17028 osf3
* | osf4
* | osf5
*)
17032 soname_spec
='${libname}${release}${shared_ext}$major'
17033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 shlibpath_var
=LD_LIBRARY_PATH
17035 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17036 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec
='${libname}${release}${shared_ext}$major'
17049 shlibpath_var
=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath
=yes
17051 hardcode_into_libs
=yes
17052 # ldd complains unless libraries are executable
17053 postinstall_cmds
='chmod +x $lib'
17058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17060 shlibpath_var
=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath
=yes
17062 if test "$with_gnu_ld" = yes; then
17070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec
='${libname}${release}${shared_ext}$major'
17072 shlibpath_var
=LD_LIBRARY_PATH
17073 case $host_vendor in
17075 shlibpath_overrides_runpath
=no
17077 runpath_var
=LD_RUN_PATH
17085 shlibpath_overrides_runpath
=no
17086 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17092 if test -d /usr
/nec
;then
17094 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17095 soname_spec
='$libname${shared_ext}.$major'
17096 shlibpath_var
=LD_LIBRARY_PATH
17100 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17101 version_type
=freebsd-elf
17104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17105 soname_spec
='${libname}${release}${shared_ext}$major'
17106 shlibpath_var
=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath
=yes
17108 hardcode_into_libs
=yes
17109 if test "$with_gnu_ld" = yes; then
17110 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17112 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17115 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17119 sys_lib_dlsearch_path_spec
='/usr/lib'
17123 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 shlibpath_var
=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath
=no
17130 hardcode_into_libs
=yes
17135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec
='${libname}${release}${shared_ext}$major'
17137 shlibpath_var
=LD_LIBRARY_PATH
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17145 $as_echo "$dynamic_linker" >&6; }
17146 test "$dynamic_linker" = no
&& can_build_shared
=no
17148 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17149 if test "$GCC" = yes; then
17150 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17153 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17154 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17156 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17157 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17252 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17254 if test -n "$hardcode_libdir_flag_spec" ||
17255 test -n "$runpath_var" ||
17256 test "X$hardcode_automatic" = "Xyes" ; then
17258 # We can hardcode non-existent directories.
17259 if test "$hardcode_direct" != no
&&
17260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261 # have to relink, otherwise we might link with an installed library
17262 # when we should be linking with a yet-to-be-installed one
17263 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17264 test "$hardcode_minus_L" != no
; then
17265 # Linking always hardcodes the temporary library directory.
17266 hardcode_action
=relink
17268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269 hardcode_action
=immediate
17272 # We cannot hardcode anything, or else we can only hardcode existing
17274 hardcode_action
=unsupported
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17277 $as_echo "$hardcode_action" >&6; }
17279 if test "$hardcode_action" = relink ||
17280 test "$inherit_rpath" = yes; then
17281 # Fast installation is not supported
17282 enable_fast_install
=no
17283 elif test "$shlibpath_overrides_runpath" = yes ||
17284 test "$enable_shared" = no
; then
17285 # Fast installation is not necessary
17286 enable_fast_install
=needless
17294 if test "x$enable_dlopen" != xyes
; then
17295 enable_dlopen
=unknown
17296 enable_dlopen_self
=unknown
17297 enable_dlopen_self_static
=unknown
17304 lt_cv_dlopen
="load_add_on"
17306 lt_cv_dlopen_self
=yes
17309 mingw
* | pw32
* | cegcc
*)
17310 lt_cv_dlopen
="LoadLibrary"
17315 lt_cv_dlopen
="dlopen"
17320 # if libdl is installed we need to link against it
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17322 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17326 ac_check_lib_save_LIBS
=$LIBS
17328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17346 if ac_fn_c_try_link
"$LINENO"; then :
17347 ac_cv_lib_dl_dlopen
=yes
17349 ac_cv_lib_dl_dlopen
=no
17351 rm -f core conftest.err conftest.
$ac_objext \
17352 conftest
$ac_exeext conftest.
$ac_ext
17353 LIBS
=$ac_check_lib_save_LIBS
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17357 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17358 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17361 lt_cv_dlopen
="dyld"
17363 lt_cv_dlopen_self
=yes
17370 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17371 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17372 lt_cv_dlopen
="shl_load"
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17375 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17379 ac_check_lib_save_LIBS
=$LIBS
17381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17394 return shl_load ();
17399 if ac_fn_c_try_link
"$LINENO"; then :
17400 ac_cv_lib_dld_shl_load
=yes
17402 ac_cv_lib_dld_shl_load
=no
17404 rm -f core conftest.err conftest.
$ac_objext \
17405 conftest
$ac_exeext conftest.
$ac_ext
17406 LIBS
=$ac_check_lib_save_LIBS
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17409 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17410 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17411 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17413 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17414 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17415 lt_cv_dlopen
="dlopen"
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17420 $as_echo_n "(cached) " >&6
17422 ac_check_lib_save_LIBS
=$LIBS
17424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17442 if ac_fn_c_try_link
"$LINENO"; then :
17443 ac_cv_lib_dl_dlopen
=yes
17445 ac_cv_lib_dl_dlopen
=no
17447 rm -f core conftest.err conftest.
$ac_objext \
17448 conftest
$ac_exeext conftest.
$ac_ext
17449 LIBS
=$ac_check_lib_save_LIBS
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17453 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17454 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17457 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17461 ac_check_lib_save_LIBS
=$LIBS
17462 LIBS
="-lsvld $LIBS"
17463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17481 if ac_fn_c_try_link
"$LINENO"; then :
17482 ac_cv_lib_svld_dlopen
=yes
17484 ac_cv_lib_svld_dlopen
=no
17486 rm -f core conftest.err conftest.
$ac_objext \
17487 conftest
$ac_exeext conftest.
$ac_ext
17488 LIBS
=$ac_check_lib_save_LIBS
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17491 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17492 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17493 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17496 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17497 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17498 $as_echo_n "(cached) " >&6
17500 ac_check_lib_save_LIBS
=$LIBS
17502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17505 /* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
17515 return dld_link ();
17520 if ac_fn_c_try_link
"$LINENO"; then :
17521 ac_cv_lib_dld_dld_link
=yes
17523 ac_cv_lib_dld_dld_link
=no
17525 rm -f core conftest.err conftest.
$ac_objext \
17526 conftest
$ac_exeext conftest.
$ac_ext
17527 LIBS
=$ac_check_lib_save_LIBS
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17530 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17531 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17532 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17553 if test "x$lt_cv_dlopen" != xno
; then
17559 case $lt_cv_dlopen in
17561 save_CPPFLAGS
="$CPPFLAGS"
17562 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17564 save_LDFLAGS
="$LDFLAGS"
17565 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17568 LIBS
="$lt_cv_dlopen_libs $LIBS"
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17571 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17572 if test "${lt_cv_dlopen_self+set}" = set; then :
17573 $as_echo_n "(cached) " >&6
17575 if test "$cross_compiling" = yes; then :
17576 lt_cv_dlopen_self
=cross
17578 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17579 lt_status
=$lt_dlunknown
17580 cat > conftest.
$ac_ext <<_LT_EOF
17581 #line 17581 "configure"
17582 #include "confdefs.h"
17591 # define LT_DLGLOBAL RTLD_GLOBAL
17594 # define LT_DLGLOBAL DL_GLOBAL
17596 # define LT_DLGLOBAL 0
17600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17601 find out it does not work in some platform. */
17602 #ifndef LT_DLLAZY_OR_NOW
17604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17607 # define LT_DLLAZY_OR_NOW DL_LAZY
17610 # define LT_DLLAZY_OR_NOW RTLD_NOW
17613 # define LT_DLLAZY_OR_NOW DL_NOW
17615 # define LT_DLLAZY_OR_NOW 0
17622 /* When -fvisbility=hidden is used, assume the code has been annotated
17623 correspondingly for the symbols needed. */
17624 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17625 void fnord () __attribute__((visibility("default")));
17628 void fnord () { int i=42; }
17631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17632 int status = $lt_dlunknown;
17636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17639 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17640 else puts (dlerror ());
17642 /* dlclose (self); */
17650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17651 (eval $ac_link) 2>&5
17653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17654 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17655 (.
/conftest
; exit; ) >&5 2>/dev
/null
17657 case x
$lt_status in
17658 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17659 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17660 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17663 # compilation failed
17664 lt_cv_dlopen_self
=no
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17672 $as_echo "$lt_cv_dlopen_self" >&6; }
17674 if test "x$lt_cv_dlopen_self" = xyes
; then
17675 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17677 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17678 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17681 if test "$cross_compiling" = yes; then :
17682 lt_cv_dlopen_self_static
=cross
17684 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17685 lt_status
=$lt_dlunknown
17686 cat > conftest.
$ac_ext <<_LT_EOF
17687 #line 17687 "configure"
17688 #include "confdefs.h"
17697 # define LT_DLGLOBAL RTLD_GLOBAL
17700 # define LT_DLGLOBAL DL_GLOBAL
17702 # define LT_DLGLOBAL 0
17706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17707 find out it does not work in some platform. */
17708 #ifndef LT_DLLAZY_OR_NOW
17710 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17713 # define LT_DLLAZY_OR_NOW DL_LAZY
17716 # define LT_DLLAZY_OR_NOW RTLD_NOW
17719 # define LT_DLLAZY_OR_NOW DL_NOW
17721 # define LT_DLLAZY_OR_NOW 0
17728 /* When -fvisbility=hidden is used, assume the code has been annotated
17729 correspondingly for the symbols needed. */
17730 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17731 void fnord () __attribute__((visibility("default")));
17734 void fnord () { int i=42; }
17737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17738 int status = $lt_dlunknown;
17742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 else puts (dlerror ());
17748 /* dlclose (self); */
17756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17757 (eval $ac_link) 2>&5
17759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17760 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17761 (.
/conftest
; exit; ) >&5 2>/dev
/null
17763 case x
$lt_status in
17764 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17765 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17766 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17769 # compilation failed
17770 lt_cv_dlopen_self_static
=no
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17778 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17781 CPPFLAGS
="$save_CPPFLAGS"
17782 LDFLAGS
="$save_LDFLAGS"
17787 case $lt_cv_dlopen_self in
17788 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17789 *) enable_dlopen_self
=unknown
;;
17792 case $lt_cv_dlopen_self_static in
17793 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17794 *) enable_dlopen_self_static
=unknown
;;
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17817 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17818 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17819 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17820 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17822 $as_echo "yes" >&6; }
17824 # FIXME - insert some real tests, host_os isn't really good enough
17827 if test -n "$STRIP" ; then
17828 striplib
="$STRIP -x"
17829 old_striplib
="$STRIP -S"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17831 $as_echo "yes" >&6; }
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 $as_echo "no" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17855 # Report which library types will actually be built
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17857 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17859 $as_echo "$can_build_shared" >&6; }
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17862 $as_echo_n "checking whether to build shared libraries... " >&6; }
17863 test "$can_build_shared" = "no" && enable_shared
=no
17865 # On AIX, shared libraries and static libraries use the same namespace, and
17866 # are all built from PIC.
17869 test "$enable_shared" = yes && enable_static
=no
17870 if test -n "$RANLIB"; then
17871 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17872 postinstall_cmds
='$RANLIB $lib'
17877 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17878 test "$enable_shared" = yes && enable_static
=no
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17883 $as_echo "$enable_shared" >&6; }
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17886 $as_echo_n "checking whether to build static libraries... " >&6; }
17887 # Make sure either enable_shared or enable_static is yes.
17888 test "$enable_shared" = yes || enable_static
=yes
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17890 $as_echo "$enable_static" >&6; }
17897 ac_cpp
='$CPP $CPPFLAGS'
17898 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17904 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17905 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17906 (test "X$CXX" != "Xg++"))) ; then
17908 ac_cpp
='$CXXCPP $CPPFLAGS'
17909 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17910 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17911 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17913 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17914 if test -z "$CXXCPP"; then
17915 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17916 $as_echo_n "(cached) " >&6
17918 # Double quotes because CXXCPP needs to be expanded
17919 for CXXCPP
in "$CXX -E" "/lib/cpp"
17921 ac_preproc_ok
=false
17922 for ac_cxx_preproc_warn_flag
in '' yes
17924 # Use a header file that comes with gcc, so configuring glibc
17925 # with a fresh cross-compiler works.
17926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17927 # <limits.h> exists even on freestanding compilers.
17928 # On the NeXT, cc -E runs the code through the compiler's parser,
17929 # not just through cpp. "Syntax error" is here to catch this case.
17930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17933 # include <limits.h>
17935 # include <assert.h>
17939 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17942 # Broken: fails on valid input.
17945 rm -f conftest.err conftest.
$ac_ext
17947 # OK, works on sane cases. Now check whether nonexistent headers
17948 # can be detected and how.
17949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951 #include <ac_nonexistent.h>
17953 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17954 # Broken: success on invalid input.
17957 # Passes both tests.
17961 rm -f conftest.err conftest.
$ac_ext
17964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17965 rm -f conftest.err conftest.
$ac_ext
17966 if $ac_preproc_ok; then :
17971 ac_cv_prog_CXXCPP
=$CXXCPP
17974 CXXCPP
=$ac_cv_prog_CXXCPP
17976 ac_cv_prog_CXXCPP
=$CXXCPP
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17979 $as_echo "$CXXCPP" >&6; }
17980 ac_preproc_ok
=false
17981 for ac_cxx_preproc_warn_flag
in '' yes
17983 # Use a header file that comes with gcc, so configuring glibc
17984 # with a fresh cross-compiler works.
17985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17986 # <limits.h> exists even on freestanding compilers.
17987 # On the NeXT, cc -E runs the code through the compiler's parser,
17988 # not just through cpp. "Syntax error" is here to catch this case.
17989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17992 # include <limits.h>
17994 # include <assert.h>
17998 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18001 # Broken: fails on valid input.
18004 rm -f conftest.err conftest.
$ac_ext
18006 # OK, works on sane cases. Now check whether nonexistent headers
18007 # can be detected and how.
18008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010 #include <ac_nonexistent.h>
18012 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18013 # Broken: success on invalid input.
18016 # Passes both tests.
18020 rm -f conftest.err conftest.
$ac_ext
18023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18024 rm -f conftest.err conftest.
$ac_ext
18025 if $ac_preproc_ok; then :
18028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18030 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18031 See \`config.log' for more details." "$LINENO" 5; }
18035 ac_cpp
='$CPP $CPPFLAGS'
18036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18041 _lt_caught_CXX_error
=yes
18045 ac_cpp
='$CXXCPP $CPPFLAGS'
18046 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18050 archive_cmds_need_lc_CXX
=no
18051 allow_undefined_flag_CXX
=
18052 always_export_symbols_CXX
=no
18053 archive_expsym_cmds_CXX
=
18054 compiler_needs_object_CXX
=no
18055 export_dynamic_flag_spec_CXX
=
18056 hardcode_direct_CXX
=no
18057 hardcode_direct_absolute_CXX
=no
18058 hardcode_libdir_flag_spec_CXX
=
18059 hardcode_libdir_flag_spec_ld_CXX
=
18060 hardcode_libdir_separator_CXX
=
18061 hardcode_minus_L_CXX
=no
18062 hardcode_shlibpath_var_CXX
=unsupported
18063 hardcode_automatic_CXX
=no
18064 inherit_rpath_CXX
=no
18066 module_expsym_cmds_CXX
=
18067 link_all_deplibs_CXX
=unknown
18068 old_archive_cmds_CXX
=$old_archive_cmds
18069 reload_flag_CXX
=$reload_flag
18070 reload_cmds_CXX
=$reload_cmds
18071 no_undefined_flag_CXX
=
18072 whole_archive_flag_spec_CXX
=
18073 enable_shared_with_static_runtimes_CXX
=no
18075 # Source file extension for C++ test sources.
18078 # Object file extension for compiled C++ test sources.
18082 # No sense in running all these tests if we already determined that
18083 # the CXX compiler isn't working. Some variables (like enable_shared)
18084 # are currently assumed to apply to all compilers on this platform,
18085 # and will be corrupted by setting them based on a non-working compiler.
18086 if test "$_lt_caught_CXX_error" != yes; then
18087 # Code to be used in simple compile tests
18088 lt_simple_compile_test_code
="int some_variable = 0;"
18090 # Code to be used in simple link tests
18091 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18100 # If no C compiler was specified, use CC.
18103 # If no C compiler flags were specified, use CFLAGS.
18104 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18106 # Allow CC to be a program name with arguments.
18110 # save warnings/boilerplate of simple test code
18111 ac_outfile
=conftest.
$ac_objext
18112 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18113 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18114 _lt_compiler_boilerplate
=`cat conftest.err`
18117 ac_outfile
=conftest.
$ac_objext
18118 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18119 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18120 _lt_linker_boilerplate
=`cat conftest.err`
18124 # Allow CC to be a program name with arguments.
18129 lt_save_with_gnu_ld
=$with_gnu_ld
18130 lt_save_path_LD
=$lt_cv_path_LD
18131 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18132 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18134 $as_unset lt_cv_prog_gnu_ld
18136 if test -n "${lt_cv_path_LDCXX+set}"; then
18137 lt_cv_path_LD
=$lt_cv_path_LDCXX
18139 $as_unset lt_cv_path_LD
18141 test -z "${LDCXX+set}" || LD
=$LDCXX
18145 for cc_temp
in $compiler""; do
18147 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18148 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18153 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18156 if test -n "$compiler"; then
18157 # We don't want -fno-exception when compiling C++ code, so set the
18158 # no_builtin_flag separately
18159 if test "$GXX" = yes; then
18160 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18162 lt_prog_compiler_no_builtin_flag_CXX
=
18165 if test "$GXX" = yes; then
18166 # Set up default GNU C++ configuration
18170 # Check whether --with-gnu-ld was given.
18171 if test "${with_gnu_ld+set}" = set; then :
18172 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18178 if test "$GCC" = yes; then
18179 # Check if gcc -print-prog-name=ld gives a path.
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18181 $as_echo_n "checking for ld used by $CC... " >&6; }
18184 # gcc leaves a trailing carriage return which upsets mingw
18185 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18187 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18190 # Accept absolute paths.
18192 re_direlt
='/[^/][^/]*/\.\./'
18193 # Canonicalize the pathname of ld
18194 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18195 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18196 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18198 test -z "$LD" && LD
="$ac_prog"
18201 # If it fails, then pretend we aren't using GCC.
18205 # If it is relative, then search for the first ld in PATH.
18206 with_gnu_ld
=unknown
18209 elif test "$with_gnu_ld" = yes; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18211 $as_echo_n "checking for GNU ld... " >&6; }
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18214 $as_echo_n "checking for non-GNU ld... " >&6; }
18216 if test "${lt_cv_path_LD+set}" = set; then :
18217 $as_echo_n "(cached) " >&6
18219 if test -z "$LD"; then
18220 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18221 for ac_dir
in $PATH; do
18223 test -z "$ac_dir" && ac_dir
=.
18224 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18225 lt_cv_path_LD
="$ac_dir/$ac_prog"
18226 # Check to see if the program is GNU ld. I'd rather use --version,
18227 # but apparently some variants of GNU ld only accept -v.
18228 # Break only if it was the GNU/non-GNU ld that we prefer.
18229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18230 *GNU
* |
*'with BFD'*)
18231 test "$with_gnu_ld" != no
&& break
18234 test "$with_gnu_ld" != yes && break
18241 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18245 LD
="$lt_cv_path_LD"
18246 if test -n "$LD"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18248 $as_echo "$LD" >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18253 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18255 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18256 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18257 $as_echo_n "(cached) " >&6
18259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18260 case `$LD -v 2>&1 </dev/null` in
18261 *GNU
* |
*'with BFD'*)
18262 lt_cv_prog_gnu_ld
=yes
18265 lt_cv_prog_gnu_ld
=no
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18270 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18271 with_gnu_ld
=$lt_cv_prog_gnu_ld
18279 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18280 # archiving commands below assume that GNU ld is being used.
18281 if test "$with_gnu_ld" = yes; then
18282 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18283 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'
18285 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18286 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18288 # If archive_cmds runs LD, not CC, wlarc should be empty
18289 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18290 # investigate it a little bit more. (MM)
18293 # ancient GNU ld didn't support --whole-archive et. al.
18294 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18295 $GREP 'no-whole-archive' > /dev
/null
; then
18296 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18298 whole_archive_flag_spec_CXX
=
18304 # A generic and very simple default shared library creation
18305 # command for GNU C++ for the case where it uses the native
18306 # linker, instead of GNU ld. If possible, this setting should
18307 # overridden to take advantage of the native linker features on
18308 # the platform it is being used on.
18309 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18312 # Commands to make compiler produce verbose output that lists
18313 # what "hidden" libraries, object files and flags are used when
18314 # linking a shared library.
18315 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18323 # PORTME: fill in a description of your system's C++ link characteristics
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18325 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18329 # FIXME: insert proper C++ library support
18333 if test "$host_cpu" = ia64
; then
18334 # On IA64, the linker does run time linking by default, so we don't
18335 # have to do anything special.
18336 aix_use_runtimelinking
=no
18337 exp_sym_flag
='-Bexport'
18340 aix_use_runtimelinking
=no
18342 # Test if we are trying to use run time linking or normal
18343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18344 # need to do runtime linking.
18345 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18346 for ld_flag
in $LDFLAGS; do
18349 aix_use_runtimelinking
=yes
18357 exp_sym_flag
='-bexport'
18358 no_entry_flag
='-bnoentry'
18361 # When large executables or shared objects are built, AIX ld can
18362 # have problems creating the table of contents. If linking a library
18363 # or program results in "error TOC overflow" add -mminimal-toc to
18364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18367 archive_cmds_CXX
=''
18368 hardcode_direct_CXX
=yes
18369 hardcode_direct_absolute_CXX
=yes
18370 hardcode_libdir_separator_CXX
=':'
18371 link_all_deplibs_CXX
=yes
18372 file_list_spec_CXX
='${wl}-f,'
18374 if test "$GXX" = yes; then
18375 case $host_os in aix4.
[012]|aix4.
[012].
*)
18376 # We only want to do this on AIX 4.2 and lower, the check
18377 # below for broken collect2 doesn't work under 4.3+
18378 collect2name
=`${CC} -print-prog-name=collect2`
18379 if test -f "$collect2name" &&
18380 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18382 # We have reworked collect2
18385 # We have old collect2
18386 hardcode_direct_CXX
=unsupported
18387 # It fails to find uninstalled libraries when the uninstalled
18388 # path is not listed in the libpath. Setting hardcode_minus_L
18389 # to unsupported forces relinking
18390 hardcode_minus_L_CXX
=yes
18391 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18392 hardcode_libdir_separator_CXX
=
18395 shared_flag
='-shared'
18396 if test "$aix_use_runtimelinking" = yes; then
18397 shared_flag
="$shared_flag "'${wl}-G'
18401 if test "$host_cpu" = ia64
; then
18402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18403 # chokes on -Wl,-G. The following line is correct:
18406 if test "$aix_use_runtimelinking" = yes; then
18407 shared_flag
='${wl}-G'
18409 shared_flag
='${wl}-bM:SRE'
18414 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18415 # It seems that -bexpall does not export symbols beginning with
18416 # underscore (_), so it is better to generate a list of symbols to
18418 always_export_symbols_CXX
=yes
18419 if test "$aix_use_runtimelinking" = yes; then
18420 # Warning - without using the other runtime loading flags (-brtl),
18421 # -berok will link without error, but may produce a broken library.
18422 allow_undefined_flag_CXX
='-berok'
18423 # Determine the default libpath from the value encoded in an empty
18425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18436 if ac_fn_cxx_try_link
"$LINENO"; then :
18438 lt_aix_libpath_sed
='
18439 /Import File Strings/,/^$/ {
18445 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18446 # Check for a 64-bit object if we didn't find anything.
18447 if test -z "$aix_libpath"; then
18448 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18451 rm -f core conftest.err conftest.
$ac_objext \
18452 conftest
$ac_exeext conftest.
$ac_ext
18453 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18455 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18457 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"
18459 if test "$host_cpu" = ia64
; then
18460 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18461 allow_undefined_flag_CXX
="-z nodefs"
18462 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"
18464 # Determine the default libpath from the value encoded in an
18465 # empty executable.
18466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18477 if ac_fn_cxx_try_link
"$LINENO"; then :
18479 lt_aix_libpath_sed
='
18480 /Import File Strings/,/^$/ {
18486 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18487 # Check for a 64-bit object if we didn't find anything.
18488 if test -z "$aix_libpath"; then
18489 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18492 rm -f core conftest.err conftest.
$ac_objext \
18493 conftest
$ac_exeext conftest.
$ac_ext
18494 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18496 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18497 # Warning - without using the other run time loading flags,
18498 # -berok will link without error, but may produce a broken library.
18499 no_undefined_flag_CXX
=' ${wl}-bernotok'
18500 allow_undefined_flag_CXX
=' ${wl}-berok'
18501 if test "$with_gnu_ld" = yes; then
18502 # We only use this code for GNU lds that support --whole-archive.
18503 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18505 # Exported symbols can be pulled into shared objects from archives
18506 whole_archive_flag_spec_CXX
='$convenience'
18508 archive_cmds_need_lc_CXX
=yes
18509 # This is similar to how AIX traditionally builds its shared
18511 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'
18517 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18518 allow_undefined_flag_CXX
=unsupported
18519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18520 # support --undefined. This deserves some investigation. FIXME
18521 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18528 case $cc_basename in
18530 # FIXME: insert proper C++ library support
18536 cygwin
* | mingw
* | pw32
* | cegcc
*)
18537 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18538 # as there is no search path for DLLs.
18539 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18540 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18541 allow_undefined_flag_CXX
=unsupported
18542 always_export_symbols_CXX
=no
18543 enable_shared_with_static_runtimes_CXX
=yes
18545 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18546 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'
18547 # If the export-symbols file already is a .def file (1st line
18548 # is EXPORTS), use it as is; otherwise, prepend...
18549 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18550 cp $export_symbols $output_objdir/$soname.def;
18552 echo EXPORTS > $output_objdir/$soname.def;
18553 cat $export_symbols >> $output_objdir/$soname.def;
18555 $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'
18560 darwin
* | rhapsody
*)
18563 archive_cmds_need_lc_CXX
=no
18564 hardcode_direct_CXX
=no
18565 hardcode_automatic_CXX
=yes
18566 hardcode_shlibpath_var_CXX
=unsupported
18567 if test "$lt_cv_ld_force_load" = "yes"; then
18568 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\"`'
18570 whole_archive_flag_spec_CXX
=''
18572 link_all_deplibs_CXX
=yes
18573 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18574 case $cc_basename in
18575 ifort
*) _lt_dar_can_shared
=yes ;;
18576 *) _lt_dar_can_shared
=$GCC ;;
18578 if test "$_lt_dar_can_shared" = "yes"; then
18579 output_verbose_link_cmd
=func_echo_all
18580 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}"
18581 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18582 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}"
18583 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}"
18584 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18585 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}"
18586 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}"
18596 case $cc_basename in
18598 # FIXME: insert proper C++ library support
18602 # Green Hills C++ Compiler
18603 # FIXME: insert proper C++ library support
18607 # FIXME: insert proper C++ library support
18614 # C++ shared libraries reported to be fairly broken before
18620 archive_cmds_need_lc_CXX
=no
18623 freebsd
* | dragonfly
*)
18624 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18633 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18634 link_all_deplibs_CXX
=yes
18638 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18639 hardcode_libdir_separator_CXX
=:
18640 export_dynamic_flag_spec_CXX
='${wl}-E'
18641 hardcode_direct_CXX
=yes
18642 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18643 # but as the default
18644 # location of the library.
18646 case $cc_basename in
18648 # FIXME: insert proper C++ library support
18652 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'
18653 # Commands to make compiler produce verbose output that lists
18654 # what "hidden" libraries, object files and flags are used when
18655 # linking a shared library.
18657 # There doesn't appear to be a way to prevent this compiler from
18658 # explicitly linking system object files so we need to strip them
18659 # from the output so that they don't get included in the library
18661 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"'
18664 if test "$GXX" = yes; then
18665 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'
18667 # FIXME: insert proper C++ library support
18675 if test $with_gnu_ld = no
; then
18676 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18677 hardcode_libdir_separator_CXX
=:
18683 export_dynamic_flag_spec_CXX
='${wl}-E'
18689 hardcode_direct_CXX
=no
18690 hardcode_shlibpath_var_CXX
=no
18693 hardcode_direct_CXX
=yes
18694 hardcode_direct_absolute_CXX
=yes
18695 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18696 # but as the default
18697 # location of the library.
18701 case $cc_basename in
18703 # FIXME: insert proper C++ library support
18709 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18712 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18715 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18718 # Commands to make compiler produce verbose output that lists
18719 # what "hidden" libraries, object files and flags are used when
18720 # linking a shared library.
18722 # There doesn't appear to be a way to prevent this compiler from
18723 # explicitly linking system object files so we need to strip them
18724 # from the output so that they don't get included in the library
18726 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"'
18729 if test "$GXX" = yes; then
18730 if test $with_gnu_ld = no
; then
18733 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18736 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739 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'
18744 # FIXME: insert proper C++ library support
18752 hardcode_direct_CXX
=no
18753 hardcode_shlibpath_var_CXX
=no
18754 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18755 export_dynamic_flag_spec_CXX
='${wl}-E'
18756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18757 # Instead, shared libraries are loaded at an image base (0x10000000 by
18758 # default) and relocated if they conflict, which is a slow very memory
18759 # consuming and fragmenting process. To avoid this, we pick a random,
18760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18762 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'
18763 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'
18766 case $cc_basename in
18769 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'
18771 # Archives containing C++ object files must be created using
18772 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18773 # necessary to make sure instantiated templates are included
18775 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18778 if test "$GXX" = yes; then
18779 if test "$with_gnu_ld" = no
; then
18780 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'
18782 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'
18785 link_all_deplibs_CXX
=yes
18788 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18789 hardcode_libdir_separator_CXX
=:
18790 inherit_rpath_CXX
=yes
18793 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18794 case $cc_basename in
18796 # Kuck and Associates, Inc. (KAI) C++ Compiler
18798 # KCC will only create a shared library if the output file
18799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18800 # to its proper name (with version) after linking.
18801 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'
18802 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'
18803 # Commands to make compiler produce verbose output that lists
18804 # what "hidden" libraries, object files and flags are used when
18805 # linking a shared library.
18807 # There doesn't appear to be a way to prevent this compiler from
18808 # explicitly linking system object files so we need to strip them
18809 # from the output so that they don't get included in the library
18811 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"'
18813 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18814 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18816 # Archives containing C++ object files must be created using
18817 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18818 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18823 # version 8.0 and above of icpc choke on multiply defined symbols
18824 # if we add $predep_objects and $postdep_objects, however 7.1 and
18825 # earlier do not add the objects themselves.
18826 case `$CC -V 2>&1` in
18828 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18829 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'
18831 *) # Version 8.0 or newer
18834 ia64
*) tmp_idyn
=' -i_dynamic';;
18836 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 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'
18840 archive_cmds_need_lc_CXX
=no
18841 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18842 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18843 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18846 # Portland Group C++ compiler
18848 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18849 prelink_cmds_CXX
='tpldir=Template.dir~
18851 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18852 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18853 old_archive_cmds_CXX
='tpldir=Template.dir~
18855 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18856 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18858 archive_cmds_CXX
='tpldir=Template.dir~
18860 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18861 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18862 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18864 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18865 $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'
18867 *) # Version 6 and above use weak symbols
18868 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18869 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'
18873 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18874 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18875 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'
18879 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880 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'
18882 runpath_var
=LD_RUN_PATH
18883 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18884 hardcode_libdir_separator_CXX
=:
18886 # Commands to make compiler produce verbose output that lists
18887 # what "hidden" libraries, object files and flags are used when
18888 # linking a shared library.
18890 # There doesn't appear to be a way to prevent this compiler from
18891 # explicitly linking system object files so we need to strip them
18892 # from the output so that they don't get included in the library
18894 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'
18896 xl
* | mpixl
* | bgxl
*)
18897 # IBM XL 8.0 on PPC, with GNU ld
18898 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18899 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18900 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901 if test "x$supports_anon_versioning" = xyes
; then
18902 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18904 echo "local: *; };" >> $output_objdir/$libname.ver~
18905 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18909 case `$CC -V 2>&1 | sed 5q` in
18912 no_undefined_flag_CXX
=' -zdefs'
18913 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18914 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'
18915 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18916 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'
18917 compiler_needs_object_CXX
=yes
18919 # Not sure whether something based on
18920 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18922 output_verbose_link_cmd
='func_echo_all'
18924 # Archives containing C++ object files must be created using
18925 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18926 # necessary to make sure instantiated templates are included
18928 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18936 # FIXME: insert proper C++ library support
18941 # FIXME: insert proper C++ library support
18946 case $cc_basename in
18948 # FIXME: insert proper C++ library support
18952 # FIXME: insert proper C++ library support
18959 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18960 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18962 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18963 hardcode_direct_CXX
=yes
18964 hardcode_shlibpath_var_CXX
=no
18966 # Workaround some broken pre-1.5 toolchains
18967 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18975 # C++ shared libraries are fairly broken
18980 if test -f /usr
/libexec
/ld.so
; then
18981 hardcode_direct_CXX
=yes
18982 hardcode_shlibpath_var_CXX
=no
18983 hardcode_direct_absolute_CXX
=yes
18984 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18985 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18987 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18988 export_dynamic_flag_spec_CXX
='${wl}-E'
18989 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18991 output_verbose_link_cmd
=func_echo_all
18997 osf3
* | osf4
* | osf5
*)
18998 case $cc_basename in
19000 # Kuck and Associates, Inc. (KAI) C++ Compiler
19002 # KCC will only create a shared library if the output file
19003 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19004 # to its proper name (with version) after linking.
19005 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'
19007 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19008 hardcode_libdir_separator_CXX
=:
19010 # Archives containing C++ object files must be created using
19011 # the KAI C++ compiler.
19013 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19014 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19018 # Rational C++ 2.4.1
19019 # FIXME: insert proper C++ library support
19025 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19026 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'
19027 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19030 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19031 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'
19032 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19033 echo "-hidden">> $lib.exp~
19034 $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~
19036 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19040 hardcode_libdir_separator_CXX
=:
19042 # Commands to make compiler produce verbose output that lists
19043 # what "hidden" libraries, object files and flags are used when
19044 # linking a shared library.
19046 # There doesn't appear to be a way to prevent this compiler from
19047 # explicitly linking system object files so we need to strip them
19048 # from the output so that they don't get included in the library
19050 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"'
19053 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19054 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19057 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'
19060 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'
19064 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19065 hardcode_libdir_separator_CXX
=:
19067 # Commands to make compiler produce verbose output that lists
19068 # what "hidden" libraries, object files and flags are used when
19069 # linking a shared library.
19070 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19073 # FIXME: insert proper C++ library support
19081 # FIXME: insert proper C++ library support
19086 case $cc_basename in
19089 # FIXME: insert proper C++ library support
19094 # FIXME: insert proper C++ library support
19098 # FIXME: insert proper C++ library support
19105 case $cc_basename in
19107 # Sun C++ 4.2, 5.x and Centerline C++
19108 archive_cmds_need_lc_CXX
=yes
19109 no_undefined_flag_CXX
=' -zdefs'
19110 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19111 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19112 $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'
19114 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19115 hardcode_shlibpath_var_CXX
=no
19117 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19119 # The compiler driver will combine and reorder linker options,
19120 # but understands `-z linker_flag'.
19121 # Supported since Solaris 2.6 (maybe 2.5.1?)
19122 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19125 link_all_deplibs_CXX
=yes
19127 output_verbose_link_cmd
='func_echo_all'
19129 # Archives containing C++ object files must be created using
19130 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19131 # necessary to make sure instantiated templates are included
19133 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19136 # Green Hills C++ Compiler
19137 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19139 # The C++ compiler must be used to create the archive.
19140 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19143 # GNU C++ compiler with Solaris linker
19144 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19145 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19146 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19147 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19148 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19149 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19154 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19156 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19158 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19159 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19160 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19168 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19170 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19172 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19180 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19181 no_undefined_flag_CXX
='${wl}-z,text'
19182 archive_cmds_need_lc_CXX
=no
19183 hardcode_shlibpath_var_CXX
=no
19184 runpath_var
='LD_RUN_PATH'
19186 case $cc_basename in
19188 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19189 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19192 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19193 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198 sysv5
* | sco3.2v5
* | sco5v6
*)
19199 # Note: We can NOT use -z defs as we might desire, because we do not
19200 # link with -lc, and that would cause any symbols used from libc to
19201 # always be unresolved, which means just about no library would
19202 # ever link correctly. If we're not using GNU ld we use -z text
19203 # though, which does catch some bad symbols but isn't as heavy-handed
19205 no_undefined_flag_CXX
='${wl}-z,text'
19206 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19207 archive_cmds_need_lc_CXX
=no
19208 hardcode_shlibpath_var_CXX
=no
19209 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19210 hardcode_libdir_separator_CXX
=':'
19211 link_all_deplibs_CXX
=yes
19212 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19213 runpath_var
='LD_RUN_PATH'
19215 case $cc_basename in
19217 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19218 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19219 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19220 '"$old_archive_cmds_CXX"
19221 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19222 '"$reload_cmds_CXX"
19225 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19226 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19232 case $cc_basename in
19234 # NonStop-UX NCC 3.20
19235 # FIXME: insert proper C++ library support
19239 # FIXME: insert proper C++ library support
19246 # FIXME: insert proper C++ library support
19251 # FIXME: insert proper C++ library support
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19257 $as_echo "$ld_shlibs_CXX" >&6; }
19258 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19264 ## There is no encapsulation within the following macros, do not change
19265 ## the running order or otherwise move them around unless you know exactly
19266 ## what you are doing...
19267 # Dependencies to place before and after the object being linked:
19268 predep_objects_CXX
=
19269 postdep_objects_CXX
=
19272 compiler_lib_search_path_CXX
=
19274 cat > conftest.
$ac_ext <<_LT_EOF
19278 Foo (void) { a = 0; }
19284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19285 (eval $ac_compile) 2>&5
19287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19288 test $ac_status = 0; }; then
19289 # Parse the compiler output and extract the necessary
19290 # objects, libraries and library flags.
19292 # Sentinel used to keep track of whether or not we are before
19293 # the conftest object file.
19294 pre_test_object_deps_done
=no
19296 for p
in `eval "$output_verbose_link_cmd"`; do
19300 # Some compilers place space between "-{L,R}" and the path.
19301 # Remove the space.
19302 if test $p = "-L" ||
19303 test $p = "-R"; then
19310 if test "$pre_test_object_deps_done" = no
; then
19313 # Internal compiler library paths should come after those
19314 # provided the user. The postdeps already come after the
19315 # user supplied libs so there is no need to process them.
19316 if test -z "$compiler_lib_search_path_CXX"; then
19317 compiler_lib_search_path_CXX
="${prev}${p}"
19319 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19322 # The "-l" case would never come before the object being
19323 # linked, so don't bother handling this case.
19326 if test -z "$postdeps_CXX"; then
19327 postdeps_CXX
="${prev}${p}"
19329 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19335 # This assumes that the test object file only shows up
19336 # once in the compiler output.
19337 if test "$p" = "conftest.$objext"; then
19338 pre_test_object_deps_done
=yes
19342 if test "$pre_test_object_deps_done" = no
; then
19343 if test -z "$predep_objects_CXX"; then
19344 predep_objects_CXX
="$p"
19346 predep_objects_CXX
="$predep_objects_CXX $p"
19349 if test -z "$postdep_objects_CXX"; then
19350 postdep_objects_CXX
="$p"
19352 postdep_objects_CXX
="$postdep_objects_CXX $p"
19357 *) ;; # Ignore the rest.
19365 echo "libtool.m4: error: problem compiling CXX test program"
19368 $RM -f confest.
$objext
19370 # PORTME: override above test on systems where it is broken
19373 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19374 # hack all around it, let's just trust "g++" to DTRT.
19375 predep_objects_CXX
=
19376 postdep_objects_CXX
=
19381 case `$CC -V 2>&1 | sed 5q` in
19385 # The more standards-conforming stlport4 library is
19386 # incompatible with the Cstd library. Avoid specifying
19387 # it if it's in CXXFLAGS. Ignore libCrun as
19388 # -library=stlport4 depends on it.
19389 case " $CXX $CXXFLAGS " in
19390 *" -library=stlport4 "*)
19391 solaris_use_stlport4
=yes
19395 if test "$solaris_use_stlport4" != yes; then
19396 postdeps_CXX
='-library=Cstd -library=Crun'
19403 case $cc_basename in
19405 # The more standards-conforming stlport4 library is
19406 # incompatible with the Cstd library. Avoid specifying
19407 # it if it's in CXXFLAGS. Ignore libCrun as
19408 # -library=stlport4 depends on it.
19409 case " $CXX $CXXFLAGS " in
19410 *" -library=stlport4 "*)
19411 solaris_use_stlport4
=yes
19415 # Adding this requires a known-good setup of shared libraries for
19416 # Sun compiler versions before 5.6, else PIC objects from an old
19417 # archive will be linked into the output, leading to subtle bugs.
19418 if test "$solaris_use_stlport4" != yes; then
19419 postdeps_CXX
='-library=Cstd -library=Crun'
19427 case " $postdeps_CXX " in
19428 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19430 compiler_lib_search_dirs_CXX
=
19431 if test -n "${compiler_lib_search_path_CXX}"; then
19432 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19465 lt_prog_compiler_wl_CXX
=
19466 lt_prog_compiler_pic_CXX
=
19467 lt_prog_compiler_static_CXX
=
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19472 # C++ specific cases for pic, static, wl, etc.
19473 if test "$GXX" = yes; then
19474 lt_prog_compiler_wl_CXX
='-Wl,'
19475 lt_prog_compiler_static_CXX
='-static'
19479 # All AIX code is PIC.
19480 if test "$host_cpu" = ia64
; then
19481 # AIX 5 now supports IA64 processor
19482 lt_prog_compiler_static_CXX
='-Bstatic'
19489 # see comment about AmigaOS4 .so support
19490 lt_prog_compiler_pic_CXX
='-fPIC'
19493 # FIXME: we need at least 68020 code to build shared libraries, but
19494 # adding the `-m68020' flag to GCC prevents building anything better,
19496 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19501 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19502 # PIC is the default for these OSes.
19504 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19505 # This hack is so that the source file can tell whether it is being
19506 # built for inclusion in a dll (and should export symbols for example).
19507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19508 # (--disable-auto-import) libraries
19509 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19511 darwin
* | rhapsody
*)
19512 # PIC is the default on this platform
19513 # Common symbols not allowed in MH_DYLIB files
19514 lt_prog_compiler_pic_CXX
='-fno-common'
19517 # DJGPP does not support shared libraries at all
19518 lt_prog_compiler_pic_CXX
=
19521 # PIC is the default for Haiku.
19522 # The "-static" flag exists, but is broken.
19523 lt_prog_compiler_static_CXX
=
19526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19527 # Instead, we relocate shared libraries at runtime.
19530 if test -d /usr
/nec
; then
19531 lt_prog_compiler_pic_CXX
=-Kconform_pic
19535 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19536 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19537 # sets the default TLS model and affects inlining.
19542 lt_prog_compiler_pic_CXX
='-fPIC'
19547 # QNX uses GNU C++, but need to define -shared option too, otherwise
19548 # it will coredump.
19549 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19552 lt_prog_compiler_pic_CXX
='-fPIC'
19558 # All AIX code is PIC.
19559 if test "$host_cpu" = ia64
; then
19560 # AIX 5 now supports IA64 processor
19561 lt_prog_compiler_static_CXX
='-Bstatic'
19563 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19567 case $cc_basename in
19569 # Green Hills C++ Compiler
19570 # _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"
19575 case $cc_basename in
19577 lt_prog_compiler_pic_CXX
='-KPIC'
19580 # Green Hills C++ Compiler
19581 lt_prog_compiler_pic_CXX
='-pic'
19587 freebsd
* | dragonfly
*)
19588 # FreeBSD uses GNU C++
19590 hpux9
* | hpux10
* | hpux11
*)
19591 case $cc_basename in
19593 lt_prog_compiler_wl_CXX
='-Wl,'
19594 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19595 if test "$host_cpu" != ia64
; then
19596 lt_prog_compiler_pic_CXX
='+Z'
19600 lt_prog_compiler_wl_CXX
='-Wl,'
19601 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19607 lt_prog_compiler_pic_CXX
='+Z'
19616 # This is c89, which is MS Visual C++ (no shared libs)
19617 # Anyone wants to do a port?
19619 irix5
* | irix6
* | nonstopux
*)
19620 case $cc_basename in
19622 lt_prog_compiler_wl_CXX
='-Wl,'
19623 lt_prog_compiler_static_CXX
='-non_shared'
19624 # CC pic flag -KPIC is the default.
19630 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19631 case $cc_basename in
19634 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19635 lt_prog_compiler_pic_CXX
='-fPIC'
19638 # old Intel C++ for x86_64 which still supported -KPIC.
19639 lt_prog_compiler_wl_CXX
='-Wl,'
19640 lt_prog_compiler_pic_CXX
='-KPIC'
19641 lt_prog_compiler_static_CXX
='-static'
19644 # Intel C++, used to be incompatible with GCC.
19645 # ICC 10 doesn't accept -KPIC any more.
19646 lt_prog_compiler_wl_CXX
='-Wl,'
19647 lt_prog_compiler_pic_CXX
='-fPIC'
19648 lt_prog_compiler_static_CXX
='-static'
19651 # Portland Group C++ compiler
19652 lt_prog_compiler_wl_CXX
='-Wl,'
19653 lt_prog_compiler_pic_CXX
='-fpic'
19654 lt_prog_compiler_static_CXX
='-Bstatic'
19658 # Make sure the PIC flag is empty. It appears that all Alpha
19659 # Linux and Compaq Tru64 Unix objects are PIC.
19660 lt_prog_compiler_pic_CXX
=
19661 lt_prog_compiler_static_CXX
='-non_shared'
19663 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19664 # IBM XL 8.0, 9.0 on PPC and BlueGene
19665 lt_prog_compiler_wl_CXX
='-Wl,'
19666 lt_prog_compiler_pic_CXX
='-qpic'
19667 lt_prog_compiler_static_CXX
='-qstaticlink'
19670 case `$CC -V 2>&1 | sed 5q` in
19673 lt_prog_compiler_pic_CXX
='-KPIC'
19674 lt_prog_compiler_static_CXX
='-Bstatic'
19675 lt_prog_compiler_wl_CXX
='-Qoption ld '
19686 case $cc_basename in
19688 lt_prog_compiler_pic_CXX
='-W c,exportall'
19697 # QNX uses GNU C++, but need to define -shared option too, otherwise
19698 # it will coredump.
19699 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19701 osf3
* | osf4
* | osf5
*)
19702 case $cc_basename in
19704 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19707 # Rational C++ 2.4.1
19708 lt_prog_compiler_pic_CXX
='-pic'
19711 # Digital/Compaq C++
19712 lt_prog_compiler_wl_CXX
='-Wl,'
19713 # Make sure the PIC flag is empty. It appears that all Alpha
19714 # Linux and Compaq Tru64 Unix objects are PIC.
19715 lt_prog_compiler_pic_CXX
=
19716 lt_prog_compiler_static_CXX
='-non_shared'
19725 case $cc_basename in
19727 # Sun C++ 4.2, 5.x and Centerline C++
19728 lt_prog_compiler_pic_CXX
='-KPIC'
19729 lt_prog_compiler_static_CXX
='-Bstatic'
19730 lt_prog_compiler_wl_CXX
='-Qoption ld '
19733 # Green Hills C++ Compiler
19734 lt_prog_compiler_pic_CXX
='-PIC'
19741 case $cc_basename in
19744 lt_prog_compiler_pic_CXX
='-pic'
19745 lt_prog_compiler_static_CXX
='-Bstatic'
19749 lt_prog_compiler_pic_CXX
='-pic'
19755 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19756 case $cc_basename in
19758 lt_prog_compiler_wl_CXX
='-Wl,'
19759 lt_prog_compiler_pic_CXX
='-KPIC'
19760 lt_prog_compiler_static_CXX
='-Bstatic'
19765 case $cc_basename in
19767 # NonStop-UX NCC 3.20
19768 lt_prog_compiler_pic_CXX
='-KPIC'
19777 lt_prog_compiler_can_build_shared_CXX
=no
19783 # For platforms which do not support PIC, -DPIC is meaningless:
19785 lt_prog_compiler_pic_CXX
=
19788 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19792 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19797 # Check to make sure the PIC flag actually works.
19799 if test -n "$lt_prog_compiler_pic_CXX"; then
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19802 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19803 $as_echo_n "(cached) " >&6
19805 lt_cv_prog_compiler_pic_works_CXX
=no
19806 ac_outfile
=conftest.
$ac_objext
19807 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19808 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19809 # Insert the option either (1) after the last *FLAGS variable, or
19810 # (2) before a word containing "conftest.", or (3) at the end.
19811 # Note that $ac_compile itself does not contain backslashes and begins
19812 # with a dollar sign (not a hyphen), so the echo should work correctly.
19813 # The option is referenced via a variable to avoid confusing sed.
19814 lt_compile
=`echo "$ac_compile" | $SED \
19815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19817 -e 's:$: $lt_compiler_flag:'`
19818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19819 (eval "$lt_compile" 2>conftest.err
)
19821 cat conftest.err
>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 if (exit $ac_status) && test -s "$ac_outfile"; then
19824 # The compiler can only warn and ignore the option if not recognized
19825 # So say no if there are warnings other than the usual output.
19826 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19827 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19828 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19829 lt_cv_prog_compiler_pic_works_CXX
=yes
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19836 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19838 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19839 case $lt_prog_compiler_pic_CXX in
19841 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19844 lt_prog_compiler_pic_CXX
=
19845 lt_prog_compiler_can_build_shared_CXX
=no
19853 # Check to make sure the static flag actually works.
19855 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19857 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19858 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
19861 lt_cv_prog_compiler_static_works_CXX
=no
19862 save_LDFLAGS
="$LDFLAGS"
19863 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19864 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19865 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19866 # The linker can only warn and ignore the option if not recognized
19867 # So say no if there are warnings
19868 if test -s conftest.err
; then
19869 # Append any errors to the config.log.
19870 cat conftest.err
1>&5
19871 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19872 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19873 if diff conftest.exp conftest.er2
>/dev
/null
; then
19874 lt_cv_prog_compiler_static_works_CXX
=yes
19877 lt_cv_prog_compiler_static_works_CXX
=yes
19881 LDFLAGS
="$save_LDFLAGS"
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19885 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19887 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19890 lt_prog_compiler_static_CXX
=
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19898 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19899 $as_echo_n "(cached) " >&6
19901 lt_cv_prog_compiler_c_o_CXX
=no
19902 $RM -r conftest
2>/dev
/null
19906 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19908 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19909 # Insert the option either (1) after the last *FLAGS variable, or
19910 # (2) before a word containing "conftest.", or (3) at the end.
19911 # Note that $ac_compile itself does not contain backslashes and begins
19912 # with a dollar sign (not a hyphen), so the echo should work correctly.
19913 lt_compile
=`echo "$ac_compile" | $SED \
19914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19916 -e 's:$: $lt_compiler_flag:'`
19917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19918 (eval "$lt_compile" 2>out
/conftest.err
)
19920 cat out
/conftest.err
>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19924 # The compiler can only warn and ignore the option if not recognized
19925 # So say no if there are warnings
19926 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19927 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19928 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19929 lt_cv_prog_compiler_c_o_CXX
=yes
19934 # SGI C++ compiler will create directory out/ii_files/ for
19935 # template instantiation
19936 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19937 $RM out
/* && rmdir out
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19944 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19949 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19950 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19951 $as_echo_n "(cached) " >&6
19953 lt_cv_prog_compiler_c_o_CXX
=no
19954 $RM -r conftest
2>/dev
/null
19958 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19960 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19961 # Insert the option either (1) after the last *FLAGS variable, or
19962 # (2) before a word containing "conftest.", or (3) at the end.
19963 # Note that $ac_compile itself does not contain backslashes and begins
19964 # with a dollar sign (not a hyphen), so the echo should work correctly.
19965 lt_compile
=`echo "$ac_compile" | $SED \
19966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19968 -e 's:$: $lt_compiler_flag:'`
19969 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19970 (eval "$lt_compile" 2>out
/conftest.err
)
19972 cat out
/conftest.err
>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19976 # The compiler can only warn and ignore the option if not recognized
19977 # So say no if there are warnings
19978 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19979 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19980 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19981 lt_cv_prog_compiler_c_o_CXX
=yes
19986 # SGI C++ compiler will create directory out/ii_files/ for
19987 # template instantiation
19988 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19989 $RM out
/* && rmdir out
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19996 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20001 hard_links
="nottested"
20002 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20003 # do not overwrite the value of need_locks provided by the user
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20005 $as_echo_n "checking if we can lock with hard links... " >&6; }
20008 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20010 ln conftest.a conftest.b
2>&5 || hard_links
=no
20011 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20013 $as_echo "$hard_links" >&6; }
20014 if test "$hard_links" = no
; then
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20016 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20026 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20028 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20031 # If we're using GNU nm, then we don't want the "-C" option.
20032 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20033 # Also, AIX nm treats weak defined symbols like other global defined
20034 # symbols, whereas GNU nm marks them as "W".
20035 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20036 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'
20038 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'
20042 export_symbols_cmds_CXX
="$ltdll_cmds"
20044 cygwin
* | mingw
* | cegcc
*)
20045 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'
20048 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20051 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20054 $as_echo "$ld_shlibs_CXX" >&6; }
20055 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20057 with_gnu_ld_CXX
=$with_gnu_ld
20065 # Do we need to explicitly link libc?
20067 case "x$archive_cmds_need_lc_CXX" in
20069 # Assume -lc should be added
20070 archive_cmds_need_lc_CXX
=yes
20072 if test "$enable_shared" = yes && test "$GCC" = yes; then
20073 case $archive_cmds_CXX in
20075 # FIXME: we may have to deal with multi-command sequences.
20078 # Test whether the compiler implicitly links with -lc since on some
20079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20080 # to ld, don't add -lc before -lgcc.
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20083 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20084 $as_echo_n "(cached) " >&6
20087 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20090 (eval $ac_compile) 2>&5
20092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20093 test $ac_status = 0; } 2>conftest.err
; then
20096 libobjs
=conftest.
$ac_objext
20098 wl
=$lt_prog_compiler_wl_CXX
20099 pic_flag
=$lt_prog_compiler_pic_CXX
20105 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20106 allow_undefined_flag_CXX
=
20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20108 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; }
20113 lt_cv_archive_cmds_need_lc_CXX
=no
20115 lt_cv_archive_cmds_need_lc_CXX
=yes
20117 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20119 cat conftest.err
1>&5
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20125 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20126 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20197 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20199 library_names_spec
=
20200 libname_spec
='lib$name'
20204 postuninstall_cmds
=
20208 shlibpath_overrides_runpath
=unknown
20210 dynamic_linker
="$host_os ld.so"
20211 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20212 need_lib_prefix
=unknown
20213 hardcode_into_libs
=no
20215 # when you set need_version to no, make sure it does not cause -set_version
20216 # flags to be left without arguments
20217 need_version
=unknown
20222 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20223 shlibpath_var
=LIBPATH
20225 # AIX 3 has no versioning support, so we append a major version to the name.
20226 soname_spec
='${libname}${release}${shared_ext}$major'
20233 hardcode_into_libs
=yes
20234 if test "$host_cpu" = ia64
; then
20235 # AIX 5 supports IA64
20236 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20237 shlibpath_var
=LD_LIBRARY_PATH
20239 # With GCC up to 2.95.x, collect2 would create an import file
20240 # for dependence libraries. The import file would start with
20241 # the line `#! .'. This would cause the generated library to
20242 # depend on `.', always an invalid library. This was fixed in
20243 # development snapshots of GCC prior to 3.0.
20245 aix4 | aix4.
[01] | aix4.
[01].
*)
20246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20248 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20251 can_build_shared
=no
20255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20256 # soname into executable. Probably we can add versioning support to
20257 # collect2, so additional links can be useful in future.
20258 if test "$aix_use_runtimelinking" = yes; then
20259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20260 # instead of lib<name>.a to let people know that these are not
20261 # typical AIX shared libraries.
20262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20264 # We preserve .a as extension for shared libraries through AIX4.2
20265 # and later when we are not doing run time linking.
20266 library_names_spec
='${libname}${release}.a $libname.a'
20267 soname_spec
='${libname}${release}${shared_ext}$major'
20269 shlibpath_var
=LIBPATH
20276 # Since July 2007 AmigaOS4 officially supports .so libraries.
20277 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20281 library_names_spec
='$libname.ixlibrary $libname.a'
20282 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20283 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'
20289 library_names_spec
='${libname}${shared_ext}'
20290 dynamic_linker
="$host_os ld.so"
20291 shlibpath_var
=LIBRARY_PATH
20297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20298 soname_spec
='${libname}${release}${shared_ext}$major'
20299 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20300 shlibpath_var
=LD_LIBRARY_PATH
20301 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20302 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20303 # the default ld.so.conf also contains /usr/contrib/lib and
20304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20305 # libtool to hard-code these into programs
20308 cygwin
* | mingw
* | pw32
* | cegcc
*)
20309 version_type
=windows
20314 case $GCC,$host_os in
20315 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20316 library_names_spec
='$libname.dll.a'
20317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20318 postinstall_cmds
='base_file=`basename \${file}`~
20319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20320 dldir=$destdir/`dirname \$dlpath`~
20321 test -d \$dldir || mkdir -p \$dldir~
20322 $install_prog $dir/$dlname \$dldir/$dlname~
20323 chmod a+x \$dldir/$dlname~
20324 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20325 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20327 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20328 dlpath=$dir/\$dldll~
20330 shlibpath_overrides_runpath
=yes
20334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20335 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20339 # MinGW DLLs use traditional 'lib' prefix
20340 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20343 # pw32 DLLs use 'pw' prefix rather than 'lib'
20344 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20350 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20353 dynamic_linker
='Win32 ld.exe'
20354 # FIXME: first we should search . and the directory the executable is in
20358 darwin
* | rhapsody
*)
20359 dynamic_linker
="$host_os dyld"
20360 version_type
=darwin
20363 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20364 soname_spec
='${libname}${release}${major}$shared_ext'
20365 shlibpath_overrides_runpath
=yes
20366 shlibpath_var
=DYLD_LIBRARY_PATH
20367 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20369 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20377 soname_spec
='${libname}${release}${shared_ext}$major'
20378 shlibpath_var
=LD_LIBRARY_PATH
20381 freebsd
* | dragonfly
*)
20382 # DragonFly does not have aout. When/if they implement a new
20383 # versioning mechanism, adjust this.
20384 if test -x /usr
/bin
/objformat
; then
20385 objformat
=`/usr/bin/objformat`
20388 freebsd
[123]*) objformat
=aout
;;
20389 *) objformat
=elf
;;
20392 version_type
=freebsd-
$objformat
20393 case $version_type in
20395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20400 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20404 shlibpath_var
=LD_LIBRARY_PATH
20407 shlibpath_overrides_runpath
=yes
20409 freebsd3.
[01]* | freebsdelf3.
[01]*)
20410 shlibpath_overrides_runpath
=yes
20411 hardcode_into_libs
=yes
20413 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20414 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20415 shlibpath_overrides_runpath
=no
20416 hardcode_into_libs
=yes
20418 *) # from 4.6 on, and DragonFly
20419 shlibpath_overrides_runpath
=yes
20420 hardcode_into_libs
=yes
20429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20430 soname_spec
='${libname}${release}${shared_ext}$major'
20431 shlibpath_var
=LD_LIBRARY_PATH
20432 hardcode_into_libs
=yes
20439 dynamic_linker
="$host_os runtime_loader"
20440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20441 soname_spec
='${libname}${release}${shared_ext}$major'
20442 shlibpath_var
=LIBRARY_PATH
20443 shlibpath_overrides_runpath
=yes
20444 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20445 hardcode_into_libs
=yes
20448 hpux9
* | hpux10
* | hpux11
*)
20449 # Give a soname corresponding to the major version so that dld.sl refuses to
20450 # link against other versions.
20457 hardcode_into_libs
=yes
20458 dynamic_linker
="$host_os dld.so"
20459 shlibpath_var
=LD_LIBRARY_PATH
20460 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec
='${libname}${release}${shared_ext}$major'
20463 if test "X$HPUX_IA64_MODE" = X32
; then
20464 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20466 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20468 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20472 hardcode_into_libs
=yes
20473 dynamic_linker
="$host_os dld.sl"
20474 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20475 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20477 soname_spec
='${libname}${release}${shared_ext}$major'
20478 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20479 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20483 dynamic_linker
="$host_os dld.sl"
20484 shlibpath_var
=SHLIB_PATH
20485 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 soname_spec
='${libname}${release}${shared_ext}$major'
20490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20491 postinstall_cmds
='chmod 555 $lib'
20492 # or fails outright, so override atomically:
20493 install_override_mode
=555
20500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501 soname_spec
='${libname}${release}${shared_ext}$major'
20502 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20503 shlibpath_var
=LD_LIBRARY_PATH
20504 shlibpath_overrides_runpath
=no
20505 hardcode_into_libs
=yes
20508 irix5
* | irix6
* | nonstopux
*)
20510 nonstopux
*) version_type
=nonstopux
;;
20512 if test "$lt_cv_prog_gnu_ld" = yes; then
20520 soname_spec
='${libname}${release}${shared_ext}$major'
20521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20523 irix5
* | nonstopux
*)
20524 libsuff
= shlibsuff
=
20527 case $LD in # libtool.m4 will add one of these switches to LD
20528 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20529 libsuff
= shlibsuff
= libmagic
=32-bit;;
20530 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20531 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20532 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20533 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20534 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20538 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20539 shlibpath_overrides_runpath
=no
20540 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20541 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20542 hardcode_into_libs
=yes
20545 # No shared lib support for Linux oldld, aout, or coff.
20546 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20550 # This must be Linux ELF.
20551 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20556 soname_spec
='${libname}${release}${shared_ext}$major'
20557 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20558 shlibpath_var
=LD_LIBRARY_PATH
20559 shlibpath_overrides_runpath
=no
20561 # Some binutils ld are patched to set DT_RUNPATH
20562 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20563 $as_echo_n "(cached) " >&6
20565 lt_cv_shlibpath_overrides_runpath
=no
20566 save_LDFLAGS
=$LDFLAGS
20567 save_libdir
=$libdir
20568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20581 if ac_fn_cxx_try_link
"$LINENO"; then :
20582 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20583 lt_cv_shlibpath_overrides_runpath
=yes
20586 rm -f core conftest.err conftest.
$ac_objext \
20587 conftest
$ac_exeext conftest.
$ac_ext
20588 LDFLAGS
=$save_LDFLAGS
20589 libdir
=$save_libdir
20593 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20595 # This implies no fast_install, which is unacceptable.
20596 # Some rework will be needed to allow for fast_install
20597 # before this can be enabled.
20598 hardcode_into_libs
=yes
20600 # Append ld.so.conf contents to the search path
20601 if test -f /etc
/ld.so.conf
; then
20602 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' ' '`
20603 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20606 # We used to test for /lib/ld.so.1 and disable shared libraries on
20607 # powerpc, because MkLinux only supported shared libraries with the
20608 # GNU dynamic linker. Since this was broken with cross compilers,
20609 # most powerpc-linux boxes support dynamic linking these days and
20610 # people can always --disable-shared, the test was removed, and we
20611 # assume the GNU/Linux dynamic linker is in use.
20612 dynamic_linker
='GNU/Linux ld.so'
20619 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20621 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20622 dynamic_linker
='NetBSD (a.out) ld.so'
20624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20625 soname_spec
='${libname}${release}${shared_ext}$major'
20626 dynamic_linker
='NetBSD ld.elf_so'
20628 shlibpath_var
=LD_LIBRARY_PATH
20629 shlibpath_overrides_runpath
=yes
20630 hardcode_into_libs
=yes
20635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 shlibpath_var
=LD_LIBRARY_PATH
20637 shlibpath_overrides_runpath
=yes
20644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 soname_spec
='${libname}${release}${shared_ext}$major'
20646 shlibpath_var
=LD_LIBRARY_PATH
20647 shlibpath_overrides_runpath
=no
20648 hardcode_into_libs
=yes
20649 dynamic_linker
='ldqnx.so'
20654 sys_lib_dlsearch_path_spec
="/usr/lib"
20656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20658 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20659 *) need_version
=no
;;
20661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20662 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20663 shlibpath_var
=LD_LIBRARY_PATH
20664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20666 openbsd2.
[89] | openbsd2.
[89].
*)
20667 shlibpath_overrides_runpath
=no
20670 shlibpath_overrides_runpath
=yes
20674 shlibpath_overrides_runpath
=yes
20679 libname_spec
='$name'
20682 library_names_spec
='$libname${shared_ext} $libname.a'
20683 dynamic_linker
='OS/2 ld.exe'
20684 shlibpath_var
=LIBPATH
20687 osf3
* | osf4
* | osf5
*)
20691 soname_spec
='${libname}${release}${shared_ext}$major'
20692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 shlibpath_var
=LD_LIBRARY_PATH
20694 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20695 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707 soname_spec
='${libname}${release}${shared_ext}$major'
20708 shlibpath_var
=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath
=yes
20710 hardcode_into_libs
=yes
20711 # ldd complains unless libraries are executable
20712 postinstall_cmds
='chmod +x $lib'
20717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20718 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20719 shlibpath_var
=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath
=yes
20721 if test "$with_gnu_ld" = yes; then
20729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec
='${libname}${release}${shared_ext}$major'
20731 shlibpath_var
=LD_LIBRARY_PATH
20732 case $host_vendor in
20734 shlibpath_overrides_runpath
=no
20736 runpath_var
=LD_RUN_PATH
20744 shlibpath_overrides_runpath
=no
20745 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20751 if test -d /usr
/nec
;then
20753 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20754 soname_spec
='$libname${shared_ext}.$major'
20755 shlibpath_var
=LD_LIBRARY_PATH
20759 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20760 version_type
=freebsd-elf
20763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20764 soname_spec
='${libname}${release}${shared_ext}$major'
20765 shlibpath_var
=LD_LIBRARY_PATH
20766 shlibpath_overrides_runpath
=yes
20767 hardcode_into_libs
=yes
20768 if test "$with_gnu_ld" = yes; then
20769 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20771 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20774 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20778 sys_lib_dlsearch_path_spec
='/usr/lib'
20782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20787 shlibpath_var
=LD_LIBRARY_PATH
20788 shlibpath_overrides_runpath
=no
20789 hardcode_into_libs
=yes
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 shlibpath_var
=LD_LIBRARY_PATH
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20804 $as_echo "$dynamic_linker" >&6; }
20805 test "$dynamic_linker" = no
&& can_build_shared
=no
20807 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20808 if test "$GCC" = yes; then
20809 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20813 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20816 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20858 hardcode_action_CXX
=
20859 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20860 test -n "$runpath_var_CXX" ||
20861 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20863 # We can hardcode non-existent directories.
20864 if test "$hardcode_direct_CXX" != no
&&
20865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20866 # have to relink, otherwise we might link with an installed library
20867 # when we should be linking with a yet-to-be-installed one
20868 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20869 test "$hardcode_minus_L_CXX" != no
; then
20870 # Linking always hardcodes the temporary library directory.
20871 hardcode_action_CXX
=relink
20873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20874 hardcode_action_CXX
=immediate
20877 # We cannot hardcode anything, or else we can only hardcode existing
20879 hardcode_action_CXX
=unsupported
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20882 $as_echo "$hardcode_action_CXX" >&6; }
20884 if test "$hardcode_action_CXX" = relink ||
20885 test "$inherit_rpath_CXX" = yes; then
20886 # Fast installation is not supported
20887 enable_fast_install
=no
20888 elif test "$shlibpath_overrides_runpath" = yes ||
20889 test "$enable_shared" = no
; then
20890 # Fast installation is not necessary
20891 enable_fast_install
=needless
20900 fi # test -n "$compiler"
20906 with_gnu_ld
=$lt_save_with_gnu_ld
20907 lt_cv_path_LDCXX
=$lt_cv_path_LD
20908 lt_cv_path_LD
=$lt_save_path_LD
20909 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20910 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20911 fi # test "$_lt_caught_CXX_error" != yes
20914 ac_cpp
='$CPP $CPPFLAGS'
20915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20934 # Only expand once:
20940 # Identify the assembler which will work hand-in-glove with the newly
20941 # built GCC, so that we can examine its features. This is the assembler
20942 # which will be driven by the driver program.
20944 # If build != host, and we aren't building gas in-tree, we identify a
20945 # build->target assembler and hope that it will have the same features
20946 # as the host->target assembler we'll be using.
20947 gcc_cv_gas_major_version
=
20948 gcc_cv_gas_minor_version
=
20949 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20951 if test "${gcc_cv_as+set}" = set; then :
20955 if test -x "$DEFAULT_ASSEMBLER"; then
20956 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20957 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20958 && test -f ..
/gas
/Makefile \
20959 && test x
$build = x
$host; then
20960 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20961 elif test -x as
$build_exeext; then
20962 # Build using assembler in the current directory.
20963 gcc_cv_as
=.
/as
$build_exeext
20964 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
20965 gcc_cv_as
="$AS_FOR_TARGET"
20967 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20968 set dummy
$AS_FOR_TARGET; ac_word
=$2
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20970 $as_echo_n "checking for $ac_word... " >&6; }
20971 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20976 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20980 for as_dir
in $PATH
20983 test -z "$as_dir" && as_dir
=.
20984 for ac_exec_ext
in '' $ac_executable_extensions; do
20985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20986 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20997 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20998 if test -n "$gcc_cv_as"; then
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21000 $as_echo "$gcc_cv_as" >&6; }
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21003 $as_echo "no" >&6; }
21010 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21012 case "$ORIGINAL_AS_FOR_TARGET" in
21013 .
/as | .
/as
$build_exeext) ;;
21014 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21019 $as_echo_n "checking what assembler to use... " >&6; }
21020 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21021 # Single tree build which includes gas. We want to prefer it
21022 # over whatever linker top-level may have detected, since
21023 # we'll use what we're building after installation anyway.
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21025 $as_echo "newly built gas" >&6; }
21027 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21028 for f
in $gcc_cv_as_bfd_srcdir/configure \
21029 $gcc_cv_as_gas_srcdir/configure \
21030 $gcc_cv_as_gas_srcdir/configure.
in \
21031 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21032 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21033 if test x
$gcc_cv_gas_version != x
; then
21037 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21038 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21039 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21040 case $gcc_cv_gas_patch_version in
21041 "") gcc_cv_gas_patch_version
="0" ;;
21043 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21044 + $gcc_cv_gas_minor_version \) \* 1000 \
21045 + $gcc_cv_gas_patch_version`
21047 in_tree_gas_is_elf
=no
21048 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21049 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21050 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21052 in_tree_gas_is_elf
=yes
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21056 $as_echo "$gcc_cv_as" >&6; }
21060 # Identify the linker which will work hand-in-glove with the newly
21061 # built GCC, so that we can examine its features. This is the linker
21062 # which will be driven by the driver program.
21064 # If build != host, and we aren't building gas in-tree, we identify a
21065 # build->target linker and hope that it will have the same features
21066 # as the host->target linker we'll be using.
21067 gcc_cv_gld_major_version
=
21068 gcc_cv_gld_minor_version
=
21069 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21070 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21072 if test "${gcc_cv_ld+set}" = set; then :
21076 if test -x "$DEFAULT_LINKER"; then
21077 gcc_cv_ld
="$DEFAULT_LINKER"
21078 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21079 && test -f ..
/ld
/Makefile \
21080 && test x
$build = x
$host; then
21081 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21082 elif test -x collect-ld
$build_exeext; then
21083 # Build using linker in the current directory.
21084 gcc_cv_ld
=.
/collect-ld
$build_exeext
21085 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21086 gcc_cv_ld
="$LD_FOR_TARGET"
21088 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21089 set dummy
$LD_FOR_TARGET; ac_word
=$2
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21091 $as_echo_n "checking for $ac_word... " >&6; }
21092 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21093 $as_echo_n "(cached) " >&6
21097 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21101 for as_dir
in $PATH
21104 test -z "$as_dir" && as_dir
=.
21105 for ac_exec_ext
in '' $ac_executable_extensions; do
21106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21107 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21118 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21119 if test -n "$gcc_cv_ld"; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21121 $as_echo "$gcc_cv_ld" >&6; }
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21131 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21132 PLUGIN_LD
=`basename $gcc_cv_ld`
21134 # Check whether --with-plugin-ld was given.
21135 if test "${with_plugin_ld+set}" = set; then :
21136 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21137 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21138 PLUGIN_LD
="$withval"
21144 cat >>confdefs.h
<<_ACEOF
21145 #define PLUGIN_LD "$PLUGIN_LD"
21149 # Check to see if we are using gold instead of ld
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21151 $as_echo_n "checking whether we are using gold... " >&6; }
21153 if test x
$gcc_cv_ld != x
; then
21154 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21155 |
grep "GNU gold" > /dev
/null
; then
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21160 $as_echo "$ld_is_gold" >&6; }
21162 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21164 case "$ORIGINAL_LD_FOR_TARGET" in
21165 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21166 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21171 $as_echo_n "checking what linker to use... " >&6; }
21172 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21173 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21174 # Single tree build which includes ld. We want to prefer it
21175 # over whatever linker top-level may have detected, since
21176 # we'll use what we're building after installation anyway.
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21178 $as_echo "newly built ld" >&6; }
21180 in_tree_ld_is_elf
=no
21181 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21182 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21183 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21184 in_tree_ld_is_elf
=yes
21185 elif test "$ld_is_gold" = yes; then
21186 in_tree_ld_is_elf
=yes
21188 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
21190 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21191 if test x
$gcc_cv_gld_version != x
; then
21195 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21196 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21199 $as_echo "$gcc_cv_ld" >&6; }
21203 # Figure out what nm we will be using.
21204 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21205 if test "${gcc_cv_nm+set}" = set; then :
21209 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21210 && test -f ..
/binutils
/Makefile \
21211 && test x
$build = x
$host; then
21212 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21213 elif test -x nm
$build_exeext; then
21214 gcc_cv_nm
=.
/nm
$build_exeext
21215 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21216 gcc_cv_nm
="$NM_FOR_TARGET"
21218 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21219 set dummy
$NM_FOR_TARGET; ac_word
=$2
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21221 $as_echo_n "checking for $ac_word... " >&6; }
21222 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21227 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21231 for as_dir
in $PATH
21234 test -z "$as_dir" && as_dir
=.
21235 for ac_exec_ext
in '' $ac_executable_extensions; do
21236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21248 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21249 if test -n "$gcc_cv_nm"; then
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21251 $as_echo "$gcc_cv_nm" >&6; }
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254 $as_echo "no" >&6; }
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21262 $as_echo_n "checking what nm to use... " >&6; }
21263 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21264 # Single tree build which includes binutils.
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21266 $as_echo "newly built nm" >&6; }
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21270 $as_echo "$gcc_cv_nm" >&6; }
21274 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21276 case "$ORIGINAL_NM_FOR_TARGET" in
21277 .
/nm | .
/nm
$build_exeext) ;;
21278 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21283 # Figure out what objdump we will be using.
21284 if test "${gcc_cv_objdump+set}" = set; then :
21288 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21289 && test -f ..
/binutils
/Makefile \
21290 && test x
$build = x
$host; then
21291 # Single tree build which includes binutils.
21292 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21293 elif test -x objdump
$build_exeext; then
21294 gcc_cv_objdump
=.
/objdump
$build_exeext
21295 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21296 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21298 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21299 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21301 $as_echo_n "checking for $ac_word... " >&6; }
21302 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21303 $as_echo_n "(cached) " >&6
21305 case $gcc_cv_objdump in
21307 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21311 for as_dir
in $PATH
21314 test -z "$as_dir" && as_dir
=.
21315 for ac_exec_ext
in '' $ac_executable_extensions; do
21316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21317 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21328 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21329 if test -n "$gcc_cv_objdump"; then
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21331 $as_echo "$gcc_cv_objdump" >&6; }
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21334 $as_echo "no" >&6; }
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21342 $as_echo_n "checking what objdump to use... " >&6; }
21343 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21344 # Single tree build which includes binutils.
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21346 $as_echo "newly built objdump" >&6; }
21347 elif test x
$gcc_cv_objdump = x
; then
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21349 $as_echo "not found" >&6; }
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21352 $as_echo "$gcc_cv_objdump" >&6; }
21355 # Figure out what readelf we will be using.
21356 if test "${gcc_cv_readelf+set}" = set; then :
21360 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21361 && test -f ..
/binutils
/Makefile \
21362 && test x
$build = x
$host; then
21363 # Single tree build which includes binutils.
21364 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21365 elif test -x readelf
$build_exeext; then
21366 gcc_cv_readelf
=.
/readelf
$build_exeext
21368 # Extract the first word of "readelf", so it can be a program name with args.
21369 set dummy readelf
; ac_word
=$2
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21371 $as_echo_n "checking for $ac_word... " >&6; }
21372 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21373 $as_echo_n "(cached) " >&6
21375 case $gcc_cv_readelf in
21377 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21381 for as_dir
in $PATH
21384 test -z "$as_dir" && as_dir
=.
21385 for ac_exec_ext
in '' $ac_executable_extensions; do
21386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21387 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21398 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21399 if test -n "$gcc_cv_readelf"; then
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21401 $as_echo "$gcc_cv_readelf" >&6; }
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21404 $as_echo "no" >&6; }
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21412 $as_echo_n "checking what readelf to use... " >&6; }
21413 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21414 # Single tree build which includes binutils.
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21416 $as_echo "newly built readelf" >&6; }
21417 elif test x
$gcc_cv_readelf = x
; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21419 $as_echo "not found" >&6; }
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21422 $as_echo "$gcc_cv_readelf" >&6; }
21425 # Figure out what assembler alignment features are present.
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21427 $as_echo_n "checking assembler flags... " >&6; }
21428 if test "${gcc_cv_as_flags+set}" = set; then :
21429 $as_echo_n "(cached) " >&6
21432 i
[34567]86-*-linux*)
21433 gcc_cv_as_flags
="--32"
21435 powerpc
*-*-darwin*)
21436 gcc_cv_as_flags
="-arch ppc"
21439 gcc_cv_as_flags
=" "
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21444 $as_echo "$gcc_cv_as_flags" >&6; }
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21447 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21448 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21449 $as_echo_n "(cached) " >&6
21451 gcc_cv_as_balign_and_p2align
=no
21452 if test $in_tree_gas = yes; then
21453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21454 then gcc_cv_as_balign_and_p2align
=yes
21456 elif test x
$gcc_cv_as != x
; then
21458 .p2align 2' > conftest.s
21459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21461 (eval $ac_try) 2>&5
21463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21464 test $ac_status = 0; }; }
21466 gcc_cv_as_balign_and_p2align
=yes
21468 echo "configure: failed program was" >&5
21471 rm -f conftest.o conftest.s
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21475 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21476 if test $gcc_cv_as_balign_and_p2align = yes; then
21478 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21483 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21484 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21487 gcc_cv_as_max_skip_p2align
=no
21488 if test $in_tree_gas = yes; then
21489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21490 then gcc_cv_as_max_skip_p2align
=yes
21492 elif test x
$gcc_cv_as != x
; then
21493 echo '.p2align 4,,7' > conftest.s
21494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21496 (eval $ac_try) 2>&5
21498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21499 test $ac_status = 0; }; }
21501 gcc_cv_as_max_skip_p2align
=yes
21503 echo "configure: failed program was" >&5
21506 rm -f conftest.o conftest.s
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21510 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21511 if test $gcc_cv_as_max_skip_p2align = yes; then
21513 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21518 $as_echo_n "checking assembler for .literal16... " >&6; }
21519 if test "${gcc_cv_as_literal16+set}" = set; then :
21520 $as_echo_n "(cached) " >&6
21522 gcc_cv_as_literal16
=no
21523 if test $in_tree_gas = yes; then
21524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21525 then gcc_cv_as_literal16
=yes
21527 elif test x
$gcc_cv_as != x
; then
21528 echo '.literal16' > conftest.s
21529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21531 (eval $ac_try) 2>&5
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; }; }
21536 gcc_cv_as_literal16
=yes
21538 echo "configure: failed program was" >&5
21541 rm -f conftest.o conftest.s
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21545 $as_echo "$gcc_cv_as_literal16" >&6; }
21546 if test $gcc_cv_as_literal16 = yes; then
21548 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21553 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21554 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21557 gcc_cv_as_subsection_m1
=no
21558 if test $in_tree_gas = yes; then
21559 if test $in_tree_gas_is_elf = yes \
21560 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21561 then gcc_cv_as_subsection_m1
=yes
21563 elif test x
$gcc_cv_as != x
; then
21564 echo 'conftest_label1: .word 0
21566 conftest_label2: .word 0
21567 .previous' > conftest.s
21568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21570 (eval $ac_try) 2>&5
21572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21573 test $ac_status = 0; }; }
21575 if test x
$gcc_cv_nm != x
; then
21576 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21577 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21578 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21580 else gcc_cv_as_subsection_m1
=yes
21582 rm -f conftest.nm1 conftest.nm2
21585 echo "configure: failed program was" >&5
21588 rm -f conftest.o conftest.s
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21592 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21593 if test $gcc_cv_as_subsection_m1 = yes; then
21595 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21600 $as_echo_n "checking assembler for .weak... " >&6; }
21601 if test "${gcc_cv_as_weak+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21605 if test $in_tree_gas = yes; then
21606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21607 then gcc_cv_as_weak
=yes
21609 elif test x
$gcc_cv_as != x
; then
21610 echo ' .weak foobar' > conftest.s
21611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }
21620 echo "configure: failed program was" >&5
21623 rm -f conftest.o conftest.s
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21627 $as_echo "$gcc_cv_as_weak" >&6; }
21628 if test $gcc_cv_as_weak = yes; then
21630 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21635 $as_echo_n "checking assembler for .weakref... " >&6; }
21636 if test "${gcc_cv_as_weakref+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21639 gcc_cv_as_weakref
=no
21640 if test $in_tree_gas = yes; then
21641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21642 then gcc_cv_as_weakref
=yes
21644 elif test x
$gcc_cv_as != x
; then
21645 echo ' .weakref foobar, barfnot' > conftest.s
21646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21648 (eval $ac_try) 2>&5
21650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21651 test $ac_status = 0; }; }
21653 gcc_cv_as_weakref
=yes
21655 echo "configure: failed program was" >&5
21658 rm -f conftest.o conftest.s
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21662 $as_echo "$gcc_cv_as_weakref" >&6; }
21663 if test $gcc_cv_as_weakref = yes; then
21665 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21670 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21671 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21672 $as_echo_n "(cached) " >&6
21674 gcc_cv_as_nsubspa_comdat
=no
21675 if test $in_tree_gas = yes; then
21676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21677 then gcc_cv_as_nsubspa_comdat
=yes
21679 elif test x
$gcc_cv_as != x
; then
21680 echo ' .SPACE $TEXT$
21681 .NSUBSPA $CODE$,COMDAT' > conftest.s
21682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21684 (eval $ac_try) 2>&5
21686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21687 test $ac_status = 0; }; }
21689 gcc_cv_as_nsubspa_comdat
=yes
21691 echo "configure: failed program was" >&5
21694 rm -f conftest.o conftest.s
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21698 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21699 if test $gcc_cv_as_nsubspa_comdat = yes; then
21701 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21705 # .hidden needs to be supported in both the assembler and the linker,
21706 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21707 # This is irritatingly difficult to feature test for; we have to check the
21708 # date string after the version number. If we've got an in-tree
21709 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21711 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21713 $as_echo_n "checking assembler for .hidden... " >&6; }
21714 if test "${gcc_cv_as_hidden+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21717 gcc_cv_as_hidden
=no
21718 if test $in_tree_gas = yes; then
21719 if test $in_tree_gas_is_elf = yes \
21720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21721 then gcc_cv_as_hidden
=yes
21723 elif test x
$gcc_cv_as != x
; then
21724 echo ' .hidden foobar
21725 foobar:' > conftest.s
21726 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21728 (eval $ac_try) 2>&5
21730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21731 test $ac_status = 0; }; }
21734 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21735 # STV_HIDDEN, so disable .hidden support if so.
21736 case "${target}" in
21738 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21739 cat > conftest.s
<<EOF
21744 .set default,hidden
21746 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21747 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21748 grep '\.hidden default' > /dev
/null
; then
21749 gcc_cv_as_hidden
=no
21751 gcc_cv_as_hidden
=yes
21754 # Assume bug is present if objdump is missing.
21755 gcc_cv_as_hidden
=no
21759 gcc_cv_as_hidden
=yes
21763 echo "configure: failed program was" >&5
21766 rm -f conftest.o conftest.s
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21770 $as_echo "$gcc_cv_as_hidden" >&6; }
21773 # gnu_indirect_function type is an extension proposed at
21774 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21775 # selection of function implementation
21776 # Check whether --enable-gnu-indirect-function was given.
21777 if test "${enable_gnu_indirect_function+set}" = set; then :
21778 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21780 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21781 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21784 enable_gnu_indirect_function
="$default_gnu_indirect_function"
21787 if test x
$enable_gnu_indirect_function = xyes
; then
21789 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21793 if test $in_tree_ld != yes ; then
21794 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21795 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21796 if test x
"$ld_is_gold" = xyes
; then
21797 # GNU gold --version looks like this:
21799 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21801 # We extract the binutils version which is more familiar and specific
21802 # than the gold version.
21803 ld_vers
=`echo $ld_ver | sed -n \
21804 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21806 # GNU ld --version looks like this:
21808 # GNU ld (GNU Binutils) 2.21.51.20110225
21809 ld_vers
=`echo $ld_ver | sed -n \
21810 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21812 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'`
21813 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21814 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21815 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21817 case "${target}" in
21820 # Solaris 2 ld -V output looks like this for a regular version:
21822 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21824 # but test versions add stuff at the end:
21826 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21828 ld_ver
=`$gcc_cv_ld -V 2>&1`
21829 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21830 ld_vers
=`echo $ld_ver | sed -n \
21831 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21832 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21833 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21841 $as_echo_n "checking linker for .hidden support... " >&6; }
21842 if test "${gcc_cv_ld_hidden+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21845 if test $in_tree_ld = yes ; then
21846 gcc_cv_ld_hidden
=no
21847 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 \
21848 && test $in_tree_ld_is_elf = yes; then
21849 gcc_cv_ld_hidden
=yes
21852 gcc_cv_ld_hidden
=yes
21853 if test x
"$ld_is_gold" = xyes
; then
21855 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21856 if test 0"$ld_date" -lt 20020404; then
21857 if test -n "$ld_date"; then
21858 # If there was date string, but was earlier than 2002-04-04, fail
21859 gcc_cv_ld_hidden
=no
21860 elif test -z "$ld_vers"; then
21861 # If there was no date string nor ld version number, something is wrong
21862 gcc_cv_ld_hidden
=no
21864 test -z "$ld_vers_patch" && ld_vers_patch
=0
21865 if test "$ld_vers_major" -lt 2; then
21866 gcc_cv_ld_hidden
=no
21867 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21868 gcc_cv_ld_hidden
="no"
21869 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21870 gcc_cv_ld_hidden
=no
21875 case "${target}" in
21876 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21877 gcc_cv_ld_hidden
=yes
21880 # .hidden support was backported to Solaris 8, starting with ld
21882 if test "$ld_vers_minor" -ge 276; then
21883 gcc_cv_ld_hidden
=yes
21885 gcc_cv_ld_hidden
=no
21888 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21889 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21890 # .symbolic was only added in Solaris 9 12/02.
21891 gcc_cv_ld_hidden
=yes
21894 gcc_cv_ld_hidden
=no
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21901 $as_echo "$gcc_cv_ld_hidden" >&6; }
21902 libgcc_visibility
=no
21905 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21906 libgcc_visibility
=yes
21908 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21913 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21914 gcc_cv_ld_ro_rw_mix
=unknown
21915 if test $in_tree_ld = yes ; then
21916 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 \
21917 && test $in_tree_ld_is_elf = yes; then
21918 gcc_cv_ld_ro_rw_mix
=read-write
21920 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21921 echo '.section myfoosect, "a"' > conftest1.s
21922 echo '.section myfoosect, "aw"' > conftest2.s
21923 echo '.byte 1' >> conftest2.s
21924 echo '.section myfoosect, "a"' > conftest3.s
21925 echo '.byte 0' >> conftest3.s
21926 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21927 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21928 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21929 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21930 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21931 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21932 | sed -e '/myfoosect/!d' -e N`
21933 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21934 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21935 gcc_cv_ld_ro_rw_mix
=read-only
21937 gcc_cv_ld_ro_rw_mix
=read-write
21941 rm -f conftest.
* conftest
[123].
*
21943 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21945 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21949 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21951 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21953 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21954 if test "${gcc_cv_as_leb128+set}" = set; then :
21955 $as_echo_n "(cached) " >&6
21957 gcc_cv_as_leb128
=no
21958 if test $in_tree_gas = yes; then
21959 if test $in_tree_gas_is_elf = yes \
21960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21961 then gcc_cv_as_leb128
=yes
21963 elif test x
$gcc_cv_as != x
; then
21970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972 (eval $ac_try) 2>&5
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; }
21977 # GAS versions before 2.11 do not support uleb128,
21978 # despite appearing to.
21979 # ??? There exists an elf-specific test that will crash
21980 # the assembler. Perhaps it's better to figure out whether
21981 # arbitrary sections are supported and try the test.
21982 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21983 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21984 as_vers
=`echo $as_ver | sed -n \
21985 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21986 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21987 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21988 if test $as_major -eq 2 && test $as_minor -lt 11
21990 else gcc_cv_as_leb128
=yes
21994 echo "configure: failed program was" >&5
21997 rm -f conftest.o conftest.s
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22001 $as_echo "$gcc_cv_as_leb128" >&6; }
22002 if test $gcc_cv_as_leb128 = yes; then
22004 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22008 # Check if we have assembler support for unwind directives.
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22010 $as_echo_n "checking assembler for cfi directives... " >&6; }
22011 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22014 gcc_cv_as_cfi_directive
=no
22015 if test x
$gcc_cv_as != x
; then
22021 .cfi_escape 1, 2, 3, 4, 5
22022 .cfi_endproc' > conftest.s
22023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22025 (eval $ac_try) 2>&5
22027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22028 test $ac_status = 0; }; }
22032 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22033 # read-only and read-write sections, we need to make sure that the
22034 # assembler used emits read-write .eh_frame sections.
22035 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22036 if test "x$gcc_cv_objdump" != x
; then
22037 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22038 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22039 gcc_cv_as_cfi_directive
=no
22042 i?
86-*-solaris2.1
[0-9]*)
22043 # On Solaris/x86, make sure that GCC and gas agree on using
22044 # read-only .eh_frame sections for 64-bit.
22045 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22046 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22047 sed -e /.eh_frame
/!d
-e N | \
22048 grep READONLY
> /dev
/null
; then
22049 gcc_cv_as_cfi_directive
=yes
22051 gcc_cv_as_cfi_directive
=no
22055 gcc_cv_as_cfi_directive
=yes
22060 # no objdump, err on the side of caution
22061 gcc_cv_as_cfi_directive
=no
22064 gcc_cv_as_cfi_directive
=yes
22068 gcc_cv_as_cfi_directive
=yes
22072 echo "configure: failed program was" >&5
22075 rm -f conftest.o conftest.s
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22079 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22081 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22083 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22084 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22087 gcc_cv_as_cfi_advance_working
=no
22088 if test x
$gcc_cv_as != x
; then
22091 .cfi_adjust_cfa_offset 64
22093 .cfi_adjust_cfa_offset 128
22094 .cfi_endproc' > conftest.s
22095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22103 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22104 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22105 gcc_cv_as_cfi_advance_working
=yes
22109 echo "configure: failed program was" >&5
22112 rm -f conftest.o conftest.s
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22116 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22119 # no objdump, err on the side of caution
22120 gcc_cv_as_cfi_advance_working
=no
22124 cat >>confdefs.h
<<_ACEOF
22125 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22126 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22132 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22133 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22134 $as_echo_n "(cached) " >&6
22136 gcc_cv_as_cfi_personality_directive
=no
22137 if test x
$gcc_cv_as != x
; then
22140 .cfi_personality 0, symbol
22141 .cfi_endproc' > conftest.s
22142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22144 (eval $ac_try) 2>&5
22146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22147 test $ac_status = 0; }; }
22149 gcc_cv_as_cfi_personality_directive
=yes
22151 echo "configure: failed program was" >&5
22154 rm -f conftest.o conftest.s
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22158 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22161 cat >>confdefs.h
<<_ACEOF
22162 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22163 then echo 1; else echo 0; fi`
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22168 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22169 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22170 $as_echo_n "(cached) " >&6
22172 gcc_cv_as_cfi_sections_directive
=no
22173 if test x
$gcc_cv_as != x
; then
22175 .cfi_sections .debug_frame, .eh_frame
22177 .cfi_endproc' > conftest.s
22178 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22180 (eval $ac_try) 2>&5
22182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22183 test $ac_status = 0; }; }
22186 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22187 # Need to check that we generated the correct relocation for the
22188 # .debug_frame section. This was fixed for binutils 2.21.
22189 gcc_cv_as_cfi_sections_directive
=no
22190 if test "x$gcc_cv_objdump" != x
; then
22191 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22192 grep secrel
> /dev
/null
; then
22193 gcc_cv_as_cfi_sections_directive
=yes
22198 gcc_cv_as_cfi_sections_directive
=yes
22202 echo "configure: failed program was" >&5
22205 rm -f conftest.o conftest.s
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22209 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22213 cat >>confdefs.h
<<_ACEOF
22214 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22215 then echo 1; else echo 0; fi`
22219 # GAS versions up to and including 2.11.0 may mis-optimize
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22222 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22223 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22226 gcc_cv_as_eh_frame
=no
22227 if test $in_tree_gas = yes; then
22228 if test $in_tree_gas_is_elf = yes \
22229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22230 then gcc_cv_as_eh_frame
=yes
22232 elif test x
$gcc_cv_as != x
; then
22239 .section .eh_frame,"aw",@progbits
22241 .4byte .LECIE1-.LSCIE1
22255 .4byte .LEFDE1-.LASFDE1
22257 .4byte .LASFDE1-__FRAME_BEGIN__
22264 .LEFDE1:' > conftest.s
22265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22267 (eval $ac_try) 2>&5
22269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22270 test $ac_status = 0; }; }
22272 cat > conftest.lit
<<EOF
22273 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22274 0010 01000000 12000000 18000000 00000000 ................
22275 0020 08000000 04080000 0044 .........D
22277 cat > conftest.big
<<EOF
22278 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22279 0010 00000001 00000012 00000018 00000000 ................
22280 0020 00000008 04000000 0844 .........D
22282 # If the assembler didn't choke, and we can objdump,
22283 # and we got the correct data, then succeed.
22284 # The text in the here-document typically retains its unix-style line
22285 # endings, while the output of objdump will use host line endings.
22286 # Therefore, use diff -b for the comparisons.
22287 if test x
$gcc_cv_objdump != x \
22288 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22289 |
tail -3 > conftest.got \
22290 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22291 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22293 gcc_cv_as_eh_frame
=yes
22294 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22296 (eval $ac_try) 2>&5
22298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22299 test $ac_status = 0; }; }; then
22300 gcc_cv_as_eh_frame
=buggy
22302 # Uh oh, what do we do now?
22303 gcc_cv_as_eh_frame
=no
22306 echo "configure: failed program was" >&5
22309 rm -f conftest.o conftest.s
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22313 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22316 if test $gcc_cv_as_eh_frame = buggy
; then
22318 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22323 $as_echo_n "checking assembler for section merging support... " >&6; }
22324 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22327 gcc_cv_as_shf_merge
=no
22328 if test $in_tree_gas = yes; then
22329 if test $in_tree_gas_is_elf = yes \
22330 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22331 then gcc_cv_as_shf_merge
=yes
22333 elif test x
$gcc_cv_as != x
; then
22334 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22337 (eval $ac_try) 2>&5
22339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22340 test $ac_status = 0; }; }
22342 gcc_cv_as_shf_merge
=yes
22344 echo "configure: failed program was" >&5
22347 rm -f conftest.o conftest.s
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22351 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22353 if test $gcc_cv_as_shf_merge = no
; then
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22355 $as_echo_n "checking assembler for section merging support... " >&6; }
22356 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22359 gcc_cv_as_shf_merge
=no
22360 if test $in_tree_gas = yes; then
22361 if test $in_tree_gas_is_elf = yes \
22362 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22363 then gcc_cv_as_shf_merge
=yes
22365 elif test x
$gcc_cv_as != x
; then
22366 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22369 (eval $ac_try) 2>&5
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; }
22374 gcc_cv_as_shf_merge
=yes
22376 echo "configure: failed program was" >&5
22379 rm -f conftest.o conftest.s
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22383 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22387 cat >>confdefs.h
<<_ACEOF
22388 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22393 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22394 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22397 gcc_cv_as_comdat_group
=no
22398 if test $in_tree_gas = yes; then
22399 if test $in_tree_gas_is_elf = yes \
22400 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22401 then gcc_cv_as_comdat_group
=yes
22403 elif test x
$gcc_cv_as != x
; then
22404 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22405 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22407 (eval $ac_try) 2>&5
22409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22410 test $ac_status = 0; }; }
22412 gcc_cv_as_comdat_group
=yes
22414 echo "configure: failed program was" >&5
22417 rm -f conftest.o conftest.s
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22421 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22423 if test $gcc_cv_as_comdat_group = yes; then
22424 gcc_cv_as_comdat_group_percent
=no
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22427 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22428 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22431 gcc_cv_as_comdat_group_percent
=no
22432 if test $in_tree_gas = yes; then
22433 if test $in_tree_gas_is_elf = yes \
22434 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22435 then gcc_cv_as_comdat_group_percent
=yes
22437 elif test x
$gcc_cv_as != x
; then
22438 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22446 gcc_cv_as_comdat_group_percent
=yes
22448 echo "configure: failed program was" >&5
22451 rm -f conftest.o conftest.s
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22455 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22458 if test x
"$ld_is_gold" = xyes
; then
22460 elif test $in_tree_ld = yes ; then
22462 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 \
22463 && test $in_tree_ld_is_elf = yes; then
22466 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22468 if test 0"$ld_date" -lt 20050308; then
22469 if test -n "$ld_date"; then
22470 # If there was date string, but was earlier than 2005-03-08, fail
22472 elif test "$ld_vers_major" -lt 2; then
22474 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22479 case "${target}" in
22480 *-*-solaris2.1
[1-9]*)
22481 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22482 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22485 # FIXME: Maybe need to refine later when COMDAT group support with
22486 # Sun as is implemented.
22487 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
22494 # Assume linkers other than GNU ld don't support COMDAT group.
22499 # Allow overriding the automatic COMDAT group tests above.
22500 # Check whether --enable-comdat was given.
22501 if test "${enable_comdat+set}" = set; then :
22502 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22505 if test $comdat_group = no
; then
22506 gcc_cv_as_comdat_group
=no
22507 gcc_cv_as_comdat_group_percent
=no
22510 cat >>confdefs.h
<<_ACEOF
22511 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22516 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22517 if test "${gcc_cv_as_discriminator+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22520 gcc_cv_as_discriminator
=no
22521 if test $in_tree_gas = yes; then
22522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22523 then gcc_cv_as_discriminator
=yes
22525 elif test x
$gcc_cv_as != x
; then
22528 .loc 1 1 0 discriminator 1' > conftest.s
22529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22531 (eval $ac_try) 2>&5
22533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22534 test $ac_status = 0; }; }
22536 gcc_cv_as_discriminator
=yes
22538 echo "configure: failed program was" >&5
22541 rm -f conftest.o conftest.s
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22545 $as_echo "$gcc_cv_as_discriminator" >&6; }
22546 if test $gcc_cv_as_discriminator = yes; then
22548 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22552 # Thread-local storage - the check is heavily parameterized.
22560 .section ".tdata","awT",@progbits
22563 ldq $27,__tls_get_addr($29) !literal!1
22564 lda $16,foo($29) !tlsgd!1
22565 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22566 ldq $27,__tls_get_addr($29) !literal!2
22567 lda $16,foo($29) !tlsldm!2
22568 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22569 ldq $1,foo($29) !gotdtprel
22570 ldah $2,foo($29) !dtprelhi
22571 lda $3,foo($2) !dtprello
22572 lda $4,foo($29) !dtprel
22573 ldq $1,foo($29) !gottprel
22574 ldah $2,foo($29) !tprelhi
22575 lda $3,foo($2) !tprello
22576 lda $4,foo($29) !tprel'
22579 tls_as_opt
=--fatal-warnings
22581 cris-
*-*|crisv32-
*-*)
22583 .section ".tdata","awT",@progbits
22590 tls_as_opt
=--fatal-warnings
22594 .section ".tdata","awT",@progbits
22597 call #gettlsoff(x)'
22606 .section ".tdata","awT",@progbits
22610 addil LT%foo-$tls_gdidx$,gp
22611 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22614 addil LT%foo-$tls_ldidx$,gp
22616 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22617 addil LR%foo-$tls_dtpoff$,%ret0
22618 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22620 addil LT%foo-$tls_ieoff$,gp
22621 ldw RT%foo-$tls_ieoff$(%r1),%t2
22624 addil LR%foo-$tls_leoff$,%t1
22625 ldo RR%foo-$tls_leoff$(%r1),%t2'
22628 tls_as_opt
=--fatal-warnings
22632 .section ".tdata","awT",%progbits
22635 .word foo(gottpoff)
22645 i
[34567]86-*-solaris2.
*)
22647 tga_func
=___tls_get_addr
22653 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22655 .section .tdata,"awt",@progbits'
22659 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22663 .section ".tdata","awT",@progbits'
22666 tls_as_opt
="--fatal-warnings"
22668 conftest_s
="$conftest_s
22672 leal foo@tlsgd(,%ebx,1), %eax
22673 leal foo@tlsldm(%ebx), %eax
22674 leal foo@dtpoff(%eax), %edx
22675 movl foo@gottpoff(%ebx), %eax
22676 subl foo@gottpoff(%ebx), %eax
22677 addl foo@gotntpoff(%ebx), %eax
22678 movl foo@indntpoff, %eax
22679 movl \$foo@tpoff, %eax
22680 subl \$foo@tpoff, %eax
22681 leal foo@ntpoff(%ecx), %eax"
22685 .section ".tdata","awT",@progbits
22689 leaq foo@TLSGD(%rip), %rdi
22690 leaq foo@TLSLD(%rip), %rdi
22691 leaq foo@DTPOFF(%rax), %rdx
22692 movq foo@GOTTPOFF(%rip), %rax
22693 movq $foo@TPOFF, %rax'
22696 tls_as_opt
=--fatal-warnings
22700 .section ".tdata","awT",@progbits
22703 addl r16 = @ltoff(@dtpmod(foo#)), gp
22704 addl r17 = @ltoff(@dtprel(foo#)), gp
22705 addl r18 = @ltoff(@tprel(foo#)), gp
22706 addl r19 = @dtprel(foo#), gp
22707 adds r21 = @dtprel(foo#), r13
22708 movl r23 = @dtprel(foo#)
22709 addl r20 = @tprel(foo#), gp
22710 adds r22 = @tprel(foo#), r13
22711 movl r24 = @tprel(foo#)'
22714 tls_as_opt
=--fatal-warnings
22718 .section .tdata,"awT",@progbits
22722 addiu $4, $28, %tlsgd(x)
22723 addiu $4, $28, %tlsldm(x)
22724 lui $4, %dtprel_hi(x)
22725 addiu $4, $4, %dtprel_lo(x)
22726 lw $4, %gottprel(x)($28)
22727 lui $4, %tprel_hi(x)
22728 addiu $4, $4, %tprel_lo(x)'
22731 tls_as_opt
='-32 --fatal-warnings'
22735 .section .tdata,"awT",@progbits
22740 move.l x@TLSGD(%a5),%a0
22741 move.l x@TLSLDM(%a5),%a0
22742 move.l x@TLSLDO(%a5),%a0
22743 move.l x@TLSIE(%a5),%a0
22744 move.l x@TLSLE(%a5),%a0'
22747 tls_as_opt
='--fatal-warnings'
22751 .section ".tdata","awT",@progbits
22759 addi 3,31,ld0@got@tlsgd
22761 addi 3,31,x1@got@tlsld
22764 addis 9,3,x2@dtprel@ha
22765 addi 9,9,x2@dtprel@l
22766 lwz 9,x3@got@tprel(31)
22769 addis 9,2,x2@tprel@ha
22770 addi 9,9,x2@tprel@l'
22773 tls_as_opt
="-a32 --fatal-warnings"
22777 .section ".tdata","awT",@progbits
22785 addi 3,2,ld0@got@tlsgd
22791 addi 3,2,x1@got@tlsld
22797 addis 9,3,x2@dtprel@ha
22798 addi 9,9,x2@dtprel@l
22801 ld 9,x3@got@dtprel(2)
22807 tls_as_opt
="-a64 --fatal-warnings"
22811 .section ".tdata","awT",@progbits
22818 .long foo@GOTNTPOFF
22819 .long foo@INDNTPOFF
22820 l %r1,foo@GOTNTPOFF(%r12)
22821 l %r1,0(%r1):tls_load:foo
22822 bas %r14,0(%r1,%r13):tls_gdcall:foo
22823 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22826 tls_as_opt
="-m31 --fatal-warnings"
22830 .section ".tdata","awT",@progbits
22837 .quad foo@GOTNTPOFF
22838 lg %r1,foo@GOTNTPOFF(%r12)
22839 larl %r1,foo@INDNTPOFF
22840 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22841 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22844 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22846 sh-
*-* | sh
[34]-*-*)
22848 .section ".tdata","awT",@progbits
22858 tls_as_opt
=--fatal-warnings
22862 sparc
*-sun-solaris2.
*)
22864 tga_func
=__tls_get_addr
22870 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22872 .section ".tdata",#alloc,#write,#tls'
22877 .section ".tdata","awT",@progbits'
22880 tls_as_opt
="-32 --fatal-warnings"
22882 conftest_s
="$conftest_s
22885 sethi %tgd_hi22(foo), %o0
22886 add %o0, %tgd_lo10(foo), %o1
22887 add %l7, %o1, %o0, %tgd_add(foo)
22888 call __tls_get_addr, %tgd_call(foo)
22889 sethi %tldm_hi22(foo), %l1
22890 add %l1, %tldm_lo10(foo), %l2
22891 add %l7, %l2, %o0, %tldm_add(foo)
22892 call __tls_get_addr, %tldm_call(foo)
22893 sethi %tldo_hix22(foo), %l3
22894 xor %l3, %tldo_lox10(foo), %l4
22895 add %o0, %l4, %l5, %tldo_add(foo)
22896 sethi %tie_hi22(foo), %o3
22897 add %o3, %tie_lo10(foo), %o3
22898 ld [%l7 + %o3], %o2, %tie_ld(foo)
22899 add %g7, %o2, %o4, %tie_add(foo)
22900 sethi %tle_hix22(foo), %l1
22901 xor %l1, %tle_lox10(foo), %o5
22902 ld [%g7 + %o5], %o1"
22906 .section ".tdata","awT",@progbits
22909 movi a8, foo@TLSFUNC
22910 movi a10, foo@TLSARG
22911 callx8.tls a8, foo@TLSCALL'
22917 if test "x$enable_tls" = xno
; then
22918 : # TLS explicitly disabled.
22919 elif test "x$enable_tls" = xyes
; then
22920 set_have_as_tls
=yes # TLS explicitly enabled.
22921 elif test -z "$tls_first_major"; then
22922 : # If we don't have a check, assume no support.
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22925 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22926 if test "${gcc_cv_as_tls+set}" = set; then :
22927 $as_echo_n "(cached) " >&6
22930 if test $in_tree_gas = yes; then
22931 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22932 then gcc_cv_as_tls
=yes
22934 elif test x
$gcc_cv_as != x
; then
22935 echo "$conftest_s" > conftest.s
22936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22945 echo "configure: failed program was" >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22952 $as_echo "$gcc_cv_as_tls" >&6; }
22953 if test $gcc_cv_as_tls = yes; then
22954 set_have_as_tls
=yes
22959 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22960 # with TLS support are in use, native TLS cannot work.
22964 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22965 # gld with TLS support are in use, native TLS cannot work.
22968 # TLS was introduced in the Solaris 9 FCS release and backported to
22969 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22970 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22971 # ld and GCC don't support any longer.
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22974 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22976 # Check ld and ld.so.1 TLS support.
22977 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22978 # Assume all interesting versions of GNU ld have TLS support.
22979 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22983 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22985 min_tls_ld_vers_minor
=280
22987 # Solaris 8/SPARC ld has TLS support since version 1.272.
22988 sparc
*-*-solaris2.8
)
22989 min_tls_ld_vers_minor
=272
22991 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22993 min_tls_ld_vers_minor
=374
22995 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22996 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
22997 min_tls_ld_vers_minor
=343
23000 if test "$ld_vers_major" -gt 1 || \
23001 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23008 $as_echo "$ld_tls_support" >&6; }
23011 save_LDFLAGS
="$LDFLAGS"
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23016 $as_echo_n "checking alternate thread library... " >&6; }
23018 # TLS support was backported to Solaris 8 patches, but only lives in
23019 # the alternate thread library which became the default in Solaris 9.
23020 # We want to always use that, irrespective of TLS support.
23022 # Take multilib subdir into account. There's no spec to handle
23023 # this. The 64 symlink exists since Solaris 8.
23024 lwp_dir
=/usr
/lib
/lwp
23025 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23026 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23033 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23035 cat >>confdefs.h
<<_ACEOF
23036 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23040 $as_echo "$lwp_dir" >&6; }
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23043 $as_echo_n "checking library containing $tga_func... " >&6; }
23044 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23045 # (32-bit x86) only lived in libthread, so check for that. Keep
23046 # set_have_as_tls if found, disable if not.
23047 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23049 $as_echo_n "checking for library containing $tga_func... " >&6; }
23050 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23051 $as_echo_n "(cached) " >&6
23053 ac_func_search_save_LIBS
=$LIBS
23054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h. */
23057 /* Override any GCC internal prototype to avoid an error.
23058 Use char because int might match the return type of a GCC
23059 builtin and then its argument prototype would still apply. */
23067 return $tga_func ();
23072 for ac_lib
in '' thread
; do
23073 if test -z "$ac_lib"; then
23074 ac_res
="none required"
23077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23079 if ac_fn_c_try_link
"$LINENO"; then :
23080 eval "$as_ac_Search=\$ac_res"
23082 rm -f core conftest.err conftest.
$ac_objext \
23084 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23088 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23091 eval "$as_ac_Search=no"
23093 rm conftest.
$ac_ext
23094 LIBS
=$ac_func_search_save_LIBS
23096 eval ac_res
=\$
$as_ac_Search
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23098 $as_echo "$ac_res" >&6; }
23099 eval ac_res
=\$
$as_ac_Search
23100 if test "$ac_res" != no
; then :
23101 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23107 # Clear LIBS if we cannot support TLS.
23108 if test $set_have_as_tls = no
; then
23111 # Always define LIB_TLS_SPEC, even without TLS support.
23113 cat >>confdefs.h
<<_ACEOF
23114 #define LIB_TLS_SPEC "$LIBS"
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23118 $as_echo "$LIBS" >&6; }
23121 LDFLAGS
="$save_LDFLAGS"
23124 if test $set_have_as_tls = yes ; then
23126 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23130 # Target-specific assembler checks.
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23133 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23134 gcc_cv_ld_static_dynamic
=no
23135 gcc_cv_ld_static_option
='-Bstatic'
23136 gcc_cv_ld_dynamic_option
='-Bdynamic'
23137 if test $in_tree_ld = yes ; then
23138 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
23139 gcc_cv_ld_static_dynamic
=yes
23141 elif test x
$gcc_cv_ld != x
; then
23142 # Check if linker supports -Bstatic/-Bdynamic option
23143 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23144 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23145 gcc_cv_ld_static_dynamic
=yes
23148 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23150 gcc_cv_ld_static_dynamic
=yes
23151 gcc_cv_ld_static_option
="-noso"
23152 gcc_cv_ld_dynamic_option
="-so_archive"
23154 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23156 gcc_cv_ld_static_dynamic
=yes
23158 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23160 gcc_cv_ld_static_dynamic
=yes
23165 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23167 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23170 cat >>confdefs.h
<<_ACEOF
23171 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23175 cat >>confdefs.h
<<_ACEOF
23176 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23181 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23183 if test x
"$demangler_in_ld" = xyes
; then
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23185 $as_echo_n "checking linker --demangle support... " >&6; }
23186 gcc_cv_ld_demangle
=no
23187 if test $in_tree_ld = yes; then
23188 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 \
23189 gcc_cv_ld_demangle
=yes
23191 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23192 # Check if the GNU linker supports --demangle option
23193 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23194 gcc_cv_ld_demangle
=yes
23197 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23199 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23203 $as_echo "$gcc_cv_ld_demangle" >&6; }
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23207 $as_echo_n "checking linker plugin support... " >&6; }
23208 gcc_cv_lto_plugin
=0
23209 if test -f liblto_plugin.la
; then
23210 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23211 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
23212 gcc_cv_lto_plugin
=2
23213 elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23214 gcc_cv_lto_plugin
=1
23217 elif test x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld" && echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23218 # Require GNU ld or gold 2.21+ for plugin support by default.
23219 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23220 gcc_cv_lto_plugin
=2
23221 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23222 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23223 gcc_cv_lto_plugin
=1
23225 elif test x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x
"$gcc_cv_ld"; then
23226 # Allow -fuse-linker-plugin if plugin linker differs from
23227 # default/specified linker.
23228 gcc_cv_lto_plugin
=1
23232 cat >>confdefs.h
<<_ACEOF
23233 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23237 $as_echo "$gcc_cv_lto_plugin" >&6; }
23240 # All TARGET_ABI_OSF targets.
23241 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23243 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23244 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23247 gcc_cv_as_alpha_explicit_relocs
=no
23248 if test $in_tree_gas = yes; then
23249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23250 then gcc_cv_as_alpha_explicit_relocs
=yes
23252 elif test x
$gcc_cv_as != x
; then
23253 echo ' .set nomacro
23255 extbl $3, $2, $3 !lituse_bytoff!1
23256 ldq $2, a($29) !literal!1
23257 ldq $4, b($29) !literal!2
23258 ldq_u $3, 0($2) !lituse_base!1
23259 ldq $27, f($29) !literal!5
23260 jsr $26, ($27), f !lituse_jsr!5
23261 ldah $29, 0($26) !gpdisp!3
23262 lda $0, c($29) !gprel
23263 ldah $1, d($29) !gprelhigh
23264 lda $1, d($1) !gprellow
23265 lda $29, 0($29) !gpdisp!3' > conftest.s
23266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23273 gcc_cv_as_alpha_explicit_relocs
=yes
23275 echo "configure: failed program was" >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23282 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23283 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23285 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23289 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23290 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23293 gcc_cv_as_alpha_jsrdirect_relocs
=no
23294 if test $in_tree_gas = yes; then
23295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23296 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23298 elif test x
$gcc_cv_as != x
; then
23299 echo ' .set nomacro
23301 ldq $27, a($29) !literal!1
23302 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23305 (eval $ac_try) 2>&5
23307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23308 test $ac_status = 0; }; }
23310 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23312 echo "configure: failed program was" >&5
23315 rm -f conftest.o conftest.s
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23319 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23320 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23322 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23329 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23330 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23333 gcc_cv_as_cris_no_mul_bug
=no
23334 if test $in_tree_gas = yes; then
23335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23336 then gcc_cv_as_cris_no_mul_bug
=yes
23338 elif test x
$gcc_cv_as != x
; then
23339 echo '.text' > conftest.s
23340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342 (eval $ac_try) 2>&5
23344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345 test $ac_status = 0; }; }
23347 gcc_cv_as_cris_no_mul_bug
=yes
23349 echo "configure: failed program was" >&5
23352 rm -f conftest.o conftest.s
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23356 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23357 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23359 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23366 $as_echo_n "checking assembler for .register... " >&6; }
23367 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23368 $as_echo_n "(cached) " >&6
23370 gcc_cv_as_sparc_register_op
=no
23371 if test x
$gcc_cv_as != x
; then
23372 echo '.register %g2, #scratch' > conftest.s
23373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23375 (eval $ac_try) 2>&5
23377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23378 test $ac_status = 0; }; }
23380 gcc_cv_as_sparc_register_op
=yes
23382 echo "configure: failed program was" >&5
23385 rm -f conftest.o conftest.s
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23389 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23390 if test $gcc_cv_as_sparc_register_op = yes; then
23392 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23397 $as_echo_n "checking assembler for -relax option... " >&6; }
23398 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23399 $as_echo_n "(cached) " >&6
23401 gcc_cv_as_sparc_relax
=no
23402 if test x
$gcc_cv_as != x
; then
23403 echo '.text' > conftest.s
23404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }
23411 gcc_cv_as_sparc_relax
=yes
23413 echo "configure: failed program was" >&5
23416 rm -f conftest.o conftest.s
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23420 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23421 if test $gcc_cv_as_sparc_relax = yes; then
23423 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23428 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23429 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23430 $as_echo_n "(cached) " >&6
23432 gcc_cv_as_sparc_gotdata_op
=no
23433 if test x
$gcc_cv_as != x
; then
23438 sethi %gdop_hix22(foo), %g1
23439 xor %g1, %gdop_lox10(foo), %g1
23440 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23441 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443 (eval $ac_try) 2>&5
23445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446 test $ac_status = 0; }; }
23448 if test x
$gcc_cv_ld != x \
23449 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23450 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
23451 if test x
$gcc_cv_objdump != x
; then
23452 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23453 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23454 gcc_cv_as_sparc_gotdata_op
=no
23456 gcc_cv_as_sparc_gotdata_op
=yes
23460 gcc_cv_as_sparc_gotdata_op
=yes
23465 echo "configure: failed program was" >&5
23468 rm -f conftest.o conftest.s
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23472 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23473 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23475 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23480 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23481 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23484 gcc_cv_as_sparc_ua_pcrel
=no
23485 if test x
$gcc_cv_as != x
; then
23492 .uaword %r_disp32(foo)' > conftest.s
23493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23495 (eval $ac_try) 2>&5
23497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23498 test $ac_status = 0; }; }
23500 if test x
$gcc_cv_ld != x \
23501 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23502 gcc_cv_as_sparc_ua_pcrel
=yes
23506 echo "configure: failed program was" >&5
23509 rm -f conftest.o conftest.s
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23513 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23514 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23516 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23520 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23521 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23522 $as_echo_n "(cached) " >&6
23524 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23525 if test x
$gcc_cv_as != x
; then
23529 .uaword %r_disp32(foo)
23530 .byte 0x32, 0x33, 0x34
23534 .skip 4' > conftest.s
23535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23542 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23543 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23544 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23545 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23546 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23547 |
grep 'DISP32' > /dev
/null
2>&1; then
23550 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23555 echo "configure: failed program was" >&5
23558 rm -f conftest.o conftest.s
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23562 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23563 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23565 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23569 fi # unaligned pcrel relocs
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23572 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23573 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23574 $as_echo_n "(cached) " >&6
23576 gcc_cv_as_sparc_offsetable_lo10
=no
23577 if test x
$gcc_cv_as != x
; then
23579 or %g1, %lo(ab) + 12, %g1
23580 or %g1, %lo(ab + 12), %g1' > conftest.s
23581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23583 (eval $ac_try) 2>&5
23585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23586 test $ac_status = 0; }; }
23588 if test x
$gcc_cv_objdump != x \
23589 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23590 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23591 gcc_cv_as_sparc_offsetable_lo10
=yes
23594 echo "configure: failed program was" >&5
23597 rm -f conftest.o conftest.s
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23601 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23602 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23604 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23609 i
[34567]86-*-* | x86_64-
*-*)
23612 # Full C++ conformance when using a shared libstdc++-v3 requires some
23613 # support from the Cygwin DLL, which in more recent versions exports
23614 # wrappers to aid in interposing and redirecting operators new, delete,
23615 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23616 # are configuring for a version of Cygwin that exports the wrappers.
23617 if test x
$host = x
$target; then
23618 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23619 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23620 gcc_ac_cygwin_dll_wrappers
=yes
23622 gcc_ac_cygwin_dll_wrappers
=no
23626 # Can't check presence of libc functions during cross-compile, so
23627 # we just have to assume we're building for an up-to-date target.
23628 gcc_ac_cygwin_dll_wrappers
=yes
23631 cat >>confdefs.h
<<_ACEOF
23632 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23637 cygwin
* | pe | mingw32
*)
23638 # Recent binutils allows the three-operand form of ".comm" on PE. This
23639 # definition is used unconditionally to initialise the default state of
23640 # the target option variable that governs usage of the feature.
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23642 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23643 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23644 $as_echo_n "(cached) " >&6
23646 gcc_cv_as_comm_has_align
=no
23647 if test $in_tree_gas = yes; then
23648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23649 then gcc_cv_as_comm_has_align
=yes
23651 elif test x
$gcc_cv_as != x
; then
23652 echo '.comm foo,1,32' > conftest.s
23653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655 (eval $ac_try) 2>&5
23657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }; }
23660 gcc_cv_as_comm_has_align
=yes
23662 echo "configure: failed program was" >&5
23665 rm -f conftest.o conftest.s
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23669 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23672 cat >>confdefs.h
<<_ACEOF
23673 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23676 # Used for DWARF 2 in PE
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23678 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23679 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23680 $as_echo_n "(cached) " >&6
23682 gcc_cv_as_ix86_pe_secrel32
=no
23683 if test $in_tree_gas = yes; then
23684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23685 then gcc_cv_as_ix86_pe_secrel32
=yes
23687 elif test x
$gcc_cv_as != x
; then
23691 .secrel32 foo' > conftest.s
23692 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23694 (eval $ac_try) 2>&5
23696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23697 test $ac_status = 0; }; }
23699 if test x
$gcc_cv_ld != x \
23700 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23701 gcc_cv_as_ix86_pe_secrel32
=yes
23705 echo "configure: failed program was" >&5
23708 rm -f conftest.o conftest.s
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23712 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23713 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23715 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23718 # Test if the assembler supports the extended form of the .section
23719 # directive that specifies section alignment. LTO support uses this,
23720 # but normally only after installation, so we warn but don't fail the
23721 # configure if LTO is enabled but the assembler does not support it.
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23723 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23724 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23727 gcc_cv_as_section_has_align
=no
23728 if test $in_tree_gas = yes; then
23729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23730 then gcc_cv_as_section_has_align
=yes
23732 elif test x
$gcc_cv_as != x
; then
23733 echo '.section lto_test,"dr0"' > conftest.s
23734 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23736 (eval $ac_try) 2>&5
23738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23739 test $ac_status = 0; }; }
23741 gcc_cv_as_section_has_align
=yes
23743 echo "configure: failed program was" >&5
23746 rm -f conftest.o conftest.s
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23750 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23752 if test x
$gcc_cv_as_section_has_align != xyes
; then
23753 case ",$enable_languages," in
23755 { $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
23756 $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;}
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23764 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23765 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23766 $as_echo_n "(cached) " >&6
23768 gcc_cv_as_ix86_filds
=no
23769 if test x
$gcc_cv_as != x
; then
23770 echo 'filds mem; fists mem' > conftest.s
23771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23773 (eval $ac_try) 2>&5
23775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23776 test $ac_status = 0; }; }
23778 gcc_cv_as_ix86_filds
=yes
23780 echo "configure: failed program was" >&5
23783 rm -f conftest.o conftest.s
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23787 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23788 if test $gcc_cv_as_ix86_filds = yes; then
23790 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23795 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23796 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23797 $as_echo_n "(cached) " >&6
23799 gcc_cv_as_ix86_fildq
=no
23800 if test x
$gcc_cv_as != x
; then
23801 echo 'fildq mem; fistpq mem' > conftest.s
23802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23804 (eval $ac_try) 2>&5
23806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23807 test $ac_status = 0; }; }
23809 gcc_cv_as_ix86_fildq
=yes
23811 echo "configure: failed program was" >&5
23814 rm -f conftest.o conftest.s
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23818 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23819 if test $gcc_cv_as_ix86_fildq = yes; then
23821 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23826 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23827 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23828 $as_echo_n "(cached) " >&6
23830 gcc_cv_as_ix86_cmov_sun_syntax
=no
23831 if test x
$gcc_cv_as != x
; then
23832 echo 'cmovl.l %edx, %eax' > conftest.s
23833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; }
23840 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23842 echo "configure: failed program was" >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23849 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23850 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23852 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23857 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23858 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23861 gcc_cv_as_ix86_ffreep
=no
23862 if test x
$gcc_cv_as != x
; then
23863 echo 'ffreep %st(1)' > conftest.s
23864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23866 (eval $ac_try) 2>&5
23868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23869 test $ac_status = 0; }; }
23871 gcc_cv_as_ix86_ffreep
=yes
23873 echo "configure: failed program was" >&5
23876 rm -f conftest.o conftest.s
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23880 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23881 if test $gcc_cv_as_ix86_ffreep = yes; then
23883 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23888 $as_echo_n "checking assembler for .quad directive... " >&6; }
23889 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23890 $as_echo_n "(cached) " >&6
23892 gcc_cv_as_ix86_quad
=no
23893 if test x
$gcc_cv_as != x
; then
23894 echo '.quad 0' > conftest.s
23895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23897 (eval $ac_try) 2>&5
23899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23900 test $ac_status = 0; }; }
23902 gcc_cv_as_ix86_quad
=yes
23904 echo "configure: failed program was" >&5
23907 rm -f conftest.o conftest.s
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23911 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23912 if test $gcc_cv_as_ix86_quad = yes; then
23914 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23919 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23920 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23921 $as_echo_n "(cached) " >&6
23923 gcc_cv_as_ix86_sahf
=no
23924 if test x
$gcc_cv_as != x
; then
23927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23929 (eval $ac_try) 2>&5
23931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23932 test $ac_status = 0; }; }
23934 gcc_cv_as_ix86_sahf
=yes
23936 echo "configure: failed program was" >&5
23939 rm -f conftest.o conftest.s
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23943 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23944 if test $gcc_cv_as_ix86_sahf = yes; then
23946 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23951 $as_echo_n "checking assembler for swap suffix... " >&6; }
23952 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23955 gcc_cv_as_ix86_swap
=no
23956 if test x
$gcc_cv_as != x
; then
23957 echo 'movl.s %esp, %ebp' > conftest.s
23958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23965 gcc_cv_as_ix86_swap
=yes
23967 echo "configure: failed program was" >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23974 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23975 if test $gcc_cv_as_ix86_swap = yes; then
23977 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23982 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23983 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23984 $as_echo_n "(cached) " >&6
23986 gcc_cv_as_ix86_diff_sect_delta
=no
23987 if test x
$gcc_cv_as != x
; then
23988 echo '.section .rodata
23994 .L2: nop' > conftest.s
23995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23997 (eval $ac_try) 2>&5
23999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24000 test $ac_status = 0; }; }
24002 gcc_cv_as_ix86_diff_sect_delta
=yes
24004 echo "configure: failed program was" >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24011 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24012 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24014 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24018 # These two are used unconditionally by i386.[ch]; it is to be defined
24019 # to 1 if the feature is present, 0 otherwise.
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24021 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24022 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24025 gcc_cv_as_ix86_gotoff_in_data
=no
24026 if test $in_tree_gas = yes; then
24027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24028 then gcc_cv_as_ix86_gotoff_in_data
=yes
24030 elif test x
$gcc_cv_as != x
; then
24035 .long .L0@GOTOFF' > conftest.s
24036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24043 gcc_cv_as_ix86_gotoff_in_data
=yes
24045 echo "configure: failed program was" >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24052 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24055 cat >>confdefs.h
<<_ACEOF
24056 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24061 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24062 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24065 gcc_cv_as_ix86_rep_lock_prefix
=no
24066 if test x
$gcc_cv_as != x
; then
24068 lock addl %edi, (%eax,%esi)
24069 lock orl $0, (%esp)' > conftest.s
24070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_rep_lock_prefix
=yes
24079 echo "configure: failed program was" >&5
24082 rm -f conftest.o conftest.s
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24086 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24087 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24089 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24097 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24098 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24101 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24102 if test $in_tree_gas = yes; then
24103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24104 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24106 elif test x
$gcc_cv_as != x
; then
24108 addl r15 = @ltoffx(x#), gp
24110 ld8.mov r16 = [r15], x#' > conftest.s
24111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24118 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24120 echo "configure: failed program was" >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24127 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24128 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24130 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24138 *-*-aix*) conftest_s
=' .machine "pwr5"
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24143 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24144 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24147 gcc_cv_as_machine_directive
=no
24148 if test x
$gcc_cv_as != x
; then
24149 echo ' .machine ppc7400' > conftest.s
24150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24157 gcc_cv_as_machine_directive
=yes
24159 echo "configure: failed program was" >&5
24162 rm -f conftest.o conftest.s
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24166 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24168 if test x
$gcc_cv_as_machine_directive != xyes
; then
24169 echo "*** This target requires an assembler supporting \".machine\"" >&2
24170 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24171 test x
$build = x
$target && exit 1
24175 *) conftest_s
=' .machine power4
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24181 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24182 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24185 gcc_cv_as_powerpc_mfcrf
=no
24186 if test $in_tree_gas = yes; then
24187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24188 then gcc_cv_as_powerpc_mfcrf
=yes
24190 elif test x
$gcc_cv_as != x
; then
24191 echo "$conftest_s" > conftest.s
24192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24199 gcc_cv_as_powerpc_mfcrf
=yes
24201 echo "configure: failed program was" >&5
24204 rm -f conftest.o conftest.s
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24208 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24209 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24211 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24216 *-*-aix*) conftest_s
=' .machine "pwr5"
24219 *) conftest_s
=' .machine power5
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24225 $as_echo_n "checking assembler for popcntb support... " >&6; }
24226 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24227 $as_echo_n "(cached) " >&6
24229 gcc_cv_as_powerpc_popcntb
=no
24230 if test $in_tree_gas = yes; then
24231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24232 then gcc_cv_as_powerpc_popcntb
=yes
24234 elif test x
$gcc_cv_as != x
; then
24235 echo "$conftest_s" > conftest.s
24236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }
24243 gcc_cv_as_powerpc_popcntb
=yes
24245 echo "configure: failed program was" >&5
24248 rm -f conftest.o conftest.s
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24252 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24253 if test $gcc_cv_as_powerpc_popcntb = yes; then
24255 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24260 *-*-aix*) conftest_s
=' .machine "pwr5x"
24263 *) conftest_s
=' .machine power5
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24269 $as_echo_n "checking assembler for fp round support... " >&6; }
24270 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24273 gcc_cv_as_powerpc_fprnd
=no
24274 if test $in_tree_gas = yes; then
24275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24276 then gcc_cv_as_powerpc_fprnd
=yes
24278 elif test x
$gcc_cv_as != x
; then
24279 echo "$conftest_s" > conftest.s
24280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24282 (eval $ac_try) 2>&5
24284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24285 test $ac_status = 0; }; }
24287 gcc_cv_as_powerpc_fprnd
=yes
24289 echo "configure: failed program was" >&5
24292 rm -f conftest.o conftest.s
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24296 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24297 if test $gcc_cv_as_powerpc_fprnd = yes; then
24299 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24304 *-*-aix*) conftest_s
=' .machine "pwr6"
24307 *) conftest_s
=' .machine power6
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24313 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24314 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24317 gcc_cv_as_powerpc_mfpgpr
=no
24318 if test $in_tree_gas = yes; then
24319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24320 then gcc_cv_as_powerpc_mfpgpr
=yes
24322 elif test x
$gcc_cv_as != x
; then
24323 echo "$conftest_s" > conftest.s
24324 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24326 (eval $ac_try) 2>&5
24328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329 test $ac_status = 0; }; }
24331 gcc_cv_as_powerpc_mfpgpr
=yes
24333 echo "configure: failed program was" >&5
24336 rm -f conftest.o conftest.s
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24340 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24341 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24343 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24348 *-*-aix*) conftest_s
=' .csect .text[PR]
24350 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24354 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24355 *) conftest_s
=' .text
24357 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24361 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24362 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24365 gcc_cv_as_powerpc_rel16
=no
24366 if test $in_tree_gas = yes; then
24367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24368 then gcc_cv_as_powerpc_rel16
=yes
24370 elif test x
$gcc_cv_as != x
; then
24371 echo "$conftest_s" > conftest.s
24372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24379 gcc_cv_as_powerpc_rel16
=yes
24381 echo "configure: failed program was" >&5
24384 rm -f conftest.o conftest.s
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24388 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24389 if test $gcc_cv_as_powerpc_rel16 = yes; then
24391 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24396 *-*-aix*) conftest_s
=' .machine "pwr6"
24399 *) conftest_s
=' .machine power6
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24405 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24406 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24407 $as_echo_n "(cached) " >&6
24409 gcc_cv_as_powerpc_cmpb
=no
24410 if test $in_tree_gas = yes; then
24411 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24412 then gcc_cv_as_powerpc_cmpb
=yes
24414 elif test x
$gcc_cv_as != x
; then
24415 echo "$conftest_s" > conftest.s
24416 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24423 gcc_cv_as_powerpc_cmpb
=yes
24425 echo "configure: failed program was" >&5
24428 rm -f conftest.o conftest.s
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24432 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24433 if test $gcc_cv_as_powerpc_cmpb = yes; then
24435 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24440 *-*-aix*) conftest_s
=' .machine "pwr6"
24443 *) conftest_s
=' .machine power6
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24449 $as_echo_n "checking assembler for decimal float support... " >&6; }
24450 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24453 gcc_cv_as_powerpc_dfp
=no
24454 if test $in_tree_gas = yes; then
24455 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24456 then gcc_cv_as_powerpc_dfp
=yes
24458 elif test x
$gcc_cv_as != x
; then
24459 echo "$conftest_s" > conftest.s
24460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24462 (eval $ac_try) 2>&5
24464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24465 test $ac_status = 0; }; }
24467 gcc_cv_as_powerpc_dfp
=yes
24469 echo "configure: failed program was" >&5
24472 rm -f conftest.o conftest.s
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24476 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24477 if test $gcc_cv_as_powerpc_dfp = yes; then
24479 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24484 *-*-aix*) conftest_s
=' .machine "pwr7"
24487 *) conftest_s
=' .machine power7
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24493 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24494 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24495 $as_echo_n "(cached) " >&6
24497 gcc_cv_as_powerpc_vsx
=no
24498 if test $in_tree_gas = yes; then
24499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24500 then gcc_cv_as_powerpc_vsx
=yes
24502 elif test x
$gcc_cv_as != x
; then
24503 echo "$conftest_s" > conftest.s
24504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24511 gcc_cv_as_powerpc_vsx
=yes
24513 echo "configure: failed program was" >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24520 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24521 if test $gcc_cv_as_powerpc_vsx = yes; then
24523 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24528 *-*-aix*) conftest_s
=' .machine "pwr7"
24531 *) conftest_s
=' .machine power7
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24537 $as_echo_n "checking assembler for popcntd support... " >&6; }
24538 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24541 gcc_cv_as_powerpc_popcntd
=no
24542 if test $in_tree_gas = yes; then
24543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24544 then gcc_cv_as_powerpc_popcntd
=yes
24546 elif test x
$gcc_cv_as != x
; then
24547 echo "$conftest_s" > conftest.s
24548 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24550 (eval $ac_try) 2>&5
24552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553 test $ac_status = 0; }; }
24555 gcc_cv_as_powerpc_popcntd
=yes
24557 echo "configure: failed program was" >&5
24560 rm -f conftest.o conftest.s
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24564 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24565 if test $gcc_cv_as_powerpc_popcntd = yes; then
24567 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24572 *-*-aix*) conftest_s
=' .csect .text[PR]
24574 *) conftest_s
=' .text
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24579 $as_echo_n "checking assembler for lwsync support... " >&6; }
24580 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24583 gcc_cv_as_powerpc_lwsync
=no
24584 if test $in_tree_gas = yes; then
24585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24586 then gcc_cv_as_powerpc_lwsync
=yes
24588 elif test x
$gcc_cv_as != x
; then
24589 echo "$conftest_s" > conftest.s
24590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24592 (eval $ac_try) 2>&5
24594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24595 test $ac_status = 0; }; }
24597 gcc_cv_as_powerpc_lwsync
=yes
24599 echo "configure: failed program was" >&5
24602 rm -f conftest.o conftest.s
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24606 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24607 if test $gcc_cv_as_powerpc_lwsync = yes; then
24609 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24614 *-*-aix*) conftest_s
=' .machine "476"
24617 *) conftest_s
=' .machine "476"
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24623 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24624 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24627 gcc_cv_as_powerpc_dci
=no
24628 if test $in_tree_gas = yes; then
24629 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24630 then gcc_cv_as_powerpc_dci
=yes
24632 elif test x
$gcc_cv_as != x
; then
24633 echo "$conftest_s" > conftest.s
24634 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24636 (eval $ac_try) 2>&5
24638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24639 test $ac_status = 0; }; }
24641 gcc_cv_as_powerpc_dci
=yes
24643 echo "configure: failed program was" >&5
24646 rm -f conftest.o conftest.s
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24650 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24651 if test $gcc_cv_as_powerpc_dci = yes; then
24653 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24658 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24659 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24660 $as_echo_n "(cached) " >&6
24662 gcc_cv_as_powerpc_gnu_attribute
=no
24663 if test $in_tree_gas = yes; then
24664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24665 then gcc_cv_as_powerpc_gnu_attribute
=yes
24667 elif test x
$gcc_cv_as != x
; then
24668 echo '.gnu_attribute 4,1' > conftest.s
24669 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671 (eval $ac_try) 2>&5
24673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674 test $ac_status = 0; }; }
24676 gcc_cv_as_powerpc_gnu_attribute
=yes
24678 echo "configure: failed program was" >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24685 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24686 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24688 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24693 $as_echo_n "checking assembler for tls marker support... " >&6; }
24694 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24695 $as_echo_n "(cached) " >&6
24697 gcc_cv_as_powerpc_tls_markers
=no
24698 if test $in_tree_gas = yes; then
24699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24700 then gcc_cv_as_powerpc_tls_markers
=yes
24702 elif test x
$gcc_cv_as != x
; then
24703 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24711 gcc_cv_as_powerpc_tls_markers
=yes
24713 echo "configure: failed program was" >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24720 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24721 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24723 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24730 $as_echo_n "checking assembler for .ref support... " >&6; }
24731 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24734 gcc_cv_as_aix_ref
=no
24735 if test $in_tree_gas = yes; then
24736 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24739 elif test x
$gcc_cv_as != x
; then
24740 echo ' .csect stuff[rw]
24746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24753 gcc_cv_as_aix_ref
=yes
24755 echo "configure: failed program was" >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24762 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24763 if test $gcc_cv_as_aix_ref = yes; then
24765 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24774 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24775 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24778 gcc_cv_as_mips_explicit_relocs
=no
24779 if test $in_tree_gas = yes; then
24780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24781 then gcc_cv_as_mips_explicit_relocs
=yes
24783 elif test x
$gcc_cv_as != x
; then
24784 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24792 gcc_cv_as_mips_explicit_relocs
=yes
24794 echo "configure: failed program was" >&5
24797 rm -f conftest.o conftest.s
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24801 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24802 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24803 if test x
$target_cpu_default = x
24804 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24805 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24809 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24810 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24813 gcc_cv_as_mips_no_shared
=no
24814 if test $in_tree_gas = yes; then
24815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24816 then gcc_cv_as_mips_no_shared
=yes
24818 elif test x
$gcc_cv_as != x
; then
24819 echo 'nop' > conftest.s
24820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24827 gcc_cv_as_mips_no_shared
=yes
24829 echo "configure: failed program was" >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24836 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24837 if test $gcc_cv_as_mips_no_shared = yes; then
24839 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24844 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24845 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24848 gcc_cv_as_mips_gnu_attribute
=no
24849 if test $in_tree_gas = yes; then
24850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24851 then gcc_cv_as_mips_gnu_attribute
=yes
24853 elif test x
$gcc_cv_as != x
; then
24854 echo '.gnu_attribute 4,1' > conftest.s
24855 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857 (eval $ac_try) 2>&5
24859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860 test $ac_status = 0; }; }
24862 gcc_cv_as_mips_gnu_attribute
=yes
24864 echo "configure: failed program was" >&5
24867 rm -f conftest.o conftest.s
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24871 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24872 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24874 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24879 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24880 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24881 $as_echo_n "(cached) " >&6
24883 gcc_cv_as_mips_dtprelword
=no
24884 if test $in_tree_gas = yes; then
24885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24886 then gcc_cv_as_mips_dtprelword
=yes
24888 elif test x
$gcc_cv_as != x
; then
24889 echo '.section .tdata,"awT",@progbits
24893 .dtprelword x+0x8000' > conftest.s
24894 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24896 (eval $ac_try) 2>&5
24898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; }
24901 gcc_cv_as_mips_dtprelword
=yes
24903 echo "configure: failed program was" >&5
24906 rm -f conftest.o conftest.s
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24910 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24911 if test $gcc_cv_as_mips_dtprelword = yes; then
24913 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24918 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24919 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24920 $as_echo_n "(cached) " >&6
24922 gcc_cv_as_mips_dspr1_mult
=no
24923 if test x
$gcc_cv_as != x
; then
24924 echo ' .set mips32r2
24932 multu $ac3,$4,$5' > conftest.s
24933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935 (eval $ac_try) 2>&5
24937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938 test $ac_status = 0; }; }
24940 gcc_cv_as_mips_dspr1_mult
=yes
24942 echo "configure: failed program was" >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24949 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24950 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24952 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24957 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24958 gcc_cv_as_ld_jalr_reloc
=no
24959 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24960 if test $in_tree_ld = yes ; then
24961 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 \
24962 && test $in_tree_ld_is_elf = yes; then
24963 gcc_cv_as_ld_jalr_reloc
=yes
24965 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24966 echo ' .ent x' > conftest.s
24967 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24968 echo ' ld $25,%call16(y)($28)' >> conftest.s
24969 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24970 echo '1: jalr $25' >> conftest.s
24971 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24972 echo '1: jalr $25' >> conftest.s
24973 echo ' .end x' >> conftest.s
24974 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24975 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24976 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24977 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24978 gcc_cv_as_ld_jalr_reloc
=yes
24984 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24985 if test x
$target_cpu_default = x
; then
24986 target_cpu_default
=MASK_RELAX_PIC_CALLS
24988 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24992 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24995 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24996 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24999 gcc_cv_ld_mips_personality_relaxation
=no
25000 if test $in_tree_ld = yes ; then
25001 if test "$gcc_cv_gld_major_version" -eq 2 \
25002 -a "$gcc_cv_gld_minor_version" -ge 21 \
25003 -o "$gcc_cv_gld_major_version" -gt 2; then
25004 gcc_cv_ld_mips_personality_relaxation
=yes
25006 elif test x
$gcc_cv_as != x \
25007 -a x
$gcc_cv_ld != x \
25008 -a x
$gcc_cv_readelf != x
; then
25009 cat > conftest.s
<<EOF
25011 .cfi_personality 0x80,indirect_ptr
25018 .section .data,"aw",@progbits
25022 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25023 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25024 if $gcc_cv_readelf -d conftest
2>&1 \
25025 |
grep TEXTREL
> /dev
/null
2>&1; then
25027 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25028 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25031 gcc_cv_ld_mips_personality_relaxation
=yes
25035 rm -f conftest.s conftest.o conftest
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25038 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25039 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25041 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25047 # Mips and HP-UX need the GNU assembler.
25048 # Linux on IA64 might be able to use the Intel assembler.
25051 mips
*-*-* |
*-*-hpux* )
25052 if test x
$gas_flag = xyes \
25053 ||
test x
"$host" != x
"$build" \
25054 ||
test ! -x "$gcc_cv_as" \
25055 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25058 echo "*** This configuration requires the GNU assembler" >&2
25064 # ??? Not all targets support dwarf2 debug_line, even within a version
25065 # of gas. Moreover, we need to emit a valid instruction to trigger any
25066 # info to the output file. So, as supported targets are added to gas 2.11,
25067 # add some instruction here to (also) show we expect this might work.
25068 # ??? Once 2.11 is released, probably need to add first known working
25069 # version to the per-target configury.
25070 case "$cpu_type" in
25071 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25072 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25082 if test x
"$insn" != x
; then
25084 .file 1 \"conftest.s\"
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25088 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25089 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25092 gcc_cv_as_dwarf2_debug_line
=no
25093 if test $in_tree_gas = yes; then
25094 if test $in_tree_gas_is_elf = yes \
25095 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25096 then gcc_cv_as_dwarf2_debug_line
=yes
25098 elif test x
$gcc_cv_as != x
; then
25099 echo "$conftest_s" > conftest.s
25100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25107 if test x
$gcc_cv_objdump != x \
25108 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25109 |
grep debug_line
> /dev
/null
2>&1; then
25110 gcc_cv_as_dwarf2_debug_line
=yes
25113 echo "configure: failed program was" >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25120 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25123 # The .debug_line file table must be in the exact order that
25124 # we specified the files, since these indices are also used
25125 # by DW_AT_decl_file. Approximate this test by testing if
25126 # the assembler bitches if the same index is assigned twice.
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25128 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25129 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_dwarf2_file_buggy
=no
25133 if test x
$gcc_cv_as != x
; then
25134 echo ' .file 1 "foo.s"
25135 .file 1 "bar.s"' > conftest.s
25136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25138 (eval $ac_try) 2>&5
25140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25141 test $ac_status = 0; }; }
25143 gcc_cv_as_dwarf2_file_buggy
=yes
25145 echo "configure: failed program was" >&5
25148 rm -f conftest.o conftest.s
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25152 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25155 if test $gcc_cv_as_dwarf2_debug_line = yes \
25156 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25158 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25163 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25164 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25165 $as_echo_n "(cached) " >&6
25167 gcc_cv_as_gdwarf2_flag
=no
25168 if test $in_tree_gas = yes; then
25169 if test $in_tree_gas_is_elf = yes \
25170 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25171 then gcc_cv_as_gdwarf2_flag
=yes
25173 elif test x
$gcc_cv_as != x
; then
25174 echo "$insn" > conftest.s
25175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }
25182 gcc_cv_as_gdwarf2_flag
=yes
25184 echo "configure: failed program was" >&5
25187 rm -f conftest.o conftest.s
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25191 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25192 if test $gcc_cv_as_gdwarf2_flag = yes; then
25194 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25199 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25200 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25203 gcc_cv_as_gstabs_flag
=no
25204 if test $in_tree_gas = yes; then
25205 if test $in_tree_gas_is_elf = yes \
25206 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25207 then gcc_cv_as_gstabs_flag
=yes
25209 elif test x
$gcc_cv_as != x
; then
25210 echo "$insn" > conftest.s
25211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25218 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25219 # and warns about it, but still exits successfully. So check for
25221 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25228 else gcc_cv_as_gstabs_flag
=yes
25231 echo "configure: failed program was" >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25238 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25239 if test $gcc_cv_as_gstabs_flag = yes; then
25241 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25246 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25247 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25250 gcc_cv_as_debug_prefix_map_flag
=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25253 then gcc_cv_as_debug_prefix_map_flag
=yes
25255 elif test x
$gcc_cv_as != x
; then
25256 echo "$insn" > conftest.s
25257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25264 gcc_cv_as_debug_prefix_map_flag
=yes
25266 echo "configure: failed program was" >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25273 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25274 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25276 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25282 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25283 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25286 gcc_cv_as_lcomm_with_alignment
=no
25287 if test x
$gcc_cv_as != x
; then
25288 echo '.lcomm bar,4,16' > conftest.s
25289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25296 gcc_cv_as_lcomm_with_alignment
=yes
25298 echo "configure: failed program was" >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25305 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25306 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25308 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25312 # Check whether --enable-gnu-unique-object was given.
25313 if test "${enable_gnu_unique_object+set}" = set; then :
25314 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25316 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25317 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25321 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25322 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25323 $as_echo_n "(cached) " >&6
25325 gcc_cv_as_gnu_unique_object
=no
25326 if test $in_tree_gas = yes; then
25327 if test $in_tree_gas_is_elf = yes \
25328 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25329 then gcc_cv_as_gnu_unique_object
=yes
25331 elif test x
$gcc_cv_as != x
; then
25332 echo '.type foo, @gnu_unique_object' > conftest.s
25333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25335 (eval $ac_try) 2>&5
25337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338 test $ac_status = 0; }; }
25340 gcc_cv_as_gnu_unique_object
=yes
25342 echo "configure: failed program was" >&5
25345 rm -f conftest.o conftest.s
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25349 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25350 if test $gcc_cv_as_gnu_unique_object = yes; then
25351 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25352 if test x
$host = x
$build -a x
$host = x
$target &&
25353 ldd
--version 2>/dev
/null
&&
25354 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25355 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25356 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25357 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25358 if test "$glibcnum" -ge 2011 ; then
25359 enable_gnu_unique_object
=yes
25365 if test x
$enable_gnu_unique_object = xyes
; then
25367 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25372 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25373 if test "${gcc_cv_as_line_zero+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25376 gcc_cv_as_line_zero
=no
25377 if test $in_tree_gas = yes; then
25378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25379 then gcc_cv_as_line_zero
=yes
25381 elif test "x$gcc_cv_as" != x
; then
25382 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25383 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25385 (eval $ac_try) 2>&5
25387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25388 test $ac_status = 0; }; } &&
25389 test "x`cat conftest.out`" = x
25391 gcc_cv_as_line_zero
=yes
25393 echo "configure: failed program was" >&5
25395 echo "configure: error output was" >&5
25396 cat conftest.out
>&5
25398 rm -f conftest.o conftest.s conftest.out
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25402 $as_echo "$gcc_cv_as_line_zero" >&6; }
25403 if test "x$gcc_cv_as_line_zero" = xyes
; then
25405 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25410 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25411 gcc_cv_ld_eh_frame_hdr
=no
25412 if test $in_tree_ld = yes ; then
25413 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 \
25414 && test $in_tree_ld_is_elf = yes; then
25415 gcc_cv_ld_eh_frame_hdr
=yes
25417 elif test x
$gcc_cv_ld != x
; then
25418 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25419 # Check if linker supports --eh-frame-hdr option
25420 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25421 gcc_cv_ld_eh_frame_hdr
=yes
25426 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25427 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25428 gcc_cv_ld_eh_frame_hdr
=yes
25435 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25437 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25441 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25444 $as_echo_n "checking linker position independent executable support... " >&6; }
25446 if test $in_tree_ld = yes ; then
25447 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 \
25448 && test $in_tree_ld_is_elf = yes; then
25451 elif test x
$gcc_cv_ld != x
; then
25452 # Check if linker supports -pie option
25453 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25457 if test x
"$gcc_cv_ld_pie" = xyes
; then
25459 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25463 $as_echo "$gcc_cv_ld_pie" >&6; }
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25466 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25467 gcc_cv_ld_eh_gc_sections
=no
25468 if test $in_tree_ld = yes ; then
25469 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 \
25470 && test $in_tree_ld_is_elf = yes; then
25471 gcc_cv_ld_eh_gc_sections
=yes
25473 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25474 cat > conftest.s
<<EOF
25477 .type _start, @function
25480 .size _start, .-_start
25481 .section .text.foo,"ax",@progbits
25482 .type foo, @function
25486 .section .gcc_except_table.foo,"a",@progbits
25489 .section .eh_frame,"a",@progbits
25492 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25493 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25494 |
grep "gc-sections option ignored" > /dev
/null
; then
25495 gcc_cv_ld_eh_gc_sections
=no
25496 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25497 |
grep gcc_except_table
> /dev
/null
; then
25498 gcc_cv_ld_eh_gc_sections
=yes
25499 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25500 if test x
$gcc_cv_as_comdat_group != xyes
; then
25501 gcc_cv_ld_eh_gc_sections
=no
25502 cat > conftest.s
<<EOF
25505 .type _start, @function
25508 .size _start, .-_start
25509 .section .gnu.linkonce.t.foo,"ax",@progbits
25510 .type foo, @function
25514 .section .gcc_except_table.foo,"a",@progbits
25517 .section .eh_frame,"a",@progbits
25520 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25521 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25522 |
grep "gc-sections option ignored" > /dev
/null
; then
25523 gcc_cv_ld_eh_gc_sections
=no
25524 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25525 |
grep gcc_except_table
> /dev
/null
; then
25526 gcc_cv_ld_eh_gc_sections
=yes
25532 rm -f conftest.s conftest.o conftest
25536 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25537 gcc_cv_ld_eh_gc_sections
=no
25540 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
25542 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25546 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25549 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25550 gcc_cv_ld_eh_gc_sections_bug
=no
25551 if test $in_tree_ld = yes ; then
25552 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 \
25553 && test $in_tree_ld_is_elf = yes; then
25554 gcc_cv_ld_eh_gc_sections_bug
=yes
25556 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
25557 gcc_cv_ld_eh_gc_sections_bug
=yes
25558 cat > conftest.s
<<EOF
25561 .type _start, @function
25564 .size _start, .-_start
25565 .section .text.startup.foo,"ax",@progbits
25566 .type foo, @function
25570 .section .gcc_except_table.foo,"a",@progbits
25573 .section .eh_frame,"a",@progbits
25576 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25577 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25578 |
grep "gc-sections option ignored" > /dev
/null
; then
25580 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25581 |
grep gcc_except_table
> /dev
/null
; then
25582 gcc_cv_ld_eh_gc_sections_bug
=no
25585 rm -f conftest.s conftest.o conftest
25587 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
25589 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25593 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25600 $as_echo_n "checking linker --as-needed support... " >&6; }
25601 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25604 gcc_cv_ld_as_needed
=no
25605 if test $in_tree_ld = yes ; then
25606 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 \
25607 && test $in_tree_ld_is_elf = yes; then
25608 gcc_cv_ld_as_needed
=yes
25610 elif test x
$gcc_cv_ld != x
; then
25611 # Check if linker supports --as-needed and --no-as-needed options
25612 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
25613 gcc_cv_ld_as_needed
=yes
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25619 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25620 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
25622 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25626 case "$target:$tm_file" in
25627 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25629 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25630 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25633 gcc_cv_ld_no_dot_syms
=no
25634 if test $in_tree_ld = yes ; then
25635 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
25636 gcc_cv_ld_no_dot_syms
=yes
25638 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25639 cat > conftest1.s
<<EOF
25643 cat > conftest2.s
<<EOF
25644 .section ".opd","aw"
25647 .type foo,@function
25649 .quad .LEfoo,.TOC.@tocbase,0
25655 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
25656 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
25657 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
25658 gcc_cv_ld_no_dot_syms
=yes
25660 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25665 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25666 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
25668 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25673 $as_echo_n "checking linker large toc support... " >&6; }
25674 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25675 $as_echo_n "(cached) " >&6
25677 gcc_cv_ld_large_toc
=no
25678 if test $in_tree_ld = yes ; then
25679 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
25680 gcc_cv_ld_large_toc
=yes
25682 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25683 cat > conftest.s
<<EOF
25684 .section ".tbss","awT",@nobits
25690 addis 9,13,ie0@got@tprel@ha
25691 ld 9,ie0@got@tprel@l(9)
25693 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
25694 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
25695 gcc_cv_ld_large_toc
=yes
25697 rm -f conftest conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25702 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25703 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25705 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25712 $as_echo_n "checking linker --build-id support... " >&6; }
25713 if test "${gcc_cv_ld_buildid+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25716 gcc_cv_ld_buildid
=no
25717 if test $in_tree_ld = yes ; then
25718 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25719 "$gcc_cv_gld_minor_version" -ge 18 -o \
25720 "$gcc_cv_gld_major_version" -gt 2 \
25721 && test $in_tree_ld_is_elf = yes; then
25722 gcc_cv_ld_buildid
=yes
25724 elif test x
$gcc_cv_ld != x
; then
25725 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25726 gcc_cv_ld_buildid
=yes
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25731 $as_echo "$gcc_cv_ld_buildid" >&6; }
25732 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25734 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25738 # Check whether --enable-linker-build-id was given.
25739 if test "${enable_linker_build_id+set}" = set; then :
25740 enableval
=$enable_linker_build_id;
25742 enable_linker_build_id
=no
25746 if test x
"$enable_linker_build_id" = xyes
; then
25747 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25749 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25753 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25757 # In binutils 2.21, GNU ld gained support for new emulations fully
25758 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25760 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25761 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25762 $as_echo_n "(cached) " >&6
25764 gcc_cv_ld_sol2_emulation
=no
25765 if test $in_tree_ld = yes ; then
25766 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25767 "$gcc_cv_gld_minor_version" -ge 21 -o \
25768 "$gcc_cv_gld_major_version" -gt 2 \
25769 && test $in_tree_ld_is_elf = yes; then
25770 gcc_cv_ld_sol2_emulation
=yes
25772 elif test x
$gcc_cv_ld != x
; then
25773 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25774 grep _sol2
> /dev
/null
; then
25775 gcc_cv_ld_sol2_emulation
=yes
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25780 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25781 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25783 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25788 $as_echo_n "checking linker --sysroot support... " >&6; }
25789 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25790 $as_echo_n "(cached) " >&6
25792 gcc_cv_ld_sysroot
=no
25793 if test $in_tree_ld = yes ; then
25794 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
25795 gcc_cv_ld_sysroot
=yes
25797 elif test x
$gcc_cv_ld != x
; then
25798 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25799 gcc_cv_ld_sysroot
=yes
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25804 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25805 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25807 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25811 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25812 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25813 && test "$prefix" != "NONE"; then
25815 cat >>confdefs.h
<<_ACEOF
25816 #define PREFIX_INCLUDE_DIR "$prefix/include"
25821 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25822 if test "x$with_headers" != x
; then
25823 target_header_dir
=$with_headers
25824 elif test "x$with_sysroot" = x
; then
25825 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25826 elif test "x$with_build_sysroot" != "x"; then
25827 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
25828 elif test "x$with_sysroot" = xyes
; then
25829 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
25831 target_header_dir
="${with_sysroot}${native_system_header_dir}"
25834 target_header_dir
=${native_system_header_dir}
25837 # Test for stack protector support in target C library.
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25839 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25840 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25841 $as_echo_n "(cached) " >&6
25843 gcc_cv_libc_provides_ssp
=no
25845 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
25846 # glibc 2.4 and later provides __stack_chk_fail and
25847 # either __stack_chk_guard, or TLS access to stack guard canary.
25848 if test -f $target_header_dir/features.h \
25849 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25850 $target_header_dir/features.h
> /dev
/null
; then
25851 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25852 $target_header_dir/features.h
> /dev
/null
; then
25853 gcc_cv_libc_provides_ssp
=yes
25854 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25855 $target_header_dir/features.h
> /dev
/null \
25856 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25857 $target_header_dir/features.h
> /dev
/null
; then
25858 gcc_cv_libc_provides_ssp
=yes
25859 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25860 $target_header_dir/features.h
> /dev
/null
&& \
25861 test -f $target_header_dir/bits
/uClibc_config.h
&& \
25862 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25863 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
25864 gcc_cv_libc_provides_ssp
=yes
25869 # Avoid complicated tests (see
25870 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25871 # simply assert that glibc does provide this, which is true for all
25872 # realistically usable GNU/Hurd configurations.
25873 gcc_cv_libc_provides_ssp
=yes;;
25874 *-*-darwin* |
*-*-freebsd*)
25875 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25876 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
25877 gcc_cv_libc_provides_ssp
=yes
25879 echo "no __stack_chk_fail on this target"
25883 *) gcc_cv_libc_provides_ssp
=no
;;
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25887 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25889 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
25891 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25895 # Test for <sys/sdt.h> on the target.
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
25898 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
25900 if test -f $target_header_dir/sys
/sdt.h
; then
25902 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
25906 $as_echo "$have_sys_sdt_h" >&6; }
25908 # Check if TFmode long double should be used by default or not.
25909 # Some glibc targets used DFmode long double, but with glibc 2.4
25910 # and later they can use TFmode.
25912 powerpc
*-*-linux* | \
25913 sparc
*-*-linux* | \
25917 # Check whether --with-long-double-128 was given.
25918 if test "${with_long_double_128+set}" = set; then :
25919 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25921 gcc_cv_target_ldbl128
=no
25922 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25923 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25924 && gcc_cv_target_ldbl128
=yes
25930 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25932 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25937 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25938 gcc_cv_target_dl_iterate_phdr
=unknown
25941 # <link.h> needs both a dl_iterate_phdr declaration and support for
25942 # compilation with largefile support.
25943 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
25944 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
25945 gcc_cv_target_dl_iterate_phdr
=yes
25947 gcc_cv_target_dl_iterate_phdr
=no
25952 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
25954 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25958 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25960 # Find out what GC implementation we want, or may, use.
25962 # Check whether --with-gc was given.
25963 if test "${with_gc+set}" = set; then :
25964 withval
=$with_gc; case "$withval" in
25971 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25975 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25983 echo "Using $GGC for garbage collection."
25985 # Libraries to use on the host. This will normally be set by the top
25986 # level Makefile. Here we simply capture the value for our Makefile.
25987 if test -z "${HOST_LIBS+set}"; then
25992 # Use the system's zlib library.
25994 zlibinc
="-I\$(srcdir)/../zlib"
25996 # Check whether --with-system-zlib was given.
25997 if test "${with_system_zlib+set}" = set; then :
25998 withval
=$with_system_zlib; zlibdir
=
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26008 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26009 # Check whether --enable-maintainer-mode was given.
26010 if test "${enable_maintainer_mode+set}" = set; then :
26011 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26018 $as_echo "$maintainer_mode" >&6; }
26020 if test "$maintainer_mode" = "yes"; then
26030 # Make empty files to contain the specs and options for each language.
26031 # Then add #include lines to for a compiler that has specs and/or options.
26037 # These (without "all_") are set in each config-lang.in.
26038 # `language' must be a single word so is spelled singularly.
26041 all_outputs
='Makefile'
26042 # List of language makefile fragments.
26043 all_lang_makefrags
=
26044 # Additional files for gengtype
26045 all_gtfiles
="$target_gtfiles"
26047 # These are the languages that are set in --enable-languages,
26048 # and are available in the GCC tree.
26049 all_selected_languages
=
26051 # Add the language fragments.
26052 # Languages are added via two mechanisms. Some information must be
26053 # recorded in makefile variables, these are defined in config-lang.in.
26054 # We accumulate them and plug them into the main Makefile.
26055 # The other mechanism is a set of hooks for each of the main targets
26056 # like `clean', `install', etc.
26058 language_hooks
="Make-hooks"
26060 for lang
in ${srcdir}/*/config-lang.
in
26062 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26064 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26065 if test "x$lang_alias" = x
26067 echo "$lang doesn't set \$language." 1>&2
26070 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26071 subdirs
="$subdirs $subdir"
26073 # $gcc_subdir is where the gcc integration files are to be found
26074 # for a language, both for internal compiler purposes (compiler
26075 # sources implementing front-end to GCC tree converters), and for
26076 # build infrastructure purposes (Make-lang.in, etc.)
26078 # This will be <subdir> (relative to $srcdir) if a line like
26079 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26080 # is found in <langdir>/config-lang.in, and will remain <langdir>
26083 # Except for the language alias (fetched above), the regular
26084 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26085 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26086 # only this and the language alias.
26088 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26089 if [ "$gcc_subdir" = "" ]; then
26090 gcc_subdir
="$subdir"
26093 case ",$enable_languages," in
26095 all_selected_languages
="$all_selected_languages $lang_alias"
26096 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26097 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26108 .
${srcdir}/$gcc_subdir/config-lang.
in
26109 if test "x$language" = x
26111 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26116 case ",$enable_languages," in
26117 *,$lang_alias,*) ;;
26119 for i
in $subdir_requires; do
26120 test -f "${srcdir}/$i/config-lang.in" && continue
26128 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26129 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26130 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26131 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26133 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26134 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26136 all_languages
="$all_languages $language"
26137 all_compilers
="$all_compilers $compilers"
26138 all_outputs
="$all_outputs $outputs"
26139 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26140 case ",$enable_languages," in
26143 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26152 # Pick up gtfiles for c
26154 .
${srcdir}/c-config-lang.
in
26155 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26158 for language
in $all_selected_languages
26160 check_languages
="$check_languages check-$language"
26163 # We link each language in with a set of hooks, reached indirectly via
26164 # lang.${target}. Only do so for selected languages.
26168 target_list
="all.cross start.encap rest.encap tags \
26169 install-common install-man install-info install-pdf install-html dvi \
26170 pdf html uninstall info man srcextra srcman srcinfo \
26171 mostlyclean clean distclean maintainer-clean install-plugin"
26173 for t
in $target_list
26176 for lang
in $all_selected_languages
26180 echo "lang.$t: $x" >> Make-hooks
26184 # Option include files
26187 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26188 option_includes
="option-includes.mk"
26197 echo "dir ." > .gdbinit
26198 echo "dir ${srcdir}" >> .gdbinit
26199 if test x
$gdb_needs_out_file_path = xyes
26201 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26203 if test "x$subdirs" != x
; then
26206 echo "dir ${srcdir}/$s" >> .gdbinit
26209 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26211 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26215 # Find a directory in which to install a shared libgcc.
26217 # Check whether --enable-version-specific-runtime-libs was given.
26218 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26219 enableval
=$enable_version_specific_runtime_libs;
26224 # Check whether --with-slibdir was given.
26225 if test "${with_slibdir+set}" = set; then :
26226 withval
=$with_slibdir; slibdir
="$with_slibdir"
26228 if test "${enable_version_specific_runtime_libs+set}" = set; then
26229 slibdir
='$(libsubdir)'
26230 elif test "$host" != "$target"; then
26231 slibdir
='$(build_tooldir)/lib'
26233 slibdir
='$(libdir)'
26239 # Set default prefix canonicalization.
26241 # Check whether --enable-canonical-prefixes was given.
26242 if test "${enable_canonical_prefixes+set}" = set; then :
26243 enableval
=$enable_canonical_prefixes;
26245 enable_canonical_prefixes
=yes
26248 if test x
"$enable_canonical_prefixes" = xyes
; then
26250 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
26254 # Substitute configuration variables
26318 if test x
${build} = x
${host} ; then
26319 if test x
${host} = x
${target} ; then
26320 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26322 echo "Links are now set up to build a cross-compiler" 1>&2
26323 echo " from ${host} to ${target}." 1>&2
26326 if test x
${host} = x
${target} ; then
26327 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26328 echo " for ${target}." 1>&2
26330 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26331 echo " from ${host} to ${target}." 1>&2
26343 if test "x${CLOOGLIBS}" != "x" ; then
26345 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26349 # Check for plugin support
26350 # Check whether --enable-plugin was given.
26351 if test "${enable_plugin+set}" = set; then :
26352 enableval
=$enable_plugin; enable_plugin
=$enableval
26354 enable_plugin
=yes; default_plugin
=yes
26362 if test x
$build = x
$host; then
26363 export_sym_check
="nm${exeext} -g"
26364 elif test x
$host = x
$target; then
26365 export_sym_check
="$gcc_cv_nm -g"
26371 if test x
$build = x
$host; then
26372 export_sym_check
="objdump${exeext} -T"
26373 elif test x
$host = x
$target; then
26374 export_sym_check
="$gcc_cv_objdump -T"
26381 if test x
"$enable_plugin" = x
"yes"; then
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26384 $as_echo_n "checking for exported symbols... " >&6; }
26385 if test "x$export_sym_check" != x
; then
26386 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26387 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26388 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26389 : # No need to use a flag
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26391 $as_echo "yes" >&6; }
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26394 $as_echo "yes" >&6; }
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26396 $as_echo_n "checking for -rdynamic... " >&6; }
26397 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26398 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26399 plugin_rdynamic
=yes
26400 pluginlibs
="-rdynamic"
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26406 $as_echo "$plugin_rdynamic" >&6; }
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26410 $as_echo "unable to check" >&6; }
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26416 $as_echo_n "checking for library containing dlopen... " >&6; }
26417 if test "${ac_cv_search_dlopen+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26420 ac_func_search_save_LIBS
=$LIBS
26421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26422 /* end confdefs.h. */
26424 /* Override any GCC internal prototype to avoid an error.
26425 Use char because int might match the return type of a GCC
26426 builtin and then its argument prototype would still apply. */
26439 for ac_lib
in '' dl
; do
26440 if test -z "$ac_lib"; then
26441 ac_res
="none required"
26444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26446 if ac_fn_c_try_link
"$LINENO"; then :
26447 ac_cv_search_dlopen
=$ac_res
26449 rm -f core conftest.err conftest.
$ac_objext \
26451 if test "${ac_cv_search_dlopen+set}" = set; then :
26455 if test "${ac_cv_search_dlopen+set}" = set; then :
26458 ac_cv_search_dlopen
=no
26460 rm conftest.
$ac_ext
26461 LIBS
=$ac_func_search_save_LIBS
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26464 $as_echo "$ac_cv_search_dlopen" >&6; }
26465 ac_res
=$ac_cv_search_dlopen
26466 if test "$ac_res" != no
; then :
26467 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26471 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26472 pluginlibs
="$pluginlibs -ldl"
26476 # Check that we can build shared objects with -fPIC -shared
26477 saved_LDFLAGS
="$LDFLAGS"
26478 saved_CFLAGS
="$CFLAGS"
26481 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26482 CFLAGS
="$CFLAGS -fPIC"
26483 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26486 CFLAGS
="$CFLAGS -fPIC"
26487 LDFLAGS
="$LDFLAGS -fPIC -shared"
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26491 $as_echo_n "checking for -fPIC -shared... " >&6; }
26492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h. */
26503 if ac_fn_c_try_link
"$LINENO"; then :
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26505 $as_echo "yes" >&6; }; have_pic_shared
=yes
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26508 $as_echo "no" >&6; }; have_pic_shared
=no
26510 rm -f core conftest.err conftest.
$ac_objext \
26511 conftest
$ac_exeext conftest.
$ac_ext
26512 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
26516 LDFLAGS
="$saved_LDFLAGS"
26517 CFLAGS
="$saved_CFLAGS"
26519 # If plugin support had been requested but not available, fail.
26520 if test x
"$enable_plugin" = x
"no" ; then
26521 if test x
"$default_plugin" != x
"yes"; then
26523 Building GCC with plugin support requires a host that supports
26524 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26531 if test x
"$enable_plugin" = x
"yes"; then
26533 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26538 # Check whether --enable-libquadmath-support was given.
26539 if test "${enable_libquadmath_support+set}" = set; then :
26540 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
26542 ENABLE_LIBQUADMATH_SUPPORT
=yes
26545 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26547 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26552 # Configure the subdirectories
26553 # AC_CONFIG_SUBDIRS($subdirs)
26555 # Create the Makefile
26556 # and configure language subdirectories
26557 ac_config_files
="$ac_config_files $all_outputs"
26560 ac_config_commands
="$ac_config_commands default"
26562 cat >confcache
<<\_ACEOF
26563 # This file is a shell script that caches the results of configure
26564 # tests run on this system so they can be shared between configure
26565 # scripts and configure runs, see configure's option --config-cache.
26566 # It is not useful on other systems. If it contains results you don't
26567 # want to keep, you may remove or edit it.
26569 # config.status only pays attention to the cache file if you give it
26570 # the --recheck option to rerun configure.
26572 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26574 # following values.
26578 # The following way of writing the cache mishandles newlines in values,
26579 # but we know of no workaround that is simple, portable, and efficient.
26580 # So, we kill variables containing newlines.
26581 # Ultrix sh set writes to stderr and can't be redirected directly,
26582 # and sets the high bit in the cache file unless we assign to the vars.
26584 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26585 eval ac_val
=\$
$ac_var
26589 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26593 _ | IFS | as_nl
) ;; #(
26594 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26595 *) { eval $ac_var=; unset $ac_var;} ;;
26601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26602 *${as_nl}ac_space
=\
*)
26603 # `set' does not quote correctly, so add quotes: double-quote
26604 # substitution turns \\\\ into \\, and sed turns \\ into \.
26607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26610 # `set' quotes correctly as required by POSIX, so do not add quotes.
26611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26624 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26625 if test -w "$cache_file"; then
26626 test "x$cache_file" != "x/dev/null" &&
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26628 $as_echo "$as_me: updating cache $cache_file" >&6;}
26629 cat confcache
>$cache_file
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26637 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26638 # Let make expand exec_prefix.
26639 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26641 DEFS
=-DHAVE_CONFIG_H
26645 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26646 # 1. Remove the extension, and $U if already installed.
26647 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26648 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26650 # will be set to the directory where LIBOBJS objects are built.
26651 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26652 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26654 LIBOBJS
=$ac_libobjs
26656 LTLIBOBJS
=$ac_ltlibobjs
26661 : ${CONFIG_STATUS=./config.status}
26663 ac_clean_files_save
=$ac_clean_files
26664 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26670 # Generated by $as_me.
26671 # Run this file to recreate the current configuration.
26672 # Compiler output produced by configure, useful for debugging
26673 # configure, is in config.log if it exists.
26676 ac_cs_recheck=false
26679 SHELL=\${CONFIG_SHELL-$SHELL}
26682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26683 ## -------------------- ##
26684 ## M4sh Initialization. ##
26685 ## -------------------- ##
26687 # Be more Bourne compatible
26688 DUALCASE
=1; export DUALCASE
# for MKS sh
26689 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26693 # is contrary to our usage. Disable this feature.
26694 alias -g '${1+"$@"}'='"$@"'
26695 setopt NO_GLOB_SUBST
26697 case `(set -o) 2>/dev/null` in #(
26709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26710 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26713 # Prefer a ksh shell builtin over an external printf program on Solaris,
26714 # but without wasting forks for bash or zsh.
26715 if test -z "$BASH_VERSION$ZSH_VERSION" \
26716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26717 as_echo='print
-r --'
26718 as_echo_n='print
-rn --'
26719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26720 as_echo='printf %s
\n'
26721 as_echo_n='printf %s
'
26723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26724 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26725 as_echo_n='/usr
/ucb
/echo -n'
26727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26728 as_echo_n_body='eval
26732 expr "X$arg" : "X\\(.*\\)$as_nl";
26733 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26735 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26737 export as_echo_n_body
26738 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26740 export as_echo_body
26741 as_echo='sh
-c $as_echo_body as_echo
'
26744 # The user is always right.
26745 if test "${PATH_SEPARATOR+set}" != set; then
26747 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26748 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26755 # We need space, tab and new line, in precisely that order. Quoting is
26756 # there to prevent editors from complaining about space-tab.
26757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26758 # splitting by setting IFS to empty value.)
26761 # Find who we are. Look in the path if we contain no directory separator.
26763 *[\\/]* ) as_myself=$0 ;;
26764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 for as_dir in $PATH
26768 test -z "$as_dir" && as_dir=.
26769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26775 # We did not find ourselves, most probably we were run as `sh COMMAND'
26776 # in which case we are not to be found in the path.
26777 if test "x$as_myself" = x
; then
26780 if test ! -f "$as_myself"; then
26781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26785 # Unset variables that we do not need and which cause bugs (e.g. in
26786 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26787 # suppresses any "Segmentation fault" message there. '((' could
26788 # trigger a bug in pdksh 5.2.14.
26789 for as_var
in BASH_ENV ENV MAIL MAILPATH
26790 do eval test x\
${$as_var+set} = xset \
26791 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26804 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26807 # as_fn_error ERROR [LINENO LOG_FD]
26808 # ---------------------------------
26809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26811 # script with status $?, using 1 if that was 0.
26814 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26816 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26817 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26819 $as_echo "$as_me: error: $1" >&2
26820 as_fn_exit
$as_status
26824 # as_fn_set_status STATUS
26825 # -----------------------
26826 # Set $? to STATUS, without forking.
26827 as_fn_set_status
()
26830 } # as_fn_set_status
26832 # as_fn_exit STATUS
26833 # -----------------
26834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26838 as_fn_set_status
$1
26844 # Portably unset VAR.
26847 { eval $1=; unset $1;}
26849 as_unset
=as_fn_unset
26850 # as_fn_append VAR VALUE
26851 # ----------------------
26852 # Append the text in VALUE to the end of the definition contained in VAR. Take
26853 # advantage of any shell optimizations that allow amortized linear growth over
26854 # repeated appends, instead of the typical quadratic growth present in naive
26856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26857 eval 'as_fn_append ()
26868 # as_fn_arith ARG...
26869 # ------------------
26870 # Perform arithmetic evaluation on the ARGs, and store the result in the
26871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26872 # must be portable across $(()) and expr.
26873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26874 eval 'as_fn_arith ()
26881 as_val
=`expr "$@" || test $? -eq 1`
26886 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26887 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26893 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26894 as_basename
=basename
26899 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26905 as_me
=`$as_basename -- "$0" ||
26906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26907 X"$0" : 'X\(//\)$' \| \
26908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26910 sed '/^.*\/\([^/][^/]*\)\/*$/{
26924 # Avoid depending upon Character Ranges.
26925 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26926 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26927 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26928 as_cr_digits
='0123456789'
26929 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26931 ECHO_C
= ECHO_N
= ECHO_T
=
26932 case `echo -n x` in #(((((
26934 case `echo 'xy\c'` in
26935 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26937 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26944 rm -f conf$$ conf$$.exe conf$$.
file
26945 if test -d conf$$.dir
; then
26946 rm -f conf$$.dir
/conf$$.
file
26949 mkdir conf$$.dir
2>/dev
/null
26951 if (echo >conf$$.
file) 2>/dev
/null
; then
26952 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26954 # ... but there are two gotchas:
26955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26957 # In both cases, we have to default to `cp -p'.
26958 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26960 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26968 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26969 rmdir conf$$.dir
2>/dev
/null
26974 # Create "$as_dir" as a directory, including parents if necessary.
26979 -*) as_dir
=.
/$as_dir;;
26981 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26985 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26986 *) as_qdir
=$as_dir;;
26988 as_dirs
="'$as_qdir' $as_dirs"
26989 as_dir
=`$as_dirname -- "$as_dir" ||
26990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26991 X"$as_dir" : 'X\(//\)[^/]' \| \
26992 X"$as_dir" : 'X\(//\)$' \| \
26993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26994 $as_echo X"$as_dir" |
26995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26999 /^X\(\/\/\)[^/].*/{
27012 test -d "$as_dir" && break
27014 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27015 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27019 if mkdir
-p .
2>/dev
/null
; then
27020 as_mkdir_p
='mkdir -p "$as_dir"'
27022 test -d .
/-p && rmdir .
/-p
27026 if test -x / >/dev
/null
2>&1; then
27027 as_test_x
='test -x'
27029 if ls -dL / >/dev
/null
2>&1; then
27036 if test -d "$1"; then
27042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27043 ???[sx]*):;;*)false;;esac;fi
27047 as_executable_p
=$as_test_x
27049 # Sed expression to map a string onto a valid CPP name.
27050 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27052 # Sed expression to map a string onto a valid variable name.
27053 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27057 ## ----------------------------------- ##
27058 ## Main body of $CONFIG_STATUS script. ##
27059 ## ----------------------------------- ##
27061 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27064 # Save the log message, to keep $0 and so on meaningful, and to
27065 # report actual input values of CONFIG_FILES etc. instead of their
27066 # values after options handling.
27068 This file was extended by $as_me, which was
27069 generated by GNU Autoconf 2.64. Invocation command line was
27071 CONFIG_FILES = $CONFIG_FILES
27072 CONFIG_HEADERS = $CONFIG_HEADERS
27073 CONFIG_LINKS = $CONFIG_LINKS
27074 CONFIG_COMMANDS = $CONFIG_COMMANDS
27077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27082 case $ac_config_files in *"
27083 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27086 case $ac_config_headers in *"
27087 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27092 # Files that config.status was made for.
27093 config_files="$ac_config_files"
27094 config_headers="$ac_config_headers"
27095 config_commands="$ac_config_commands"
27099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27101 \`$as_me' instantiates files and other configuration actions
27102 from templates according to the current configuration. Unless the files
27103 and actions are specified as TAGs, all are instantiated by default.
27105 Usage: $0 [OPTION]... [TAG]...
27107 -h, --help print this help, then exit
27108 -V, --version print version number and configuration settings, then exit
27109 -q, --quiet, --silent
27110 do not print progress messages
27111 -d, --debug don't remove temporary files
27112 --recheck update $as_me by reconfiguring in the same conditions
27113 --file=FILE[:TEMPLATE]
27114 instantiate the configuration file FILE
27115 --header=FILE[:TEMPLATE]
27116 instantiate the configuration header FILE
27118 Configuration files:
27121 Configuration headers:
27124 Configuration commands:
27127 Report bugs to the package provider."
27130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27133 configured by $0, generated by GNU Autoconf 2.64,
27134 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27136 Copyright (C) 2009 Free Software Foundation, Inc.
27137 This config.status script is free software; the Free Software Foundation
27138 gives unlimited permission to copy, distribute and modify it."
27143 test -n "\$AWK" || AWK=awk
27146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27147 # The default lists apply if the user does not specify any file.
27153 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27154 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27165 # Handling of the options.
27166 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27168 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27169 $as_echo "$ac_cs_version"; exit ;;
27170 --debug |
--debu |
--deb |
--de |
--d |
-d )
27172 --file |
--fil |
--fi |
--f )
27175 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27177 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27178 ac_need_defaults
=false
;;
27179 --header |
--heade |
--head |
--hea )
27182 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27184 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27185 ac_need_defaults
=false
;;
27187 # Conflict between --help and --header
27188 as_fn_error
"ambiguous option: \`$1'
27189 Try \`$0 --help' for more information.";;
27190 --help |
--hel |
-h )
27191 $as_echo "$ac_cs_usage"; exit ;;
27192 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27193 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27196 # This is an error.
27197 -*) as_fn_error
"unrecognized option: \`$1'
27198 Try \`$0 --help' for more information." ;;
27200 *) as_fn_append ac_config_targets
" $1"
27201 ac_need_defaults
=false
;;
27207 ac_configure_extra_args
=
27209 if $ac_cs_silent; then
27211 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27216 if \$ac_cs_recheck; then
27217 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27219 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27220 CONFIG_SHELL='$SHELL'
27221 export CONFIG_SHELL
27226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27231 ## Running $as_me. ##
27237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27247 # Handling of arguments.
27248 for ac_config_target
in $ac_config_targets
27250 case $ac_config_target in
27251 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27252 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27253 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27254 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27255 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27256 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27258 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27263 # If the user did not use the arguments to specify the items to instantiate,
27264 # then the envvar interface is used. Set only those that are not.
27265 # We use the long form for the default assignment because of an extremely
27266 # bizarre bug on SunOS 4.1.3.
27267 if $ac_need_defaults; then
27268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27270 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27273 # Have a temporary directory for convenience. Make it in the build tree
27274 # simply because there is no reason against having it here, and in addition,
27275 # creating and moving files from /tmp can sometimes cause problems.
27276 # Hook for its removal unless debugging.
27277 # Note that there is a small window in which the directory will not be cleaned:
27278 # after its creation but before its name has been assigned to `$tmp'.
27282 trap 'exit_status=$?
27283 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27285 trap 'as_fn_exit 1' 1 2 13 15
27287 # Create a (secure) tmp directory for tmp files.
27290 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27291 test -n "$tmp" && test -d "$tmp"
27294 tmp
=.
/conf$$
-$RANDOM
27295 (umask 077 && mkdir
"$tmp")
27296 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27298 # Set up the scripts for CONFIG_FILES section.
27299 # No need to generate them if there are no CONFIG_FILES.
27300 # This happens for instance with `./config.status config.h'.
27301 if test -n "$CONFIG_FILES"; then
27303 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27304 ac_cs_awk_getline
=:
27305 ac_cs_awk_pipe_init
=
27306 ac_cs_awk_read_file
='
27307 while ((getline aline < (F[key])) > 0)
27310 ac_cs_awk_pipe_fini
=
27312 ac_cs_awk_getline
=false
27313 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27314 ac_cs_awk_read_file
='
27316 print "cat " F[key] " &&"
27317 '$ac_cs_awk_pipe_init
27318 # The final `:' finishes the AND list.
27319 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27321 ac_cr
=`echo X | tr X '\015'`
27322 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27323 # But we know of no other shell where ac_cr would be empty at this
27324 # point, so we can use a bashism as a fallback.
27325 if test "x$ac_cr" = x
; then
27326 eval ac_cr
=\$
\'\\r
\'
27328 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27332 ac_cs_awk_cr
=$ac_cr
27335 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27338 # Create commands to substitute file output variables.
27340 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27341 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27342 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27345 } >conf$
$files.sh
&&
27346 . .
/conf$
$files.sh ||
27347 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27348 rm -f conf$
$files.sh
27351 echo "cat >conf$$subs.awk <<_ACEOF" &&
27352 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27354 } >conf$$subs.sh ||
27355 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27356 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27358 for ac_last_try in false false false false false :; do
27359 . ./conf$$subs.sh ||
27360 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27362 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27363 if test $ac_delim_n = $ac_delim_num; then
27365 elif $ac_last_try; then
27366 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27368 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27371 rm -f conf$$subs.sh
27373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27374 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27378 s/^/S["/; s
/!.
*/"]=/
27388 s/\(.\{148\}\).*/\1/
27390 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27395 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27402 s/\(.\{148\}\).*/\1/
27404 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27408 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27413 ' <conf$$subs.awk | sed '
27418 ' >>$CONFIG_STATUS || ac_write_fail=1
27419 rm -f conf$$subs.awk
27420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27422 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27423 for (key in S) S_is_set[key] = 1
27425 \$ac_cs_awk_pipe_init
27429 nfields = split(line, field, "@
")
27431 len = length(field[1])
27432 for (i = 2; i < nfields; i++) {
27434 keylen = length(key)
27435 if (S_is_set[key]) {
27437 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27438 len += length(value) + length(field[++i])
27443 if (nfields == 3 && !substed) {
27445 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27446 \$ac_cs_awk_read_file
27452 \$ac_cs_awk_pipe_fini
27455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27456 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27457 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27460 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27461 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27466 # trailing colons and then remove the whole line if VPATH becomes empty
27467 # (actually we leave an empty line to preserve line numbers).
27468 if test "x
$srcdir" = x.; then
27469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27470 s/:*\$(srcdir):*/:/
27471 s/:*\${srcdir}:*/:/
27473 s/^\([^=]*=[ ]*\):*/\1/
27479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27480 fi # test -n "$CONFIG_FILES"
27482 # Set up the scripts for CONFIG_HEADERS section.
27483 # No need to generate them if there are no CONFIG_HEADERS.
27484 # This happens for instance with `./config.status Makefile'.
27485 if test -n "$CONFIG_HEADERS"; then
27486 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27490 # Transform confdefs.h into an awk script `defines.awk', embedded as
27491 # here-document in config.status, that substitutes the proper values into
27492 # config.h.in to produce config.h.
27494 # Create a delimiter string that does not exist in confdefs.h, to ease
27495 # handling of long lines.
27497 for ac_last_try in false false :; do
27498 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27499 if test -z "$ac_t"; then
27501 elif $ac_last_try; then
27502 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27504 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27508 # For the awk script, D is an array of macro values keyed by name,
27509 # likewise P contains macro parameters if any. Preserve backslash
27510 # newline sequences.
27512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27514 s/.\{148\}/&'"$ac_delim"'/g
27517 s/^[ ]*#[ ]*define[ ][ ]*/ /
27524 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27526 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27531 D["\
1"]=" \
3\\\\\\n
"\\/p
27533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27538 s/.\{148\}/&'"$ac_delim"'/g
27543 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27546 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27548 ' <confdefs.h | sed '
27549 s/'"$ac_delim"'/"\\\
27550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27553 for (key in D) D_is_set[key] = 1
27556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27558 split(line, arg, " ")
27559 if (arg[1] == "#") {
27563 defundef
= substr
(arg
[1], 2)
27566 split(mac1
, mac2
, "(") #)
27568 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27569 if (D_is_set
[macro
]) {
27570 # Preserve the white space surrounding the "#".
27571 print prefix
"define", macro P
[macro
] D
[macro
]
27574 # Replace #undef with comments. This is necessary, for example,
27575 # in the case of _POSIX_SOURCE, which is predefined and required
27576 # on some systems where configure will not decide to define it.
27577 if (defundef
== "undef") {
27578 print
"/*", prefix defundef
, macro
, "*/"
27586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27587 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27588 fi # test -n "$CONFIG_HEADERS"
27591 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27596 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27598 case $ac_mode$ac_tag in
27600 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27601 :[FH
]-) ac_tag
=-:-;;
27602 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27619 -) ac_f
="$tmp/stdin";;
27620 *) # Look for the file first in the build tree, then in the source tree
27621 # (if the path is not absolute). The absolute path cannot be DOS-style,
27622 # because $ac_f cannot contain `:'.
27626 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27628 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27630 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27631 as_fn_append ac_file_inputs
" '$ac_f'"
27634 # Let's still pretend it is `configure' which instantiates (i.e., don't
27635 # use $as_me), people would be surprised to read:
27636 # /* config.h. Generated by config.status. */
27637 configure_input
='Generated from '`
27638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27640 if test x
"$ac_file" != x-
; then
27641 configure_input
="$ac_file. $configure_input"
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27643 $as_echo "$as_me: creating $ac_file" >&6;}
27645 # Neutralize special characters interpreted by sed in replacement strings.
27646 case $configure_input in #(
27647 *\
&* |
*\|
* |
*\\* )
27648 ac_sed_conf_input
=`$as_echo "$configure_input" |
27649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27650 *) ac_sed_conf_input
=$configure_input;;
27654 *:-:* |
*:-) cat >"$tmp/stdin" \
27655 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27660 ac_dir
=`$as_dirname -- "$ac_file" ||
27661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27662 X"$ac_file" : 'X\(//\)[^/]' \| \
27663 X"$ac_file" : 'X\(//\)$' \| \
27664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27665 $as_echo X"$ac_file" |
27666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27670 /^X\(\/\/\)[^/].*/{
27683 as_dir
="$ac_dir"; as_fn_mkdir_p
27687 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27689 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27690 # A ".." for each directory in $ac_dir_suffix.
27691 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27692 case $ac_top_builddir_sub in
27693 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27694 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27697 ac_abs_top_builddir
=$ac_pwd
27698 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27699 # for backward compatibility:
27700 ac_top_builddir
=$ac_top_build_prefix
27703 .
) # We are building in place.
27705 ac_top_srcdir
=$ac_top_builddir_sub
27706 ac_abs_top_srcdir
=$ac_pwd ;;
27707 [\\/]* | ?
:[\\/]* ) # Absolute name.
27708 ac_srcdir
=$srcdir$ac_dir_suffix;
27709 ac_top_srcdir
=$srcdir
27710 ac_abs_top_srcdir
=$srcdir ;;
27711 *) # Relative name.
27712 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27713 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27714 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27716 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27728 # If the template does not know about datarootdir, expand it.
27729 # FIXME: This hack should be removed a few years after 2.60.
27730 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27742 *datarootdir
*) ac_datarootdir_seen
=yes;;
27743 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27748 ac_datarootdir_hack='
27749 s&@datadir@&$datadir&g
27750 s&@docdir@&$docdir&g
27751 s&@infodir@&$infodir&g
27752 s&@localedir@&$localedir&g
27753 s&@mandir@&$mandir&g
27754 s&\\\${datarootdir}&$datarootdir&g' ;;
27758 # Neutralize VPATH when `$srcdir' = `.'.
27759 # Shell code in configure.ac might set extrasub.
27760 # FIXME: do we really want to maintain this feature?
27761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27762 ac_sed_extra="$ac_vpsub
27765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27767 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27768 s|@configure_input@|
$ac_sed_conf_input|
;t t
27769 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27770 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27771 s
&@srcdir@
&$ac_srcdir&;t t
27772 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27773 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27774 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27775 s
&@builddir@
&$ac_builddir&;t t
27776 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27777 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27778 $ac_datarootdir_hack
27780 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27781 if $ac_cs_awk_getline; then
27782 $AWK -f "$tmp/subs.
awk"
27784 $AWK -f "$tmp/subs.
awk" | $SHELL
27786 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27792 which seems to be undefined. Please make sure it is defined." >&5
27793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27794 which seems to be undefined. Please make sure it is defined." >&2;}
27798 -) cat "$tmp/out" && rm -f "$tmp/out";;
27799 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27801 || as_fn_error "could not create $ac_file" "$LINENO" 5
27807 if test x"$ac_file" != x-; then
27809 $as_echo "/* $configure_input */" \
27810 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27811 } >"$tmp/config.h" \
27812 || as_fn_error "could not create $ac_file" "$LINENO" 5
27813 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27815 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27818 mv "$tmp/config.h" "$ac_file" \
27819 || as_fn_error "could not create $ac_file" "$LINENO" 5
27822 $as_echo "/* $configure_input */" \
27823 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27824 || as_fn_error "could not create -" "$LINENO" 5
27828 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27829 $as_echo "$as_me: executing $ac_file commands" >&6;}
27834 case $ac_file$ac_mode in
27835 "as":F) chmod +x as ;;
27836 "collect-ld":F) chmod +x collect-ld ;;
27837 "nm":F) chmod +x nm ;;
27839 case ${CONFIG_HEADERS} in
27840 *auto-host.h:config.in*)
27843 # Make sure all the subdirs exist.
27844 for d in $subdirs doc build c-family
27846 test -d $d || mkdir $d
27856 ac_clean_files=$ac_clean_files_save
27858 test $ac_write_fail = 0 ||
27859 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27862 # configure is writing to config.log, and then calls config.status.
27863 # config.status does its own redirection, appending to config.log.
27864 # Unfortunately, on DOS this fails, as config.log is still kept open
27865 # by configure, so config.status won't be able to
write to it
; its
27866 # output is simply discarded. So we exec the FD to /dev/null,
27867 # effectively closing config.log, so it can be properly (re)opened and
27868 # appended to by config.status. When coming back to configure, we
27869 # need to make the FD available again.
27870 if test "$no_create" != yes; then
27872 ac_config_status_args
=
27873 test "$silent" = yes &&
27874 ac_config_status_args
="$ac_config_status_args --quiet"
27876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27879 # would make configure fail if this is the last instruction.
27880 $ac_cs_success || as_fn_exit $?
27882 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27884 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}