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
625 common_out_object_file
648 user_headers_inc_next_post
649 user_headers_inc_next_pre
651 TM_MULTILIB_EXCEPTIONS_CONFIG
660 build_xm_include_list
662 build_install_headers_dir
664 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
769 ENABLE_BUILD_WITH_CXX
772 valgrind_path_defines
845 program_transform_name
856 ac_subst_files
='option_includes
859 enable_option_checking
864 enable_generated_files_in_srcdir
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
886 with_native_system_header_dir
896 enable_initfini_array
897 enable_sjlj_exceptions
899 enable_leading_mingw64_underscores
902 enable_win32_registry
908 enable_gnu_indirect_function
910 enable_gnu_unique_object
911 enable_linker_build_id
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
918 enable_libquadmath_support
919 with_linker_hash_style
921 ac_precious_vars
='build_alias
942 # Initialize some variables set by options.
944 ac_init_version
=false
945 ac_unrecognized_opts
=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name
=s
,x
,x
,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir
='${exec_prefix}/bin'
971 sbindir
='${exec_prefix}/sbin'
972 libexecdir
='${exec_prefix}/libexec'
973 datarootdir
='${prefix}/share'
974 datadir
='${datarootdir}'
975 sysconfdir
='${prefix}/etc'
976 sharedstatedir
='${prefix}/com'
977 localstatedir
='${prefix}/var'
978 includedir
='${prefix}/include'
979 oldincludedir
='/usr/include'
980 docdir
='${datarootdir}/doc/${PACKAGE}'
981 infodir
='${datarootdir}/info'
986 libdir
='${exec_prefix}/lib'
987 localedir
='${datarootdir}/locale'
988 mandir
='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\
$ac_option
1002 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1014 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1015 bindir
=$ac_optarg ;;
1017 -build |
--build |
--buil |
--bui |
--bu)
1018 ac_prev
=build_alias
;;
1019 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1020 build_alias
=$ac_optarg ;;
1022 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1023 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1024 ac_prev
=cache_file
;;
1025 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1026 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1027 cache_file
=$ac_optarg ;;
1029 --config-cache |
-C)
1030 cache_file
=config.cache
;;
1032 -datadir |
--datadir |
--datadi |
--datad)
1034 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1035 datadir
=$ac_optarg ;;
1037 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1038 |
--dataroo |
--dataro |
--datar)
1039 ac_prev
=datarootdir
;;
1040 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1041 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1042 datarootdir
=$ac_optarg ;;
1044 -disable-* |
--disable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=no
;;
1060 -docdir |
--docdir |
--docdi |
--doc |
--do)
1062 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1063 docdir
=$ac_optarg ;;
1065 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1067 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1068 dvidir
=$ac_optarg ;;
1070 -enable-* |
--enable-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error
"invalid feature name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_
$ac_useropt"
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval enable_
$ac_useropt=\
$ac_optarg ;;
1086 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1087 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1088 |
--exec |
--exe |
--ex)
1089 ac_prev
=exec_prefix
;;
1090 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1091 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1092 |
--exec=* |
--exe=* |
--ex=*)
1093 exec_prefix
=$ac_optarg ;;
1095 -gas |
--gas |
--ga |
--g)
1096 # Obsolete; use --with-gas.
1099 -help |
--help |
--hel |
--he |
-h)
1100 ac_init_help
=long
;;
1101 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1102 ac_init_help
=recursive
;;
1103 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1104 ac_init_help
=short
;;
1106 -host |
--host |
--hos |
--ho)
1107 ac_prev
=host_alias
;;
1108 -host=* |
--host=* |
--hos=* |
--ho=*)
1109 host_alias
=$ac_optarg ;;
1111 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1113 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1115 htmldir
=$ac_optarg ;;
1117 -includedir |
--includedir |
--includedi |
--included |
--include \
1118 |
--includ |
--inclu |
--incl |
--inc)
1119 ac_prev
=includedir
;;
1120 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1121 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1122 includedir
=$ac_optarg ;;
1124 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1126 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1127 infodir
=$ac_optarg ;;
1129 -libdir |
--libdir |
--libdi |
--libd)
1131 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1132 libdir
=$ac_optarg ;;
1134 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1135 |
--libexe |
--libex |
--libe)
1136 ac_prev
=libexecdir
;;
1137 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1138 |
--libexe=* |
--libex=* |
--libe=*)
1139 libexecdir
=$ac_optarg ;;
1141 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1142 ac_prev
=localedir
;;
1143 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1144 localedir
=$ac_optarg ;;
1146 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1147 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1148 ac_prev
=localstatedir
;;
1149 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1150 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1151 localstatedir
=$ac_optarg ;;
1153 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1155 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1156 mandir
=$ac_optarg ;;
1158 -nfp |
--nfp |
--nf)
1159 # Obsolete; use --without-fp.
1162 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1163 |
--no-cr |
--no-c |
-n)
1166 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1167 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1170 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1171 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1172 |
--oldin |
--oldi |
--old |
--ol |
--o)
1173 ac_prev
=oldincludedir
;;
1174 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1175 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1176 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1177 oldincludedir
=$ac_optarg ;;
1179 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1181 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1182 prefix
=$ac_optarg ;;
1184 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1185 |
--program-pre |
--program-pr |
--program-p)
1186 ac_prev
=program_prefix
;;
1187 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1188 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1189 program_prefix
=$ac_optarg ;;
1191 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1192 |
--program-suf |
--program-su |
--program-s)
1193 ac_prev
=program_suffix
;;
1194 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1195 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1196 program_suffix
=$ac_optarg ;;
1198 -program-transform-name |
--program-transform-name \
1199 |
--program-transform-nam |
--program-transform-na \
1200 |
--program-transform-n |
--program-transform- \
1201 |
--program-transform |
--program-transfor \
1202 |
--program-transfo |
--program-transf \
1203 |
--program-trans |
--program-tran \
1204 |
--progr-tra |
--program-tr |
--program-t)
1205 ac_prev
=program_transform_name
;;
1206 -program-transform-name=* |
--program-transform-name=* \
1207 |
--program-transform-nam=* |
--program-transform-na=* \
1208 |
--program-transform-n=* |
--program-transform-=* \
1209 |
--program-transform=* |
--program-transfor=* \
1210 |
--program-transfo=* |
--program-transf=* \
1211 |
--program-trans=* |
--program-tran=* \
1212 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1213 program_transform_name
=$ac_optarg ;;
1215 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1217 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1218 pdfdir
=$ac_optarg ;;
1220 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1222 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1226 |
-silent |
--silent |
--silen |
--sile |
--sil)
1229 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1231 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1233 sbindir
=$ac_optarg ;;
1235 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1236 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1237 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1239 ac_prev
=sharedstatedir
;;
1240 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1241 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1242 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1244 sharedstatedir
=$ac_optarg ;;
1246 -site |
--site |
--sit)
1248 -site=* |
--site=* |
--sit=*)
1251 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1253 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1254 srcdir
=$ac_optarg ;;
1256 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1257 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1258 ac_prev
=sysconfdir
;;
1259 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1260 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1261 sysconfdir
=$ac_optarg ;;
1263 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1264 ac_prev
=target_alias
;;
1265 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1266 target_alias
=$ac_optarg ;;
1268 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1271 -version |
--version |
--versio |
--versi |
--vers |
-V)
1272 ac_init_version
=: ;;
1275 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error
"invalid package name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval with_
$ac_useropt=\
$ac_optarg ;;
1290 -without-* |
--without-*)
1291 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) as_fn_error
"unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1329 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1333 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error
"missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val
=\$
$ac_var
1369 # Remove trailing slashes.
1372 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\
$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$
]* | ?
:[\\/]* ) continue;;
1378 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1380 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target
=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x
; then
1392 if test "x$build_alias" = x
; then
1393 cross_compiling
=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1404 test "$silent" = yes && exec 6>/dev
/null
1407 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di
=`ls -di .` &&
1409 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error
"working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error
"pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted
=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir
=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted
=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1451 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var
in $ac_precious_vars; do
1468 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1470 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1544 --build=BUILD configure
for building on BUILD
[guessed
]
1545 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1550 if test -n "$ac_init_help"; then
1555 --disable-option-checking ignore unrecognized
--enable/--with options
1556 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1557 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files
in source dir intended
1560 for creating
source tarballs
for users without
1561 texinfo bison or flex
1562 --disable-largefile omit support
for large files
1563 --enable-werror-always enable -Werror despite compiler version
1564 --enable-checking[=LIST
]
1565 enable expensive run-time checks. With LIST
, enable
1566 only specific categories of checks. Categories are
:
1567 yes,no
,all
,none
,release. Flags are
:
1568 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1569 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1570 --enable-coverage[=LEVEL
]
1571 enable compiler
's code coverage collection. Use to
1572 measure compiler performance and locate unused parts
1573 of the compiler. With LEVEL, specify optimization.
1574 Values are opt, noopt, default is noopt
1575 --enable-gather-detailed-mem-stats
1576 enable detailed memory allocation stats gathering
1577 --enable-build-with-cxx build with C++ compiler instead of C compiler
1578 --enable-multilib enable library support for multiple ABIs
1579 --enable-__cxa_atexit enable __cxa_atexit for C++
1580 --enable-decimal-float={no,yes,bid,dpd}
1581 enable decimal float extension to C. Selecting 'bid
'
1582 or 'dpd
' choses which decimal floating point format
1584 --enable-fixed-point enable fixed-point arithmetic extension to C
1585 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 --enable-tls enable or disable generation of tls code overriding
1588 the assembler check for tls support
1589 --enable-objc-gc enable the use of Boehm's garbage collector with the
1590 GNU Objective-C runtime
1591 --disable-shared don
't provide a shared libgcc
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1603 --disable-win32-registry
1604 disable lookup of installation paths in the Registry
1606 --enable-win32-registry enable registry lookup (default)
1607 --enable-win32-registry=KEY
1608 use KEY instead of GCC version as the last portion
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-libtool-lock avoid locking (might break parallel builds)
1615 --enable-gnu-indirect-function
1616 enable the use of the @gnu_indirect_function to
1618 --enable-comdat enable COMDAT group support
1619 --enable-gnu-unique-object
1620 enable the use of the @gnu_unique_object ELF
1621 extension on glibc systems
1622 --enable-linker-build-id
1623 compiler will always pass --build-id to linker
1624 --enable-maintainer-mode
1625 enable make rules and dependencies not useful (and
1626 sometimes confusing) to the casual installer
1627 --enable-version-specific-runtime-libs
1628 specify that runtime libraries should be installed
1629 in a compiler-specific directory
1630 --enable-plugin enable plugin support
1631 --disable-libquadmath-support
1632 disable libquadmath support for Fortran
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-build-libsubdir=DIR Directory where to find libraries for build system
1638 --with-local-prefix=DIR specifies directory to put local include
1639 --with-gxx-include-dir=DIR
1640 specifies directory to put g++ header files
1641 --with-cpp-install-dir=DIR
1642 install the user visible C preprocessor in DIR
1643 (relative to PREFIX) as well as PREFIX/bin
1644 --with-gnu-ld arrange to work with GNU ld
1645 --with-ld arrange to use the specified ld (full pathname)
1646 --with-demangler-in-ld try to use demangler in GNU ld
1647 --with-gnu-as arrange to work with GNU as
1648 --with-as arrange to use the specified as (full pathname)
1649 --with-stabs arrange to use stabs instead of host debug format
1650 --with-dwarf2 force the default debug format to be DWARF 2
1651 --with-native-system-header-dir=dir
1652 use dir as the directory to look for standard
1653 system header files in. Defaults to /usr/include.
1654 --with-build-sysroot=sysroot
1655 use sysroot as the system root during the build
1656 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1657 --with-specs=SPECS add SPECS to driver command-line processing
1658 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-multilib-list select multilibs (SH and x86-64 only)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1663 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1664 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1666 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1667 --with-plugin-ld=[ARG
] specify the plugin linker
1668 --with-long-double-128 use
128-bit long double by default
1669 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1671 --with-system-zlib use installed libz
1672 --with-linker-hash-style={sysv
,gnu
,both
}
1673 specify the linker
hash style
1675 Some influential environment variables
:
1676 CC C compiler
command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1679 nonstandard directory
<lib dir
>
1680 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1681 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1682 you have headers
in a nonstandard directory
<include dir
>
1683 CXX C
++ compiler
command
1684 CXXFLAGS C
++ compiler flags
1686 CXXCPP C
++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to
find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to
find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to
find CLOOG include files
1694 Use these variables to override the choices made by
`configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err
; then
1791 grep -v '^ *+' conftest.err
>conftest.er1
1792 cat conftest.er1
>&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.
$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext
1819 if { { ac_try
="$ac_compile"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 if test -s conftest.err
; then
1866 grep -v '^ *+' conftest.err
>conftest.er1
1867 cat conftest.er1
>&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev
/null
&& {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1892 ac_fn_c_check_header_mongrel
()
1894 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1895 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1913 if ac_fn_c_try_compile
"$LINENO"; then :
1914 ac_header_compiler
=yes
1916 ac_header_compiler
=no
1918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 if ac_fn_c_try_cpp
"$LINENO"; then :
1930 ac_header_preproc
=yes
1932 ac_header_preproc
=no
1934 rm -f conftest.err conftest.
$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1964 eval "$3=\$ac_header_compiler"
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1980 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1981 if { { ac_try
="$ac_link"
1983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1994 *) ac_try_echo
=$ac_try;;
1996 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.
$ac_ext >&5
2008 ac_retval
=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile
()
2022 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile
"$LINENO"; then :
2038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int
()
2054 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2087 ac_hi
=$ac_mid; break
2089 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2090 if test $ac_lo -le $ac_mid; then
2094 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) < 0)];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 if ac_fn_c_try_compile
"$LINENO"; then :
2129 ac_lo
=$ac_mid; break
2131 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2132 if test $ac_mid -le $ac_hi; then
2136 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 if ac_fn_c_try_compile
"$LINENO"; then :
2165 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2170 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2185 FILE *f = fopen ("conftest.val", "w");
2190 long int i = longval ();
2193 fprintf (f, "%ld", i);
2197 unsigned long int i = ulongval ();
2200 fprintf (f, "%lu", i);
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2210 if ac_fn_c_try_run
"$LINENO"; then :
2211 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2215 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2216 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2223 } # ac_fn_c_compute_int
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type
()
2231 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile
"$LINENO"; then :
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2277 } # ac_fn_c_check_type
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 ac_fn_c_find_intX_t
()
2285 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2292 for ac_type
in int
$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 if ac_fn_c_try_compile
"$LINENO"; then :
2308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 if ac_fn_c_try_compile
"$LINENO"; then :
2329 eval "$3=\$ac_type" ;;
2332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2336 if test "x$as_val" = x
""no
; then :
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2348 } # ac_fn_c_find_intX_t
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2356 rm -f conftest.
$ac_objext conftest
$ac_exeext
2357 if { { ac_try
="$ac_link"
2359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_c_try_link
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 ac_fn_c_find_uintX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$3=\$ac_type" ;;
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 if test "x$as_val" = x""no; then :
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 } # ac_fn_c_find_uintX_t
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2468 rm -f conftest.err conftest.$ac_ext
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_c_check_header_preproc
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2486 *) ac_try_echo
=$ac_try;;
2488 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 if test -s conftest.err
; then
2493 grep -v '^ *+' conftest.err
>conftest.er1
2494 cat conftest.er1
>&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev
/null
&& {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.
$ac_ext >&5
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_cxx_try_cpp
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2534 rm -f conftest.err conftest.
$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2541 } # ac_fn_cxx_check_header_preproc
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func
()
2548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2566 # include <limits.h>
2568 # include <assert.h>
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2595 if ac_fn_c_try_link
"$LINENO"; then :
2600 rm -f core conftest.err conftest.
$ac_objext \
2601 conftest
$ac_exeext conftest.
$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2608 } # ac_fn_c_check_func
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link
()
2615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2616 rm -f conftest.
$ac_objext conftest
$ac_exeext
2617 if { { ac_try
="$ac_link"
2619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2672 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2673 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2674 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2675 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2676 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2678 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2679 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2681 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2683 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2685 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2687 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2720 ac_must_keep_next=false
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2731 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 -* ) ac_must_keep_next=true ;;
2752 as_fn_append ac_configure_args " '$ac_arg'"
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2776 # The following way of writing the cache mishandles newlines in values,
2778 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2779 eval ac_val=\$$ac_var
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2794 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -n "$ac_subst_files"; then
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2831 for ac_var in $ac_subst_files
2833 eval ac_val=\$$ac_var
2835 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -s confdefs.h; then
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 # Check that the precious variables saved in the cache have kept the same
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2949 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2953 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x
$ac_old_val`
2960 ac_new_val_w=`echo x
$ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2964 ac_cache_corrupted=:
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013 gcc_version=`cat $srcdir/BASE-VER
`
3015 # Determine the host, build, and target systems
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 ac_save_IFS=$IFS; IFS='-'
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3074 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 ac_save_IFS=$IFS; IFS='-'
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3107 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3140 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3148 program_prefix=${target_alias}-
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3169 # Determine the target- and build-specific subdirectories
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 build_libsubdir="$build_subdir"
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3198 target_subdir=${target_noncanonical}
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s
,x
,x
', remove it if useless.
3209 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3228 library_path_setting="ok"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again.
" "$LINENO" 5
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory
"
3254 gcc_exec_prefix_setting="ok
"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok
"; then
3261 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3270 # Specify the local prefix
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 *) local_prefix=$with_local_prefix ;;
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3288 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir
=
3292 # Specify the g++ header file directory
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval
=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x
${gcc_gxx_include_dir} = x
; then
3306 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3307 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3309 libstdcxx_incdir
='include/c++/$(version)'
3310 if test x
$host != x
$target; then
3311 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3313 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3321 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x
$withval != xno
; then
3323 cpp_install_dir
=$withval
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3340 generated_files_in_srcdir
=no
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3347 if test "$generated_files_in_srcdir" = "yes"; then
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3368 # With pre-defined ld
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3375 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3382 cat >>confdefs.h
<<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3388 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3390 cat >>confdefs.h
<<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test x
"$gnu_ld_flag" = x
"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 # With demangler in GNU ld
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3440 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3447 cat >>confdefs.h
<<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3455 cat >>confdefs.h
<<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3463 if test x
"$gas_flag" = x
"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3488 # Find the native compiler
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC
="$CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC
="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x
; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned
=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected
=yes
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy
$ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog
in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC
="$CC" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog
in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy
$ac_prog; ac_word
=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC
="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x
; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned
=yes ;;
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error
"no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 for ac_option
in --version -v -V -qversion; do
3797 { { ac_try
="$ac_compiler $ac_option >&5"
3799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 if test -s conftest.err; then
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 for ac_file in $ac_files
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 if { { ac_try="$ac_link_default"
3852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3853 *) ac_try_echo
=$ac_try;;
3855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3866 for ac_file
in $ac_files ''
3868 test -f "$ac_file" ||
continue
3870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3873 # We found the default executable, but exeext='' is most
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3879 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3891 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status
77
3905 as_fn_error
"C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 ac_exeext
=$ac_cv_exeext
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try
='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3929 if test "$cross_compiling" = maybe; then
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile
, use \
`--host'.
3936 See \`config.log
' for more details." "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3969 for ac_file
in conftest.exe conftest conftest.
*; do
3970 test -f "$ac_file" ||
continue
3972 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3973 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3984 rm -f conftest
$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.
$ac_ext
3989 EXEEXT
=$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try
="$ac_compile"
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files
: cannot compile
4034 See \
`config.log' for more details." "$LINENO" 5; }
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"; then :
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4151 if test "$GCC" = yes; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_cv_prog_cc_c89=no
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4184 s = g (p, va_arg (v,int));
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4227 rm -f conftest.$ac_ext
4232 case "x$ac_cv_prog_cc_c89" in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4284 *) ac_try_echo
=$ac_try;;
4286 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4309 *) ac_try_echo
=$ac_try;;
4311 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319 if { { case "(($ac_try" in
4320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4331 *) ac_try_echo
=$ac_try;;
4333 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4349 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4351 rm -f core conftest
*
4354 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir
=`cd $ac_aux_dir && pwd`
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4371 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC
="$am_aux_dir/compile $CC"
4384 ac_cpp
='$CXXCPP $CPPFLAGS'
4385 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$CXX" && break
4435 if test -z "$CXX"; then
4437 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy
$ac_prog; ac_word
=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$ac_ct_CXX" && break
4479 if test "x$ac_ct_CXX" = x
; then
4482 case $cross_compiling:$ac_tool_warned in
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned
=yes ;;
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4498 for ac_option
in --version -v -V -qversion; do
4499 { { ac_try
="$ac_compiler $ac_option >&5"
4501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508 if test -s conftest.err; then
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4628 if test "$GXX" = yes; then
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4720 if test "x$ac_ct_GNATBIND" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4729 GNATBIND=$ac_ct_GNATBIND
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_GNATMAKE" = x; then
4815 case $cross_compiling:$ac_tool_warned in
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4821 GNATMAKE=$ac_ct_GNATMAKE
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4864 OUTPUT_OPTION='-o $@'
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4877 # Determine PICFLAG for target gnatlib.
4883 # PIC is the default on some targets or must not be used.
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4890 # PIC is the default.
4893 # PIC is the default for 64-bit PA HP-UX.
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897 i[34567]86-*-interix3*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4915 # PIC is the default.
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4927 PICFLAG_FOR_TARGET=-fpic
4930 PICFLAG_FOR_TARGET=-fpic
4932 # FIXME: Override -fPIC default in libgcc only?
4933 sh-*-linux* | sh[2346lbe]*-*-linux*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Simplify to sh*-*-netbsd*?
4937 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938 sh64-*-netbsd* | sh64l*-*-netbsd*)
4939 PICFLAG_FOR_TARGET=-fpic
4941 # Default to -fPIC unless specified otherwise.
4943 PICFLAG_FOR_TARGET=-fPIC
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4950 PICFLAG_FOR_TARGET=-fpic
4953 PICFLAG_FOR_TARGET=-fPIC
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4994 # include <limits.h>
4996 # include <assert.h>
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: fails on valid input.
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5018 # Passes both tests.
5022 rm -f conftest.err conftest.$ac_ext
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.
$ac_ext
5027 if $ac_preproc_ok; then :
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5042 for ac_c_preproc_warn_flag
in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5053 # include <limits.h>
5055 # include <assert.h>
5059 if ac_fn_c_try_cpp
"$LINENO"; then :
5062 # Broken: fails on valid input.
5065 rm -f conftest.err conftest.
$ac_ext
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5073 if ac_fn_c_try_cpp
"$LINENO"; then :
5074 # Broken: success on invalid input.
5077 # Passes both tests.
5081 rm -f conftest.err conftest.
$ac_ext
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.
$ac_ext
5086 if $ac_preproc_ok; then :
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5096 ac_cpp
='$CPP $CPPFLAGS'
5097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found
=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5114 test -z "$as_dir" && as_dir
=.
5115 for ac_prog
in grep ggrep
; do
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5123 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5126 $as_echo_n 0123456789 >"conftest.in"
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5134 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5135 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP
="$ac_path_GREP"
5139 ac_path_GREP_max
=$ac_count
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5144 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5147 $ac_path_GREP_found && break 3
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5156 ac_cv_path_GREP
=$GREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP
="$ac_cv_path_GREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5170 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5171 then ac_cv_path_EGREP
="$GREP -E"
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found
=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5180 test -z "$as_dir" && as_dir
=.
5181 for ac_prog
in egrep; do
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5189 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5192 $as_echo_n 0123456789 >"conftest.in"
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5201 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP
="$ac_path_EGREP"
5205 ac_path_EGREP_max
=$ac_count
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5213 $ac_path_EGREP_found && break 3
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 ac_cv_path_EGREP
=$EGREP
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP
="$ac_cv_path_EGREP"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5252 if ac_fn_c_try_compile
"$LINENO"; then :
5253 ac_cv_header_stdc
=yes
5255 ac_cv_header_stdc
=no
5257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev
/null
2>&1; then :
5270 ac_cv_header_stdc
=no
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev
/null
2>&1; then :
5287 ac_cv_header_stdc
=no
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5325 if ac_fn_c_try_run
"$LINENO"; then :
5328 ac_cv_header_stdc
=no
5330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5346 inttypes.h stdint.h unistd.h
5348 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5351 eval as_val
=\$
$as_ac_Header
5352 if test "x$as_val" = x
""yes; then :
5353 cat >>confdefs.h
<<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5371 if test "$MINIX" = yes; then
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5402 if ac_fn_c_try_compile
"$LINENO"; then :
5403 ac_cv_safe_to_define___extensions__
=yes
5405 ac_cv_safe_to_define___extensions__
=no
5407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411 test $ac_cv_safe_to_define___extensions__ = yes &&
5412 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5414 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5418 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5420 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5424 ac_cpp
='$CPP $CPPFLAGS'
5425 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5438 # Double quotes because CPP needs to be expanded
5439 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5442 for ac_c_preproc_warn_flag
in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 # include <limits.h>
5455 # include <assert.h>
5459 if ac_fn_c_try_cpp
"$LINENO"; then :
5462 # Broken: fails on valid input.
5465 rm -f conftest.err conftest.
$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5473 if ac_fn_c_try_cpp
"$LINENO"; then :
5474 # Broken: success on invalid input.
5477 # Passes both tests.
5481 rm -f conftest.err conftest.
$ac_ext
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.
$ac_ext
5486 if $ac_preproc_ok; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5501 for ac_c_preproc_warn_flag
in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5512 # include <limits.h>
5514 # include <assert.h>
5518 if ac_fn_c_try_cpp
"$LINENO"; then :
5521 # Broken: fails on valid input.
5524 rm -f conftest.err conftest.
$ac_ext
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5532 if ac_fn_c_try_cpp
"$LINENO"; then :
5533 # Broken: success on invalid input.
5536 # Passes both tests.
5540 rm -f conftest.err conftest.
$ac_ext
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.
$ac_ext
5545 if $ac_preproc_ok; then :
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5555 ac_cpp
='$CPP $CPPFLAGS'
5556 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5566 for ac_kw
in inline __inline__ __inline
; do
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5576 if ac_fn_c_try_compile
"$LINENO"; then :
5577 ac_cv_c_inline
=$ac_kw
5579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 test "$ac_cv_c_inline" != no
&& break
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5587 case $ac_cv_c_inline in
5590 case $ac_cv_c_inline in
5592 *) ac_val
=$ac_cv_c_inline;;
5594 cat >>confdefs.h
<<_ACEOF
5596 #define inline $ac_val
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605 enableval
=$enable_largefile;
5608 if test "$enable_largefile" != no
; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5615 ac_cv_sys_largefile_CC
=no
5616 if test "$GCC" != yes; then
5619 # IRIX 6.2 and later do not support large files by default,
5620 # so use the C compiler's -n32 option if that helps.
5621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5640 if ac_fn_c_try_compile
"$LINENO"; then :
5643 rm -f core conftest.err conftest.
$ac_objext
5645 if ac_fn_c_try_compile
"$LINENO"; then :
5646 ac_cv_sys_largefile_CC
=' -n32'; break
5648 rm -f core conftest.err conftest.
$ac_objext
5652 rm -f conftest.
$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657 if test "$ac_cv_sys_largefile_CC" != no
; then
5658 CC
=$CC$ac_cv_sys_largefile_CC
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5686 if ac_fn_c_try_compile
"$LINENO"; then :
5687 ac_cv_sys_file_offset_bits
=no
; break
5689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #define _FILE_OFFSET_BITS 64
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5710 if ac_fn_c_try_compile
"$LINENO"; then :
5711 ac_cv_sys_file_offset_bits
=64; break
5713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 ac_cv_sys_file_offset_bits
=unknown
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5723 cat >>confdefs.h
<<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5729 if test $ac_cv_sys_file_offset_bits = unknown
; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5755 if ac_fn_c_try_compile
"$LINENO"; then :
5756 ac_cv_sys_large_files
=no
; break
5758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #define _LARGE_FILES 1
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5779 if ac_fn_c_try_compile
"$LINENO"; then :
5780 ac_cv_sys_large_files
=1; break
5782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 ac_cv_sys_large_files
=unknown
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5792 cat >>confdefs.h
<<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5812 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5815 if test "$ac_cv_type_void_p" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status
77
5819 as_fn_error
"cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5822 ac_cv_sizeof_void_p
=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5832 cat >>confdefs.h
<<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5846 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5849 if test "$ac_cv_type_short" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status
77
5853 as_fn_error
"cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5856 ac_cv_sizeof_short
=0
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5866 cat >>confdefs.h
<<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5880 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5883 if test "$ac_cv_type_int" = 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 (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5900 cat >>confdefs.h
<<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5917 if test "$ac_cv_type_long" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status
77
5921 as_fn_error
"cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5934 cat >>confdefs.h
<<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5939 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x
""yes; then :
5942 cat >>confdefs.h
<<_ACEOF
5943 #define HAVE_LONG_LONG 1
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5958 if test "$ac_cv_type_long_long" = yes; then
5959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status
77
5962 as_fn_error
"cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5965 ac_cv_sizeof_long_long
=0
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5975 cat >>confdefs.h
<<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5982 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x
""yes; then :
5985 cat >>confdefs.h
<<_ACEOF
5986 #define HAVE___INT64 1
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6001 if test "$ac_cv_type___int64" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status
77
6005 as_fn_error
"cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6008 ac_cv_sizeof___int64
=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6018 cat >>confdefs.h
<<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6025 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6030 cat >>confdefs.h
<<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6036 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6041 cat >>confdefs.h
<<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6047 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6052 cat >>confdefs.h
<<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6058 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6063 cat >>confdefs.h
<<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 /* For now, do not test the preprocessor; as of 2007 there are too many
6079 implementations with broken preprocessors. Perhaps this can
6080 be revisited in 2012. In the meantime, code should not expect
6081 #if to work with literals wider than 32 bits. */
6082 /* Test literals. */
6083 long long int ll = 9223372036854775807ll;
6084 long long int nll = -9223372036854775807LL;
6085 unsigned long long int ull = 18446744073709551615ULL;
6086 /* Test constant expressions. */
6087 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6089 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6095 /* Test availability of runtime routines for shift and division. */
6096 long long int llmax = 9223372036854775807ll;
6097 unsigned long long int ullmax = 18446744073709551615ull;
6098 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099 | (llmax / ll) | (llmax % ll)
6100 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101 | (ullmax / ull) | (ullmax % ull));
6107 if ac_fn_c_try_link
"$LINENO"; then :
6108 if test "$cross_compiling" = yes; then :
6109 ac_cv_type_long_long_int
=yes
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6116 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117 # define LLONG_MAX (HALF - 1 + HALF)
6122 long long int n = 1;
6126 long long int m = n << i;
6129 if (LLONG_MAX / 2 < m)
6137 if ac_fn_c_try_run
"$LINENO"; then :
6138 ac_cv_type_long_long_int
=yes
6140 ac_cv_type_long_long_int
=no
6142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6147 ac_cv_type_long_long_int
=no
6149 rm -f core conftest.err conftest.
$ac_objext \
6150 conftest
$ac_exeext conftest.
$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154 if test $ac_cv_type_long_long_int = yes; then
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6162 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6168 test $ac_cv_type_long_long_int = yes \
6169 && ac_type
='long long int' \
6170 || ac_type
='long int'
6172 cat >>confdefs.h
<<_ACEOF
6173 #define intmax_t $ac_type
6180 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6186 for ac_type
in 'int' 'long int' 'long long int'; do
6187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 $ac_includes_default
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6200 if ac_fn_c_try_compile
"$LINENO"; then :
6202 cat >>confdefs.h
<<_ACEOF
6203 #define intptr_t $ac_type
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 test -z "$ac_type" && break
6214 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6222 cat >>confdefs.h
<<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6228 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6234 cat >>confdefs.h
<<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6240 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6248 cat >>confdefs.h
<<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6254 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6262 cat >>confdefs.h
<<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6277 /* For now, do not test the preprocessor; as of 2007 there are too many
6278 implementations with broken preprocessors. Perhaps this can
6279 be revisited in 2012. In the meantime, code should not expect
6280 #if to work with literals wider than 32 bits. */
6281 /* Test literals. */
6282 long long int ll = 9223372036854775807ll;
6283 long long int nll = -9223372036854775807LL;
6284 unsigned long long int ull = 18446744073709551615ULL;
6285 /* Test constant expressions. */
6286 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6288 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6294 /* Test availability of runtime routines for shift and division. */
6295 long long int llmax = 9223372036854775807ll;
6296 unsigned long long int ullmax = 18446744073709551615ull;
6297 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298 | (llmax / ll) | (llmax % ll)
6299 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300 | (ullmax / ull) | (ullmax % ull));
6306 if ac_fn_c_try_link
"$LINENO"; then :
6307 ac_cv_type_unsigned_long_long_int
=yes
6309 ac_cv_type_unsigned_long_long_int
=no
6311 rm -f core conftest.err conftest.
$ac_objext \
6312 conftest
$ac_exeext conftest.
$ac_ext
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316 if test $ac_cv_type_unsigned_long_long_int = yes; then
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6324 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6330 test $ac_cv_type_unsigned_long_long_int = yes \
6331 && ac_type
='unsigned long long int' \
6332 || ac_type
='unsigned long int'
6334 cat >>confdefs.h
<<_ACEOF
6335 #define uintmax_t $ac_type
6342 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6348 for ac_type
in 'unsigned int' 'unsigned long int' \
6349 'unsigned long long int'; do
6350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 $ac_includes_default
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6363 if ac_fn_c_try_compile
"$LINENO"; then :
6365 cat >>confdefs.h
<<_ACEOF
6366 #define uintptr_t $ac_type
6371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 test -z "$ac_type" && break
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6398 # * overlong strings
6399 # So, we only use -pedantic if we can disable those warnings.
6402 save_CFLAGS
="$CFLAGS"
6403 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6404 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6423 if ac_fn_c_try_compile
"$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6426 eval "$as_acx_Woption=no"
6428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 eval ac_res
=\$
$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn
="$loose_warn${loose_warn:+ }$option"
6438 CFLAGS
="$save_CFLAGS"
6441 save_CFLAGS
="$CFLAGS"
6442 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6462 if ac_fn_c_try_compile
"$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6465 eval "$as_acx_Woption=no"
6467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6470 eval ac_res
=\$
$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6477 CFLAGS
="$save_CFLAGS"
6480 save_CFLAGS
="$CFLAGS"
6481 for option
in -Wmissing-format-attribute; do
6482 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 eval ac_res
=\$
$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn
="$strict_warn${strict_warn:+ }$option"
6516 CFLAGS
="$save_CFLAGS"
6519 save_CFLAGS
="$CFLAGS"
6520 for option
in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 eval ac_res
=\$
$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6555 CFLAGS
="$save_CFLAGS"
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 save_CFLAGS
="$CFLAGS"
6564 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6576 if ac_fn_c_try_compile
"$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 CFLAGS
="$save_CFLAGS"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval
=$enable_werror_always;
6596 enable_werror_always
=no
6599 if test $enable_werror_always = yes; then :
6600 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags
='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6617 # Enable expensive internal checks
6619 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6623 # Check whether --enable-checking was given.
6624 if test "${enable_checking+set}" = set; then :
6625 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6628 # Determine the default checks.
6629 if test x
$is_release = x
; then
6630 ac_checking_flags
=yes
6632 ac_checking_flags
=release
6636 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6637 for check
in release
$ac_checking_flags
6640 # these set all the flags to specific states
6641 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6642 ac_fold_checking
= ; ac_gc_checking
=1 ;
6643 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6644 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6645 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6646 ac_types_checking
=1 ;;
6647 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6648 ac_fold_checking
= ; ac_gc_checking
= ;
6649 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6650 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6651 ac_tree_checking
= ; ac_valgrind_checking
= ;
6652 ac_types_checking
= ;;
6653 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6654 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6655 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6656 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6657 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6658 ac_types_checking
=1 ;;
6659 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6660 ac_fold_checking
= ; ac_gc_checking
= ;
6661 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6662 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6663 ac_tree_checking
= ; ac_valgrind_checking
= ;
6664 ac_types_checking
= ;;
6665 # these enable particular checks
6666 assert
) ac_assert_checking
=1 ;;
6667 df
) ac_df_checking
=1 ;;
6668 fold) ac_fold_checking
=1 ;;
6669 gc
) ac_gc_checking
=1 ;;
6670 gcac
) ac_gc_always_collect
=1 ;;
6671 gimple
) ac_gimple_checking
=1 ;;
6672 misc
) ac_checking
=1 ;;
6673 rtl
) ac_rtl_checking
=1 ;;
6674 rtlflag
) ac_rtlflag_checking
=1 ;;
6675 runtime
) ac_runtime_checking
=1 ;;
6676 tree
) ac_tree_checking
=1 ;;
6677 types
) ac_types_checking
=1 ;;
6678 valgrind
) ac_valgrind_checking
=1 ;;
6679 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6685 if test x
$ac_checking != x
; then
6687 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6689 nocommon_flag
=-fno-common
6692 if test x
$ac_df_checking != x
; then
6694 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6697 if test x
$ac_assert_checking != x
; then
6699 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6702 if test x
$ac_gimple_checking != x
; then
6704 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6708 if test x
$ac_runtime_checking != x
; then
6710 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6713 if test x
$ac_tree_checking != x
; then
6715 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6717 TREEBROWSER
=tree-browser.o
6719 if test x
$ac_types_checking != x
; then
6721 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6725 if test x
$ac_rtl_checking != x
; then
6727 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6730 if test x
$ac_rtlflag_checking != x
; then
6732 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6735 if test x
$ac_gc_checking != x
; then
6737 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6740 if test x
$ac_gc_always_collect != x
; then
6742 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6745 if test x
$ac_fold_checking != x
; then
6747 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6750 valgrind_path_defines
=
6753 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6754 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6762 if test x
$ac_valgrind_checking != x
; then
6763 # It is certainly possible that there's valgrind but no valgrind.h.
6764 # GCC relies on making annotations so we must have both.
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6766 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6774 if ac_fn_c_try_cpp
"$LINENO"; then :
6775 gcc_cv_header_valgrind_memcheck_h
=yes
6777 gcc_cv_header_valgrind_memcheck_h
=no
6779 rm -f conftest.err conftest.
$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6781 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6783 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <memcheck.h>
6787 #ifndef VALGRIND_DISCARD
6788 #error VALGRIND_DISCARD not defined
6791 if ac_fn_c_try_cpp
"$LINENO"; then :
6792 gcc_cv_header_memcheck_h
=yes
6794 gcc_cv_header_memcheck_h
=no
6796 rm -f conftest.err conftest.
$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6798 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6800 # Prepare PATH_SEPARATOR.
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803 echo "#! /bin/sh" >conf$$.sh
6804 echo "exit 0" >>conf$$.sh
6806 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6814 # Find out how to test for executable files. Don't use a zero-byte file,
6815 # as systems may use methods other than mode bits to determine executability.
6816 cat >conf$$.
file <<_ASEOF
6820 chmod +x conf$$.
file
6821 if test -x conf$$.
file >/dev
/null
2>&1; then
6822 ac_executable_p
="test -x"
6824 ac_executable_p
="test -f"
6828 # Extract the first word of "valgrind", so it can be a program name with args.
6829 set dummy valgrind
; ac_word
=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6835 case "$valgrind_path" in
6837 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6840 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6841 for ac_dir
in $PATH; do
6843 test -z "$ac_dir" && ac_dir
=.
6844 for ac_exec_ext
in '' $ac_executable_extensions; do
6845 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6846 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6847 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6857 valgrind_path
="$ac_cv_path_valgrind_path"
6858 if test -n "$valgrind_path"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6860 $as_echo "$valgrind_path" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6866 if test "x$valgrind_path" = "x" \
6867 ||
(test $have_valgrind_h = no \
6868 && test $gcc_cv_header_memcheck_h = no \
6869 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6870 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6872 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873 valgrind_command
="$valgrind_path -q"
6875 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6882 if test $gcc_cv_header_memcheck_h = yes; then
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6891 # Enable code coverage collection
6892 # Check whether --enable-coverage was given.
6893 if test "${enable_coverage+set}" = set; then :
6894 enableval
=$enable_coverage; case "${enableval}" in
6896 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6899 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6902 # a.k.a. --disable-coverage
6906 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6915 # Check whether --enable-gather-detailed-mem-stats was given.
6916 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6917 enableval
=$enable_gather_detailed_mem_stats;
6919 enable_gather_detailed_mem_stats
=no
6922 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6924 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6928 # -------------------------------
6929 # Miscenalleous configure options
6930 # -------------------------------
6932 # See if we are building gcc with C++.
6933 # Check whether --enable-build-with-cxx was given.
6934 if test "${enable_build_with_cxx+set}" = set; then :
6935 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6937 ENABLE_BUILD_WITH_CXX
=no
6941 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6943 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6949 # Check whether --with-stabs was given.
6950 if test "${with_stabs+set}" = set; then :
6951 withval
=$with_stabs; stabs
="$with_stabs"
6957 # Determine whether or not multilibs are enabled.
6958 # Check whether --enable-multilib was given.
6959 if test "${enable_multilib+set}" = set; then :
6960 enableval
=$enable_multilib;
6967 # Enable __cxa_atexit for C++.
6968 # Check whether --enable-__cxa_atexit was given.
6969 if test "${enable___cxa_atexit+set}" = set; then :
6970 enableval
=$enable___cxa_atexit;
6974 # Enable C extension for decimal float if target supports it.
6976 # Check whether --enable-decimal-float was given.
6977 if test "${enable_decimal_float+set}" = set; then :
6978 enableval
=$enable_decimal_float;
6979 case $enable_decimal_float in
6980 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6981 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6982 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6988 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6989 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6991 enable_decimal_float
=yes
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6995 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6996 enable_decimal_float
=no
7003 # x86's use BID format instead of DPD
7004 case x
$enable_decimal_float in
7007 i?
86*-*-* | x86_64
*-*-*)
7008 enable_decimal_float
=bid
7011 enable_decimal_float
=dpd
7014 default_decimal_float
=$enable_decimal_float
7017 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7018 # dependency on libdecnumber.
7019 default_decimal_float
=dpd
7026 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7028 cat >>confdefs.h
<<_ACEOF
7029 #define ENABLE_DECIMAL_FLOAT $dfp
7033 # Use default_decimal_float for dependency.
7034 enable_decimal_float
=$default_decimal_float
7036 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7038 cat >>confdefs.h
<<_ACEOF
7039 #define ENABLE_DECIMAL_BID_FORMAT $bid
7043 # Enable C extension for fixed-point arithmetic.
7044 # Check whether --enable-fixed-point was given.
7045 if test "${enable_fixed_point+set}" = set; then :
7046 enableval
=$enable_fixed_point;
7051 enable_fixed_point
=yes
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7058 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7059 enable_fixed_point
=no
7062 enable_fixed_point
=yes
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7069 enable_fixed_point
=no
7077 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7079 cat >>confdefs.h
<<_ACEOF
7080 #define ENABLE_FIXED_POINT $fixedpoint
7085 # Pass with no value to take the default
7086 # Pass with a value to specify a thread package
7087 # Check whether --enable-threads was given.
7088 if test "${enable_threads+set}" = set; then :
7089 enableval
=$enable_threads;
7095 # Check whether --enable-tls was given.
7096 if test "${enable_tls+set}" = set; then :
7097 enableval
=$enable_tls;
7100 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7109 # Check whether --enable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then :
7111 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7122 # Check whether --with-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then :
7124 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7130 # Check whether --enable-shared was given.
7131 if test "${enable_shared+set}" = set; then :
7132 enableval
=$enable_shared;
7133 case $enable_shared in
7137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7138 for pkg
in $enableval; do
7139 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7154 # Check whether --with-native-system-header-dir was given.
7155 if test "${with_native_system_header_dir+set}" = set; then :
7156 withval
=$with_native_system_header_dir;
7157 case ${with_native_system_header_dir} in
7158 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7159 /* |
[A-Za-z
]:[\\/]*) ;;
7160 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7162 configured_native_system_header_dir
="${withval}"
7165 configured_native_system_header_dir
=
7170 # Check whether --with-build-sysroot was given.
7171 if test "${with_build_sysroot+set}" = set; then :
7172 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7173 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7176 SYSROOT_CFLAGS_FOR_TARGET
=
7182 # Check whether --with-sysroot was given.
7183 if test "${with_sysroot+set}" = set; then :
7184 withval
=$with_sysroot;
7185 case ${with_sysroot} in
7186 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7187 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7190 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7191 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7193 if test "x$prefix" = xNONE
; then
7194 test_prefix
=/usr
/local
7198 if test "x$exec_prefix" = xNONE
; then
7199 test_exec_prefix
=$test_prefix
7201 test_exec_prefix
=$exec_prefix
7203 case ${TARGET_SYSTEM_ROOT} in
7204 "${test_prefix}"|
"${test_prefix}/"*|\
7205 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7206 '${prefix}'|
'${prefix}/'*|\
7207 '${exec_prefix}'|
'${exec_prefix}/'*)
7208 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7209 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7216 TARGET_SYSTEM_ROOT_DEFINE
=
7217 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7226 # Check whether --with-specs was given.
7227 if test "${with_specs+set}" = set; then :
7228 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7238 # Check whether --with-pkgversion was given.
7239 if test "${with_pkgversion+set}" = set; then :
7240 withval
=$with_pkgversion; case "$withval" in
7241 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7243 *) PKGVERSION
="($withval) " ;;
7254 # Check whether --with-bugurl was given.
7255 if test "${with_bugurl+set}" = set; then :
7256 withval
=$with_bugurl; case "$withval" in
7257 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7260 *) BUGURL
="$withval"
7264 BUGURL
="http://gcc.gnu.org/bugs.html"
7274 REPORT_BUGS_TO
="<$BUGURL>"
7275 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7282 # Sanity check enable_languages in case someone does not run the toplevel
7283 # configure # script.
7284 # Check whether --enable-languages was given.
7285 if test "${enable_languages+set}" = set; then :
7286 enableval
=$enable_languages; case ,${enable_languages}, in
7288 # go safe -- we cannot be much sure without the toplevel
7290 # analysis of which target libs are present and usable
7294 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7299 enable_languages
=c
,${enable_languages}
7308 # Check whether --with-multilib-list was given.
7309 if test "${with_multilib_list+set}" = set; then :
7310 withval
=$with_multilib_list; :
7312 with_multilib_list
=default
7316 # -------------------------
7317 # Checks for other programs
7318 # -------------------------
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7321 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7323 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7324 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7325 $as_echo_n "(cached) " >&6
7327 cat >conftest.
make <<\_ACEOF
7330 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7333 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7335 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7337 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7341 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7343 $as_echo "yes" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 SET_MAKE
="MAKE=${MAKE-make}"
7352 # Find some useful tools
7353 for ac_prog
in gawk mawk nawk
awk
7355 # Extract the first word of "$ac_prog", so it can be a program name with args.
7356 set dummy
$ac_prog; ac_word
=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_AWK+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$AWK"; then
7363 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir
=.
7370 for ac_exec_ext
in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_AWK
="$ac_prog"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 if test -n "$AWK"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7385 $as_echo "$AWK" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7392 test -n "$AWK" && break
7395 # We need awk to create options.c and options.h.
7396 # Bail out if it's missing.
7398 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7402 $as_echo_n "checking whether ln -s works... " >&6; }
7403 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7406 rm -f conftestdata_t
7407 echo >conftestdata_f
7408 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7410 gcc_cv_prog_LN_S
="ln -s"
7412 if ln conftestdata_f conftestdata_t
2>/dev
/null
7416 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7418 gcc_cv_prog_LN_S
="cp -p"
7424 rm -f conftestdata_f conftestdata_t
7427 LN_S
="$gcc_cv_prog_LN_S"
7428 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430 $as_echo "yes" >&6; }
7432 if test "$gcc_cv_prog_LN_S" = "ln"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7434 $as_echo "no, using ln" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7437 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7442 $as_echo_n "checking whether ln works... " >&6; }
7443 if test "${acx_cv_prog_LN+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7446 rm -f conftestdata_t
7447 echo >conftestdata_f
7448 if ln conftestdata_f conftestdata_t
2>/dev
/null
7454 rm -f conftestdata_f conftestdata_t
7457 if test $acx_cv_prog_LN = no
; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7460 $as_echo "no, using $LN" >&6; }
7462 LN
="$acx_cv_prog_LN"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464 $as_echo "yes" >&6; }
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7469 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7475 if test -n "$RANLIB"; then
7476 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir
=.
7483 for ac_exec_ext
in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 RANLIB
=$ac_cv_prog_RANLIB
7496 if test -n "$RANLIB"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7498 $as_echo "$RANLIB" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7506 if test -z "$ac_cv_prog_RANLIB"; then
7507 ac_ct_RANLIB
=$RANLIB
7508 # Extract the first word of "ranlib", so it can be a program name with args.
7509 set dummy ranlib
; ac_word
=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -n "$ac_ct_RANLIB"; then
7516 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir
=.
7523 for ac_exec_ext
in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7536 if test -n "$ac_ct_RANLIB"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7538 $as_echo "$ac_ct_RANLIB" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7544 if test "x$ac_ct_RANLIB" = x
; then
7547 case $cross_compiling:$ac_tool_warned in
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned
=yes ;;
7553 RANLIB
=$ac_ct_RANLIB
7556 RANLIB
="$ac_cv_prog_RANLIB"
7561 # By default, the Darwin ranlib will not treat common symbols as
7562 # definitions when building the archive table of contents. Other
7563 # ranlibs do that; pass an option to the Darwin ranlib that makes
7564 # it behave similarly.
7572 # Find a good install program. We prefer a C program (faster),
7573 # so one script is as good as another. But avoid the broken or
7574 # incompatible versions:
7575 # SysV /etc/install, /usr/sbin/install
7576 # SunOS /usr/etc/install
7577 # IRIX /sbin/install
7579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7581 # ./install, which can be erroneously created by make from ./install.sh.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7583 $as_echo_n "checking for a BSD compatible install... " >&6; }
7584 if test -z "$INSTALL"; then
7585 if test "${ac_cv_path_install+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7588 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7589 for ac_dir
in $PATH; do
7590 # Account for people who put trailing slashes in PATH elements.
7592 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7594 # OSF1 and SCO ODT 3.0 have their own names for install.
7595 for ac_prog
in ginstall scoinst
install; do
7596 if test -f $ac_dir/$ac_prog; then
7597 if test $ac_prog = install &&
7598 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7599 # AIX install. It has an incompatible calling convention.
7600 # OSF/1 installbsd also uses dspmsg, but is usable.
7603 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7614 if test "${ac_cv_path_install+set}" = set; then
7615 INSTALL
="$ac_cv_path_install"
7617 # As a last resort, use the slow shell script. We don't cache a
7618 # path for INSTALL within a source directory, because that will
7619 # break other packages using the cache if that directory is
7620 # removed, or if the path is relative.
7621 INSTALL
="$ac_install_sh"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7625 $as_echo "$INSTALL" >&6; }
7627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7628 # It thinks the first close brace ends the variable substitution.
7629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7631 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7634 # See if cmp has --ignore-initial.
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7636 $as_echo_n "checking for cmp's capabilities... " >&6; }
7637 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7642 gcc_cv_prog_cmp_skip
=slowcompare
7643 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7644 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7647 gcc_cv_prog_cmp_skip
=gnucompare
7650 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7651 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7652 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7655 gcc_cv_prog_cmp_skip
=fastcompare
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7663 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7664 make_compare_target
=$gcc_cv_prog_cmp_skip
7668 # See if we have the mktemp command.
7669 # Extract the first word of "mktemp", so it can be a program name with args.
7670 set dummy mktemp
; ac_word
=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$have_mktemp_command"; then
7677 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir
=.
7684 for ac_exec_ext
in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_have_mktemp_command
="yes"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7697 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7698 if test -n "$have_mktemp_command"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7700 $as_echo "$have_mktemp_command" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7708 # See if makeinfo has been installed and is modern enough
7709 # that we can use it.
7711 # Extract the first word of "makeinfo", so it can be a program name with args.
7712 set dummy makeinfo
; ac_word
=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7718 if test -n "$MAKEINFO"; then
7719 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7725 test -z "$as_dir" && as_dir
=.
7726 for ac_exec_ext
in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_prog_MAKEINFO
="makeinfo"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 MAKEINFO
=$ac_cv_prog_MAKEINFO
7739 if test -n "$MAKEINFO"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7741 $as_echo "$MAKEINFO" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7748 if test -n "$MAKEINFO"; then
7749 # Found it, now check the version.
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7751 $as_echo_n "checking for modern makeinfo... " >&6; }
7752 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7756 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7758 case $ac_prog_version in
7759 '') gcc_cv_prog_makeinfo_modern
=no
;;
7760 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7761 *) gcc_cv_prog_makeinfo_modern
=no
;;
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7766 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7768 gcc_cv_prog_makeinfo_modern
=no
7770 if test $gcc_cv_prog_makeinfo_modern = no
; then
7771 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7774 if test $gcc_cv_prog_makeinfo_modern = no
; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7776 *** Makeinfo is missing or too old.
7777 *** Info documentation will not be built." >&5
7778 $as_echo "$as_me: WARNING:
7779 *** Makeinfo is missing or too old.
7780 *** Info documentation will not be built." >&2;}
7787 # Is pod2man recent enough to regenerate manpages?
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7789 $as_echo_n "checking for recent Pod::Man... " >&6; }
7790 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7792 $as_echo "yes" >&6; }
7793 GENERATED_MANPAGES
=generated-manpages
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7801 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy
$ac_prog; ac_word
=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_FLEX+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7813 if test -n "$FLEX"; then
7814 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir
=.
7821 for ac_exec_ext
in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_FLEX
="$ac_prog"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 FLEX
=$ac_cv_prog_FLEX
7834 if test -n "$FLEX"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7836 $as_echo "$FLEX" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7843 test -n "$FLEX" && break
7845 test -n "$FLEX" || FLEX
="$MISSING flex"
7849 for ac_prog
in bison
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy
$ac_prog; ac_word
=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_BISON+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7858 if test -n "$BISON"; then
7859 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir
=.
7866 for ac_exec_ext
in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_BISON
="$ac_prog"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 BISON
=$ac_cv_prog_BISON
7879 if test -n "$BISON"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7881 $as_echo "$BISON" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7888 test -n "$BISON" && break
7890 test -n "$BISON" || BISON
="$MISSING bison"
7893 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7894 # check for build == host before using them.
7897 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7898 && test -d ..
/binutils
; then
7899 NM
='${objdir}/../binutils/nm-new'
7901 # Extract the first word of "nm", so it can be a program name with args.
7902 set dummy nm
; ac_word
=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_NM+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7908 if test -n "$NM"; then
7909 ac_cv_prog_NM
="$NM" # Let the user override the test.
7911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir
=.
7916 for ac_exec_ext
in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7930 if test -n "$NM"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7932 $as_echo "$NM" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7942 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7943 && test -d ..
/binutils
; then
7944 AR
='${objdir}/../binutils/ar'
7946 # Extract the first word of "ar", so it can be a program name with args.
7947 set dummy
ar; ac_word
=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_AR+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$AR"; then
7954 ac_cv_prog_AR
="$AR" # Let the user override the test.
7956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir
=.
7961 for ac_exec_ext
in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7975 if test -n "$AR"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7977 $as_echo "$AR" >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7987 # --------------------
7988 # Checks for C headers
7989 # --------------------
7991 # Need to reject headers which give warnings, so that the -Werror bootstrap
7992 # works later. *sigh* This needs to come before all header checks.
7994 ac_c_preproc_warn_flag
=yes
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7997 $as_echo_n "checking for ANSI C header files... " >&6; }
7998 if test "${ac_cv_header_stdc+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8016 if ac_fn_c_try_compile
"$LINENO"; then :
8017 ac_cv_header_stdc
=yes
8019 ac_cv_header_stdc
=no
8021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 if test $ac_cv_header_stdc = yes; then
8024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031 $EGREP "memchr" >/dev
/null
2>&1; then :
8034 ac_cv_header_stdc
=no
8040 if test $ac_cv_header_stdc = yes; then
8041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8048 $EGREP "free" >/dev
/null
2>&1; then :
8051 ac_cv_header_stdc
=no
8057 if test $ac_cv_header_stdc = yes; then
8058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8059 if test "$cross_compiling" = yes; then :
8062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8066 #if ((' ' & 0x0FF) == 0x020)
8067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8070 # define ISLOWER(c) \
8071 (('a' <= (c) && (c) <= 'i') \
8072 || ('j' <= (c) && (c) <= 'r') \
8073 || ('s' <= (c) && (c) <= 'z'))
8074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8082 for (i = 0; i < 256; i++)
8083 if (XOR (islower (i), ISLOWER (i))
8084 || toupper (i) != TOUPPER (i))
8089 if ac_fn_c_try_run
"$LINENO"; then :
8092 ac_cv_header_stdc
=no
8094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8101 $as_echo "$ac_cv_header_stdc" >&6; }
8102 if test $ac_cv_header_stdc = yes; then
8104 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8110 if test "${ac_cv_header_time+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/time.h>
8122 if ((struct tm *) 0)
8128 if ac_fn_c_try_compile
"$LINENO"; then :
8129 ac_cv_header_time
=yes
8131 ac_cv_header_time
=no
8133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8136 $as_echo "$ac_cv_header_time" >&6; }
8137 if test $ac_cv_header_time = yes; then
8139 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8144 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8145 if test "${gcc_cv_header_string+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8151 #include <strings.h>
8160 if ac_fn_c_try_compile
"$LINENO"; then :
8161 gcc_cv_header_string
=yes
8163 gcc_cv_header_string
=no
8165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8168 $as_echo "$gcc_cv_header_string" >&6; }
8169 if test $gcc_cv_header_string = yes; then
8171 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8176 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8177 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 #include <sys/types.h>
8183 #include <sys/wait.h>
8185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8201 if ac_fn_c_try_compile
"$LINENO"; then :
8202 ac_cv_header_sys_wait_h
=yes
8204 ac_cv_header_sys_wait_h
=no
8206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8209 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8210 if test $ac_cv_header_sys_wait_h = yes; then
8212 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8216 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8217 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8218 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8219 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8222 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8223 eval as_val
=\$
$as_ac_Header
8224 if test "x$as_val" = x
""yes; then :
8225 cat >>confdefs.h
<<_ACEOF
8226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 # Check for thread headers.
8234 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8235 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8241 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8242 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8249 # These tests can't be done till we know if we have limits.h.
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8251 $as_echo_n "checking for CHAR_BIT... " >&6; }
8252 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257 #ifdef HAVE_LIMITS_H
8264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265 $EGREP "found" >/dev
/null
2>&1; then :
8266 gcc_cv_decl_char_bit
=yes
8268 gcc_cv_decl_char_bit
=no
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8275 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8276 if test $gcc_cv_decl_char_bit = no
; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8278 $as_echo_n "checking number of bits in a byte... " >&6; }
8279 if test "${gcc_cv_c_nbby+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8284 while test $i -lt 65; do
8285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8292 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8293 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8299 if ac_fn_c_try_compile
"$LINENO"; then :
8300 gcc_cv_c_nbby
=$i; break
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8305 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8309 $as_echo "$gcc_cv_c_nbby" >&6; }
8310 if test $gcc_cv_c_nbby = failed
; then
8311 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8314 cat >>confdefs.h
<<_ACEOF
8315 #define CHAR_BIT $gcc_cv_c_nbby
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8321 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8322 if test "${ac_cv_c_bigendian+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8325 ac_cv_c_bigendian
=unknown
8326 # See if we're dealing with a universal compiler.
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 #ifndef __APPLE_CC__
8330 not a universal capable compiler
8335 if ac_fn_c_try_compile
"$LINENO"; then :
8337 # Check for potential -arch flags. It is not universal unless
8338 # there are at least two -arch flags with different values.
8341 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8342 if test -n "$ac_prev"; then
8344 i?
86 | x86_64 | ppc | ppc64
)
8345 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8348 ac_cv_c_bigendian
=universal
8354 elif test "x$ac_word" = "x-arch"; then
8359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 if test $ac_cv_c_bigendian = unknown
; then
8361 # See if sys/param.h defines the BYTE_ORDER macro.
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 #include <sys/types.h>
8365 #include <sys/param.h>
8370 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8371 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8380 if ac_fn_c_try_compile
"$LINENO"; then :
8381 # It does; now see whether it defined to BIG_ENDIAN or not.
8382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <sys/param.h>
8390 #if BYTE_ORDER != BIG_ENDIAN
8398 if ac_fn_c_try_compile
"$LINENO"; then :
8399 ac_cv_c_bigendian
=yes
8401 ac_cv_c_bigendian
=no
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8407 if test $ac_cv_c_bigendian = unknown
; then
8408 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8416 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8424 if ac_fn_c_try_compile
"$LINENO"; then :
8425 # It does; now see whether it defined to _BIG_ENDIAN or not.
8426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8441 if ac_fn_c_try_compile
"$LINENO"; then :
8442 ac_cv_c_bigendian
=yes
8444 ac_cv_c_bigendian
=no
8446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8450 if test $ac_cv_c_bigendian = unknown
; then
8451 # Compile a test program.
8452 if test "$cross_compiling" = yes; then :
8453 # Try to guess by grepping values from an object file.
8454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 short int ascii_mm[] =
8457 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8458 short int ascii_ii[] =
8459 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8460 int use_ascii (int i) {
8461 return ascii_mm[i] + ascii_ii[i];
8463 short int ebcdic_ii[] =
8464 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8465 short int ebcdic_mm[] =
8466 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8467 int use_ebcdic (int i) {
8468 return ebcdic_mm[i] + ebcdic_ii[i];
8475 return use_ascii (foo) == use_ebcdic (foo);
8480 if ac_fn_c_try_compile
"$LINENO"; then :
8481 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8482 ac_cv_c_bigendian
=yes
8484 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8485 if test "$ac_cv_c_bigendian" = unknown
; then
8486 ac_cv_c_bigendian
=no
8488 # finding both strings is unlikely to happen, but who knows?
8489 ac_cv_c_bigendian
=unknown
8493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 $ac_includes_default
8502 /* Are we little or big endian? From Harbison&Steele. */
8506 char c[sizeof (long int)];
8509 return u.c[sizeof (long int) - 1] == 1;
8515 if ac_fn_c_try_run
"$LINENO"; then :
8516 ac_cv_c_bigendian
=no
8518 ac_cv_c_bigendian
=yes
8520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8521 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8527 $as_echo "$ac_cv_c_bigendian" >&6; }
8528 case $ac_cv_c_bigendian in #(
8530 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8536 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8540 as_fn_error
"unknown endianness
8541 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8545 # ----------------------
8546 # Checks for C++ headers
8547 # ----------------------
8550 ac_cpp
='$CXXCPP $CPPFLAGS'
8551 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8552 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8553 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8555 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8556 if test -z "$CXXCPP"; then
8557 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8560 # Double quotes because CXXCPP needs to be expanded
8561 for CXXCPP
in "$CXX -E" "/lib/cpp"
8564 for ac_cxx_preproc_warn_flag
in '' yes
8566 # Use a header file that comes with gcc, so configuring glibc
8567 # with a fresh cross-compiler works.
8568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8569 # <limits.h> exists even on freestanding compilers.
8570 # On the NeXT, cc -E runs the code through the compiler's parser,
8571 # not just through cpp. "Syntax error" is here to catch this case.
8572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8575 # include <limits.h>
8577 # include <assert.h>
8581 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8584 # Broken: fails on valid input.
8587 rm -f conftest.err conftest.
$ac_ext
8589 # OK, works on sane cases. Now check whether nonexistent headers
8590 # can be detected and how.
8591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #include <ac_nonexistent.h>
8595 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8596 # Broken: success on invalid input.
8599 # Passes both tests.
8603 rm -f conftest.err conftest.
$ac_ext
8606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8607 rm -f conftest.err conftest.
$ac_ext
8608 if $ac_preproc_ok; then :
8613 ac_cv_prog_CXXCPP
=$CXXCPP
8616 CXXCPP
=$ac_cv_prog_CXXCPP
8618 ac_cv_prog_CXXCPP
=$CXXCPP
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8621 $as_echo "$CXXCPP" >&6; }
8623 for ac_cxx_preproc_warn_flag
in '' yes
8625 # Use a header file that comes with gcc, so configuring glibc
8626 # with a fresh cross-compiler works.
8627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628 # <limits.h> exists even on freestanding compilers.
8629 # On the NeXT, cc -E runs the code through the compiler's parser,
8630 # not just through cpp. "Syntax error" is here to catch this case.
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8634 # include <limits.h>
8636 # include <assert.h>
8640 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8643 # Broken: fails on valid input.
8646 rm -f conftest.err conftest.
$ac_ext
8648 # OK, works on sane cases. Now check whether nonexistent headers
8649 # can be detected and how.
8650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <ac_nonexistent.h>
8654 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8655 # Broken: success on invalid input.
8658 # Passes both tests.
8662 rm -f conftest.err conftest.
$ac_ext
8665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8666 rm -f conftest.err conftest.
$ac_ext
8667 if $ac_preproc_ok; then :
8670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8673 See \`config.log' for more details." >&5
8674 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8675 See \`config.log' for more details." >&2;}; }
8679 ac_cpp
='$CPP $CPPFLAGS'
8680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8686 ac_cpp
='$CXXCPP $CPPFLAGS'
8687 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8694 for ac_header
in unordered_map
8696 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8697 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8698 cat >>confdefs.h
<<_ACEOF
8699 #define HAVE_UNORDERED_MAP 1
8705 for ac_header
in tr1/unordered_map
8707 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8708 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8709 cat >>confdefs.h
<<_ACEOF
8710 #define HAVE_TR1_UNORDERED_MAP 1
8716 for ac_header
in ext
/hash_map
8718 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8719 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8720 cat >>confdefs.h
<<_ACEOF
8721 #define HAVE_EXT_HASH_MAP 1
8729 ac_cpp
='$CPP $CPPFLAGS'
8730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8740 # These libraries may be used by collect2.
8741 # We may need a special search path to get them linked.
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8743 $as_echo_n "checking for collect2 libraries... " >&6; }
8744 if test "${gcc_cv_collect2_libs+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8748 for libs
in '' -lld -lmld \
8749 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8750 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8771 if ac_fn_c_try_link
"$LINENO"; then :
8772 gcc_cv_collect2_libs
="$libs"; break
8774 rm -f core conftest.err conftest.
$ac_objext \
8775 conftest
$ac_exeext conftest.
$ac_ext
8778 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8781 $as_echo "$gcc_cv_collect2_libs" >&6; }
8782 case $gcc_cv_collect2_libs in
8784 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8788 # When building Ada code on Alpha, we need exc_resume which is usually in
8789 # -lexc. So test for it.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8793 $as_echo_n "checking for library containing exc_resume... " >&6; }
8794 if test "${ac_cv_search_exc_resume+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8797 ac_func_search_save_LIBS
=$LIBS
8798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8801 /* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
8811 return exc_resume ();
8816 for ac_lib
in '' exc
; do
8817 if test -z "$ac_lib"; then
8818 ac_res
="none required"
8821 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8823 if ac_fn_c_try_link
"$LINENO"; then :
8824 ac_cv_search_exc_resume
=$ac_res
8826 rm -f core conftest.err conftest.
$ac_objext \
8828 if test "${ac_cv_search_exc_resume+set}" = set; then :
8832 if test "${ac_cv_search_exc_resume+set}" = set; then :
8835 ac_cv_search_exc_resume
=no
8838 LIBS
=$ac_func_search_save_LIBS
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8841 $as_echo "$ac_cv_search_exc_resume" >&6; }
8842 ac_res
=$ac_cv_search_exc_resume
8843 if test "$ac_res" != no
; then :
8844 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8852 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8856 $as_echo_n "checking for library containing kstat_open... " >&6; }
8857 if test "${ac_cv_search_kstat_open+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8860 ac_func_search_save_LIBS
=$LIBS
8861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8864 /* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8874 return kstat_open ();
8879 for ac_lib
in '' kstat
; do
8880 if test -z "$ac_lib"; then
8881 ac_res
="none required"
8884 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8886 if ac_fn_c_try_link
"$LINENO"; then :
8887 ac_cv_search_kstat_open
=$ac_res
8889 rm -f core conftest.err conftest.
$ac_objext \
8891 if test "${ac_cv_search_kstat_open+set}" = set; then :
8895 if test "${ac_cv_search_kstat_open+set}" = set; then :
8898 ac_cv_search_kstat_open
=no
8901 LIBS
=$ac_func_search_save_LIBS
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8904 $as_echo "$ac_cv_search_kstat_open" >&6; }
8905 ac_res
=$ac_cv_search_kstat_open
8906 if test "$ac_res" != no
; then :
8907 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8911 EXTRA_GCC_LIBS
="$LIBS"
8915 # Some systems put ldexp and frexp in libm instead of libc; assume
8916 # they're both in the same place. jcf-dump needs them.
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8920 $as_echo_n "checking for library containing ldexp... " >&6; }
8921 if test "${ac_cv_search_ldexp+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8924 ac_func_search_save_LIBS
=$LIBS
8925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8928 /* Override any GCC internal prototype to avoid an error.
8929 Use char because int might match the return type of a GCC
8930 builtin and then its argument prototype would still apply. */
8943 for ac_lib
in '' m
; do
8944 if test -z "$ac_lib"; then
8945 ac_res
="none required"
8948 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8950 if ac_fn_c_try_link
"$LINENO"; then :
8951 ac_cv_search_ldexp
=$ac_res
8953 rm -f core conftest.err conftest.
$ac_objext \
8955 if test "${ac_cv_search_ldexp+set}" = set; then :
8959 if test "${ac_cv_search_ldexp+set}" = set; then :
8962 ac_cv_search_ldexp
=no
8965 LIBS
=$ac_func_search_save_LIBS
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8968 $as_echo "$ac_cv_search_ldexp" >&6; }
8969 ac_res
=$ac_cv_search_ldexp
8970 if test "$ac_res" != no
; then :
8971 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8979 # Use <inttypes.h> only if it exists,
8980 # doesn't clash with <sys/types.h>, and declares intmax_t.
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8982 $as_echo_n "checking for inttypes.h... " >&6; }
8983 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <sys/types.h>
8989 #include <inttypes.h>
8998 if ac_fn_c_try_compile
"$LINENO"; then :
8999 gcc_cv_header_inttypes_h
=yes
9001 gcc_cv_header_inttypes_h
=no
9003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9007 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9008 if test $gcc_cv_header_inttypes_h = yes; then
9010 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9016 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9017 sysconf strsignal getrusage nl_langinfo \
9018 gettimeofday mbstowcs wcswidth mmap setlocale \
9019 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9021 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9023 eval as_val
=\$
$as_ac_var
9024 if test "x$as_val" = x
""yes; then :
9025 cat >>confdefs.h
<<_ACEOF
9026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9033 if test x
$ac_cv_func_mbstowcs = xyes
; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9035 $as_echo_n "checking whether mbstowcs works... " >&6; }
9036 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9039 if test "$cross_compiling" = yes; then :
9040 gcc_cv_func_mbstowcs_works
=yes
9042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9051 if ac_fn_c_try_run
"$LINENO"; then :
9052 gcc_cv_func_mbstowcs_works
=yes
9054 gcc_cv_func_mbstowcs_works
=no
9056 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9057 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9062 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9063 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9065 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9070 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9071 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9075 cat >>confdefs.h
<<_ACEOF
9081 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9082 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9086 cat >>confdefs.h
<<_ACEOF
9087 #define caddr_t char *
9094 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9095 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9096 gcc_header_sys_mman_h
=yes
9098 gcc_header_sys_mman_h
=no
9101 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9102 if test "x$ac_cv_func_mmap" = x
""yes; then :
9108 if test "$gcc_header_sys_mman_h" != yes \
9109 ||
test "$gcc_func_mmap" != yes; then
9110 gcc_cv_func_mmap_file
=no
9111 gcc_cv_func_mmap_dev_zero
=no
9112 gcc_cv_func_mmap_anon
=no
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9115 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9116 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9119 # Add a system to this blacklist if
9120 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9121 # memory area containing the same data that you'd get if you applied
9122 # read() to the same fd. The only system known to have a problem here
9123 # is VMS, where text files have record structure.
9126 gcc_cv_func_mmap_file
=no
;;
9128 gcc_cv_func_mmap_file
=yes;;
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9132 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9134 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9135 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9138 # Add a system to this blacklist if it has mmap() but /dev/zero
9139 # does not exist, or if mmapping /dev/zero does not give anonymous
9140 # zeroed pages with both the following properties:
9141 # 1. If you map N consecutive pages in with one call, and then
9142 # unmap any subset of those pages, the pages that were not
9143 # explicitly unmapped remain accessible.
9144 # 2. If you map two adjacent blocks of memory and then unmap them
9145 # both at once, they must both go away.
9146 # Systems known to be in this category are Windows (all variants),
9149 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9150 gcc_cv_func_mmap_dev_zero
=no
;;
9152 gcc_cv_func_mmap_dev_zero
=yes;;
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9156 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9158 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9160 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9161 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 #include <sys/types.h>
9167 #include <sys/mman.h>
9170 #ifndef MAP_ANONYMOUS
9171 #define MAP_ANONYMOUS MAP_ANON
9177 int n = MAP_ANONYMOUS;
9182 if ac_fn_c_try_compile
"$LINENO"; then :
9183 gcc_cv_decl_map_anon
=yes
9185 gcc_cv_decl_map_anon
=no
9187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9190 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9192 if test $gcc_cv_decl_map_anon = no
; then
9193 gcc_cv_func_mmap_anon
=no
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9196 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9197 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9200 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9201 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9202 # doesn't give anonymous zeroed pages with the same properties listed
9203 # above for use of /dev/zero.
9204 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9206 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9207 gcc_cv_func_mmap_anon
=no
;;
9209 gcc_cv_func_mmap_anon
=yes;;
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9213 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9217 if test $gcc_cv_func_mmap_file = yes; then
9219 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9222 if test $gcc_cv_func_mmap_dev_zero = yes; then
9224 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9227 if test $gcc_cv_func_mmap_anon = yes; then
9229 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9236 # Under VMS, vfork works very differently than on Unix. The standard test
9237 # won't work, and it isn't easily adaptable. It makes more sense to
9239 ac_cv_func_vfork_works
=yes
9242 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9243 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9247 cat >>confdefs.h
<<_ACEOF
9253 for ac_header
in vfork.h
9255 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9256 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9257 cat >>confdefs.h
<<_ACEOF
9258 #define HAVE_VFORK_H 1
9264 for ac_func
in fork vfork
9266 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9267 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9268 eval as_val
=\$
$as_ac_var
9269 if test "x$as_val" = x
""yes; then :
9270 cat >>confdefs.h
<<_ACEOF
9271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9277 if test "x$ac_cv_func_fork" = xyes
; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9279 $as_echo_n "checking for working fork... " >&6; }
9280 if test "${ac_cv_func_fork_works+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9283 if test "$cross_compiling" = yes; then :
9284 ac_cv_func_fork_works
=cross
9286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 $ac_includes_default
9293 /* By Ruediger Kuhlmann. */
9300 if ac_fn_c_try_run
"$LINENO"; then :
9301 ac_cv_func_fork_works
=yes
9303 ac_cv_func_fork_works
=no
9305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9311 $as_echo "$ac_cv_func_fork_works" >&6; }
9314 ac_cv_func_fork_works
=$ac_cv_func_fork
9316 if test "x$ac_cv_func_fork_works" = xcross
; then
9318 *-*-amigaos* |
*-*-msdosdjgpp*)
9319 # Override, as these systems have only a dummy fork() stub
9320 ac_cv_func_fork_works
=no
9323 ac_cv_func_fork_works
=yes
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9327 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9329 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9330 if test "x$ac_cv_func_vfork" = xyes
; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9332 $as_echo_n "checking for working vfork... " >&6; }
9333 if test "${ac_cv_func_vfork_works+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9336 if test "$cross_compiling" = yes; then :
9337 ac_cv_func_vfork_works
=cross
9339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 /* Thanks to Paul Eggert for this test. */
9342 $ac_includes_default
9343 #include <sys/wait.h>
9347 /* On some sparc systems, changes by the child to local and incoming
9348 argument registers are propagated back to the parent. The compiler
9349 is told about this with #include <vfork.h>, but some compilers
9350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9351 static variable whose address is put into a register that is
9352 clobbered by the vfork. */
9355 sparc_address_test (int arg)
9357 sparc_address_test (arg) int arg;
9378 pid_t parent = getpid ();
9381 sparc_address_test (0);
9386 /* Here is another test for sparc vfork register problems. This
9387 test uses lots of local variables, at least as many local
9388 variables as main has allocated so far including compiler
9389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9391 reuse the register of parent for one of the local variables,
9392 since it will think that parent can't possibly be used any more
9393 in this routine. Assigning to the local variable will thus
9394 munge parent in the parent process. */
9396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9398 /* Convince the compiler that p..p7 are live; otherwise, it might
9399 use the same hardware register for all 8 local variables. */
9400 if (p != p1 || p != p2 || p != p3 || p != p4
9401 || p != p5 || p != p6 || p != p7)
9404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9405 from child file descriptors. If the child closes a descriptor
9406 before it execs or exits, this munges the parent's descriptor
9407 as well. Test for this by closing stdout in the child. */
9408 _exit(close(fileno(stdout)) != 0);
9413 while (wait(&status) != child)
9416 /* Was there some problem with vforking? */
9419 /* Did the child fail? (This shouldn't happen.) */
9422 /* Did the vfork/compiler bug occur? */
9423 || parent != getpid()
9425 /* Did the file descriptor bug occur? */
9426 || fstat(fileno(stdout), &st) != 0
9431 if ac_fn_c_try_run
"$LINENO"; then :
9432 ac_cv_func_vfork_works
=yes
9434 ac_cv_func_vfork_works
=no
9436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9442 $as_echo "$ac_cv_func_vfork_works" >&6; }
9445 if test "x$ac_cv_func_fork_works" = xcross
; then
9446 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9448 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9451 if test "x$ac_cv_func_vfork_works" = xyes
; then
9453 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9457 $as_echo "#define vfork fork" >>confdefs.h
9460 if test "x$ac_cv_func_fork_works" = xyes
; then
9462 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9467 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9468 # iconv() prototype.
9470 if test "X$prefix" = "XNONE"; then
9471 acl_final_prefix
="$ac_default_prefix"
9473 acl_final_prefix
="$prefix"
9475 if test "X$exec_prefix" = "XNONE"; then
9476 acl_final_exec_prefix
='${prefix}'
9478 acl_final_exec_prefix
="$exec_prefix"
9480 acl_save_prefix
="$prefix"
9481 prefix
="$acl_final_prefix"
9482 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9483 prefix
="$acl_save_prefix"
9486 # Check whether --with-gnu-ld was given.
9487 if test "${with_gnu_ld+set}" = set; then :
9488 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9493 # Prepare PATH_SEPARATOR.
9494 # The user is always right.
9495 if test "${PATH_SEPARATOR+set}" != set; then
9496 echo "#! /bin/sh" >conf$$.sh
9497 echo "exit 0" >>conf$$.sh
9499 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9507 if test "$GCC" = yes; then
9508 # Check if gcc -print-prog-name=ld gives a path.
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9510 $as_echo_n "checking for ld used by GCC... " >&6; }
9513 # gcc leaves a trailing carriage return which upsets mingw
9514 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9516 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9519 # Accept absolute paths.
9520 [\\/]* |
[A-Za-z
]:[\\/]*)
9521 re_direlt
='/[^/][^/]*/\.\./'
9522 # Canonicalize the path of ld
9523 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9524 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9525 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9527 test -z "$LD" && LD
="$ac_prog"
9530 # If it fails, then pretend we aren't using GCC.
9534 # If it is relative, then search for the first ld in PATH.
9538 elif test "$with_gnu_ld" = yes; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9540 $as_echo_n "checking for GNU ld... " >&6; }
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9543 $as_echo_n "checking for non-GNU ld... " >&6; }
9545 if test "${acl_cv_path_LD+set}" = set; then :
9546 $as_echo_n "(cached) " >&6
9548 if test -z "$LD"; then
9549 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9550 for ac_dir
in $PATH; do
9551 test -z "$ac_dir" && ac_dir
=.
9552 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9553 acl_cv_path_LD
="$ac_dir/$ac_prog"
9554 # Check to see if the program is GNU ld. I'd rather use --version,
9555 # but apparently some GNU ld's only accept -v.
9556 # Break only if it was the GNU/non-GNU ld that we prefer.
9557 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9558 test "$with_gnu_ld" != no
&& break
9560 test "$with_gnu_ld" != yes && break
9566 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9570 LD
="$acl_cv_path_LD"
9571 if test -n "$LD"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9573 $as_echo "$LD" >&6; }
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9578 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9581 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9584 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9585 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9586 acl_cv_prog_gnu_ld
=yes
9588 acl_cv_prog_gnu_ld
=no
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9592 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9593 with_gnu_ld
=$acl_cv_prog_gnu_ld
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9598 $as_echo_n "checking for shared library run path origin... " >&6; }
9599 if test "${acl_cv_rpath+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9603 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9604 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9611 $as_echo "$acl_cv_rpath" >&6; }
9613 libext
="$acl_cv_libext"
9614 shlibext
="$acl_cv_shlibext"
9615 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9616 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9617 hardcode_direct
="$acl_cv_hardcode_direct"
9618 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9619 # Check whether --enable-rpath was given.
9620 if test "${enable_rpath+set}" = set; then :
9621 enableval
=$enable_rpath; :
9635 acl_save_prefix
="$prefix"
9636 prefix
="$acl_final_prefix"
9637 acl_save_exec_prefix
="$exec_prefix"
9638 exec_prefix
="$acl_final_exec_prefix"
9640 eval additional_includedir
=\"$includedir\"
9641 eval additional_libdir
=\"$libdir\"
9643 exec_prefix
="$acl_save_exec_prefix"
9644 prefix
="$acl_save_prefix"
9647 # Check whether --with-libiconv-prefix was given.
9648 if test "${with_libiconv_prefix+set}" = set; then :
9649 withval
=$with_libiconv_prefix;
9650 if test "X$withval" = "Xno"; then
9653 if test "X$withval" = "X"; then
9655 acl_save_prefix
="$prefix"
9656 prefix
="$acl_final_prefix"
9657 acl_save_exec_prefix
="$exec_prefix"
9658 exec_prefix
="$acl_final_exec_prefix"
9660 eval additional_includedir
=\"$includedir\"
9661 eval additional_libdir
=\"$libdir\"
9663 exec_prefix
="$acl_save_exec_prefix"
9664 prefix
="$acl_save_prefix"
9667 additional_includedir
="$withval/include"
9668 additional_libdir
="$withval/lib"
9679 names_already_handled
=
9680 names_next_round
='iconv '
9681 while test -n "$names_next_round"; do
9682 names_this_round
="$names_next_round"
9684 for name
in $names_this_round; do
9686 for n
in $names_already_handled; do
9687 if test "$n" = "$name"; then
9692 if test -z "$already_handled"; then
9693 names_already_handled
="$names_already_handled $name"
9694 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9695 eval value
=\"\
$HAVE_LIB$uppername\"
9696 if test -n "$value"; then
9697 if test "$value" = yes; then
9698 eval value
=\"\
$LIB$uppername\"
9699 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9700 eval value
=\"\
$LTLIB$uppername\"
9701 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9710 if test $use_additional = yes; then
9711 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9712 found_dir
="$additional_libdir"
9713 found_so
="$additional_libdir/lib$name.$shlibext"
9714 if test -f "$additional_libdir/lib$name.la"; then
9715 found_la
="$additional_libdir/lib$name.la"
9718 if test -f "$additional_libdir/lib$name.$libext"; then
9719 found_dir
="$additional_libdir"
9720 found_a
="$additional_libdir/lib$name.$libext"
9721 if test -f "$additional_libdir/lib$name.la"; then
9722 found_la
="$additional_libdir/lib$name.la"
9727 if test "X$found_dir" = "X"; then
9728 for x
in $LDFLAGS $LTLIBICONV; do
9730 acl_save_prefix
="$prefix"
9731 prefix
="$acl_final_prefix"
9732 acl_save_exec_prefix
="$exec_prefix"
9733 exec_prefix
="$acl_final_exec_prefix"
9735 exec_prefix
="$acl_save_exec_prefix"
9736 prefix
="$acl_save_prefix"
9740 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9741 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9743 found_so
="$dir/lib$name.$shlibext"
9744 if test -f "$dir/lib$name.la"; then
9745 found_la
="$dir/lib$name.la"
9748 if test -f "$dir/lib$name.$libext"; then
9750 found_a
="$dir/lib$name.$libext"
9751 if test -f "$dir/lib$name.la"; then
9752 found_la
="$dir/lib$name.la"
9758 if test "X$found_dir" != "X"; then
9763 if test "X$found_dir" != "X"; then
9764 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9765 if test "X$found_so" != "X"; then
9766 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9767 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9770 for x
in $ltrpathdirs; do
9771 if test "X$x" = "X$found_dir"; then
9776 if test -z "$haveit"; then
9777 ltrpathdirs
="$ltrpathdirs $found_dir"
9779 if test "$hardcode_direct" = yes; then
9780 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9782 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9783 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9785 for x
in $rpathdirs; do
9786 if test "X$x" = "X$found_dir"; then
9791 if test -z "$haveit"; then
9792 rpathdirs
="$rpathdirs $found_dir"
9796 for x
in $LDFLAGS $LIBICONV; do
9798 acl_save_prefix
="$prefix"
9799 prefix
="$acl_final_prefix"
9800 acl_save_exec_prefix
="$exec_prefix"
9801 exec_prefix
="$acl_final_exec_prefix"
9803 exec_prefix
="$acl_save_exec_prefix"
9804 prefix
="$acl_save_prefix"
9806 if test "X$x" = "X-L$found_dir"; then
9811 if test -z "$haveit"; then
9812 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9814 if test "$hardcode_minus_L" != no
; then
9815 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9817 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9823 if test "X$found_a" != "X"; then
9824 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9826 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9829 additional_includedir
=
9830 case "$found_dir" in
9832 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9833 additional_includedir
="$basedir/include"
9836 if test "X$additional_includedir" != "X"; then
9837 if test "X$additional_includedir" != "X/usr/include"; then
9839 if test "X$additional_includedir" = "X/usr/local/include"; then
9840 if test -n "$GCC"; then
9842 linux
*) haveit
=yes;;
9846 if test -z "$haveit"; then
9847 for x
in $CPPFLAGS $INCICONV; do
9849 acl_save_prefix
="$prefix"
9850 prefix
="$acl_final_prefix"
9851 acl_save_exec_prefix
="$exec_prefix"
9852 exec_prefix
="$acl_final_exec_prefix"
9854 exec_prefix
="$acl_save_exec_prefix"
9855 prefix
="$acl_save_prefix"
9857 if test "X$x" = "X-I$additional_includedir"; then
9862 if test -z "$haveit"; then
9863 if test -d "$additional_includedir"; then
9864 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9870 if test -n "$found_la"; then
9871 save_libdir
="$libdir"
9873 */* |
*\\*) .
"$found_la" ;;
9874 *) .
"./$found_la" ;;
9876 libdir
="$save_libdir"
9877 for dep
in $dependency_libs; do
9880 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9881 if test "X$additional_libdir" != "X/usr/lib"; then
9883 if test "X$additional_libdir" = "X/usr/local/lib"; then
9884 if test -n "$GCC"; then
9886 linux
*) haveit
=yes;;
9890 if test -z "$haveit"; then
9892 for x
in $LDFLAGS $LIBICONV; do
9894 acl_save_prefix
="$prefix"
9895 prefix
="$acl_final_prefix"
9896 acl_save_exec_prefix
="$exec_prefix"
9897 exec_prefix
="$acl_final_exec_prefix"
9899 exec_prefix
="$acl_save_exec_prefix"
9900 prefix
="$acl_save_prefix"
9902 if test "X$x" = "X-L$additional_libdir"; then
9907 if test -z "$haveit"; then
9908 if test -d "$additional_libdir"; then
9909 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9913 for x
in $LDFLAGS $LTLIBICONV; do
9915 acl_save_prefix
="$prefix"
9916 prefix
="$acl_final_prefix"
9917 acl_save_exec_prefix
="$exec_prefix"
9918 exec_prefix
="$acl_final_exec_prefix"
9920 exec_prefix
="$acl_save_exec_prefix"
9921 prefix
="$acl_save_prefix"
9923 if test "X$x" = "X-L$additional_libdir"; then
9928 if test -z "$haveit"; then
9929 if test -d "$additional_libdir"; then
9930 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9937 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9938 if test "$enable_rpath" != no
; then
9940 for x
in $rpathdirs; do
9941 if test "X$x" = "X$dir"; then
9946 if test -z "$haveit"; then
9947 rpathdirs
="$rpathdirs $dir"
9950 for x
in $ltrpathdirs; do
9951 if test "X$x" = "X$dir"; then
9956 if test -z "$haveit"; then
9957 ltrpathdirs
="$ltrpathdirs $dir"
9962 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9965 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9968 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9969 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9975 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9976 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9982 if test "X$rpathdirs" != "X"; then
9983 if test -n "$hardcode_libdir_separator"; then
9985 for found_dir
in $rpathdirs; do
9986 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9988 acl_save_libdir
="$libdir"
9990 eval flag
=\"$hardcode_libdir_flag_spec\"
9991 libdir
="$acl_save_libdir"
9992 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9994 for found_dir
in $rpathdirs; do
9995 acl_save_libdir
="$libdir"
9997 eval flag
=\"$hardcode_libdir_flag_spec\"
9998 libdir
="$acl_save_libdir"
9999 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10003 if test "X$ltrpathdirs" != "X"; then
10004 for found_dir
in $ltrpathdirs; do
10005 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10010 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10012 ac_cpp
='$CXXCPP $CPPFLAGS'
10013 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10014 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10015 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10022 am_save_CPPFLAGS
="$CPPFLAGS"
10024 for element
in $INCICONV; do
10026 for x
in $CPPFLAGS; do
10028 acl_save_prefix
="$prefix"
10029 prefix
="$acl_final_prefix"
10030 acl_save_exec_prefix
="$exec_prefix"
10031 exec_prefix
="$acl_final_exec_prefix"
10033 exec_prefix
="$acl_save_exec_prefix"
10034 prefix
="$acl_save_prefix"
10036 if test "X$x" = "X$element"; then
10041 if test -z "$haveit"; then
10042 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10048 $as_echo_n "checking for iconv... " >&6; }
10049 if test "${am_cv_func_iconv+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
10053 am_cv_func_iconv
="no, consider installing GNU libiconv"
10055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 #include <stdlib.h>
10062 iconv_t cd = iconv_open("","");
10063 iconv(cd,NULL,NULL,NULL,NULL);
10069 if ac_fn_cxx_try_link
"$LINENO"; then :
10070 am_cv_func_iconv
=yes
10072 rm -f core conftest.err conftest.
$ac_objext \
10073 conftest
$ac_exeext conftest.
$ac_ext
10074 if test "$am_cv_func_iconv" != yes; then
10075 am_save_LIBS
="$LIBS"
10076 LIBS
="$LIBS $LIBICONV"
10077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 #include <stdlib.h>
10084 iconv_t cd = iconv_open("","");
10085 iconv(cd,NULL,NULL,NULL,NULL);
10091 if ac_fn_cxx_try_link
"$LINENO"; then :
10092 am_cv_lib_iconv
=yes
10093 am_cv_func_iconv
=yes
10095 rm -f core conftest.err conftest.
$ac_objext \
10096 conftest
$ac_exeext conftest.
$ac_ext
10097 LIBS
="$am_save_LIBS"
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10102 $as_echo "$am_cv_func_iconv" >&6; }
10103 if test "$am_cv_func_iconv" = yes; then
10105 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10108 if test "$am_cv_lib_iconv" = yes; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10110 $as_echo_n "checking how to link with libiconv... " >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10112 $as_echo "$LIBICONV" >&6; }
10114 CPPFLAGS
="$am_save_CPPFLAGS"
10121 if test "$am_cv_func_iconv" = yes; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10123 $as_echo_n "checking for iconv declaration... " >&6; }
10124 if test "${am_cv_proto_iconv+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10131 #include <stdlib.h>
10137 #if defined(__STDC__) || defined(__cplusplus)
10138 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10151 if ac_fn_cxx_try_compile
"$LINENO"; then :
10152 am_cv_proto_iconv_arg1
=""
10154 am_cv_proto_iconv_arg1
="const"
10156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10157 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);"
10160 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10162 }$am_cv_proto_iconv" >&5
10164 }$am_cv_proto_iconv" >&6; }
10166 cat >>confdefs.h
<<_ACEOF
10167 #define ICONV_CONST $am_cv_proto_iconv_arg1
10173 ac_cpp
='$CPP $CPPFLAGS'
10174 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10184 am_save_CPPFLAGS
="$CPPFLAGS"
10186 for element
in $INCICONV; do
10188 for x
in $CPPFLAGS; do
10190 acl_save_prefix
="$prefix"
10191 prefix
="$acl_final_prefix"
10192 acl_save_exec_prefix
="$exec_prefix"
10193 exec_prefix
="$acl_final_exec_prefix"
10195 exec_prefix
="$acl_save_exec_prefix"
10196 prefix
="$acl_save_prefix"
10198 if test "X$x" = "X$element"; then
10203 if test -z "$haveit"; then
10204 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10210 $as_echo_n "checking for iconv... " >&6; }
10211 if test "${am_cv_func_iconv+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10215 am_cv_func_iconv
="no, consider installing GNU libiconv"
10217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 #include <stdlib.h>
10224 iconv_t cd = iconv_open("","");
10225 iconv(cd,NULL,NULL,NULL,NULL);
10231 if ac_fn_c_try_link
"$LINENO"; then :
10232 am_cv_func_iconv
=yes
10234 rm -f core conftest.err conftest.
$ac_objext \
10235 conftest
$ac_exeext conftest.
$ac_ext
10236 if test "$am_cv_func_iconv" != yes; then
10237 am_save_LIBS
="$LIBS"
10238 LIBS
="$LIBS $LIBICONV"
10239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 #include <stdlib.h>
10246 iconv_t cd = iconv_open("","");
10247 iconv(cd,NULL,NULL,NULL,NULL);
10253 if ac_fn_c_try_link
"$LINENO"; then :
10254 am_cv_lib_iconv
=yes
10255 am_cv_func_iconv
=yes
10257 rm -f core conftest.err conftest.
$ac_objext \
10258 conftest
$ac_exeext conftest.
$ac_ext
10259 LIBS
="$am_save_LIBS"
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10264 $as_echo "$am_cv_func_iconv" >&6; }
10265 if test "$am_cv_func_iconv" = yes; then
10267 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10270 if test "$am_cv_lib_iconv" = yes; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10272 $as_echo_n "checking how to link with libiconv... " >&6; }
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10274 $as_echo "$LIBICONV" >&6; }
10276 CPPFLAGS
="$am_save_CPPFLAGS"
10283 if test "$am_cv_func_iconv" = yes; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10285 $as_echo_n "checking for iconv declaration... " >&6; }
10286 if test "${am_cv_proto_iconv+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 #include <stdlib.h>
10299 #if defined(__STDC__) || defined(__cplusplus)
10300 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10313 if ac_fn_c_try_compile
"$LINENO"; then :
10314 am_cv_proto_iconv_arg1
=""
10316 am_cv_proto_iconv_arg1
="const"
10318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10319 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);"
10322 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10324 }$am_cv_proto_iconv" >&5
10326 }$am_cv_proto_iconv" >&6; }
10328 cat >>confdefs.h
<<_ACEOF
10329 #define ICONV_CONST $am_cv_proto_iconv_arg1
10336 # Until we have in-tree GNU iconv:
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10342 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10343 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10348 #include <locale.h>
10357 if ac_fn_c_try_link
"$LINENO"; then :
10358 am_cv_val_LC_MESSAGES
=yes
10360 am_cv_val_LC_MESSAGES
=no
10362 rm -f core conftest.err conftest.
$ac_objext \
10363 conftest
$ac_exeext conftest.
$ac_ext
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10366 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10367 if test $am_cv_val_LC_MESSAGES = yes; then
10369 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10376 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10377 if test "${am_cv_langinfo_codeset+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 #include <langinfo.h>
10386 char* cs = nl_langinfo(CODESET);
10391 if ac_fn_c_try_link
"$LINENO"; then :
10392 am_cv_langinfo_codeset
=yes
10394 am_cv_langinfo_codeset
=no
10396 rm -f core conftest.err conftest.
$ac_objext \
10397 conftest
$ac_exeext conftest.
$ac_ext
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10401 $as_echo "$am_cv_langinfo_codeset" >&6; }
10402 if test $am_cv_langinfo_codeset = yes; then
10404 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10409 # We will need to find libiberty.h and ansidecl.h
10410 saved_CFLAGS
="$CFLAGS"
10411 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10412 saved_CXXFLAGS
="$CXXFLAGS"
10413 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10414 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10415 strsignal strstr strverscmp \
10416 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10417 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
10419 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10421 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10422 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10423 $as_echo_n "(cached) " >&6
10425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10428 #define $ac_tr_decl 1
10430 #include "ansidecl.h"
10431 #include "system.h"
10437 char *(*pfn) = (char *(*)) $ac_func ;
10443 if ac_fn_c_try_compile
"$LINENO"; then :
10444 eval "gcc_cv_have_decl_$ac_func=yes"
10446 eval "gcc_cv_have_decl_$ac_func=no"
10448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10453 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10454 #define $ac_tr_decl 1
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10460 #define $ac_tr_decl 0
10468 for ac_func
in getrlimit setrlimit getrusage
10470 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10472 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10473 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10474 $as_echo_n "(cached) " >&6
10476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10479 #define $ac_tr_decl 1
10481 #include "ansidecl.h"
10482 #include "system.h"
10483 #ifdef HAVE_SYS_RESOURCE_H
10484 #include <sys/resource.h>
10492 char *(*pfn) = (char *(*)) $ac_func ;
10498 if ac_fn_c_try_compile
"$LINENO"; then :
10499 eval "gcc_cv_have_decl_$ac_func=yes"
10501 eval "gcc_cv_have_decl_$ac_func=no"
10503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10506 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10509 #define $ac_tr_decl 1
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10515 #define $ac_tr_decl 0
10523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 #include "ansidecl.h"
10527 #include "system.h"
10528 #ifdef HAVE_SYS_RESOURCE_H
10529 #include <sys/resource.h>
10540 if ac_fn_c_try_compile
"$LINENO"; then :
10544 $as_echo "#define rlim_t long" >>confdefs.h
10547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10549 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10550 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10551 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10552 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10553 for ac_func
in ldgetname
10555 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10557 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10558 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10564 #define $ac_tr_decl 1
10566 #include "ansidecl.h"
10567 #include "system.h"
10568 #ifdef HAVE_LDFCN_H
10579 char *(*pfn) = (char *(*)) $ac_func ;
10585 if ac_fn_c_try_compile
"$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10588 eval "gcc_cv_have_decl_$ac_func=no"
10590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10596 #define $ac_tr_decl 1
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10602 #define $ac_tr_decl 0
10610 for ac_func
in times
10612 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10615 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10616 $as_echo_n "(cached) " >&6
10618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10621 #define $ac_tr_decl 1
10623 #include "ansidecl.h"
10624 #include "system.h"
10625 #ifdef HAVE_SYS_TIMES_H
10626 #include <sys/times.h>
10634 char *(*pfn) = (char *(*)) $ac_func ;
10640 if ac_fn_c_try_compile
"$LINENO"; then :
10641 eval "gcc_cv_have_decl_$ac_func=yes"
10643 eval "gcc_cv_have_decl_$ac_func=no"
10645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10648 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10651 #define $ac_tr_decl 1
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10657 #define $ac_tr_decl 0
10665 for ac_func
in sigaltstack
10667 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10669 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10670 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10671 $as_echo_n "(cached) " >&6
10673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 #define $ac_tr_decl 1
10678 #include "ansidecl.h"
10679 #include "system.h"
10680 #include <signal.h>
10687 char *(*pfn) = (char *(*)) $ac_func ;
10693 if ac_fn_c_try_compile
"$LINENO"; then :
10694 eval "gcc_cv_have_decl_$ac_func=yes"
10696 eval "gcc_cv_have_decl_$ac_func=no"
10698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10701 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10703 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10704 #define $ac_tr_decl 1
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10710 #define $ac_tr_decl 0
10718 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10720 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10722 ac_cpp
='$CXXCPP $CPPFLAGS'
10723 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10727 for ac_func
in madvise
10729 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10731 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10732 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10733 $as_echo_n "(cached) " >&6
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #define $ac_tr_decl 1
10740 #include "ansidecl.h"
10741 #include "system.h"
10748 char *(*pfn) = (char *(*)) $ac_func ;
10754 if ac_fn_cxx_try_compile
"$LINENO"; then :
10755 eval "gcc_cv_have_decl_$ac_func=yes"
10757 eval "gcc_cv_have_decl_$ac_func=no"
10759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10762 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10765 #define $ac_tr_decl 1
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10771 #define $ac_tr_decl 0
10779 ac_cpp
='$CPP $CPPFLAGS'
10780 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10781 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10782 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10785 for ac_func
in madvise
10787 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10789 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10790 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10791 $as_echo_n "(cached) " >&6
10793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 #define $ac_tr_decl 1
10798 #include "ansidecl.h"
10799 #include "system.h"
10806 char *(*pfn) = (char *(*)) $ac_func ;
10812 if ac_fn_c_try_compile
"$LINENO"; then :
10813 eval "gcc_cv_have_decl_$ac_func=yes"
10815 eval "gcc_cv_have_decl_$ac_func=no"
10817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10820 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10823 #define $ac_tr_decl 1
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10829 #define $ac_tr_decl 0
10839 # More time-related stuff.
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10841 $as_echo_n "checking for struct tms... " >&6; }
10842 if test "${ac_cv_struct_tms+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10849 #include "ansidecl.h"
10850 #include "system.h"
10851 #ifdef HAVE_SYS_TIMES_H
10852 #include <sys/times.h>
10863 if ac_fn_c_try_compile
"$LINENO"; then :
10864 ac_cv_struct_tms
=yes
10866 ac_cv_struct_tms
=no
10868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10871 $as_echo "$ac_cv_struct_tms" >&6; }
10872 if test $ac_cv_struct_tms = yes; then
10874 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10878 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10879 # revisit after autoconf 2.50.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10881 $as_echo_n "checking for clock_t... " >&6; }
10882 if test "${gcc_cv_type_clock_t+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10889 #include "ansidecl.h"
10890 #include "system.h"
10900 if ac_fn_c_try_compile
"$LINENO"; then :
10901 gcc_cv_type_clock_t
=yes
10903 gcc_cv_type_clock_t
=no
10905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10908 $as_echo "$gcc_cv_type_clock_t" >&6; }
10909 if test $gcc_cv_type_clock_t = yes; then
10911 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10915 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10916 CFLAGS
="$saved_CFLAGS"
10917 CXXFLAGS
="$saved_CXXFLAGS"
10919 # Check whether --enable-initfini-array was given.
10920 if test "${enable_initfini_array+set}" = set; then :
10921 enableval
=$enable_initfini_array;
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10925 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10926 if test "${gcc_cv_initfini_array+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10929 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10930 if test "$cross_compiling" = yes; then :
10931 gcc_cv_initfini_array
=no
10933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10937 #error Not an ELF OS
10940 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10941 if it can be used. */
10943 int main (void) { return x; }
10944 int foo (void) { x = 0; }
10945 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10947 extern void abort ();
10957 void (*const init_array1005) ()
10958 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10966 void (*const fini_array1005) ()
10967 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10977 void (*const ctors1007) ()
10978 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10987 void (*const dtors1007) ()
10988 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10998 void (*const init_array65530) ()
10999 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11004 if (count != 65530)
11008 void (*const fini_array65530) ()
11009 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11015 if (count != 65530)
11019 void (*const ctors65535) ()
11020 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11025 if (count != 65535)
11029 void (*const dtors65535) ()
11030 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11036 if (count != 65535)
11043 if ac_fn_c_try_run
"$LINENO"; then :
11044 gcc_cv_initfini_array
=yes
11046 gcc_cv_initfini_array
=no
11048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11054 $as_echo_n "checking cross compile... guessing... " >&6; }
11055 gcc_cv_initfini_array
=no
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11059 $as_echo "$gcc_cv_initfini_array" >&6; }
11060 enable_initfini_array
=$gcc_cv_initfini_array
11064 if test $enable_initfini_array = yes; then
11066 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11070 # mkdir takes a single argument on some systems.
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11072 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11073 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11079 #include <sys/types.h>
11080 #ifdef HAVE_SYS_STAT_H
11081 # include <sys/stat.h>
11083 #ifdef HAVE_UNISTD_H
11084 # include <unistd.h>
11086 #ifdef HAVE_DIRECT_H
11087 # include <direct.h>
11097 if ac_fn_c_try_compile
"$LINENO"; then :
11098 gcc_cv_mkdir_takes_one_arg
=no
11100 gcc_cv_mkdir_takes_one_arg
=yes
11102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11105 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11106 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11108 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11119 # With Setjmp/Longjmp based exception handling.
11120 # Check whether --enable-sjlj-exceptions was given.
11121 if test "${enable_sjlj_exceptions+set}" = set; then :
11122 enableval
=$enable_sjlj_exceptions; case $target in
11124 if test $enableval != yes; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11126 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11131 force_sjlj_exceptions
=yes
11135 force_sjlj_exceptions
=yes
11139 force_sjlj_exceptions
=no
11144 if test $force_sjlj_exceptions = yes; then
11145 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11147 cat >>confdefs.h
<<_ACEOF
11148 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11153 # --------------------------------------------------------
11154 # Build, host, and target specific configuration fragments
11155 # --------------------------------------------------------
11157 # Collect build-machine-specific information.
11158 .
${srcdir}/config.build
11160 # Collect host-machine-specific information.
11161 .
${srcdir}/config.
host
11165 # Collect target-machine-specific information.
11166 .
${srcdir}/config.gcc
11168 extra_objs
="${host_extra_objs} ${extra_objs}"
11169 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11171 # Default the target-machine variables that were not explicitly set.
11172 if test x
"$tm_file" = x
11173 then tm_file
=$cpu_type/$cpu_type.h
; fi
11175 if test x
"$extra_headers" = x
11176 then extra_headers
=; fi
11178 if test x
$md_file = x
11179 then md_file
=$cpu_type/$cpu_type.md
; fi
11181 if test x
$out_file = x
11182 then out_file
=$cpu_type/$cpu_type.c
; fi
11184 if test x
"$tmake_file" = x
11185 then tmake_file
=$cpu_type/t-
$cpu_type
11188 if test x
"$dwarf2" = xyes
11189 then tm_file
="$tm_file tm-dwarf2.h"
11192 # Say what files are being used for the output code and MD file.
11193 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11194 echo "Using \`$srcdir/config/$md_file' as machine description file."
11196 # If any of the xm_file variables contain nonexistent files, warn
11197 # about them and drop them.
11200 for x
in $build_xm_file; do
11201 if test -f $srcdir/config
/$x
11203 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11204 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11207 build_xm_file
="$bx"
11210 for x
in $host_xm_file; do
11211 if test -f $srcdir/config
/$x
11213 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11214 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11220 for x
in $xm_file; do
11221 if test -f $srcdir/config
/$x
11223 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11224 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11230 for f
in $tm_file; do
11233 if test $count = ax
; then
11234 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11236 echo "Using the following target machine macro files:"
11237 for f
in $tm_file; do
11238 echo " $srcdir/config/$f"
11242 if test x
$need_64bit_hwint = xyes
; then
11244 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11248 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11250 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11255 for f
in $host_xm_file; do
11258 if test $count = a
; then
11260 elif test $count = ax
; then
11261 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11263 echo "Using the following host machine macro files:"
11264 for f
in $host_xm_file; do
11265 echo " $srcdir/config/$f"
11268 echo "Using ${out_host_hook_obj} for host machine hooks."
11270 if test "$host_xm_file" != "$build_xm_file"; then
11272 for f
in $build_xm_file; do
11275 if test $count = a
; then
11277 elif test $count = ax
; then
11278 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11280 echo "Using the following build machine macro files:"
11281 for f
in $build_xm_file; do
11282 echo " $srcdir/config/$f"
11287 if test -n "$configured_native_system_header_dir"; then
11288 native_system_header_dir
=$configured_native_system_header_dir
11290 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11294 powerpc
*-*-darwin*)
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11296 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11297 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11303 #include <sys/cdefs.h>
11304 #include <sys/signal.h>
11305 #include <ucontext.h>
11306 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11309 if ac_fn_c_try_compile
"$LINENO"; then :
11310 gcc_cv_mcontext_underscores
=no
11312 gcc_cv_mcontext_underscores
=yes
11314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11317 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11318 if test $gcc_cv_mcontext_underscores = yes; then
11320 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11330 # Check if a valid thread package
11331 case ${enable_threads} in
11334 target_thread_file
='single'
11338 target_thread_file
='single'
11340 aix | dce | lynx | mipssde | posix | rtems | \
11341 single | tpf | vxworks | win32
)
11342 target_thread_file
=${enable_threads}
11345 echo "${enable_threads} is an unknown thread package" 1>&2
11350 if test x
${thread_file} = x
; then
11351 # No thread file set by target-specific clauses in config.gcc,
11352 # so use file chosen by default logic above
11353 thread_file
=${target_thread_file}
11356 # Make gthr-default.h if we have a thread file.
11358 if test $thread_file != single
; then
11359 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11360 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11361 rm -f gthr-default.h-t
11363 mv -f gthr-default.h-t gthr-default.h
11365 gthread_flags
=-DHAVE_GTHR_DEFAULT
11374 if test x
$enable___cxa_atexit = xyes || \
11375 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11376 if test x
$host = x
$target; then
11378 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11379 # keyed to flag_use_cxa_atexit
11384 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11385 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11388 echo "__cxa_atexit can't be enabled on this target"
11394 # We can't check for __cxa_atexit when building a cross, so assume
11398 if test x
$use_cxa_atexit = xyes
; then
11400 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11405 # Look for a file containing extra machine modes.
11406 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11407 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11410 cat >>confdefs.h
<<_ACEOF
11411 #define EXTRA_MODES_FILE "config/$extra_modes"
11416 # Convert extra_options into a form suitable for Makefile use.
11419 for f
in $extra_options; do
11420 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11421 all_opt_files
="$all_opt_files $srcdir/config/$f"
11425 # auto-host.h is the file containing items generated by autoconf and is
11426 # the first file included by config.h.
11427 # If host=build, it is correct to have bconfig include auto-host.h
11428 # as well. If host!=build, we are in error and need to do more
11429 # work to find out the build config parameters.
11430 if test x
$host = x
$build
11432 build_auto
=auto-host.h
11434 # We create a subdir, then run autoconf in the subdir.
11435 # To prevent recursion we set host and build for the new
11436 # invocation of configure to the build for this invocation
11443 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11444 *) realsrcdir
=..
/${srcdir};;
11446 saved_CFLAGS
="${CFLAGS}"
11447 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11448 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11449 ${realsrcdir}/configure \
11450 --enable-languages=${enable_languages-all} \
11451 --target=$target_alias --host=$build_alias --build=$build_alias
11452 CFLAGS
="${saved_CFLAGS}"
11454 # We just finished tests for the build machine, so rename
11455 # the file auto-build.h in the gcc directory.
11456 mv auto-host.h ..
/auto-build.h
11459 build_auto
=auto-build.h
11463 tm_file
="${tm_file} defaults.h"
11464 tm_p_file
="${tm_p_file} tm-preds.h"
11465 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11466 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11467 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11468 # put this back in temporarily.
11469 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11475 # Compile in configure arguments.
11476 if test -f configargs.h
; then
11477 # Being re-configured.
11478 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11479 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11481 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11484 # Double all backslashes and backslash all quotes to turn
11485 # gcc_config_arguments into a C string.
11486 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11487 $gcc_config_arguments
11489 gcc_config_arguments_str
=`cat conftest.out`
11492 cat > configargs.h
<<EOF
11493 /* Generated automatically. */
11494 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11495 static const char thread_model[] = "$thread_file";
11497 static const struct {
11498 const char *name, *value;
11499 } configure_default_options[] = $configure_default_options;
11502 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11503 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11504 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11505 if test -f $srcdir/REVISION
; then
11506 gcc_REVISION
=`cat $srcdir/REVISION`
11510 cat > plugin-version.h
<<EOF
11511 #include "configargs.h"
11513 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11514 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11515 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11516 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11518 static char basever[] = "$gcc_BASEVER";
11519 static char datestamp[] = "$gcc_DATESTAMP";
11520 static char devphase[] = "$gcc_DEVPHASE";
11521 static char revision[] = "$gcc_REVISION";
11523 /* FIXME plugins: We should make the version information more precise.
11524 One way to do is to add a checksum. */
11526 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11527 devphase, revision,
11528 configuration_arguments};
11531 # Internationalization
11532 # If we haven't got the data from the intl directory,
11533 # assume NLS is disabled.
11542 if test -f ..
/intl
/config.intl
; then
11543 . ..
/intl
/config.intl
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11546 $as_echo_n "checking whether NLS is requested... " >&6; }
11547 if test x
"$USE_NLS" != xyes
; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552 $as_echo "yes" >&6; }
11554 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11558 $as_echo_n "checking for catalogs to be installed... " >&6; }
11559 # Look for .po and .gmo files in the source directory.
11562 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11563 # If there aren't any .gmo files the shell will give us the
11564 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11566 case "$cat" in *\
**)
11569 # The quadruple backslash is collapsed to a double backslash
11570 # by the backticks, then collapsed again by the double quotes,
11571 # leaving us with one backslash in the sed expression (right
11572 # before the dot that mustn't act as a wildcard).
11573 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11574 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11575 # The user is allowed to set LINGUAS to a list of languages to
11576 # install catalogs for. If it's empty that means "all of them."
11577 if test "x$LINGUAS" = x
; then
11578 CATALOGS
="$CATALOGS $cat"
11579 XLINGUAS
="$XLINGUAS $lang"
11581 case "$LINGUAS" in *$lang*)
11582 CATALOGS
="$CATALOGS $cat"
11583 XLINGUAS
="$XLINGUAS $lang"
11588 LINGUAS
="$XLINGUAS"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11590 $as_echo "$LINGUAS" >&6; }
11603 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11604 # -liconv on the link line twice.
11605 case "$LIBINTL" in *$LIBICONV*)
11609 # Check whether --enable-secureplt was given.
11610 if test "${enable_secureplt+set}" = set; then :
11611 enableval
=$enable_secureplt;
11615 # Check whether --enable-leading-mingw64-underscores was given.
11616 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11617 enableval
=$enable_leading_mingw64_underscores;
11620 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11622 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11626 # Check whether --enable-cld was given.
11627 if test "${enable_cld+set}" = set; then :
11628 enableval
=$enable_cld;
11634 # Check whether --enable-frame-pointer was given.
11635 if test "${enable_frame_pointer+set}" = set; then :
11636 enableval
=$enable_frame_pointer;
11640 linux
* | darwin
[8912]*)
11641 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11643 enable_frame_pointer
=no
11646 enable_frame_pointer
=yes
11653 # Windows32 Registry support for specifying GCC installation paths.
11654 # Check whether --enable-win32-registry was given.
11655 if test "${enable_win32_registry+set}" = set; then :
11656 enableval
=$enable_win32_registry;
11661 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11662 if test "x$enable_win32_registry" != xno
; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11664 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11665 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11668 ac_func_search_save_LIBS
=$LIBS
11669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11678 char RegOpenKeyExA ();
11682 return RegOpenKeyExA ();
11687 for ac_lib
in '' advapi32
; do
11688 if test -z "$ac_lib"; then
11689 ac_res
="none required"
11692 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11694 if ac_fn_c_try_link
"$LINENO"; then :
11695 ac_cv_search_RegOpenKeyExA
=$ac_res
11697 rm -f core conftest.err conftest.
$ac_objext \
11699 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11703 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11706 ac_cv_search_RegOpenKeyExA
=no
11708 rm conftest.
$ac_ext
11709 LIBS
=$ac_func_search_save_LIBS
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11712 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11713 ac_res
=$ac_cv_search_RegOpenKeyExA
11714 if test "$ac_res" != no
; then :
11715 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11718 enable_win32_registry
=no
11723 if test "x$enable_win32_registry" != xno
; then
11725 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11728 if test "x$enable_win32_registry" != xyes \
11729 && test "x$enable_win32_registry" != x
; then
11731 cat >>confdefs.h
<<_ACEOF
11732 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11740 # Get an absolute path to the GCC top-level source directory
11741 holddir
=`${PWDCMD-pwd}`
11743 topdir
=`${PWDCMD-pwd}`
11746 # Conditionalize the makefile for this host machine.
11748 for f
in ${host_xmake_file}
11750 if test -f ${srcdir}/config
/$f
11752 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11756 # Conditionalize the makefile for this target machine.
11758 for f
in ${tmake_file}
11760 if test -f ${srcdir}/config
/$f
11762 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11765 tmake_file
="${tmake_file_}"
11767 out_object_file
=`basename $out_file .c`.o
11768 common_out_object_file
=`basename $common_out_file .c`.o
11770 tm_file_list
="options.h"
11771 tm_include_list
="options.h insn-constants.h"
11772 for f
in $tm_file; do
11775 f
=`echo $f | sed 's/^..//'`
11776 tm_file_list
="${tm_file_list} $f"
11777 tm_include_list
="${tm_include_list} $f"
11780 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11781 tm_include_list
="${tm_include_list} $f"
11784 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11785 tm_include_list
="${tm_include_list} config/$f"
11792 for f
in $tm_p_file; do
11795 tm_p_file_list
="${tm_p_file_list} $f"
11796 tm_p_include_list
="${tm_p_include_list} $f"
11799 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11800 tm_p_include_list
="${tm_p_include_list} config/$f"
11806 for f
in $xm_file; do
11809 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11810 xm_include_list
="${xm_include_list} $f"
11813 xm_file_list
="${xm_file_list} $f"
11814 xm_include_list
="${xm_include_list} $f"
11817 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11818 xm_include_list
="${xm_include_list} config/$f"
11824 host_xm_include_list
=
11825 for f
in $host_xm_file; do
11828 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11829 host_xm_include_list
="${host_xm_include_list} $f"
11832 host_xm_file_list
="${host_xm_file_list} $f"
11833 host_xm_include_list
="${host_xm_include_list} $f"
11836 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11837 host_xm_include_list
="${host_xm_include_list} config/$f"
11842 build_xm_file_list
=
11843 for f
in $build_xm_file; do
11846 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11847 build_xm_include_list
="${build_xm_include_list} $f"
11849 auto-build.h | auto-host.h
)
11850 build_xm_file_list
="${build_xm_file_list} $f"
11851 build_xm_include_list
="${build_xm_include_list} $f"
11854 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11855 build_xm_include_list
="${build_xm_include_list} config/$f"
11860 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11861 # cross-compiler which does not use the native headers and libraries.
11862 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11865 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11867 if test "x$with_build_sysroot" != x
; then
11868 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11870 # This value is used, even on a native system, because
11871 # CROSS_SYSTEM_HEADER_DIR is just
11872 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11873 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11876 if test x
$host != x
$target
11878 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11880 SYSTEM_HEADER_DIR
=$build_system_header_dir
11881 case "$host","$target" in
11882 # Darwin crosses can use the host system's libraries and headers,
11883 # because of the fat library support. Of course, it must be the
11884 # same version of Darwin on both sides. Allow the user to
11885 # just say --target=foo-darwin without a version number to mean
11886 # "the version on this system".
11887 *-*-darwin*,*-*-darwin*)
11888 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11889 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11890 if test $hostos = $targetos -o $targetos = darwin
; then
11892 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11897 i?
86-*-*,x86_64-
*-* \
11898 | powerpc
*-*-*,powerpc64
*-*-*)
11899 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11904 if test "x$with_headers" = x
; then
11911 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11912 SYSTEM_HEADER_DIR
=$build_system_header_dir
11915 # If this is a cross-compiler that does not
11916 # have its own set of headers then define
11919 # If this is using newlib, without having the headers available now,
11920 # then define inhibit_libc in LIBGCC2_CFLAGS.
11921 # This prevents libgcc2 from containing any code which requires libc
11923 : ${inhibit_libc=false}
11924 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11925 test x
$with_newlib = xyes
; } &&
11926 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11931 # When building gcc with a cross-compiler, we need to adjust things so
11932 # that the generator programs are still built with the native compiler.
11933 # Also, we cannot run fixincludes.
11935 # These are the normal (build=host) settings:
11936 CC_FOR_BUILD
='$(CC)'
11937 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11938 BUILD_LDFLAGS
='$(LDFLAGS)'
11939 STMP_FIXINC
=stmp-fixinc
11941 # And these apply if build != host, or we are generating coverage data
11942 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11944 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11945 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11948 # Expand extra_headers to include complete path.
11949 # This substitutes for lots of t-* files.
11950 extra_headers_list
=
11951 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11952 for file in ${extra_headers} ; do
11953 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11956 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11957 if test x
"$use_gcc_tgmath" = xyes
11958 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11961 # Define collect2 in Makefile.
11962 case $host_can_use_collect2 in
11964 *) collect2
='collect2$(exeext)' ;;
11968 # Add a definition of USE_COLLECT2 if system wants one.
11969 case $use_collect2 in
11970 no
) use_collect2
= ;;
11973 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11974 xm_defines
="${xm_defines} USE_COLLECT2"
11975 case $host_can_use_collect2 in
11977 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11984 cat >>confdefs.h
<<_ACEOF
11985 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11989 # ---------------------------
11990 # Assembler & linker features
11991 # ---------------------------
11993 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11994 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11995 # However when ld-new is first executed from the build tree, libtool will
11996 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11997 # to the build tree. While doing this we need to use the previous-stage
11998 # linker, or we have an infinite loop. The presence of a shell script as
11999 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12000 # the gcc/collect-ld script. So we need to know how libtool works, or
12001 # exec-tool will fail.
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12007 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12012 macro_version
='2.2.7a'
12013 macro_revision
='1.3134'
12027 ltmain
="$ac_aux_dir/ltmain.sh"
12029 # Backslashify metacharacters that are still active within
12030 # double-quoted strings.
12031 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12033 # Same as above, but do not quote variable references.
12034 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12036 # Sed substitution to delay expansion of an escaped shell variable in a
12037 # double_quote_subst'ed string.
12038 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12040 # Sed substitution to delay expansion of an escaped single quote.
12041 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12043 # Sed substitution to avoid accidental globbing in evaled expressions
12044 no_glob_subst
='s/\*/\\\*/g'
12046 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12047 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12048 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12051 $as_echo_n "checking how to print strings... " >&6; }
12052 # Test print first, because it will be a builtin if present.
12053 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12054 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12056 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12059 # Use this function as a fallback that always works.
12060 func_fallback_echo ()
12062 eval 'cat <<_LTECHO_EOF
12066 ECHO='func_fallback_echo
'
12069 # func_echo_all arg...
12070 # Invoke $ECHO with all args, space-separated.
12077 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12078 $as_echo "printf" >&6; } ;;
12079 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12080 $as_echo "print -r" >&6; } ;;
12081 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12082 $as_echo "cat" >&6; } ;;
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12099 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12100 if test "${ac_cv_path_SED+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12103 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12104 for ac_i in 1 2 3 4 5 6 7; do
12105 ac_script="$ac_script$as_nl$ac_script"
12107 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12108 { ac_script=; unset ac_script;}
12109 if test -z "$SED"; then
12110 ac_path_SED_found=false
12111 # Loop through the user's path and
test for each of PROGNAME-LIST
12112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12113 for as_dir
in $PATH
12116 test -z "$as_dir" && as_dir
=.
12117 for ac_prog
in sed gsed
; do
12118 for ac_exec_ext
in '' $ac_executable_extensions; do
12119 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12120 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12121 # Check for GNU ac_path_SED and select it if it is found.
12122 # Check for GNU $ac_path_SED
12123 case `"$ac_path_SED" --version 2>&1` in
12125 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12128 $as_echo_n 0123456789 >"conftest.in"
12131 cat "conftest.in" "conftest.in" >"conftest.tmp"
12132 mv "conftest.tmp" "conftest.in"
12133 cp "conftest.in" "conftest.nl"
12134 $as_echo '' >> "conftest.nl"
12135 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12136 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12137 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12138 if test $ac_count -gt ${ac_path_SED_max-0}; then
12139 # Best one so far, save it but keep looking for a better one
12140 ac_cv_path_SED
="$ac_path_SED"
12141 ac_path_SED_max
=$ac_count
12143 # 10*(2^10) chars as input seems more than enough
12144 test $ac_count -gt 10 && break
12146 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12149 $ac_path_SED_found && break 3
12154 if test -z "$ac_cv_path_SED"; then
12155 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12158 ac_cv_path_SED
=$SED
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12163 $as_echo "$ac_cv_path_SED" >&6; }
12164 SED
="$ac_cv_path_SED"
12167 test -z "$SED" && SED
=sed
12168 Xsed
="$SED -e 1s/^X//"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12181 $as_echo_n "checking for fgrep... " >&6; }
12182 if test "${ac_cv_path_FGREP+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12185 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12186 then ac_cv_path_FGREP
="$GREP -F"
12188 if test -z "$FGREP"; then
12189 ac_path_FGREP_found
=false
12190 # Loop through the user's path and test for each of PROGNAME-LIST
12191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12192 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12195 test -z "$as_dir" && as_dir
=.
12196 for ac_prog
in fgrep
; do
12197 for ac_exec_ext
in '' $ac_executable_extensions; do
12198 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12199 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12200 # Check for GNU ac_path_FGREP and select it if it is found.
12201 # Check for GNU $ac_path_FGREP
12202 case `"$ac_path_FGREP" --version 2>&1` in
12204 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12207 $as_echo_n 0123456789 >"conftest.in"
12210 cat "conftest.in" "conftest.in" >"conftest.tmp"
12211 mv "conftest.tmp" "conftest.in"
12212 cp "conftest.in" "conftest.nl"
12213 $as_echo 'FGREP' >> "conftest.nl"
12214 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12215 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12216 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12217 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12218 # Best one so far, save it but keep looking for a better one
12219 ac_cv_path_FGREP
="$ac_path_FGREP"
12220 ac_path_FGREP_max
=$ac_count
12222 # 10*(2^10) chars as input seems more than enough
12223 test $ac_count -gt 10 && break
12225 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12228 $ac_path_FGREP_found && break 3
12233 if test -z "$ac_cv_path_FGREP"; then
12234 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12237 ac_cv_path_FGREP
=$FGREP
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12243 $as_echo "$ac_cv_path_FGREP" >&6; }
12244 FGREP
="$ac_cv_path_FGREP"
12247 test -z "$GREP" && GREP
=grep
12267 # Check whether --with-gnu-ld was given.
12268 if test "${with_gnu_ld+set}" = set; then :
12269 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12275 if test "$GCC" = yes; then
12276 # Check if gcc -print-prog-name=ld gives a path.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12278 $as_echo_n "checking for ld used by $CC... " >&6; }
12281 # gcc leaves a trailing carriage return which upsets mingw
12282 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12284 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12287 # Accept absolute paths.
12289 re_direlt
='/[^/][^/]*/\.\./'
12290 # Canonicalize the pathname of ld
12291 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12292 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12293 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12295 test -z "$LD" && LD
="$ac_prog"
12298 # If it fails, then pretend we aren't using GCC.
12302 # If it is relative, then search for the first ld in PATH.
12303 with_gnu_ld
=unknown
12306 elif test "$with_gnu_ld" = yes; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12308 $as_echo_n "checking for GNU ld... " >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12311 $as_echo_n "checking for non-GNU ld... " >&6; }
12313 if test "${lt_cv_path_LD+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12316 if test -z "$LD"; then
12317 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12318 for ac_dir
in $PATH; do
12320 test -z "$ac_dir" && ac_dir
=.
12321 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12322 lt_cv_path_LD
="$ac_dir/$ac_prog"
12323 # Check to see if the program is GNU ld. I'd rather use --version,
12324 # but apparently some variants of GNU ld only accept -v.
12325 # Break only if it was the GNU/non-GNU ld that we prefer.
12326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12327 *GNU
* |
*'with BFD'*)
12328 test "$with_gnu_ld" != no
&& break
12331 test "$with_gnu_ld" != yes && break
12338 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12342 LD
="$lt_cv_path_LD"
12343 if test -n "$LD"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12345 $as_echo "$LD" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12350 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12352 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12353 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12356 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12357 case `$LD -v 2>&1 </dev/null` in
12358 *GNU
* |
*'with BFD'*)
12359 lt_cv_prog_gnu_ld
=yes
12362 lt_cv_prog_gnu_ld
=no
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12367 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12368 with_gnu_ld
=$lt_cv_prog_gnu_ld
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12379 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12380 if test "${lt_cv_path_NM+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12383 if test -n "$NM"; then
12384 # Let the user override the test.
12385 lt_cv_path_NM
="$NM"
12387 lt_nm_to_check
="${ac_tool_prefix}nm"
12388 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12389 lt_nm_to_check
="$lt_nm_to_check nm"
12391 for lt_tmp_nm
in $lt_nm_to_check; do
12392 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12393 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12395 test -z "$ac_dir" && ac_dir
=.
12396 tmp_nm
="$ac_dir/$lt_tmp_nm"
12397 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12398 # Check to see if the nm accepts a BSD-compat flag.
12399 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12400 # nm: unknown option "B" ignored
12401 # Tru64's nm complains that /dev/null is an invalid object file
12402 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12403 */dev
/null
* |
*'Invalid file or object type'*)
12404 lt_cv_path_NM
="$tmp_nm -B"
12408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12410 lt_cv_path_NM
="$tmp_nm -p"
12414 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12415 continue # so that we can try to find one that supports BSD flags
12424 : ${lt_cv_path_NM=no}
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12428 $as_echo "$lt_cv_path_NM" >&6; }
12429 if test "$lt_cv_path_NM" != "no"; then
12430 NM
="$lt_cv_path_NM"
12432 # Didn't find any BSD compatible name lister, look for dumpbin.
12433 if test -n "$DUMPBIN"; then :
12434 # Let the user override the test.
12436 if test -n "$ac_tool_prefix"; then
12437 for ac_prog
in dumpbin
"link -dump"
12439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12440 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12446 if test -n "$DUMPBIN"; then
12447 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12450 for as_dir
in $PATH
12453 test -z "$as_dir" && as_dir
=.
12454 for ac_exec_ext
in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 DUMPBIN
=$ac_cv_prog_DUMPBIN
12467 if test -n "$DUMPBIN"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12469 $as_echo "$DUMPBIN" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12476 test -n "$DUMPBIN" && break
12479 if test -z "$DUMPBIN"; then
12480 ac_ct_DUMPBIN
=$DUMPBIN
12481 for ac_prog
in dumpbin
"link -dump"
12483 # Extract the first word of "$ac_prog", so it can be a program name with args.
12484 set dummy
$ac_prog; ac_word
=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12490 if test -n "$ac_ct_DUMPBIN"; then
12491 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12494 for as_dir
in $PATH
12497 test -z "$as_dir" && as_dir
=.
12498 for ac_exec_ext
in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12511 if test -n "$ac_ct_DUMPBIN"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12513 $as_echo "$ac_ct_DUMPBIN" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12520 test -n "$ac_ct_DUMPBIN" && break
12523 if test "x$ac_ct_DUMPBIN" = x
; then
12526 case $cross_compiling:$ac_tool_warned in
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12530 ac_tool_warned
=yes ;;
12532 DUMPBIN
=$ac_ct_DUMPBIN
12536 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12538 DUMPBIN
="$DUMPBIN -symbols"
12546 if test "$DUMPBIN" != ":"; then
12550 test -z "$NM" && NM
=nm
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12558 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12559 if test "${lt_cv_nm_interface+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12562 lt_cv_nm_interface
="BSD nm"
12563 echo "int some_variable = 0;" > conftest.
$ac_ext
12564 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12565 (eval "$ac_compile" 2>conftest.err
)
12566 cat conftest.err
>&5
12567 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12568 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12569 cat conftest.err
>&5
12570 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12571 cat conftest.out
>&5
12572 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12573 lt_cv_nm_interface
="MS dumpbin"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12578 $as_echo "$lt_cv_nm_interface" >&6; }
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12581 $as_echo_n "checking whether ln -s works... " >&6; }
12583 if test "$LN_S" = "ln -s"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12585 $as_echo "yes" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12588 $as_echo "no, using $LN_S" >&6; }
12591 # find the maximum length of command line arguments
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12593 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12594 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12602 # On DJGPP, this test can blow up pretty badly due to problems in libc
12603 # (any single argument exceeding 2000 bytes causes a buffer overrun
12604 # during glob expansion). Even if it were fixed, the result of this
12605 # check would be larger than it should be.
12606 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12610 # Under GNU Hurd, this test is not required because there is
12611 # no limit to the length of command line arguments.
12612 # Libtool will interpret -1 as no limit whatsoever
12613 lt_cv_sys_max_cmd_len
=-1;
12616 cygwin
* | mingw
* | cegcc
*)
12617 # On Win9x/ME, this test blows up -- it succeeds, but takes
12618 # about 5 minutes as the teststring grows exponentially.
12619 # Worse, since 9x/ME are not pre-emptively multitasking,
12620 # you end up with a "frozen" computer, even though with patience
12621 # the test eventually succeeds (with a max line length of 256k).
12622 # Instead, let's just punt: use the minimum linelength reported by
12623 # all of the supported platforms: 8192 (on NT/2K/XP).
12624 lt_cv_sys_max_cmd_len
=8192;
12628 # On MiNT this can take a long time and run out of memory.
12629 lt_cv_sys_max_cmd_len
=8192;
12633 # On AmigaOS with pdksh, this test takes hours, literally.
12634 # So we just punt and use a minimum line length of 8192.
12635 lt_cv_sys_max_cmd_len
=8192;
12638 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12639 # This has been around since 386BSD, at least. Likely further.
12640 if test -x /sbin
/sysctl
; then
12641 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12642 elif test -x /usr
/sbin
/sysctl
; then
12643 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12645 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12647 # And add a safety zone
12648 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12649 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12654 lt_cv_sys_max_cmd_len
=196608
12658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12660 # nice to cause kernel panics so lets avoid the loop below.
12661 # First set a reasonable default.
12662 lt_cv_sys_max_cmd_len
=16384
12664 if test -x /sbin
/sysconfig
; then
12665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12666 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12671 lt_cv_sys_max_cmd_len
=102400
12673 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12674 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12675 if test -n "$kargmax"; then
12676 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12678 lt_cv_sys_max_cmd_len
=32768
12682 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12683 if test -n "$lt_cv_sys_max_cmd_len"; then
12684 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12685 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12687 # Make teststring a little bigger before we do anything with it.
12688 # a 1K string should be a reasonable start.
12689 for i
in 1 2 3 4 5 6 7 8 ; do
12690 teststring
=$teststring$teststring
12692 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12693 # If test is not a shell built-in, we'll probably end up computing a
12694 # maximum length that is only half of the actual maximum length, but
12696 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12697 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12698 test $i != 17 # 1/2 MB should be enough
12701 teststring
=$teststring$teststring
12703 # Only check the string length outside the loop.
12704 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12706 # Add a significant safety factor because C++ compilers can tack on
12707 # massive amounts of additional arguments before passing them to the
12708 # linker. It appears as though 1/2 is a usable value.
12709 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12716 if test -n $lt_cv_sys_max_cmd_len ; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12718 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12721 $as_echo "none" >&6; }
12723 max_cmd_len
=$lt_cv_sys_max_cmd_len
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12735 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12736 # Try some XSI features
12738 ( _lt_dummy
="a/b/c"
12739 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12741 && eval 'test $(( 1 + 1 )) -eq 2 \
12742 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12745 $as_echo "$xsi_shell" >&6; }
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12749 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12751 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12753 && lt_shell_append=yes
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12755 $as_echo "$lt_shell_append" >&6; }
12758 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12768 # test EBCDIC or ASCII
12769 case `echo X|tr X '\101'` in
12770 A) # ASCII based system
12771 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12772 lt_SP2NL='tr \040 \012'
12773 lt_NL2SP='tr \015\012 \040\040'
12775 *) # EBCDIC based system
12776 lt_SP2NL='tr \100 \n'
12777 lt_NL2SP='tr \r\n \100\100'
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12790 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12791 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12792 $as_echo_n "(cached
) " >&6
12794 lt_cv_ld_reload_flag='-r'
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12797 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12798 reload_flag=$lt_cv_ld_reload_flag
12799 case $reload_flag in
12801 *) reload_flag=" $reload_flag" ;;
12803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12806 if test "$GCC" = yes; then
12807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12822 if test -n "$ac_tool_prefix"; then
12823 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12824 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12826 $as_echo_n "checking
for $ac_word...
" >&6; }
12827 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12828 $as_echo_n "(cached
) " >&6
12830 if test -n "$OBJDUMP"; then
12831 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12837 test -z "$as_dir" && as_dir=.
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12850 OBJDUMP=$ac_cv_prog_OBJDUMP
12851 if test -n "$OBJDUMP"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12853 $as_echo "$OBJDUMP" >&6; }
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12856 $as_echo "no
" >&6; }
12861 if test -z "$ac_cv_prog_OBJDUMP"; then
12862 ac_ct_OBJDUMP=$OBJDUMP
12863 # Extract the first word of "objdump
", so it can be a program name with args.
12864 set dummy objdump; ac_word=$2
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12866 $as_echo_n "checking
for $ac_word...
" >&6; }
12867 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12868 $as_echo_n "(cached
) " >&6
12870 if test -n "$ac_ct_OBJDUMP"; then
12871 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874 for as_dir in $PATH
12877 test -z "$as_dir" && as_dir=.
12878 for ac_exec_ext in '' $ac_executable_extensions; do
12879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12880 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12890 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12891 if test -n "$ac_ct_OBJDUMP"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12893 $as_echo "$ac_ct_OBJDUMP" >&6; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12896 $as_echo "no
" >&6; }
12899 if test "x
$ac_ct_OBJDUMP" = x; then
12902 case $cross_compiling:$ac_tool_warned in
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12905 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12906 ac_tool_warned=yes ;;
12908 OBJDUMP=$ac_ct_OBJDUMP
12911 OBJDUMP="$ac_cv_prog_OBJDUMP"
12914 test -z "$OBJDUMP" && OBJDUMP=objdump
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12925 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12926 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12927 $as_echo_n "(cached
) " >&6
12929 lt_cv_file_magic_cmd='$MAGIC_CMD'
12930 lt_cv_file_magic_test_file=
12931 lt_cv_deplibs_check_method='unknown'
12932 # Need to set the preceding variable on all platforms that support
12933 # interlibrary dependencies.
12934 # 'none' -- dependencies not supported.
12935 # `unknown' -- same as none, but documents that we really don't know.
12936 # 'pass_all' -- all dependencies passed with no checks.
12937 # 'test_compile' -- check by making test program.
12938 # 'file_magic [[regex]]' -- check by looking for files in library path
12939 # which responds to the $file_magic_cmd with a given extended regex.
12940 # If you have `file' or equivalent on your system and you're not sure
12941 # whether `pass_all' will *always* work, you probably want this one.
12945 lt_cv_deplibs_check_method=pass_all
12949 lt_cv_deplibs_check_method=pass_all
12953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12954 lt_cv_file_magic_cmd='/usr/bin/file -L'
12955 lt_cv_file_magic_test_file=/shlib/libc.so
12959 # func_win32_libid is a shell function defined in ltmain.sh
12960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12961 lt_cv_file_magic_cmd='func_win32_libid'
12965 # Base MSYS/MinGW do not provide the 'file' command needed by
12966 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12967 # unless we find 'file', for example because we are cross-compiling.
12968 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12969 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12971 lt_cv_file_magic_cmd='func_win32_libid'
12973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12974 lt_cv_file_magic_cmd='$OBJDUMP -f'
12979 # use the weaker test based on 'objdump'. See mingw*.
12980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12981 lt_cv_file_magic_cmd='$OBJDUMP -f'
12984 darwin* | rhapsody*)
12985 lt_cv_deplibs_check_method=pass_all
12988 freebsd* | dragonfly*)
12989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12992 # Not sure whether the presence of OpenBSD here was a mistake.
12993 # Let's accept both of them until this is cleared up.
12994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12995 lt_cv_file_magic_cmd=/usr/bin/file
12996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13000 lt_cv_deplibs_check_method=pass_all
13005 lt_cv_deplibs_check_method=pass_all
13009 lt_cv_deplibs_check_method=pass_all
13012 hpux10.20* | hpux11*)
13013 lt_cv_file_magic_cmd=/usr/bin/file
13016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13020 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]'
13021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13035 irix5* | irix6* | nonstopux*)
13037 *-32|*"-32 ") libmagic=32-bit;;
13038 *-n32|*"-n32 ") libmagic=N32;;
13039 *-64|*"-64 ") libmagic=64-bit;;
13040 *) libmagic=never-match;;
13042 lt_cv_deplibs_check_method=pass_all
13045 # This must be Linux ELF.
13046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13047 lt_cv_deplibs_check_method=pass_all
13051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13060 lt_cv_file_magic_cmd=/usr/bin/file
13061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13065 lt_cv_deplibs_check_method=pass_all
13069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13076 osf3* | osf4* | osf5*)
13077 lt_cv_deplibs_check_method=pass_all
13081 lt_cv_deplibs_check_method=pass_all
13085 lt_cv_deplibs_check_method=pass_all
13088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13089 lt_cv_deplibs_check_method=pass_all
13093 case $host_vendor in
13095 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]'
13096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13099 lt_cv_deplibs_check_method=pass_all
13102 lt_cv_file_magic_cmd='/bin/file'
13103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13106 lt_cv_file_magic_cmd='/bin/file'
13107 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13108 lt_cv_file_magic_test_file=/lib/libc.so
13111 lt_cv_deplibs_check_method=pass_all
13114 lt_cv_deplibs_check_method=pass_all
13120 lt_cv_deplibs_check_method=pass_all
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13126 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13127 file_magic_cmd=$lt_cv_file_magic_cmd
13128 deplibs_check_method=$lt_cv_deplibs_check_method
13129 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13142 if test -n "$ac_tool_prefix"; then
13143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13144 set dummy ${ac_tool_prefix}ar; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13146 $as_echo_n "checking
for $ac_word...
" >&6; }
13147 if test "${ac_cv_prog_AR+set}" = set; then :
13148 $as_echo_n "(cached
) " >&6
13150 if test -n "$AR"; then
13151 ac_cv_prog_AR="$AR" # Let the user override the test.
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_AR="${ac_tool_prefix}ar"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13171 if test -n "$AR"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13173 $as_echo "$AR" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13176 $as_echo "no
" >&6; }
13181 if test -z "$ac_cv_prog_AR"; then
13183 # Extract the first word of "ar", so it can be a program name with args.
13184 set dummy ar; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13186 $as_echo_n "checking
for $ac_word...
" >&6; }
13187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13188 $as_echo_n "(cached
) " >&6
13190 if test -n "$ac_ct_AR"; then
13191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13200 ac_cv_prog_ac_ct_AR="ar"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13211 if test -n "$ac_ct_AR"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13213 $as_echo "$ac_ct_AR" >&6; }
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13216 $as_echo "no
" >&6; }
13219 if test "x
$ac_ct_AR" = x; then
13222 case $cross_compiling:$ac_tool_warned in
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13225 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13226 ac_tool_warned=yes ;;
13231 AR="$ac_cv_prog_AR"
13234 test -z "$AR" && AR=ar
13235 test -z "$AR_FLAGS" && AR_FLAGS=cru
13247 if test -n "$ac_tool_prefix"; then
13248 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13249 set dummy ${ac_tool_prefix}strip; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13251 $as_echo_n "checking
for $ac_word...
" >&6; }
13252 if test "${ac_cv_prog_STRIP+set}" = set; then :
13253 $as_echo_n "(cached
) " >&6
13255 if test -n "$STRIP"; then
13256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13275 STRIP=$ac_cv_prog_STRIP
13276 if test -n "$STRIP"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13278 $as_echo "$STRIP" >&6; }
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13281 $as_echo "no
" >&6; }
13286 if test -z "$ac_cv_prog_STRIP"; then
13288 # Extract the first word of "strip
", so it can be a program name with args.
13289 set dummy strip; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13291 $as_echo_n "checking
for $ac_word...
" >&6; }
13292 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13293 $as_echo_n "(cached
) " >&6
13295 if test -n "$ac_ct_STRIP"; then
13296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_ac_ct_STRIP="strip
"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13316 if test -n "$ac_ct_STRIP"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13318 $as_echo "$ac_ct_STRIP" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13321 $as_echo "no
" >&6; }
13324 if test "x
$ac_ct_STRIP" = x; then
13327 case $cross_compiling:$ac_tool_warned in
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13330 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13331 ac_tool_warned=yes ;;
13336 STRIP="$ac_cv_prog_STRIP"
13339 test -z "$STRIP" && STRIP=:
13346 if test -n "$ac_tool_prefix"; then
13347 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13350 $as_echo_n "checking
for $ac_word...
" >&6; }
13351 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13352 $as_echo_n "(cached
) " >&6
13354 if test -n "$RANLIB"; then
13355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13374 RANLIB=$ac_cv_prog_RANLIB
13375 if test -n "$RANLIB"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13377 $as_echo "$RANLIB" >&6; }
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13380 $as_echo "no
" >&6; }
13385 if test -z "$ac_cv_prog_RANLIB"; then
13386 ac_ct_RANLIB=$RANLIB
13387 # Extract the first word of "ranlib
", so it can be a program name with args.
13388 set dummy ranlib; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13390 $as_echo_n "checking
for $ac_word...
" >&6; }
13391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13392 $as_echo_n "(cached
) " >&6
13394 if test -n "$ac_ct_RANLIB"; then
13395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13404 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13415 if test -n "$ac_ct_RANLIB"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13417 $as_echo "$ac_ct_RANLIB" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13420 $as_echo "no
" >&6; }
13423 if test "x
$ac_ct_RANLIB" = x; then
13426 case $cross_compiling:$ac_tool_warned in
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13429 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13430 ac_tool_warned=yes ;;
13432 RANLIB=$ac_ct_RANLIB
13435 RANLIB="$ac_cv_prog_RANLIB"
13438 test -z "$RANLIB" && RANLIB=:
13445 # Determine commands to create old-style static archives.
13446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13447 old_postinstall_cmds='chmod 644 $oldlib'
13448 old_postuninstall_cmds=
13450 if test -n "$RANLIB"; then
13453 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13456 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13459 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13464 lock_old_archive_extraction=yes ;;
13466 lock_old_archive_extraction=no ;;
13507 # If no C compiler was specified, use CC.
13510 # If no C compiler flags were specified, use CFLAGS.
13511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13513 # Allow CC to be a program name with arguments.
13517 # Check for command to grab the raw symbol name followed by C symbol from nm.
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13519 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13521 $as_echo_n "(cached
) " >&6
13524 # These are sane defaults that work on at least a few old systems.
13525 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13527 # Character class describing NM global symbol codes.
13528 symcode='[BCDEGRST]'
13530 # Regexp to match symbols that can be accessed directly from C.
13531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13533 # Define system-specific variables.
13538 cygwin* | mingw* | pw32* | cegcc*)
13539 symcode='[ABCDGISTW]'
13542 if test "$host_cpu" = ia64; then
13543 symcode='[ABCDEGRST]'
13546 irix* | nonstopux*)
13547 symcode='[BCDEGRST]'
13550 symcode='[BCDEGQRST]'
13561 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13569 # If we're using GNU nm, then use its standard symbol codes.
13570 case `$NM -V 2>&1` in
13571 *GNU* | *'with BFD'*)
13572 symcode='[ABCDGIRSTW]' ;;
13575 # Transform an extracted symbol line into a proper C declaration.
13576 # Some systems (esp. on ia64) link data and code symbols differently,
13577 # so use this general approach.
13578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13580 # Transform an extracted symbol line into symbol name and symbol address
13581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13582 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'"
13584 # Handle CRLF in mingw tool chain
13588 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13592 # Try without a prefix underscore, then with it.
13593 for ac_symprfx in "" "_
"; do
13595 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13596 symxfrm="\\1 $ac_symprfx\\2 \\2"
13598 # Write the raw and C identifiers.
13599 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13600 # Fake it for dumpbin and say T for any non-static function
13601 # and D for any global variable.
13602 # Also find C++ and __fastcall symbols from MSVC++,
13603 # which start with @ or ?.
13604 lt_cv_sys_global_symbol_pipe="$AWK '"\
13605 " {last_section=section; section=\$ 3};"\
13606 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13607 " \$ 0!~/External *\|/{next};"\
13608 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13609 " {if(hide[section]) next};"\
13610 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13611 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13612 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13613 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13614 " ' prfx
=^
$ac_symprfx"
13616 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13619 # Check to see that the pipe works correctly.
13623 cat > conftest.$ac_ext <<_LT_EOF
13628 void nm_test_func(void);
13629 void nm_test_func(void){}
13633 int main(){nm_test_var='a';nm_test_func();return(0);}
13636 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13637 (eval $ac_compile) 2>&5
13639 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13640 test $ac_status = 0; }; then
13641 # Now try to grab the symbols.
13643 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13644 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13647 test $ac_status = 0; } && test -s "$nlist"; then
13648 # Try sorting and uniquifying the output.
13649 if sort "$nlist" | uniq > "$nlist"T; then
13650 mv -f "$nlist"T "$nlist"
13655 # Make sure that we snagged all the symbols we need.
13656 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13657 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13658 cat <<_LT_EOF > conftest.$ac_ext
13664 # Now generate the symbol file.
13665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13667 cat <<_LT_EOF >> conftest.$ac_ext
13669 /* The mapping between symbol names and symbols. */
13674 lt__PROGRAM__LTX_preloaded_symbols[] =
13676 { "@PROGRAM@
", (void *) 0 },
13678 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13679 cat <<\_LT_EOF >> conftest.$ac_ext
13683 /* This works around a problem in FreeBSD linker */
13684 #ifdef FREEBSD_WORKAROUND
13685 static const void *lt_preloaded_setup() {
13686 return lt__PROGRAM__LTX_preloaded_symbols;
13694 # Now try linking the two files.
13695 mv conftest.$ac_objext conftstm.$ac_objext
13696 lt_save_LIBS="$LIBS"
13697 lt_save_CFLAGS="$CFLAGS"
13698 LIBS="conftstm.
$ac_objext"
13699 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13700 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13701 (eval $ac_link) 2>&5
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13704 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13707 LIBS="$lt_save_LIBS"
13708 CFLAGS="$lt_save_CFLAGS"
13710 echo "cannot
find nm_test_func
in $nlist" >&5
13713 echo "cannot
find nm_test_var
in $nlist" >&5
13716 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13719 echo "$progname: failed program was
:" >&5
13720 cat conftest.$ac_ext >&5
13722 rm -rf conftest* conftst*
13724 # Do not use the global_symbol_pipe unless it works.
13725 if test "$pipe_works" = yes; then
13728 lt_cv_sys_global_symbol_pipe=
13734 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13735 lt_cv_sys_global_symbol_to_cdecl=
13737 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13739 $as_echo "failed
" >&6; }
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13742 $as_echo "ok
" >&6; }
13766 # Check whether --enable-libtool-lock was given.
13767 if test "${enable_libtool_lock+set}" = set; then :
13768 enableval=$enable_libtool_lock;
13771 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13773 # Some flags need to be propagated to the compiler or linker for good
13777 # Find out which ABI we are using.
13778 echo 'int i;' > conftest.$ac_ext
13779 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13780 (eval $ac_compile) 2>&5
13782 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13783 test $ac_status = 0; }; then
13784 case `/usr/bin/file conftest.$ac_objext` in
13786 HPUX_IA64_MODE="32"
13789 HPUX_IA64_MODE="64"
13796 # Find out which ABI we are using.
13797 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13798 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13799 (eval $ac_compile) 2>&5
13801 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13802 test $ac_status = 0; }; then
13803 if test "$lt_cv_prog_gnu_ld" = yes; then
13804 case `/usr/bin/file conftest.$ac_objext` in
13806 LD="${LD-ld} -melf32bsmip"
13809 LD="${LD-ld} -melf32bmipn32"
13812 LD="${LD-ld} -melf64bmip"
13816 case `/usr/bin/file conftest.$ac_objext` in
13832 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13833 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13834 # Find out which ABI we are using.
13835 echo 'int i;' > conftest.$ac_ext
13836 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837 (eval $ac_compile) 2>&5
13839 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13840 test $ac_status = 0; }; then
13841 case `/usr/bin/file conftest.o` in
13844 x86_64-*kfreebsd*-gnu)
13845 LD="${LD-ld} -m elf_i386_fbsd
"
13848 LD="${LD-ld} -m elf_i386
"
13850 ppc64-*linux*|powerpc64-*linux*)
13851 LD="${LD-ld} -m elf32ppclinux
"
13854 LD="${LD-ld} -m elf_s390
"
13857 LD="${LD-ld} -m elf32_sparc
"
13863 x86_64-*kfreebsd*-gnu)
13864 LD="${LD-ld} -m elf_x86_64_fbsd
"
13867 LD="${LD-ld} -m elf_x86_64
"
13869 ppc*-*linux*|powerpc*-*linux*)
13870 LD="${LD-ld} -m elf64ppc
"
13872 s390*-*linux*|s390*-*tpf*)
13873 LD="${LD-ld} -m elf64_s390
"
13876 LD="${LD-ld} -m elf64_sparc
"
13886 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13887 SAVE_CFLAGS="$CFLAGS"
13888 CFLAGS="$CFLAGS -belf"
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13890 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13891 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13892 $as_echo_n "(cached
) " >&6
13895 ac_cpp='$CPP $CPPFLAGS'
13896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 lt_cv_cc_needs_belf=yes
13914 lt_cv_cc_needs_belf=no
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13919 ac_cpp='$CPP $CPPFLAGS'
13920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13926 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13929 CFLAGS="$SAVE_CFLAGS"
13933 # Find out which ABI we are using.
13934 echo 'int i;' > conftest.$ac_ext
13935 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13936 (eval $ac_compile) 2>&5
13938 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13939 test $ac_status = 0; }; then
13940 case `/usr/bin/file conftest.o` in
13942 case $lt_cv_prog_gnu_ld in
13943 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13957 need_locks="$enable_libtool_lock"
13961 rhapsody* | darwin*)
13962 if test -n "$ac_tool_prefix"; then
13963 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13964 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13966 $as_echo_n "checking
for $ac_word...
" >&6; }
13967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13968 $as_echo_n "(cached
) " >&6
13970 if test -n "$DSYMUTIL"; then
13971 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13980 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13990 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13991 if test -n "$DSYMUTIL"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13993 $as_echo "$DSYMUTIL" >&6; }
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13996 $as_echo "no
" >&6; }
14001 if test -z "$ac_cv_prog_DSYMUTIL"; then
14002 ac_ct_DSYMUTIL=$DSYMUTIL
14003 # Extract the first word of "dsymutil
", so it can be a program name with args.
14004 set dummy dsymutil; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14006 $as_echo_n "checking
for $ac_word...
" >&6; }
14007 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14008 $as_echo_n "(cached
) " >&6
14010 if test -n "$ac_ct_DSYMUTIL"; then
14011 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14030 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14031 if test -n "$ac_ct_DSYMUTIL"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14033 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14036 $as_echo "no
" >&6; }
14039 if test "x
$ac_ct_DSYMUTIL" = x; then
14042 case $cross_compiling:$ac_tool_warned in
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14045 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14046 ac_tool_warned=yes ;;
14048 DSYMUTIL=$ac_ct_DSYMUTIL
14051 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14054 if test -n "$ac_tool_prefix"; then
14055 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14056 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14058 $as_echo_n "checking
for $ac_word...
" >&6; }
14059 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14060 $as_echo_n "(cached
) " >&6
14062 if test -n "$NMEDIT"; then
14063 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14072 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14082 NMEDIT=$ac_cv_prog_NMEDIT
14083 if test -n "$NMEDIT"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14085 $as_echo "$NMEDIT" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14088 $as_echo "no
" >&6; }
14093 if test -z "$ac_cv_prog_NMEDIT"; then
14094 ac_ct_NMEDIT=$NMEDIT
14095 # Extract the first word of "nmedit
", so it can be a program name with args.
14096 set dummy nmedit; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14098 $as_echo_n "checking
for $ac_word...
" >&6; }
14099 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14100 $as_echo_n "(cached
) " >&6
14102 if test -n "$ac_ct_NMEDIT"; then
14103 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14122 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14123 if test -n "$ac_ct_NMEDIT"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14125 $as_echo "$ac_ct_NMEDIT" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14128 $as_echo "no
" >&6; }
14131 if test "x
$ac_ct_NMEDIT" = x; then
14134 case $cross_compiling:$ac_tool_warned in
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14137 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14138 ac_tool_warned=yes ;;
14140 NMEDIT=$ac_ct_NMEDIT
14143 NMEDIT="$ac_cv_prog_NMEDIT"
14146 if test -n "$ac_tool_prefix"; then
14147 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14148 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14150 $as_echo_n "checking
for $ac_word...
" >&6; }
14151 if test "${ac_cv_prog_LIPO+set}" = set; then :
14152 $as_echo_n "(cached
) " >&6
14154 if test -n "$LIPO"; then
14155 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14174 LIPO=$ac_cv_prog_LIPO
14175 if test -n "$LIPO"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14177 $as_echo "$LIPO" >&6; }
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14180 $as_echo "no
" >&6; }
14185 if test -z "$ac_cv_prog_LIPO"; then
14187 # Extract the first word of "lipo
", so it can be a program name with args.
14188 set dummy lipo; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14190 $as_echo_n "checking
for $ac_word...
" >&6; }
14191 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14192 $as_echo_n "(cached
) " >&6
14194 if test -n "$ac_ct_LIPO"; then
14195 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_ac_ct_LIPO="lipo
"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14214 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14215 if test -n "$ac_ct_LIPO"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14217 $as_echo "$ac_ct_LIPO" >&6; }
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14220 $as_echo "no
" >&6; }
14223 if test "x
$ac_ct_LIPO" = x; then
14226 case $cross_compiling:$ac_tool_warned in
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14229 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14230 ac_tool_warned=yes ;;
14235 LIPO="$ac_cv_prog_LIPO"
14238 if test -n "$ac_tool_prefix"; then
14239 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14240 set dummy ${ac_tool_prefix}otool; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14242 $as_echo_n "checking
for $ac_word...
" >&6; }
14243 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14244 $as_echo_n "(cached
) " >&6
14246 if test -n "$OTOOL"; then
14247 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14266 OTOOL=$ac_cv_prog_OTOOL
14267 if test -n "$OTOOL"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14269 $as_echo "$OTOOL" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14272 $as_echo "no
" >&6; }
14277 if test -z "$ac_cv_prog_OTOOL"; then
14279 # Extract the first word of "otool
", so it can be a program name with args.
14280 set dummy otool; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$ac_ct_OTOOL"; then
14287 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_prog_ac_ct_OTOOL="otool
"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14307 if test -n "$ac_ct_OTOOL"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14309 $as_echo "$ac_ct_OTOOL" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14315 if test "x
$ac_ct_OTOOL" = x; then
14318 case $cross_compiling:$ac_tool_warned in
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14321 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14322 ac_tool_warned=yes ;;
14327 OTOOL="$ac_cv_prog_OTOOL"
14330 if test -n "$ac_tool_prefix"; then
14331 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14332 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14334 $as_echo_n "checking
for $ac_word...
" >&6; }
14335 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14336 $as_echo_n "(cached
) " >&6
14338 if test -n "$OTOOL64"; then
14339 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14348 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14358 OTOOL64=$ac_cv_prog_OTOOL64
14359 if test -n "$OTOOL64"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14361 $as_echo "$OTOOL64" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14364 $as_echo "no
" >&6; }
14369 if test -z "$ac_cv_prog_OTOOL64"; then
14370 ac_ct_OTOOL64=$OTOOL64
14371 # Extract the first word of "otool64
", so it can be a program name with args.
14372 set dummy otool64; ac_word=$2
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14374 $as_echo_n "checking
for $ac_word...
" >&6; }
14375 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14376 $as_echo_n "(cached
) " >&6
14378 if test -n "$ac_ct_OTOOL64"; then
14379 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $PATH
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14388 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14398 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14399 if test -n "$ac_ct_OTOOL64"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14401 $as_echo "$ac_ct_OTOOL64" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14404 $as_echo "no
" >&6; }
14407 if test "x
$ac_ct_OTOOL64" = x; then
14410 case $cross_compiling:$ac_tool_warned in
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14413 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14414 ac_tool_warned=yes ;;
14416 OTOOL64=$ac_ct_OTOOL64
14419 OTOOL64="$ac_cv_prog_OTOOL64"
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14449 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14450 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14451 $as_echo_n "(cached
) " >&6
14453 lt_cv_apple_cc_single_mod=no
14454 if test -z "${LT_MULTI_MODULE}"; then
14455 # By default we will add the -single_module flag. You can override
14456 # by either setting the environment variable LT_MULTI_MODULE
14457 # non-empty at configure time, or by adding -multi_module to the
14459 rm -rf libconftest.dylib*
14460 echo "int foo
(void
){return 1;}" > conftest.c
14461 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14462 -dynamiclib -Wl,-single_module conftest.c
" >&5
14463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14464 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14466 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14467 lt_cv_apple_cc_single_mod=yes
14469 cat conftest.err >&5
14471 rm -rf libconftest.dylib*
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14476 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14478 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14479 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14480 $as_echo_n "(cached
) " >&6
14482 lt_cv_ld_exported_symbols_list=no
14483 save_LDFLAGS=$LDFLAGS
14484 echo "_main
" > conftest.sym
14485 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 lt_cv_ld_exported_symbols_list=yes
14500 lt_cv_ld_exported_symbols_list=no
14502 rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LDFLAGS="$save_LDFLAGS"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14510 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14511 if test "${lt_cv_ld_force_load+set}" = set; then :
14512 $as_echo_n "(cached
) " >&6
14514 lt_cv_ld_force_load=no
14515 cat > conftest.c << _LT_EOF
14516 int forced_loaded() { return 2;}
14518 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14519 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14520 echo "$AR cru libconftest.a conftest.o
" >&5
14521 $AR cru libconftest.a conftest.o 2>&5
14522 cat > conftest.c << _LT_EOF
14523 int main() { return 0;}
14525 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14526 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14528 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14529 lt_cv_ld_force_load=yes
14531 cat conftest.err >&5
14533 rm -f conftest.err libconftest.a conftest conftest.c
14534 rm -rf conftest.dSYM
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14538 $as_echo "$lt_cv_ld_force_load" >&6; }
14540 rhapsody* | darwin1.[012])
14541 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14544 darwin*) # darwin 5.x on
14545 # if running on 10.5 or later, the deployment target defaults
14546 # to the OS version, if on x86, and 10.4, the deployment
14547 # target defaults to 10.4. Don't you love it?
14548 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14549 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14558 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14559 _lt_dar_single_mod='$single_module'
14561 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14562 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14564 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14566 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14567 _lt_dsymutil='~$DSYMUTIL $lib || :'
14574 for ac_header in dlfcn.h
14576 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14577 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_DLFCN_H 1
14596 enable_win32_dll=no
14599 # Check whether --enable-shared was given.
14600 if test "${enable_shared+set}" = set; then :
14601 enableval=$enable_shared; p=${PACKAGE-default}
14603 yes) enable_shared=yes ;;
14604 no) enable_shared=no ;;
14607 # Look at the argument we got. We use all the common list separators.
14608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14609 for pkg in $enableval; do
14611 if test "X
$pkg" = "X
$p"; then
14630 # Check whether --enable-static was given.
14631 if test "${enable_static+set}" = set; then :
14632 enableval=$enable_static; p=${PACKAGE-default}
14634 yes) enable_static=yes ;;
14635 no) enable_static=no ;;
14638 # Look at the argument we got. We use all the common list separators.
14639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14640 for pkg in $enableval; do
14642 if test "X
$pkg" = "X
$p"; then
14662 # Check whether --with-pic was given.
14663 if test "${with_pic+set}" = set; then :
14664 withval=$with_pic; pic_mode="$withval"
14670 test -z "$pic_mode" && pic_mode=default
14678 # Check whether --enable-fast-install was given.
14679 if test "${enable_fast_install+set}" = set; then :
14680 enableval=$enable_fast_install; p=${PACKAGE-default}
14682 yes) enable_fast_install=yes ;;
14683 no) enable_fast_install=no ;;
14685 enable_fast_install=no
14686 # Look at the argument we got. We use all the common list separators.
14687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14688 for pkg in $enableval; do
14690 if test "X
$pkg" = "X
$p"; then
14691 enable_fast_install=yes
14698 enable_fast_install=yes
14711 # This can be used to rebuild libtool when needed
14712 LIBTOOL_DEPS="$ltmain"
14714 # Always use our own libtool.
14715 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14742 test -z "$LN_S" && LN_S="ln -s"
14757 if test -n "${ZSH_VERSION+set}" ; then
14758 setopt NO_GLOB_SUBST
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14762 $as_echo_n "checking
for objdir...
" >&6; }
14763 if test "${lt_cv_objdir+set}" = set; then :
14764 $as_echo_n "(cached
) " >&6
14766 rm -f .libs 2>/dev/null
14767 mkdir .libs 2>/dev/null
14768 if test -d .libs; then
14771 # MS-DOS does not allow filenames that begin with a dot.
14774 rmdir .libs 2>/dev/null
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14777 $as_echo "$lt_cv_objdir" >&6; }
14778 objdir=$lt_cv_objdir
14784 cat >>confdefs.h <<_ACEOF
14785 #define LT_OBJDIR "$lt_cv_objdir/"
14793 # AIX sometimes has problems with the GCC collect2 program. For some
14794 # reason, if we set the COLLECT_NAMES environment variable, the problems
14795 # vanish in a puff of smoke.
14796 if test "X
${COLLECT_NAMES+set}" != Xset; then
14798 export COLLECT_NAMES
14803 # Global variables:
14805 can_build_shared=yes
14807 # All known linkers require a `.a' archive for static linking (except MSVC,
14808 # which needs '.lib').
14811 with_gnu_ld="$lt_cv_prog_gnu_ld"
14814 old_CFLAGS="$CFLAGS"
14816 # Set sane defaults for various variables
14817 test -z "$CC" && CC=cc
14818 test -z "$LTCC" && LTCC=$CC
14819 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14820 test -z "$LD" && LD=ld
14821 test -z "$ac_objext" && ac_objext=o
14823 for cc_temp in $compiler""; do
14825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14831 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14834 # Only perform the check for file, if the check method requires it
14835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14836 case $deplibs_check_method in
14838 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14840 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14841 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14842 $as_echo_n "(cached
) " >&6
14846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14849 lt_save_MAGIC_CMD="$MAGIC_CMD"
14850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14851 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14852 for ac_dir in $ac_dummy; do
14854 test -z "$ac_dir" && ac_dir=.
14855 if test -f $ac_dir/${ac_tool_prefix}file; then
14856 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14857 if test -n "$file_magic_test_file"; then
14858 case $deplibs_check_method in
14860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14863 $EGREP "$file_magic_regex" > /dev/null; then
14868 *** Warning: the command libtool uses to detect shared libraries,
14869 *** $file_magic_cmd, produces output that libtool cannot recognize.
14870 *** The result is that libtool may fail to recognize shared libraries
14871 *** as such. This will affect the creation of libtool libraries that
14872 *** depend on shared libraries, but programs linked with such libtool
14873 *** libraries will work regardless of this problem. Nevertheless, you
14874 *** may want to report the problem to your system manager and/or to
14875 *** bug-libtool@gnu.org
14885 MAGIC_CMD="$lt_save_MAGIC_CMD"
14890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14891 if test -n "$MAGIC_CMD"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14893 $as_echo "$MAGIC_CMD" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14896 $as_echo "no
" >&6; }
14903 if test -z "$lt_cv_path_MAGIC_CMD"; then
14904 if test -n "$ac_tool_prefix"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14906 $as_echo_n "checking
for file...
" >&6; }
14907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14908 $as_echo_n "(cached
) " >&6
14912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14915 lt_save_MAGIC_CMD="$MAGIC_CMD"
14916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14917 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14918 for ac_dir in $ac_dummy; do
14920 test -z "$ac_dir" && ac_dir=.
14921 if test -f $ac_dir/file; then
14922 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14923 if test -n "$file_magic_test_file"; then
14924 case $deplibs_check_method in
14926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14929 $EGREP "$file_magic_regex" > /dev/null; then
14934 *** Warning: the command libtool uses to detect shared libraries,
14935 *** $file_magic_cmd, produces output that libtool cannot recognize.
14936 *** The result is that libtool may fail to recognize shared libraries
14937 *** as such. This will affect the creation of libtool libraries that
14938 *** depend on shared libraries, but programs linked with such libtool
14939 *** libraries will work regardless of this problem. Nevertheless, you
14940 *** may want to report the problem to your system manager and/or to
14941 *** bug-libtool@gnu.org
14951 MAGIC_CMD="$lt_save_MAGIC_CMD"
14956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14957 if test -n "$MAGIC_CMD"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14959 $as_echo "$MAGIC_CMD" >&6; }
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14962 $as_echo "no
" >&6; }
14975 # Use C for the default configuration in the libtool script
14979 ac_cpp='$CPP $CPPFLAGS'
14980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14985 # Source file extension for C test sources.
14988 # Object file extension for compiled C test sources.
14992 # Code to be used in simple compile tests
14993 lt_simple_compile_test_code="int some_variable
= 0;"
14995 # Code to be used in simple link tests
14996 lt_simple_link_test_code='int main(){return(0);}'
15004 # If no C compiler was specified, use CC.
15007 # If no C compiler flags were specified, use CFLAGS.
15008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15010 # Allow CC to be a program name with arguments.
15013 # Save the default compiler, since it gets overwritten when the other
15014 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15015 compiler_DEFAULT=$CC
15017 # save warnings/boilerplate of simple test code
15018 ac_outfile=conftest.$ac_objext
15019 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15020 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15021 _lt_compiler_boilerplate=`cat conftest.err`
15024 ac_outfile=conftest.$ac_objext
15025 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15026 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15027 _lt_linker_boilerplate=`cat conftest.err`
15032 ## There is no encapsulation within the following macros, do not change
15033 ## the running order or otherwise move them around unless you know exactly
15034 ## what you are doing...
15035 if test -n "$compiler"; then
15037 lt_prog_compiler_no_builtin_flag=
15039 if test "$GCC" = yes; then
15040 case $cc_basename in
15042 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15044 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15048 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15049 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15050 $as_echo_n "(cached
) " >&6
15052 lt_cv_prog_compiler_rtti_exceptions=no
15053 ac_outfile=conftest.$ac_objext
15054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15055 lt_compiler_flag="-fno-rtti -fno-exceptions"
15056 # Insert the option either (1) after the last *FLAGS variable, or
15057 # (2) before a word containing "conftest.
", or (3) at the end.
15058 # Note that $ac_compile itself does not contain backslashes and begins
15059 # with a dollar sign (not a hyphen), so the echo should work correctly.
15060 # The option is referenced via a variable to avoid confusing sed.
15061 lt_compile=`echo "$ac_compile" | $SED \
15062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15064 -e 's:$: $lt_compiler_flag:'`
15065 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15066 (eval "$lt_compile" 2>conftest.err)
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15070 if (exit $ac_status) && test -s "$ac_outfile"; then
15071 # The compiler can only warn and ignore the option if not recognized
15072 # So say no if there are warnings other than the usual output.
15073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15076 lt_cv_prog_compiler_rtti_exceptions=yes
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15083 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15085 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15086 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15098 lt_prog_compiler_wl=
15099 lt_prog_compiler_pic=
15100 lt_prog_compiler_static=
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15103 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15105 if test "$GCC" = yes; then
15106 lt_prog_compiler_wl='-Wl,'
15107 lt_prog_compiler_static='-static'
15111 # All AIX code is PIC.
15112 if test "$host_cpu" = ia64; then
15113 # AIX 5 now supports IA64 processor
15114 lt_prog_compiler_static='-Bstatic'
15121 # see comment about AmigaOS4 .so support
15122 lt_prog_compiler_pic='-fPIC'
15125 # FIXME: we need at least 68020 code to build shared libraries, but
15126 # adding the `-m68020' flag to GCC prevents building anything better,
15128 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15134 # PIC is the default for these OSes.
15137 mingw* | cygwin* | pw32* | os2* | cegcc*)
15138 # This hack is so that the source file can tell whether it is being
15139 # built for inclusion in a dll (and should export symbols for example).
15140 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15141 # (--disable-auto-import) libraries
15142 lt_prog_compiler_pic='-DDLL_EXPORT'
15145 darwin* | rhapsody*)
15146 # PIC is the default on this platform
15147 # Common symbols not allowed in MH_DYLIB files
15148 lt_prog_compiler_pic='-fno-common'
15152 # PIC is the default for Haiku.
15153 # The "-static" flag exists, but is broken.
15154 lt_prog_compiler_static=
15158 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15159 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15160 # sets the default TLS model and affects inlining.
15166 lt_prog_compiler_pic='-fPIC'
15172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15173 # Instead, we relocate shared libraries at runtime.
15177 # Just because we use GCC doesn't mean we suddenly get shared libraries
15178 # on systems that don't support them.
15179 lt_prog_compiler_can_build_shared=no
15184 # QNX uses GNU C++, but need to define -shared option too, otherwise
15185 # it will coredump.
15186 lt_prog_compiler_pic='-fPIC -shared'
15190 if test -d /usr/nec; then
15191 lt_prog_compiler_pic=-Kconform_pic
15196 lt_prog_compiler_pic='-fPIC'
15200 case $cc_basename in
15201 nvcc*) # Cuda Compiler Driver 2.2
15202 lt_prog_compiler_wl='-Xlinker '
15203 lt_prog_compiler_pic='-Xcompiler -fPIC'
15207 # PORTME Check for flag to pass linker flags through the system compiler.
15210 lt_prog_compiler_wl='-Wl,'
15211 if test "$host_cpu" = ia64; then
15212 # AIX 5 now supports IA64 processor
15213 lt_prog_compiler_static='-Bstatic'
15215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15219 mingw* | cygwin* | pw32* | os2* | cegcc*)
15220 # This hack is so that the source file can tell whether it is being
15221 # built for inclusion in a dll (and should export symbols for example).
15222 lt_prog_compiler_pic='-DDLL_EXPORT'
15225 hpux9* | hpux10* | hpux11*)
15226 lt_prog_compiler_wl='-Wl,'
15227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15228 # not for PA HP-UX.
15234 lt_prog_compiler_pic='+Z'
15237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15238 lt_prog_compiler_static='${wl}-a ${wl}archive'
15241 irix5* | irix6* | nonstopux*)
15242 lt_prog_compiler_wl='-Wl,'
15243 # PIC (with -KPIC) is the default.
15244 lt_prog_compiler_static='-non_shared'
15247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15248 case $cc_basename in
15249 # old Intel for x86_64 which still supported -KPIC.
15251 lt_prog_compiler_wl='-Wl,'
15252 lt_prog_compiler_pic='-KPIC'
15253 lt_prog_compiler_static='-static'
15255 # icc used to be incompatible with GCC.
15256 # ICC 10 doesn't accept -KPIC any more.
15258 lt_prog_compiler_wl='-Wl,'
15259 lt_prog_compiler_pic='-fPIC'
15260 lt_prog_compiler_static='-static'
15262 # Lahey Fortran 8.1.
15264 lt_prog_compiler_wl='-Wl,'
15265 lt_prog_compiler_pic='--shared'
15266 lt_prog_compiler_static='--static'
15268 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15269 # Portland Group compilers (*not* the Pentium gcc compiler,
15270 # which looks to be a dead project)
15271 lt_prog_compiler_wl='-Wl,'
15272 lt_prog_compiler_pic='-fpic'
15273 lt_prog_compiler_static='-Bstatic'
15276 lt_prog_compiler_wl='-Wl,'
15277 # All Alpha code is PIC.
15278 lt_prog_compiler_static='-non_shared'
15280 xl* | bgxl* | bgf* | mpixl*)
15281 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15282 lt_prog_compiler_wl='-Wl,'
15283 lt_prog_compiler_pic='-qpic'
15284 lt_prog_compiler_static='-qstaticlink'
15287 case `$CC -V 2>&1 | sed 5q` in
15288 *Sun\ F* | *Sun*Fortran*)
15289 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15290 lt_prog_compiler_pic='-KPIC'
15291 lt_prog_compiler_static='-Bstatic'
15292 lt_prog_compiler_wl=''
15296 lt_prog_compiler_pic='-KPIC'
15297 lt_prog_compiler_static='-Bstatic'
15298 lt_prog_compiler_wl='-Wl,'
15306 lt_prog_compiler_pic='-KPIC'
15307 lt_prog_compiler_static='-Bstatic'
15311 # QNX uses GNU C++, but need to define -shared option too, otherwise
15312 # it will coredump.
15313 lt_prog_compiler_pic='-fPIC -shared'
15316 osf3* | osf4* | osf5*)
15317 lt_prog_compiler_wl='-Wl,'
15318 # All OSF/1 code is PIC.
15319 lt_prog_compiler_static='-non_shared'
15323 lt_prog_compiler_static='-non_shared'
15327 lt_prog_compiler_pic='-KPIC'
15328 lt_prog_compiler_static='-Bstatic'
15329 case $cc_basename in
15330 f77* | f90* | f95*)
15331 lt_prog_compiler_wl='-Qoption ld ';;
15333 lt_prog_compiler_wl='-Wl,';;
15338 lt_prog_compiler_wl='-Qoption ld '
15339 lt_prog_compiler_pic='-PIC'
15340 lt_prog_compiler_static='-Bstatic'
15343 sysv4 | sysv4.2uw2* | sysv4.3*)
15344 lt_prog_compiler_wl='-Wl,'
15345 lt_prog_compiler_pic='-KPIC'
15346 lt_prog_compiler_static='-Bstatic'
15350 if test -d /usr/nec ;then
15351 lt_prog_compiler_pic='-Kconform_pic'
15352 lt_prog_compiler_static='-Bstatic'
15356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15357 lt_prog_compiler_wl='-Wl,'
15358 lt_prog_compiler_pic='-KPIC'
15359 lt_prog_compiler_static='-Bstatic'
15363 lt_prog_compiler_wl='-Wl,'
15364 lt_prog_compiler_can_build_shared=no
15368 lt_prog_compiler_pic='-pic'
15369 lt_prog_compiler_static='-Bstatic'
15373 lt_prog_compiler_can_build_shared=no
15379 # For platforms which do not support PIC, -DPIC is meaningless:
15381 lt_prog_compiler_pic=
15384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15388 $as_echo "$lt_prog_compiler_pic" >&6; }
15396 # Check to make sure the PIC flag actually works.
15398 if test -n "$lt_prog_compiler_pic"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15400 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15401 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15402 $as_echo_n "(cached
) " >&6
15404 lt_cv_prog_compiler_pic_works=no
15405 ac_outfile=conftest.$ac_objext
15406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15408 # Insert the option either (1) after the last *FLAGS variable, or
15409 # (2) before a word containing "conftest.
", or (3) at the end.
15410 # Note that $ac_compile itself does not contain backslashes and begins
15411 # with a dollar sign (not a hyphen), so the echo should work correctly.
15412 # The option is referenced via a variable to avoid confusing sed.
15413 lt_compile=`echo "$ac_compile" | $SED \
15414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15416 -e 's:$: $lt_compiler_flag:'`
15417 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15418 (eval "$lt_compile" 2>conftest.err)
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15422 if (exit $ac_status) && test -s "$ac_outfile"; then
15423 # The compiler can only warn and ignore the option if not recognized
15424 # So say no if there are warnings other than the usual output.
15425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15428 lt_cv_prog_compiler_pic_works=yes
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15435 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15437 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15438 case $lt_prog_compiler_pic in
15440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15443 lt_prog_compiler_pic=
15444 lt_prog_compiler_can_build_shared=no
15455 # Check to make sure the static flag actually works.
15457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15459 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15460 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15461 $as_echo_n "(cached
) " >&6
15463 lt_cv_prog_compiler_static_works=no
15464 save_LDFLAGS="$LDFLAGS"
15465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15468 # The linker can only warn and ignore the option if not recognized
15469 # So say no if there are warnings
15470 if test -s conftest.err; then
15471 # Append any errors to the config.log.
15472 cat conftest.err 1>&5
15473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15475 if diff conftest.exp conftest.er2 >/dev/null; then
15476 lt_cv_prog_compiler_static_works=yes
15479 lt_cv_prog_compiler_static_works=yes
15483 LDFLAGS="$save_LDFLAGS"
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15487 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15489 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15492 lt_prog_compiler_static=
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15502 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15504 $as_echo_n "(cached
) " >&6
15506 lt_cv_prog_compiler_c_o=no
15507 $RM -r conftest 2>/dev/null
15511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15513 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15514 # Insert the option either (1) after the last *FLAGS variable, or
15515 # (2) before a word containing "conftest.
", or (3) at the end.
15516 # Note that $ac_compile itself does not contain backslashes and begins
15517 # with a dollar sign (not a hyphen), so the echo should work correctly.
15518 lt_compile=`echo "$ac_compile" | $SED \
15519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15521 -e 's:$: $lt_compiler_flag:'`
15522 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15523 (eval "$lt_compile" 2>out/conftest.err)
15525 cat out/conftest.err >&5
15526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15529 # The compiler can only warn and ignore the option if not recognized
15530 # So say no if there are warnings
15531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15534 lt_cv_prog_compiler_c_o=yes
15539 # SGI C++ compiler will create directory out/ii_files/ for
15540 # template instantiation
15541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15542 $RM out/* && rmdir out
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15557 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15559 $as_echo_n "(cached
) " >&6
15561 lt_cv_prog_compiler_c_o=no
15562 $RM -r conftest 2>/dev/null
15566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15568 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15569 # Insert the option either (1) after the last *FLAGS variable, or
15570 # (2) before a word containing "conftest.
", or (3) at the end.
15571 # Note that $ac_compile itself does not contain backslashes and begins
15572 # with a dollar sign (not a hyphen), so the echo should work correctly.
15573 lt_compile=`echo "$ac_compile" | $SED \
15574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15576 -e 's:$: $lt_compiler_flag:'`
15577 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15578 (eval "$lt_compile" 2>out/conftest.err)
15580 cat out/conftest.err >&5
15581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15584 # The compiler can only warn and ignore the option if not recognized
15585 # So say no if there are warnings
15586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15589 lt_cv_prog_compiler_c_o=yes
15594 # SGI C++ compiler will create directory out/ii_files/ for
15595 # template instantiation
15596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15597 $RM out/* && rmdir out
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15609 hard_links="nottested
"
15610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15611 # do not overwrite the value of need_locks provided by the user
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15613 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15618 ln conftest.a conftest.b 2>&5 || hard_links=no
15619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15621 $as_echo "$hard_links" >&6; }
15622 if test "$hard_links" = no; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15624 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15637 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15640 allow_undefined_flag=
15641 always_export_symbols=no
15643 archive_expsym_cmds=
15644 compiler_needs_object=no
15645 enable_shared_with_static_runtimes=no
15646 export_dynamic_flag_spec=
15647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15648 hardcode_automatic=no
15650 hardcode_direct_absolute=no
15651 hardcode_libdir_flag_spec=
15652 hardcode_libdir_flag_spec_ld=
15653 hardcode_libdir_separator=
15654 hardcode_minus_L=no
15655 hardcode_shlibpath_var=unsupported
15657 link_all_deplibs=unknown
15659 module_expsym_cmds=
15660 old_archive_from_new_cmds=
15661 old_archive_from_expsyms_cmds=
15662 thread_safe_flag_spec=
15663 whole_archive_flag_spec=
15664 # include_expsyms should be a list of space-separated symbols to be *always*
15665 # included in the symbol list
15667 # exclude_expsyms can be an extended regexp of symbols to exclude
15668 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15669 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15670 # as well as any symbol that contains `d'.
15671 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15673 # platforms (ab)use it in PIC code, but their linkers get confused if
15674 # the symbol is explicitly referenced. Since portable code cannot
15675 # rely on this symbol name, it's probably fine to never include it in
15676 # preloaded symbol tables.
15677 # Exclude shared library initialization/finalization symbols.
15678 extract_expsyms_cmds=
15681 cygwin* | mingw* | pw32* | cegcc*)
15682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15683 # When not using gcc, we currently assume that we are using
15684 # Microsoft Visual C++.
15685 if test "$GCC" != yes; then
15690 # we just hope/assume this is gcc and not c89 (= MSVC++)
15700 # On some targets, GNU ld is compatible enough with the native linker
15701 # that we're better off using the native interface for both.
15702 lt_use_gnu_ld_interface=no
15703 if test "$with_gnu_ld" = yes; then
15706 # The AIX port of GNU ld has always aspired to compatibility
15707 # with the native linker. However, as the warning in the GNU ld
15708 # block says, versions before 2.19.5* couldn't really create working
15709 # shared libraries, regardless of the interface used.
15710 case `$LD -v 2>&1` in
15711 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15712 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15713 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15715 lt_use_gnu_ld_interface=yes
15720 lt_use_gnu_ld_interface=yes
15725 if test "$lt_use_gnu_ld_interface" = yes; then
15726 # If archive_cmds runs LD, not CC, wlarc should be empty
15729 # Set some defaults for GNU ld with shared library support. These
15730 # are reset later if shared libraries are not supported. Putting them
15731 # here allows them to be overridden if necessary.
15732 runpath_var=LD_RUN_PATH
15733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15734 export_dynamic_flag_spec='${wl}--export-dynamic'
15735 # ancient GNU ld didn't support --whole-archive et. al.
15736 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15737 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15739 whole_archive_flag_spec=
15741 supports_anon_versioning=no
15742 case `$LD -v 2>&1` in
15743 *GNU\ gold*) supports_anon_versioning=yes ;;
15744 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15745 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15746 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15747 *\ 2.11.*) ;; # other 2.11 versions
15748 *) supports_anon_versioning=yes ;;
15751 # See if GNU ld supports shared libraries.
15754 # On AIX/PPC, the GNU linker is very broken
15755 if test "$host_cpu" != ia64; then
15759 *** Warning: the GNU linker, at least up to release 2.19, is reported
15760 *** to be unable to reliably create shared libraries on AIX.
15761 *** Therefore, libtool is disabling shared libraries support. If you
15762 *** really care for shared libraries, you may want to install binutils
15763 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15764 *** You will then need to restart the configuration process.
15773 # see comment about AmigaOS4 .so support
15774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775 archive_expsym_cmds=''
15778 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)'
15779 hardcode_libdir_flag_spec
='-L$libdir'
15780 hardcode_minus_L
=yes
15786 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15787 allow_undefined_flag
=unsupported
15788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15789 # support --undefined. This deserves some investigation. FIXME
15790 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 cygwin
* | mingw
* | pw32
* | cegcc
*)
15797 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15798 # as there is no search path for DLLs.
15799 hardcode_libdir_flag_spec
='-L$libdir'
15800 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15801 allow_undefined_flag
=unsupported
15802 always_export_symbols
=no
15803 enable_shared_with_static_runtimes
=yes
15804 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15806 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15807 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15808 # If the export-symbols file already is a .def file (1st line
15809 # is EXPORTS), use it as is; otherwise, prepend...
15810 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15811 cp $export_symbols $output_objdir/$soname.def;
15813 echo EXPORTS > $output_objdir/$soname.def;
15814 cat $export_symbols >> $output_objdir/$soname.def;
15816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15823 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 link_all_deplibs
=yes
15829 hardcode_shlibpath_var
=no
15830 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15831 export_dynamic_flag_spec
='${wl}-E'
15832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15833 # Instead, shared libraries are loaded at an image base (0x10000000 by
15834 # default) and relocated if they conflict, which is a slow very memory
15835 # consuming and fragmenting process. To avoid this, we pick a random,
15836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15838 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15839 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'
15842 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15844 if test "$host_os" = linux-dietlibc
; then
15845 case $cc_basename in
15846 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15849 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15850 && test "$tmp_diet" = no
15853 tmp_sharedflag
='-shared'
15854 case $cc_basename,$host_cpu in
15855 pgcc
*) # Portland Group C compiler
15856 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'
15857 tmp_addflag
=' $pic_flag'
15859 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15860 # Portland Group f77 and f90 compilers
15861 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'
15862 tmp_addflag
=' $pic_flag -Mnomain' ;;
15863 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15864 tmp_addflag
=' -i_dynamic' ;;
15865 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15866 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15867 ifc
* | ifort
*) # Intel Fortran compiler
15868 tmp_addflag
=' -nofor_main' ;;
15869 lf95
*) # Lahey Fortran 8.1
15870 whole_archive_flag_spec
=
15871 tmp_sharedflag
='--shared' ;;
15872 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15873 tmp_sharedflag
='-qmkshrobj'
15875 nvcc
*) # Cuda Compiler Driver 2.2
15876 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'
15877 compiler_needs_object
=yes
15880 case `$CC -V 2>&1 | sed 5q` in
15881 *Sun\ C
*) # Sun C 5.9
15882 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'
15883 compiler_needs_object
=yes
15884 tmp_sharedflag
='-G' ;;
15885 *Sun\ F
*) # Sun Fortran 8.3
15886 tmp_sharedflag
='-G' ;;
15888 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15890 if test "x$supports_anon_versioning" = xyes
; then
15891 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15893 echo "local: *; };" >> $output_objdir/$libname.ver~
15894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15897 case $cc_basename in
15898 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15900 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15901 hardcode_libdir_flag_spec
=
15902 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15903 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15904 if test "x$supports_anon_versioning" = xyes
; then
15905 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15907 echo "local: *; };" >> $output_objdir/$libname.ver~
15908 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15918 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15919 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15922 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15923 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15928 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15933 *** create shared libraries on Solaris systems. Therefore, libtool
15934 *** is disabling shared libraries support. We urge you to upgrade GNU
15935 *** binutils to release 2.9.1 or newer. Another option is to modify
15936 *** your PATH or compiler configuration so that the native linker is
15937 *** used, and then restart.
15940 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15941 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15942 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15948 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15949 case `$LD -v 2>&1` in
15950 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15954 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15955 *** reliably create shared libraries on SCO systems. Therefore, libtool
15956 *** is disabling shared libraries support. We urge you to upgrade GNU
15957 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15958 *** your PATH or compiler configuration so that the native linker is
15959 *** used, and then restart.
15964 # For security reasons, it is highly recommended that you always
15965 # use absolute paths for naming shared libraries, and exclude the
15966 # DT_RUNPATH tag from executables and libraries. But doing so
15967 # requires that you compile everything twice, which is a pain.
15968 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15969 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15970 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15971 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15980 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15982 hardcode_direct
=yes
15983 hardcode_shlibpath_var
=no
15987 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15988 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996 if test "$ld_shlibs" = no
; then
15998 hardcode_libdir_flag_spec
=
15999 export_dynamic_flag_spec
=
16000 whole_archive_flag_spec
=
16003 # PORTME fill in a description of your system's linker (not GNU ld)
16006 allow_undefined_flag
=unsupported
16007 always_export_symbols
=yes
16008 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'
16009 # Note: this linker hardcodes the directories in LIBPATH if there
16010 # are no directories specified by -L.
16011 hardcode_minus_L
=yes
16012 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16013 # Neither direct hardcoding nor static linking is supported with a
16015 hardcode_direct
=unsupported
16020 if test "$host_cpu" = ia64
; then
16021 # On IA64, the linker does run time linking by default, so we don't
16022 # have to do anything special.
16023 aix_use_runtimelinking
=no
16024 exp_sym_flag
='-Bexport'
16027 # If we're using GNU nm, then we don't want the "-C" option.
16028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16029 # Also, AIX nm treats weak defined symbols like other global
16030 # defined symbols, whereas GNU nm marks them as "W".
16031 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16032 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'
16034 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'
16036 aix_use_runtimelinking
=no
16038 # Test if we are trying to use run time linking or normal
16039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16040 # need to do runtime linking.
16041 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16042 for ld_flag
in $LDFLAGS; do
16043 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16044 aix_use_runtimelinking
=yes
16051 exp_sym_flag
='-bexport'
16052 no_entry_flag
='-bnoentry'
16055 # When large executables or shared objects are built, AIX ld can
16056 # have problems creating the table of contents. If linking a library
16057 # or program results in "error TOC overflow" add -mminimal-toc to
16058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16062 hardcode_direct
=yes
16063 hardcode_direct_absolute
=yes
16064 hardcode_libdir_separator
=':'
16065 link_all_deplibs
=yes
16066 file_list_spec
='${wl}-f,'
16068 if test "$GCC" = yes; then
16069 case $host_os in aix4.
[012]|aix4.
[012].
*)
16070 # We only want to do this on AIX 4.2 and lower, the check
16071 # below for broken collect2 doesn't work under 4.3+
16072 collect2name
=`${CC} -print-prog-name=collect2`
16073 if test -f "$collect2name" &&
16074 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16076 # We have reworked collect2
16079 # We have old collect2
16080 hardcode_direct
=unsupported
16081 # It fails to find uninstalled libraries when the uninstalled
16082 # path is not listed in the libpath. Setting hardcode_minus_L
16083 # to unsupported forces relinking
16084 hardcode_minus_L
=yes
16085 hardcode_libdir_flag_spec
='-L$libdir'
16086 hardcode_libdir_separator
=
16090 shared_flag
='-shared'
16091 if test "$aix_use_runtimelinking" = yes; then
16092 shared_flag
="$shared_flag "'${wl}-G'
16096 if test "$host_cpu" = ia64
; then
16097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16098 # chokes on -Wl,-G. The following line is correct:
16101 if test "$aix_use_runtimelinking" = yes; then
16102 shared_flag
='${wl}-G'
16104 shared_flag
='${wl}-bM:SRE'
16109 export_dynamic_flag_spec
='${wl}-bexpall'
16110 # It seems that -bexpall does not export symbols beginning with
16111 # underscore (_), so it is better to generate a list of symbols to export.
16112 always_export_symbols
=yes
16113 if test "$aix_use_runtimelinking" = yes; then
16114 # Warning - without using the other runtime loading flags (-brtl),
16115 # -berok will link without error, but may produce a broken library.
16116 allow_undefined_flag
='-berok'
16117 # Determine the default libpath from the value encoded in an
16118 # empty executable.
16119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16130 if ac_fn_c_try_link
"$LINENO"; then :
16132 lt_aix_libpath_sed
='
16133 /Import File Strings/,/^$/ {
16139 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16140 # Check for a 64-bit object if we didn't find anything.
16141 if test -z "$aix_libpath"; then
16142 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16145 rm -f core conftest.err conftest.
$ac_objext \
16146 conftest
$ac_exeext conftest.
$ac_ext
16147 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16149 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16150 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"
16152 if test "$host_cpu" = ia64
; then
16153 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16154 allow_undefined_flag
="-z nodefs"
16155 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"
16157 # Determine the default libpath from the value encoded in an
16158 # empty executable.
16159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16170 if ac_fn_c_try_link
"$LINENO"; then :
16172 lt_aix_libpath_sed
='
16173 /Import File Strings/,/^$/ {
16179 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16180 # Check for a 64-bit object if we didn't find anything.
16181 if test -z "$aix_libpath"; then
16182 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16185 rm -f core conftest.err conftest.
$ac_objext \
16186 conftest
$ac_exeext conftest.
$ac_ext
16187 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16189 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16190 # Warning - without using the other run time loading flags,
16191 # -berok will link without error, but may produce a broken library.
16192 no_undefined_flag
=' ${wl}-bernotok'
16193 allow_undefined_flag
=' ${wl}-berok'
16194 if test "$with_gnu_ld" = yes; then
16195 # We only use this code for GNU lds that support --whole-archive.
16196 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16198 # Exported symbols can be pulled into shared objects from archives
16199 whole_archive_flag_spec
='$convenience'
16201 archive_cmds_need_lc
=yes
16202 # This is similar to how AIX traditionally builds its shared libraries.
16203 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'
16211 # see comment about AmigaOS4 .so support
16212 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 archive_expsym_cmds
=''
16216 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)'
16217 hardcode_libdir_flag_spec
='-L$libdir'
16218 hardcode_minus_L
=yes
16224 export_dynamic_flag_spec
=-rdynamic
16227 cygwin
* | mingw
* | pw32
* | cegcc
*)
16228 # When not using gcc, we currently assume that we are using
16229 # Microsoft Visual C++.
16230 # hardcode_libdir_flag_spec is actually meaningless, as there is
16231 # no search path for DLLs.
16232 hardcode_libdir_flag_spec
=' '
16233 allow_undefined_flag
=unsupported
16234 # Tell ltmain to make .lib files, not .a files.
16236 # Tell ltmain to make .dll files, not .so files.
16238 # FIXME: Setting linknames here is a bad hack.
16239 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16240 # The linker will automatically build a .lib file if we build a DLL.
16241 old_archive_from_new_cmds
='true'
16242 # FIXME: Should let the user specify the lib program.
16243 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16244 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16245 enable_shared_with_static_runtimes
=yes
16248 darwin
* | rhapsody
*)
16251 archive_cmds_need_lc
=no
16253 hardcode_automatic
=yes
16254 hardcode_shlibpath_var
=unsupported
16255 if test "$lt_cv_ld_force_load" = "yes"; then
16256 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\"`'
16258 whole_archive_flag_spec
=''
16260 link_all_deplibs
=yes
16261 allow_undefined_flag
="$_lt_dar_allow_undefined"
16262 case $cc_basename in
16263 ifort
*) _lt_dar_can_shared
=yes ;;
16264 *) _lt_dar_can_shared
=$GCC ;;
16266 if test "$_lt_dar_can_shared" = "yes"; then
16267 output_verbose_link_cmd
=func_echo_all
16268 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16269 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16270 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}"
16271 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}"
16280 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281 hardcode_libdir_flag_spec
='-L$libdir'
16282 hardcode_shlibpath_var
=no
16285 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16286 # support. Future versions do this automatically, but an explicit c++rt0.o
16287 # does not break anything, and helps significantly (at the cost of a little
16290 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16291 hardcode_libdir_flag_spec
='-R$libdir'
16292 hardcode_direct
=yes
16293 hardcode_shlibpath_var
=no
16296 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16298 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16299 hardcode_direct
=yes
16300 hardcode_minus_L
=yes
16301 hardcode_shlibpath_var
=no
16304 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16305 freebsd
* | dragonfly
*)
16306 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16307 hardcode_libdir_flag_spec
='-R$libdir'
16308 hardcode_direct
=yes
16309 hardcode_shlibpath_var
=no
16313 if test "$GCC" = yes; then
16314 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'
16316 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'
16318 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16319 hardcode_libdir_separator
=:
16320 hardcode_direct
=yes
16322 # hardcode_minus_L: Not really in the search PATH,
16323 # but as the default location of the library.
16324 hardcode_minus_L
=yes
16325 export_dynamic_flag_spec
='${wl}-E'
16329 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16330 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16332 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16334 if test "$with_gnu_ld" = no
; then
16335 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16336 hardcode_libdir_flag_spec_ld
='+b $libdir'
16337 hardcode_libdir_separator
=:
16338 hardcode_direct
=yes
16339 hardcode_direct_absolute
=yes
16340 export_dynamic_flag_spec
='${wl}-E'
16341 # hardcode_minus_L: Not really in the search PATH,
16342 # but as the default location of the library.
16343 hardcode_minus_L
=yes
16348 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16351 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16354 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16357 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16363 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16366 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16370 # Older versions of the 11.00 compiler do not understand -b yet
16371 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16373 $as_echo_n "checking if $CC understands -b... " >&6; }
16374 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16377 lt_cv_prog_compiler__b
=no
16378 save_LDFLAGS
="$LDFLAGS"
16379 LDFLAGS
="$LDFLAGS -b"
16380 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16381 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16382 # The linker can only warn and ignore the option if not recognized
16383 # So say no if there are warnings
16384 if test -s conftest.err
; then
16385 # Append any errors to the config.log.
16386 cat conftest.err
1>&5
16387 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16388 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16389 if diff conftest.exp conftest.er2
>/dev
/null
; then
16390 lt_cv_prog_compiler__b
=yes
16393 lt_cv_prog_compiler__b
=yes
16397 LDFLAGS
="$save_LDFLAGS"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16401 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16403 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16404 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16406 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16412 if test "$with_gnu_ld" = no
; then
16413 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16414 hardcode_libdir_separator
=:
16419 hardcode_shlibpath_var
=no
16422 hardcode_direct
=yes
16423 hardcode_direct_absolute
=yes
16424 export_dynamic_flag_spec
='${wl}-E'
16426 # hardcode_minus_L: Not really in the search PATH,
16427 # but as the default location of the library.
16428 hardcode_minus_L
=yes
16434 irix5
* | irix6
* | nonstopux
*)
16435 if test "$GCC" = yes; then
16436 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'
16437 # Try to use the -exported_symbol ld option, if it does not
16438 # work, assume that -exports_file does not work either and
16439 # implicitly export all symbols.
16440 save_LDFLAGS
="$LDFLAGS"
16441 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16446 if ac_fn_c_try_link
"$LINENO"; then :
16447 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'
16450 rm -f core conftest.err conftest.
$ac_objext \
16451 conftest
$ac_exeext conftest.
$ac_ext
16452 LDFLAGS
="$save_LDFLAGS"
16454 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'
16455 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'
16457 archive_cmds_need_lc
='no'
16458 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16459 hardcode_libdir_separator
=:
16461 link_all_deplibs
=yes
16465 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16466 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16468 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16470 hardcode_libdir_flag_spec
='-R$libdir'
16471 hardcode_direct
=yes
16472 hardcode_shlibpath_var
=no
16476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct
=yes
16478 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16479 hardcode_libdir_separator
=:
16480 hardcode_shlibpath_var
=no
16487 if test -f /usr
/libexec
/ld.so
; then
16488 hardcode_direct
=yes
16489 hardcode_shlibpath_var
=no
16490 hardcode_direct_absolute
=yes
16491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16492 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16493 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16494 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16495 export_dynamic_flag_spec
='${wl}-E'
16498 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16499 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_libdir_flag_spec
='-R$libdir'
16503 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16504 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16514 hardcode_libdir_flag_spec
='-L$libdir'
16515 hardcode_minus_L
=yes
16516 allow_undefined_flag
=unsupported
16517 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'
16518 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16522 if test "$GCC" = yes; then
16523 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16524 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'
16526 allow_undefined_flag
=' -expect_unresolved \*'
16527 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'
16529 archive_cmds_need_lc
='no'
16530 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16531 hardcode_libdir_separator
=:
16534 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16535 if test "$GCC" = yes; then
16536 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16537 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'
16538 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16540 allow_undefined_flag
=' -expect_unresolved \*'
16541 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'
16542 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~
16543 $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'
16545 # Both c and cxx compiler support -rpath directly
16546 hardcode_libdir_flag_spec
='-rpath $libdir'
16548 archive_cmds_need_lc
='no'
16549 hardcode_libdir_separator
=:
16553 no_undefined_flag
=' -z defs'
16554 if test "$GCC" = yes; then
16556 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16558 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16560 case `$CC -V 2>&1` in
16563 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16565 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16569 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16570 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16571 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16575 hardcode_libdir_flag_spec
='-R$libdir'
16576 hardcode_shlibpath_var
=no
16578 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16580 # The compiler driver will combine and reorder linker options,
16581 # but understands `-z linker_flag'. GCC discards it without `$wl',
16582 # but is careful enough not to reorder.
16583 # Supported since Solaris 2.6 (maybe 2.5.1?)
16584 if test "$GCC" = yes; then
16585 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16587 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16591 link_all_deplibs
=yes
16595 if test "x$host_vendor" = xsequent
; then
16596 # Use $CC to link under sequent, because it throws in some extra .o
16597 # files that make .init and .fini sections work.
16598 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_libdir_flag_spec
='-L$libdir'
16603 hardcode_direct
=yes
16604 hardcode_minus_L
=yes
16605 hardcode_shlibpath_var
=no
16609 case $host_vendor in
16611 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_direct
=yes # is this really true???
16615 ## LD is ld it makes a PLAMLIB
16616 ## CC just makes a GrossModule.
16617 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16618 reload_cmds
='$CC -r -o $output$reload_objs'
16622 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16626 runpath_var
='LD_RUN_PATH'
16627 hardcode_shlibpath_var
=no
16631 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_shlibpath_var
=no
16633 export_dynamic_flag_spec
='-Bexport'
16637 if test -d /usr
/nec
; then
16638 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_shlibpath_var
=no
16640 runpath_var
=LD_RUN_PATH
16641 hardcode_runpath_var
=yes
16646 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16647 no_undefined_flag
='${wl}-z,text'
16648 archive_cmds_need_lc
=no
16649 hardcode_shlibpath_var
=no
16650 runpath_var
='LD_RUN_PATH'
16652 if test "$GCC" = yes; then
16653 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16661 sysv5
* | sco3.2v5
* | sco5v6
*)
16662 # Note: We can NOT use -z defs as we might desire, because we do not
16663 # link with -lc, and that would cause any symbols used from libc to
16664 # always be unresolved, which means just about no library would
16665 # ever link correctly. If we're not using GNU ld we use -z text
16666 # though, which does catch some bad symbols but isn't as heavy-handed
16668 no_undefined_flag
='${wl}-z,text'
16669 allow_undefined_flag
='${wl}-z,nodefs'
16670 archive_cmds_need_lc
=no
16671 hardcode_shlibpath_var
=no
16672 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16673 hardcode_libdir_separator
=':'
16674 link_all_deplibs
=yes
16675 export_dynamic_flag_spec
='${wl}-Bexport'
16676 runpath_var
='LD_RUN_PATH'
16678 if test "$GCC" = yes; then
16679 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_libdir_flag_spec
='-L$libdir'
16690 hardcode_shlibpath_var
=no
16698 if test x
$host_vendor = xsni
; then
16700 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16701 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16708 $as_echo "$ld_shlibs" >&6; }
16709 test "$ld_shlibs" = no
&& can_build_shared
=no
16711 with_gnu_ld
=$with_gnu_ld
16728 # Do we need to explicitly link libc?
16730 case "x$archive_cmds_need_lc" in
16732 # Assume -lc should be added
16733 archive_cmds_need_lc
=yes
16735 if test "$enable_shared" = yes && test "$GCC" = yes; then
16736 case $archive_cmds in
16738 # FIXME: we may have to deal with multi-command sequences.
16741 # Test whether the compiler implicitly links with -lc since on some
16742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16743 # to ld, don't add -lc before -lgcc.
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16745 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16746 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16747 $as_echo_n "(cached) " >&6
16750 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16753 (eval $ac_compile) 2>&5
16755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756 test $ac_status = 0; } 2>conftest.err
; then
16759 libobjs
=conftest.
$ac_objext
16761 wl
=$lt_prog_compiler_wl
16762 pic_flag
=$lt_prog_compiler_pic
16768 lt_save_allow_undefined_flag
=$allow_undefined_flag
16769 allow_undefined_flag
=
16770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16771 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16774 test $ac_status = 0; }
16776 lt_cv_archive_cmds_need_lc
=no
16778 lt_cv_archive_cmds_need_lc
=yes
16780 allow_undefined_flag
=$lt_save_allow_undefined_flag
16782 cat conftest.err
1>&5
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16788 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16789 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16953 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16955 if test "$GCC" = yes; then
16957 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16958 *) lt_awk_arg
="/^libraries:/" ;;
16961 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16962 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16964 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16965 case $lt_search_path_spec in
16967 # if the path contains ";" then we assume it to be the separator
16968 # otherwise default to the standard path separator (i.e. ":") - it is
16969 # assumed that no part of a normal pathname contains ";" but that should
16970 # okay in the real world where ";" in dirpaths is itself problematic.
16971 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16974 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16977 # Ok, now we have the path, separated by spaces, we can step through it
16978 # and add multilib dir if necessary.
16979 lt_tmp_lt_search_path_spec
=
16980 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16981 for lt_sys_path
in $lt_search_path_spec; do
16982 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16983 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16985 test -d "$lt_sys_path" && \
16986 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16989 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16990 BEGIN {RS=" "; FS="/|\n";} {
16993 for (lt_i = NF; lt_i > 0; lt_i--) {
16994 if ($lt_i != "" && $lt_i != ".") {
16995 if ($lt_i == "..") {
16998 if (lt_count == 0) {
16999 lt_foo="/" $lt_i lt_foo;
17006 if (lt_foo != "") { lt_freq[lt_foo]++; }
17007 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17009 # AWK program above erroneously prepends '/' to C:/dos/paths
17012 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17013 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17015 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17017 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17019 library_names_spec
=
17020 libname_spec
='lib$name'
17024 postuninstall_cmds
=
17028 shlibpath_overrides_runpath
=unknown
17030 dynamic_linker
="$host_os ld.so"
17031 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17032 need_lib_prefix
=unknown
17033 hardcode_into_libs
=no
17035 # when you set need_version to no, make sure it does not cause -set_version
17036 # flags to be left without arguments
17037 need_version
=unknown
17042 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17043 shlibpath_var
=LIBPATH
17045 # AIX 3 has no versioning support, so we append a major version to the name.
17046 soname_spec
='${libname}${release}${shared_ext}$major'
17053 hardcode_into_libs
=yes
17054 if test "$host_cpu" = ia64
; then
17055 # AIX 5 supports IA64
17056 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17057 shlibpath_var
=LD_LIBRARY_PATH
17059 # With GCC up to 2.95.x, collect2 would create an import file
17060 # for dependence libraries. The import file would start with
17061 # the line `#! .'. This would cause the generated library to
17062 # depend on `.', always an invalid library. This was fixed in
17063 # development snapshots of GCC prior to 3.0.
17065 aix4 | aix4.
[01] | aix4.
[01].
*)
17066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17068 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17071 can_build_shared
=no
17075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17076 # soname into executable. Probably we can add versioning support to
17077 # collect2, so additional links can be useful in future.
17078 if test "$aix_use_runtimelinking" = yes; then
17079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17080 # instead of lib<name>.a to let people know that these are not
17081 # typical AIX shared libraries.
17082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 # We preserve .a as extension for shared libraries through AIX4.2
17085 # and later when we are not doing run time linking.
17086 library_names_spec
='${libname}${release}.a $libname.a'
17087 soname_spec
='${libname}${release}${shared_ext}$major'
17089 shlibpath_var
=LIBPATH
17096 # Since July 2007 AmigaOS4 officially supports .so libraries.
17097 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 library_names_spec
='$libname.ixlibrary $libname.a'
17102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17103 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'
17109 library_names_spec
='${libname}${shared_ext}'
17110 dynamic_linker
="$host_os ld.so"
17111 shlibpath_var
=LIBRARY_PATH
17117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec
='${libname}${release}${shared_ext}$major'
17119 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17120 shlibpath_var
=LD_LIBRARY_PATH
17121 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17122 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17123 # the default ld.so.conf also contains /usr/contrib/lib and
17124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17125 # libtool to hard-code these into programs
17128 cygwin
* | mingw
* | pw32
* | cegcc
*)
17129 version_type
=windows
17134 case $GCC,$host_os in
17135 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17136 library_names_spec
='$libname.dll.a'
17137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17138 postinstall_cmds
='base_file=`basename \${file}`~
17139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17140 dldir=$destdir/`dirname \$dlpath`~
17141 test -d \$dldir || mkdir -p \$dldir~
17142 $install_prog $dir/$dlname \$dldir/$dlname~
17143 chmod a+x \$dldir/$dlname~
17144 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17145 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17147 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17148 dlpath=$dir/\$dldll~
17150 shlibpath_overrides_runpath
=yes
17154 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17155 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17157 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17160 # MinGW DLLs use traditional 'lib' prefix
17161 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17164 # pw32 DLLs use 'pw' prefix rather than 'lib'
17165 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17174 dynamic_linker
='Win32 ld.exe'
17175 # FIXME: first we should search . and the directory the executable is in
17179 darwin
* | rhapsody
*)
17180 dynamic_linker
="$host_os dyld"
17181 version_type
=darwin
17184 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17185 soname_spec
='${libname}${release}${major}$shared_ext'
17186 shlibpath_overrides_runpath
=yes
17187 shlibpath_var
=DYLD_LIBRARY_PATH
17188 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17190 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17191 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17199 soname_spec
='${libname}${release}${shared_ext}$major'
17200 shlibpath_var
=LD_LIBRARY_PATH
17203 freebsd
* | dragonfly
*)
17204 # DragonFly does not have aout. When/if they implement a new
17205 # versioning mechanism, adjust this.
17206 if test -x /usr
/bin
/objformat
; then
17207 objformat
=`/usr/bin/objformat`
17210 freebsd
[123]*) objformat
=aout
;;
17211 *) objformat
=elf
;;
17214 version_type
=freebsd-
$objformat
17215 case $version_type in
17217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17222 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17226 shlibpath_var
=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath
=yes
17231 freebsd3.
[01]* | freebsdelf3.
[01]*)
17232 shlibpath_overrides_runpath
=yes
17233 hardcode_into_libs
=yes
17235 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17236 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17237 shlibpath_overrides_runpath
=no
17238 hardcode_into_libs
=yes
17240 *) # from 4.6 on, and DragonFly
17241 shlibpath_overrides_runpath
=yes
17242 hardcode_into_libs
=yes
17251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17252 soname_spec
='${libname}${release}${shared_ext}$major'
17253 shlibpath_var
=LD_LIBRARY_PATH
17254 hardcode_into_libs
=yes
17261 dynamic_linker
="$host_os runtime_loader"
17262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17263 soname_spec
='${libname}${release}${shared_ext}$major'
17264 shlibpath_var
=LIBRARY_PATH
17265 shlibpath_overrides_runpath
=yes
17266 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17267 hardcode_into_libs
=yes
17270 hpux9
* | hpux10
* | hpux11
*)
17271 # Give a soname corresponding to the major version so that dld.sl refuses to
17272 # link against other versions.
17279 hardcode_into_libs
=yes
17280 dynamic_linker
="$host_os dld.so"
17281 shlibpath_var
=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec
='${libname}${release}${shared_ext}$major'
17285 if test "X$HPUX_IA64_MODE" = X32
; then
17286 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17288 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17290 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17294 hardcode_into_libs
=yes
17295 dynamic_linker
="$host_os dld.sl"
17296 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17297 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec
='${libname}${release}${shared_ext}$major'
17300 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17301 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17305 dynamic_linker
="$host_os dld.sl"
17306 shlibpath_var
=SHLIB_PATH
17307 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 soname_spec
='${libname}${release}${shared_ext}$major'
17312 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17313 postinstall_cmds
='chmod 555 $lib'
17314 # or fails outright, so override atomically:
17315 install_override_mode
=555
17322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17323 soname_spec
='${libname}${release}${shared_ext}$major'
17324 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17325 shlibpath_var
=LD_LIBRARY_PATH
17326 shlibpath_overrides_runpath
=no
17327 hardcode_into_libs
=yes
17330 irix5
* | irix6
* | nonstopux
*)
17332 nonstopux
*) version_type
=nonstopux
;;
17334 if test "$lt_cv_prog_gnu_ld" = yes; then
17342 soname_spec
='${libname}${release}${shared_ext}$major'
17343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17345 irix5
* | nonstopux
*)
17346 libsuff
= shlibsuff
=
17349 case $LD in # libtool.m4 will add one of these switches to LD
17350 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17351 libsuff
= shlibsuff
= libmagic
=32-bit;;
17352 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17353 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17354 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17355 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17356 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17360 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17361 shlibpath_overrides_runpath
=no
17362 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17363 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17364 hardcode_into_libs
=yes
17367 # No shared lib support for Linux oldld, aout, or coff.
17368 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17372 # This must be Linux ELF.
17373 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec
='${libname}${release}${shared_ext}$major'
17379 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17380 shlibpath_var
=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath
=no
17383 # Some binutils ld are patched to set DT_RUNPATH
17384 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17385 $as_echo_n "(cached) " >&6
17387 lt_cv_shlibpath_overrides_runpath
=no
17388 save_LDFLAGS
=$LDFLAGS
17389 save_libdir
=$libdir
17390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17403 if ac_fn_c_try_link
"$LINENO"; then :
17404 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17405 lt_cv_shlibpath_overrides_runpath
=yes
17408 rm -f core conftest.err conftest.
$ac_objext \
17409 conftest
$ac_exeext conftest.
$ac_ext
17410 LDFLAGS
=$save_LDFLAGS
17411 libdir
=$save_libdir
17415 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17417 # This implies no fast_install, which is unacceptable.
17418 # Some rework will be needed to allow for fast_install
17419 # before this can be enabled.
17420 hardcode_into_libs
=yes
17422 # Append ld.so.conf contents to the search path
17423 if test -f /etc
/ld.so.conf
; then
17424 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' ' '`
17425 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17428 # We used to test for /lib/ld.so.1 and disable shared libraries on
17429 # powerpc, because MkLinux only supported shared libraries with the
17430 # GNU dynamic linker. Since this was broken with cross compilers,
17431 # most powerpc-linux boxes support dynamic linking these days and
17432 # people can always --disable-shared, the test was removed, and we
17433 # assume the GNU/Linux dynamic linker is in use.
17434 dynamic_linker
='GNU/Linux ld.so'
17441 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17443 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17444 dynamic_linker
='NetBSD (a.out) ld.so'
17446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17447 soname_spec
='${libname}${release}${shared_ext}$major'
17448 dynamic_linker
='NetBSD ld.elf_so'
17450 shlibpath_var
=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath
=yes
17452 hardcode_into_libs
=yes
17457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 shlibpath_var
=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath
=yes
17466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 soname_spec
='${libname}${release}${shared_ext}$major'
17468 shlibpath_var
=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath
=no
17470 hardcode_into_libs
=yes
17471 dynamic_linker
='ldqnx.so'
17476 sys_lib_dlsearch_path_spec
="/usr/lib"
17478 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17480 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17481 *) need_version
=no
;;
17483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17484 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17485 shlibpath_var
=LD_LIBRARY_PATH
17486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17488 openbsd2.
[89] | openbsd2.
[89].
*)
17489 shlibpath_overrides_runpath
=no
17492 shlibpath_overrides_runpath
=yes
17496 shlibpath_overrides_runpath
=yes
17501 libname_spec
='$name'
17504 library_names_spec
='$libname${shared_ext} $libname.a'
17505 dynamic_linker
='OS/2 ld.exe'
17506 shlibpath_var
=LIBPATH
17509 osf3
* | osf4
* | osf5
*)
17513 soname_spec
='${libname}${release}${shared_ext}$major'
17514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 shlibpath_var
=LD_LIBRARY_PATH
17516 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17517 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec
='${libname}${release}${shared_ext}$major'
17530 shlibpath_var
=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath
=yes
17532 hardcode_into_libs
=yes
17533 # ldd complains unless libraries are executable
17534 postinstall_cmds
='chmod +x $lib'
17539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17540 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17541 shlibpath_var
=LD_LIBRARY_PATH
17542 shlibpath_overrides_runpath
=yes
17543 if test "$with_gnu_ld" = yes; then
17551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec
='${libname}${release}${shared_ext}$major'
17553 shlibpath_var
=LD_LIBRARY_PATH
17554 case $host_vendor in
17556 shlibpath_overrides_runpath
=no
17558 runpath_var
=LD_RUN_PATH
17566 shlibpath_overrides_runpath
=no
17567 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17573 if test -d /usr
/nec
;then
17575 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17576 soname_spec
='$libname${shared_ext}.$major'
17577 shlibpath_var
=LD_LIBRARY_PATH
17581 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17582 version_type
=freebsd-elf
17585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17586 soname_spec
='${libname}${release}${shared_ext}$major'
17587 shlibpath_var
=LD_LIBRARY_PATH
17588 shlibpath_overrides_runpath
=yes
17589 hardcode_into_libs
=yes
17590 if test "$with_gnu_ld" = yes; then
17591 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17593 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17596 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17600 sys_lib_dlsearch_path_spec
='/usr/lib'
17604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 shlibpath_var
=LD_LIBRARY_PATH
17610 shlibpath_overrides_runpath
=no
17611 hardcode_into_libs
=yes
17616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 soname_spec
='${libname}${release}${shared_ext}$major'
17618 shlibpath_var
=LD_LIBRARY_PATH
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17626 $as_echo "$dynamic_linker" >&6; }
17627 test "$dynamic_linker" = no
&& can_build_shared
=no
17629 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17630 if test "$GCC" = yes; then
17631 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17635 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17638 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17735 if test -n "$hardcode_libdir_flag_spec" ||
17736 test -n "$runpath_var" ||
17737 test "X$hardcode_automatic" = "Xyes" ; then
17739 # We can hardcode non-existent directories.
17740 if test "$hardcode_direct" != no
&&
17741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17742 # have to relink, otherwise we might link with an installed library
17743 # when we should be linking with a yet-to-be-installed one
17744 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17745 test "$hardcode_minus_L" != no
; then
17746 # Linking always hardcodes the temporary library directory.
17747 hardcode_action
=relink
17749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17750 hardcode_action
=immediate
17753 # We cannot hardcode anything, or else we can only hardcode existing
17755 hardcode_action
=unsupported
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17758 $as_echo "$hardcode_action" >&6; }
17760 if test "$hardcode_action" = relink ||
17761 test "$inherit_rpath" = yes; then
17762 # Fast installation is not supported
17763 enable_fast_install
=no
17764 elif test "$shlibpath_overrides_runpath" = yes ||
17765 test "$enable_shared" = no
; then
17766 # Fast installation is not necessary
17767 enable_fast_install
=needless
17775 if test "x$enable_dlopen" != xyes
; then
17776 enable_dlopen
=unknown
17777 enable_dlopen_self
=unknown
17778 enable_dlopen_self_static
=unknown
17785 lt_cv_dlopen
="load_add_on"
17787 lt_cv_dlopen_self
=yes
17790 mingw
* | pw32
* | cegcc
*)
17791 lt_cv_dlopen
="LoadLibrary"
17796 lt_cv_dlopen
="dlopen"
17801 # if libdl is installed we need to link against it
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17807 ac_check_lib_save_LIBS
=$LIBS
17809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17812 /* Override any GCC internal prototype to avoid an error.
17813 Use char because int might match the return type of a GCC
17814 builtin and then its argument prototype would still apply. */
17827 if ac_fn_c_try_link
"$LINENO"; then :
17828 ac_cv_lib_dl_dlopen
=yes
17830 ac_cv_lib_dl_dlopen
=no
17832 rm -f core conftest.err conftest.
$ac_objext \
17833 conftest
$ac_exeext conftest.
$ac_ext
17834 LIBS
=$ac_check_lib_save_LIBS
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17838 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17839 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17842 lt_cv_dlopen
="dyld"
17844 lt_cv_dlopen_self
=yes
17851 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17852 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17853 lt_cv_dlopen
="shl_load"
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17856 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17857 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17858 $as_echo_n "(cached) " >&6
17860 ac_check_lib_save_LIBS
=$LIBS
17862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17865 /* Override any GCC internal prototype to avoid an error.
17866 Use char because int might match the return type of a GCC
17867 builtin and then its argument prototype would still apply. */
17875 return shl_load ();
17880 if ac_fn_c_try_link
"$LINENO"; then :
17881 ac_cv_lib_dld_shl_load
=yes
17883 ac_cv_lib_dld_shl_load
=no
17885 rm -f core conftest.err conftest.
$ac_objext \
17886 conftest
$ac_exeext conftest.
$ac_ext
17887 LIBS
=$ac_check_lib_save_LIBS
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17890 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17891 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17892 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17894 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17895 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17896 lt_cv_dlopen
="dlopen"
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17901 $as_echo_n "(cached) " >&6
17903 ac_check_lib_save_LIBS
=$LIBS
17905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17908 /* Override any GCC internal prototype to avoid an error.
17909 Use char because int might match the return type of a GCC
17910 builtin and then its argument prototype would still apply. */
17923 if ac_fn_c_try_link
"$LINENO"; then :
17924 ac_cv_lib_dl_dlopen
=yes
17926 ac_cv_lib_dl_dlopen
=no
17928 rm -f core conftest.err conftest.
$ac_objext \
17929 conftest
$ac_exeext conftest.
$ac_ext
17930 LIBS
=$ac_check_lib_save_LIBS
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17934 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17935 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17938 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17939 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17940 $as_echo_n "(cached) " >&6
17942 ac_check_lib_save_LIBS
=$LIBS
17943 LIBS
="-lsvld $LIBS"
17944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17947 /* Override any GCC internal prototype to avoid an error.
17948 Use char because int might match the return type of a GCC
17949 builtin and then its argument prototype would still apply. */
17962 if ac_fn_c_try_link
"$LINENO"; then :
17963 ac_cv_lib_svld_dlopen
=yes
17965 ac_cv_lib_svld_dlopen
=no
17967 rm -f core conftest.err conftest.
$ac_objext \
17968 conftest
$ac_exeext conftest.
$ac_ext
17969 LIBS
=$ac_check_lib_save_LIBS
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17973 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17974 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17978 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17979 $as_echo_n "(cached) " >&6
17981 ac_check_lib_save_LIBS
=$LIBS
17983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17996 return dld_link ();
18001 if ac_fn_c_try_link
"$LINENO"; then :
18002 ac_cv_lib_dld_dld_link
=yes
18004 ac_cv_lib_dld_dld_link
=no
18006 rm -f core conftest.err conftest.
$ac_objext \
18007 conftest
$ac_exeext conftest.
$ac_ext
18008 LIBS
=$ac_check_lib_save_LIBS
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18011 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18012 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18013 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18034 if test "x$lt_cv_dlopen" != xno
; then
18040 case $lt_cv_dlopen in
18042 save_CPPFLAGS
="$CPPFLAGS"
18043 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18045 save_LDFLAGS
="$LDFLAGS"
18046 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18049 LIBS
="$lt_cv_dlopen_libs $LIBS"
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18052 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18053 if test "${lt_cv_dlopen_self+set}" = set; then :
18054 $as_echo_n "(cached) " >&6
18056 if test "$cross_compiling" = yes; then :
18057 lt_cv_dlopen_self
=cross
18059 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18060 lt_status
=$lt_dlunknown
18061 cat > conftest.
$ac_ext <<_LT_EOF
18062 #line 18062 "configure"
18063 #include "confdefs.h"
18072 # define LT_DLGLOBAL RTLD_GLOBAL
18075 # define LT_DLGLOBAL DL_GLOBAL
18077 # define LT_DLGLOBAL 0
18081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18082 find out it does not work in some platform. */
18083 #ifndef LT_DLLAZY_OR_NOW
18085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18088 # define LT_DLLAZY_OR_NOW DL_LAZY
18091 # define LT_DLLAZY_OR_NOW RTLD_NOW
18094 # define LT_DLLAZY_OR_NOW DL_NOW
18096 # define LT_DLLAZY_OR_NOW 0
18103 /* When -fvisbility=hidden is used, assume the code has been annotated
18104 correspondingly for the symbols needed. */
18105 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18106 void fnord () __attribute__((visibility("default")));
18109 void fnord () { int i=42; }
18112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18113 int status = $lt_dlunknown;
18117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18120 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18121 else puts (dlerror ());
18123 /* dlclose (self); */
18131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18132 (eval $ac_link) 2>&5
18134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18135 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18136 (.
/conftest
; exit; ) >&5 2>/dev
/null
18138 case x
$lt_status in
18139 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18140 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18141 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18144 # compilation failed
18145 lt_cv_dlopen_self
=no
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18153 $as_echo "$lt_cv_dlopen_self" >&6; }
18155 if test "x$lt_cv_dlopen_self" = xyes
; then
18156 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18158 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18159 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18162 if test "$cross_compiling" = yes; then :
18163 lt_cv_dlopen_self_static
=cross
18165 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18166 lt_status
=$lt_dlunknown
18167 cat > conftest.
$ac_ext <<_LT_EOF
18168 #line 18168 "configure"
18169 #include "confdefs.h"
18178 # define LT_DLGLOBAL RTLD_GLOBAL
18181 # define LT_DLGLOBAL DL_GLOBAL
18183 # define LT_DLGLOBAL 0
18187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18188 find out it does not work in some platform. */
18189 #ifndef LT_DLLAZY_OR_NOW
18191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18194 # define LT_DLLAZY_OR_NOW DL_LAZY
18197 # define LT_DLLAZY_OR_NOW RTLD_NOW
18200 # define LT_DLLAZY_OR_NOW DL_NOW
18202 # define LT_DLLAZY_OR_NOW 0
18209 /* When -fvisbility=hidden is used, assume the code has been annotated
18210 correspondingly for the symbols needed. */
18211 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18212 void fnord () __attribute__((visibility("default")));
18215 void fnord () { int i=42; }
18218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18219 int status = $lt_dlunknown;
18223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18226 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18227 else puts (dlerror ());
18229 /* dlclose (self); */
18237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18238 (eval $ac_link) 2>&5
18240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18241 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18242 (.
/conftest
; exit; ) >&5 2>/dev
/null
18244 case x
$lt_status in
18245 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18246 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18247 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18250 # compilation failed
18251 lt_cv_dlopen_self_static
=no
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18262 CPPFLAGS
="$save_CPPFLAGS"
18263 LDFLAGS
="$save_LDFLAGS"
18268 case $lt_cv_dlopen_self in
18269 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18270 *) enable_dlopen_self
=unknown
;;
18273 case $lt_cv_dlopen_self_static in
18274 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18275 *) enable_dlopen_self_static
=unknown
;;
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18299 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18300 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18301 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18303 $as_echo "yes" >&6; }
18305 # FIXME - insert some real tests, host_os isn't really good enough
18308 if test -n "$STRIP" ; then
18309 striplib
="$STRIP -x"
18310 old_striplib
="$STRIP -S"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315 $as_echo "no" >&6; }
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320 $as_echo "no" >&6; }
18336 # Report which library types will actually be built
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18340 $as_echo "$can_build_shared" >&6; }
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18343 $as_echo_n "checking whether to build shared libraries... " >&6; }
18344 test "$can_build_shared" = "no" && enable_shared
=no
18346 # On AIX, shared libraries and static libraries use the same namespace, and
18347 # are all built from PIC.
18350 test "$enable_shared" = yes && enable_static
=no
18351 if test -n "$RANLIB"; then
18352 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18353 postinstall_cmds
='$RANLIB $lib'
18358 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18359 test "$enable_shared" = yes && enable_static
=no
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18364 $as_echo "$enable_shared" >&6; }
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18367 $as_echo_n "checking whether to build static libraries... " >&6; }
18368 # Make sure either enable_shared or enable_static is yes.
18369 test "$enable_shared" = yes || enable_static
=yes
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18371 $as_echo "$enable_static" >&6; }
18378 ac_cpp
='$CPP $CPPFLAGS'
18379 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18387 (test "X$CXX" != "Xg++"))) ; then
18389 ac_cpp
='$CXXCPP $CPPFLAGS'
18390 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18394 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18395 if test -z "$CXXCPP"; then
18396 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18397 $as_echo_n "(cached) " >&6
18399 # Double quotes because CXXCPP needs to be expanded
18400 for CXXCPP
in "$CXX -E" "/lib/cpp"
18402 ac_preproc_ok
=false
18403 for ac_cxx_preproc_warn_flag
in '' yes
18405 # Use a header file that comes with gcc, so configuring glibc
18406 # with a fresh cross-compiler works.
18407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 # <limits.h> exists even on freestanding compilers.
18409 # On the NeXT, cc -E runs the code through the compiler's parser,
18410 # not just through cpp. "Syntax error" is here to catch this case.
18411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18414 # include <limits.h>
18416 # include <assert.h>
18420 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18423 # Broken: fails on valid input.
18426 rm -f conftest.err conftest.
$ac_ext
18428 # OK, works on sane cases. Now check whether nonexistent headers
18429 # can be detected and how.
18430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432 #include <ac_nonexistent.h>
18434 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18435 # Broken: success on invalid input.
18438 # Passes both tests.
18442 rm -f conftest.err conftest.
$ac_ext
18445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18446 rm -f conftest.err conftest.
$ac_ext
18447 if $ac_preproc_ok; then :
18452 ac_cv_prog_CXXCPP
=$CXXCPP
18455 CXXCPP
=$ac_cv_prog_CXXCPP
18457 ac_cv_prog_CXXCPP
=$CXXCPP
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18460 $as_echo "$CXXCPP" >&6; }
18461 ac_preproc_ok
=false
18462 for ac_cxx_preproc_warn_flag
in '' yes
18464 # Use a header file that comes with gcc, so configuring glibc
18465 # with a fresh cross-compiler works.
18466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18467 # <limits.h> exists even on freestanding compilers.
18468 # On the NeXT, cc -E runs the code through the compiler's parser,
18469 # not just through cpp. "Syntax error" is here to catch this case.
18470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18473 # include <limits.h>
18475 # include <assert.h>
18479 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18482 # Broken: fails on valid input.
18485 rm -f conftest.err conftest.
$ac_ext
18487 # OK, works on sane cases. Now check whether nonexistent headers
18488 # can be detected and how.
18489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 #include <ac_nonexistent.h>
18493 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18494 # Broken: success on invalid input.
18497 # Passes both tests.
18501 rm -f conftest.err conftest.
$ac_ext
18504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18505 rm -f conftest.err conftest.
$ac_ext
18506 if $ac_preproc_ok; then :
18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18511 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18512 See \`config.log' for more details." "$LINENO" 5; }
18516 ac_cpp
='$CPP $CPPFLAGS'
18517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18522 _lt_caught_CXX_error
=yes
18526 ac_cpp
='$CXXCPP $CPPFLAGS'
18527 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18531 archive_cmds_need_lc_CXX
=no
18532 allow_undefined_flag_CXX
=
18533 always_export_symbols_CXX
=no
18534 archive_expsym_cmds_CXX
=
18535 compiler_needs_object_CXX
=no
18536 export_dynamic_flag_spec_CXX
=
18537 hardcode_direct_CXX
=no
18538 hardcode_direct_absolute_CXX
=no
18539 hardcode_libdir_flag_spec_CXX
=
18540 hardcode_libdir_flag_spec_ld_CXX
=
18541 hardcode_libdir_separator_CXX
=
18542 hardcode_minus_L_CXX
=no
18543 hardcode_shlibpath_var_CXX
=unsupported
18544 hardcode_automatic_CXX
=no
18545 inherit_rpath_CXX
=no
18547 module_expsym_cmds_CXX
=
18548 link_all_deplibs_CXX
=unknown
18549 old_archive_cmds_CXX
=$old_archive_cmds
18550 reload_flag_CXX
=$reload_flag
18551 reload_cmds_CXX
=$reload_cmds
18552 no_undefined_flag_CXX
=
18553 whole_archive_flag_spec_CXX
=
18554 enable_shared_with_static_runtimes_CXX
=no
18556 # Source file extension for C++ test sources.
18559 # Object file extension for compiled C++ test sources.
18563 # No sense in running all these tests if we already determined that
18564 # the CXX compiler isn't working. Some variables (like enable_shared)
18565 # are currently assumed to apply to all compilers on this platform,
18566 # and will be corrupted by setting them based on a non-working compiler.
18567 if test "$_lt_caught_CXX_error" != yes; then
18568 # Code to be used in simple compile tests
18569 lt_simple_compile_test_code
="int some_variable = 0;"
18571 # Code to be used in simple link tests
18572 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18574 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18581 # If no C compiler was specified, use CC.
18584 # If no C compiler flags were specified, use CFLAGS.
18585 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18587 # Allow CC to be a program name with arguments.
18591 # save warnings/boilerplate of simple test code
18592 ac_outfile
=conftest.
$ac_objext
18593 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18594 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18595 _lt_compiler_boilerplate
=`cat conftest.err`
18598 ac_outfile
=conftest.
$ac_objext
18599 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18600 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18601 _lt_linker_boilerplate
=`cat conftest.err`
18605 # Allow CC to be a program name with arguments.
18610 lt_save_with_gnu_ld
=$with_gnu_ld
18611 lt_save_path_LD
=$lt_cv_path_LD
18612 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18613 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18615 $as_unset lt_cv_prog_gnu_ld
18617 if test -n "${lt_cv_path_LDCXX+set}"; then
18618 lt_cv_path_LD
=$lt_cv_path_LDCXX
18620 $as_unset lt_cv_path_LD
18622 test -z "${LDCXX+set}" || LD
=$LDCXX
18626 for cc_temp
in $compiler""; do
18628 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18629 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18634 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18637 if test -n "$compiler"; then
18638 # We don't want -fno-exception when compiling C++ code, so set the
18639 # no_builtin_flag separately
18640 if test "$GXX" = yes; then
18641 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18643 lt_prog_compiler_no_builtin_flag_CXX
=
18646 if test "$GXX" = yes; then
18647 # Set up default GNU C++ configuration
18651 # Check whether --with-gnu-ld was given.
18652 if test "${with_gnu_ld+set}" = set; then :
18653 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18659 if test "$GCC" = yes; then
18660 # Check if gcc -print-prog-name=ld gives a path.
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18662 $as_echo_n "checking for ld used by $CC... " >&6; }
18665 # gcc leaves a trailing carriage return which upsets mingw
18666 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18668 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18671 # Accept absolute paths.
18673 re_direlt
='/[^/][^/]*/\.\./'
18674 # Canonicalize the pathname of ld
18675 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18676 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18677 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18679 test -z "$LD" && LD
="$ac_prog"
18682 # If it fails, then pretend we aren't using GCC.
18686 # If it is relative, then search for the first ld in PATH.
18687 with_gnu_ld
=unknown
18690 elif test "$with_gnu_ld" = yes; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18692 $as_echo_n "checking for GNU ld... " >&6; }
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18695 $as_echo_n "checking for non-GNU ld... " >&6; }
18697 if test "${lt_cv_path_LD+set}" = set; then :
18698 $as_echo_n "(cached) " >&6
18700 if test -z "$LD"; then
18701 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18702 for ac_dir
in $PATH; do
18704 test -z "$ac_dir" && ac_dir
=.
18705 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18706 lt_cv_path_LD
="$ac_dir/$ac_prog"
18707 # Check to see if the program is GNU ld. I'd rather use --version,
18708 # but apparently some variants of GNU ld only accept -v.
18709 # Break only if it was the GNU/non-GNU ld that we prefer.
18710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18711 *GNU
* |
*'with BFD'*)
18712 test "$with_gnu_ld" != no
&& break
18715 test "$with_gnu_ld" != yes && break
18722 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18726 LD
="$lt_cv_path_LD"
18727 if test -n "$LD"; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18729 $as_echo "$LD" >&6; }
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18734 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18736 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18737 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18738 $as_echo_n "(cached) " >&6
18740 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18741 case `$LD -v 2>&1 </dev/null` in
18742 *GNU
* |
*'with BFD'*)
18743 lt_cv_prog_gnu_ld
=yes
18746 lt_cv_prog_gnu_ld
=no
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18751 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18752 with_gnu_ld
=$lt_cv_prog_gnu_ld
18760 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18761 # archiving commands below assume that GNU ld is being used.
18762 if test "$with_gnu_ld" = yes; then
18763 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18764 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'
18766 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18767 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18769 # If archive_cmds runs LD, not CC, wlarc should be empty
18770 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18771 # investigate it a little bit more. (MM)
18774 # ancient GNU ld didn't support --whole-archive et. al.
18775 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18776 $GREP 'no-whole-archive' > /dev
/null
; then
18777 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18779 whole_archive_flag_spec_CXX
=
18785 # A generic and very simple default shared library creation
18786 # command for GNU C++ for the case where it uses the native
18787 # linker, instead of GNU ld. If possible, this setting should
18788 # overridden to take advantage of the native linker features on
18789 # the platform it is being used on.
18790 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18793 # Commands to make compiler produce verbose output that lists
18794 # what "hidden" libraries, object files and flags are used when
18795 # linking a shared library.
18796 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18804 # PORTME: fill in a description of your system's C++ link characteristics
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18806 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18810 # FIXME: insert proper C++ library support
18814 if test "$host_cpu" = ia64
; then
18815 # On IA64, the linker does run time linking by default, so we don't
18816 # have to do anything special.
18817 aix_use_runtimelinking
=no
18818 exp_sym_flag
='-Bexport'
18821 aix_use_runtimelinking
=no
18823 # Test if we are trying to use run time linking or normal
18824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18825 # need to do runtime linking.
18826 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18827 for ld_flag
in $LDFLAGS; do
18830 aix_use_runtimelinking
=yes
18838 exp_sym_flag
='-bexport'
18839 no_entry_flag
='-bnoentry'
18842 # When large executables or shared objects are built, AIX ld can
18843 # have problems creating the table of contents. If linking a library
18844 # or program results in "error TOC overflow" add -mminimal-toc to
18845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18848 archive_cmds_CXX
=''
18849 hardcode_direct_CXX
=yes
18850 hardcode_direct_absolute_CXX
=yes
18851 hardcode_libdir_separator_CXX
=':'
18852 link_all_deplibs_CXX
=yes
18853 file_list_spec_CXX
='${wl}-f,'
18855 if test "$GXX" = yes; then
18856 case $host_os in aix4.
[012]|aix4.
[012].
*)
18857 # We only want to do this on AIX 4.2 and lower, the check
18858 # below for broken collect2 doesn't work under 4.3+
18859 collect2name
=`${CC} -print-prog-name=collect2`
18860 if test -f "$collect2name" &&
18861 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18863 # We have reworked collect2
18866 # We have old collect2
18867 hardcode_direct_CXX
=unsupported
18868 # It fails to find uninstalled libraries when the uninstalled
18869 # path is not listed in the libpath. Setting hardcode_minus_L
18870 # to unsupported forces relinking
18871 hardcode_minus_L_CXX
=yes
18872 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18873 hardcode_libdir_separator_CXX
=
18876 shared_flag
='-shared'
18877 if test "$aix_use_runtimelinking" = yes; then
18878 shared_flag
="$shared_flag "'${wl}-G'
18882 if test "$host_cpu" = ia64
; then
18883 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18884 # chokes on -Wl,-G. The following line is correct:
18887 if test "$aix_use_runtimelinking" = yes; then
18888 shared_flag
='${wl}-G'
18890 shared_flag
='${wl}-bM:SRE'
18895 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18896 # It seems that -bexpall does not export symbols beginning with
18897 # underscore (_), so it is better to generate a list of symbols to
18899 always_export_symbols_CXX
=yes
18900 if test "$aix_use_runtimelinking" = yes; then
18901 # Warning - without using the other runtime loading flags (-brtl),
18902 # -berok will link without error, but may produce a broken library.
18903 allow_undefined_flag_CXX
='-berok'
18904 # Determine the default libpath from the value encoded in an empty
18906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18917 if ac_fn_cxx_try_link
"$LINENO"; then :
18919 lt_aix_libpath_sed
='
18920 /Import File Strings/,/^$/ {
18926 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18927 # Check for a 64-bit object if we didn't find anything.
18928 if test -z "$aix_libpath"; then
18929 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18932 rm -f core conftest.err conftest.
$ac_objext \
18933 conftest
$ac_exeext conftest.
$ac_ext
18934 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18936 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18938 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"
18940 if test "$host_cpu" = ia64
; then
18941 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18942 allow_undefined_flag_CXX
="-z nodefs"
18943 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"
18945 # Determine the default libpath from the value encoded in an
18946 # empty executable.
18947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18958 if ac_fn_cxx_try_link
"$LINENO"; then :
18960 lt_aix_libpath_sed
='
18961 /Import File Strings/,/^$/ {
18967 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18968 # Check for a 64-bit object if we didn't find anything.
18969 if test -z "$aix_libpath"; then
18970 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18973 rm -f core conftest.err conftest.
$ac_objext \
18974 conftest
$ac_exeext conftest.
$ac_ext
18975 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18977 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18978 # Warning - without using the other run time loading flags,
18979 # -berok will link without error, but may produce a broken library.
18980 no_undefined_flag_CXX
=' ${wl}-bernotok'
18981 allow_undefined_flag_CXX
=' ${wl}-berok'
18982 if test "$with_gnu_ld" = yes; then
18983 # We only use this code for GNU lds that support --whole-archive.
18984 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18986 # Exported symbols can be pulled into shared objects from archives
18987 whole_archive_flag_spec_CXX
='$convenience'
18989 archive_cmds_need_lc_CXX
=yes
18990 # This is similar to how AIX traditionally builds its shared
18992 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'
18998 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18999 allow_undefined_flag_CXX
=unsupported
19000 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19001 # support --undefined. This deserves some investigation. FIXME
19002 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19009 case $cc_basename in
19011 # FIXME: insert proper C++ library support
19017 cygwin
* | mingw
* | pw32
* | cegcc
*)
19018 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19019 # as there is no search path for DLLs.
19020 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19021 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19022 allow_undefined_flag_CXX
=unsupported
19023 always_export_symbols_CXX
=no
19024 enable_shared_with_static_runtimes_CXX
=yes
19026 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19027 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'
19028 # If the export-symbols file already is a .def file (1st line
19029 # is EXPORTS), use it as is; otherwise, prepend...
19030 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031 cp $export_symbols $output_objdir/$soname.def;
19033 echo EXPORTS > $output_objdir/$soname.def;
19034 cat $export_symbols >> $output_objdir/$soname.def;
19036 $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'
19041 darwin
* | rhapsody
*)
19044 archive_cmds_need_lc_CXX
=no
19045 hardcode_direct_CXX
=no
19046 hardcode_automatic_CXX
=yes
19047 hardcode_shlibpath_var_CXX
=unsupported
19048 if test "$lt_cv_ld_force_load" = "yes"; then
19049 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\"`'
19051 whole_archive_flag_spec_CXX
=''
19053 link_all_deplibs_CXX
=yes
19054 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19055 case $cc_basename in
19056 ifort
*) _lt_dar_can_shared
=yes ;;
19057 *) _lt_dar_can_shared
=$GCC ;;
19059 if test "$_lt_dar_can_shared" = "yes"; then
19060 output_verbose_link_cmd
=func_echo_all
19061 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}"
19062 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19063 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}"
19064 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}"
19065 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19066 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}"
19067 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}"
19077 case $cc_basename in
19079 # FIXME: insert proper C++ library support
19083 # Green Hills C++ Compiler
19084 # FIXME: insert proper C++ library support
19088 # FIXME: insert proper C++ library support
19095 # C++ shared libraries reported to be fairly broken before
19101 archive_cmds_need_lc_CXX
=no
19104 freebsd
* | dragonfly
*)
19105 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19114 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19115 link_all_deplibs_CXX
=yes
19119 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19120 hardcode_libdir_separator_CXX
=:
19121 export_dynamic_flag_spec_CXX
='${wl}-E'
19122 hardcode_direct_CXX
=yes
19123 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19124 # but as the default
19125 # location of the library.
19127 case $cc_basename in
19129 # FIXME: insert proper C++ library support
19133 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'
19134 # Commands to make compiler produce verbose output that lists
19135 # what "hidden" libraries, object files and flags are used when
19136 # linking a shared library.
19138 # There doesn't appear to be a way to prevent this compiler from
19139 # explicitly linking system object files so we need to strip them
19140 # from the output so that they don't get included in the library
19142 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"'
19145 if test "$GXX" = yes; then
19146 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'
19148 # FIXME: insert proper C++ library support
19156 if test $with_gnu_ld = no
; then
19157 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19158 hardcode_libdir_separator_CXX
=:
19164 export_dynamic_flag_spec_CXX
='${wl}-E'
19170 hardcode_direct_CXX
=no
19171 hardcode_shlibpath_var_CXX
=no
19174 hardcode_direct_CXX
=yes
19175 hardcode_direct_absolute_CXX
=yes
19176 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19177 # but as the default
19178 # location of the library.
19182 case $cc_basename in
19184 # FIXME: insert proper C++ library support
19190 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19193 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19196 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19199 # Commands to make compiler produce verbose output that lists
19200 # what "hidden" libraries, object files and flags are used when
19201 # linking a shared library.
19203 # There doesn't appear to be a way to prevent this compiler from
19204 # explicitly linking system object files so we need to strip them
19205 # from the output so that they don't get included in the library
19207 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"'
19210 if test "$GXX" = yes; then
19211 if test $with_gnu_ld = no
; then
19214 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19217 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220 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'
19225 # FIXME: insert proper C++ library support
19233 hardcode_direct_CXX
=no
19234 hardcode_shlibpath_var_CXX
=no
19235 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19236 export_dynamic_flag_spec_CXX
='${wl}-E'
19237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19238 # Instead, shared libraries are loaded at an image base (0x10000000 by
19239 # default) and relocated if they conflict, which is a slow very memory
19240 # consuming and fragmenting process. To avoid this, we pick a random,
19241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19243 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'
19244 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'
19247 case $cc_basename in
19250 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'
19252 # Archives containing C++ object files must be created using
19253 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19254 # necessary to make sure instantiated templates are included
19256 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19259 if test "$GXX" = yes; then
19260 if test "$with_gnu_ld" = no
; then
19261 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'
19263 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'
19266 link_all_deplibs_CXX
=yes
19269 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19270 hardcode_libdir_separator_CXX
=:
19271 inherit_rpath_CXX
=yes
19274 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19275 case $cc_basename in
19277 # Kuck and Associates, Inc. (KAI) C++ Compiler
19279 # KCC will only create a shared library if the output file
19280 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19281 # to its proper name (with version) after linking.
19282 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'
19283 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'
19284 # Commands to make compiler produce verbose output that lists
19285 # what "hidden" libraries, object files and flags are used when
19286 # linking a shared library.
19288 # There doesn't appear to be a way to prevent this compiler from
19289 # explicitly linking system object files so we need to strip them
19290 # from the output so that they don't get included in the library
19292 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"'
19294 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19295 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19297 # Archives containing C++ object files must be created using
19298 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19299 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19304 # version 8.0 and above of icpc choke on multiply defined symbols
19305 # if we add $predep_objects and $postdep_objects, however 7.1 and
19306 # earlier do not add the objects themselves.
19307 case `$CC -V 2>&1` in
19309 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310 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'
19312 *) # Version 8.0 or newer
19315 ia64
*) tmp_idyn
=' -i_dynamic';;
19317 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19318 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'
19321 archive_cmds_need_lc_CXX
=no
19322 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19323 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19324 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19327 # Portland Group C++ compiler
19329 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19330 prelink_cmds_CXX
='tpldir=Template.dir~
19332 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19333 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19334 old_archive_cmds_CXX
='tpldir=Template.dir~
19336 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19337 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19339 archive_cmds_CXX
='tpldir=Template.dir~
19341 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19342 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19343 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19345 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19346 $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'
19348 *) # Version 6 and above use weak symbols
19349 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19350 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'
19354 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19355 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19356 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'
19360 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19361 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'
19363 runpath_var
=LD_RUN_PATH
19364 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19365 hardcode_libdir_separator_CXX
=:
19367 # Commands to make compiler produce verbose output that lists
19368 # what "hidden" libraries, object files and flags are used when
19369 # linking a shared library.
19371 # There doesn't appear to be a way to prevent this compiler from
19372 # explicitly linking system object files so we need to strip them
19373 # from the output so that they don't get included in the library
19375 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'
19377 xl
* | mpixl
* | bgxl
*)
19378 # IBM XL 8.0 on PPC, with GNU ld
19379 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19380 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19381 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19382 if test "x$supports_anon_versioning" = xyes
; then
19383 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19385 echo "local: *; };" >> $output_objdir/$libname.ver~
19386 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19390 case `$CC -V 2>&1 | sed 5q` in
19393 no_undefined_flag_CXX
=' -zdefs'
19394 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19395 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'
19396 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19397 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'
19398 compiler_needs_object_CXX
=yes
19400 # Not sure whether something based on
19401 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19403 output_verbose_link_cmd
='func_echo_all'
19405 # Archives containing C++ object files must be created using
19406 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19407 # necessary to make sure instantiated templates are included
19409 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19417 # FIXME: insert proper C++ library support
19422 # FIXME: insert proper C++ library support
19427 case $cc_basename in
19429 # FIXME: insert proper C++ library support
19433 # FIXME: insert proper C++ library support
19440 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19441 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19443 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19444 hardcode_direct_CXX
=yes
19445 hardcode_shlibpath_var_CXX
=no
19447 # Workaround some broken pre-1.5 toolchains
19448 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19456 # C++ shared libraries are fairly broken
19461 if test -f /usr
/libexec
/ld.so
; then
19462 hardcode_direct_CXX
=yes
19463 hardcode_shlibpath_var_CXX
=no
19464 hardcode_direct_absolute_CXX
=yes
19465 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19466 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19468 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19469 export_dynamic_flag_spec_CXX
='${wl}-E'
19470 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19472 output_verbose_link_cmd
=func_echo_all
19478 osf3
* | osf4
* | osf5
*)
19479 case $cc_basename in
19481 # Kuck and Associates, Inc. (KAI) C++ Compiler
19483 # KCC will only create a shared library if the output file
19484 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19485 # to its proper name (with version) after linking.
19486 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'
19488 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19489 hardcode_libdir_separator_CXX
=:
19491 # Archives containing C++ object files must be created using
19492 # the KAI C++ compiler.
19494 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19495 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19499 # Rational C++ 2.4.1
19500 # FIXME: insert proper C++ library support
19506 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19507 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'
19508 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19511 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19512 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'
19513 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19514 echo "-hidden">> $lib.exp~
19515 $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~
19517 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19521 hardcode_libdir_separator_CXX
=:
19523 # Commands to make compiler produce verbose output that lists
19524 # what "hidden" libraries, object files and flags are used when
19525 # linking a shared library.
19527 # There doesn't appear to be a way to prevent this compiler from
19528 # explicitly linking system object files so we need to strip them
19529 # from the output so that they don't get included in the library
19531 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"'
19534 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19535 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19538 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'
19541 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'
19545 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19546 hardcode_libdir_separator_CXX
=:
19548 # Commands to make compiler produce verbose output that lists
19549 # what "hidden" libraries, object files and flags are used when
19550 # linking a shared library.
19551 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19554 # FIXME: insert proper C++ library support
19562 # FIXME: insert proper C++ library support
19567 case $cc_basename in
19570 # FIXME: insert proper C++ library support
19575 # FIXME: insert proper C++ library support
19579 # FIXME: insert proper C++ library support
19586 case $cc_basename in
19588 # Sun C++ 4.2, 5.x and Centerline C++
19589 archive_cmds_need_lc_CXX
=yes
19590 no_undefined_flag_CXX
=' -zdefs'
19591 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19592 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19593 $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'
19595 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19596 hardcode_shlibpath_var_CXX
=no
19598 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19600 # The compiler driver will combine and reorder linker options,
19601 # but understands `-z linker_flag'.
19602 # Supported since Solaris 2.6 (maybe 2.5.1?)
19603 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19606 link_all_deplibs_CXX
=yes
19608 output_verbose_link_cmd
='func_echo_all'
19610 # Archives containing C++ object files must be created using
19611 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19612 # necessary to make sure instantiated templates are included
19614 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19617 # Green Hills C++ Compiler
19618 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19620 # The C++ compiler must be used to create the archive.
19621 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19624 # GNU C++ compiler with Solaris linker
19625 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19626 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19627 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19628 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19629 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19630 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19632 # Commands to make compiler produce verbose output that lists
19633 # what "hidden" libraries, object files and flags are used when
19634 # linking a shared library.
19635 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19637 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19639 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19640 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19641 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19643 # Commands to make compiler produce verbose output that lists
19644 # what "hidden" libraries, object files and flags are used when
19645 # linking a shared library.
19646 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19649 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19651 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19653 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19661 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19662 no_undefined_flag_CXX
='${wl}-z,text'
19663 archive_cmds_need_lc_CXX
=no
19664 hardcode_shlibpath_var_CXX
=no
19665 runpath_var
='LD_RUN_PATH'
19667 case $cc_basename in
19669 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19670 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19673 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19674 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 sysv5
* | sco3.2v5
* | sco5v6
*)
19680 # Note: We can NOT use -z defs as we might desire, because we do not
19681 # link with -lc, and that would cause any symbols used from libc to
19682 # always be unresolved, which means just about no library would
19683 # ever link correctly. If we're not using GNU ld we use -z text
19684 # though, which does catch some bad symbols but isn't as heavy-handed
19686 no_undefined_flag_CXX
='${wl}-z,text'
19687 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19688 archive_cmds_need_lc_CXX
=no
19689 hardcode_shlibpath_var_CXX
=no
19690 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19691 hardcode_libdir_separator_CXX
=':'
19692 link_all_deplibs_CXX
=yes
19693 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19694 runpath_var
='LD_RUN_PATH'
19696 case $cc_basename in
19698 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19700 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19701 '"$old_archive_cmds_CXX"
19702 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19703 '"$reload_cmds_CXX"
19706 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19713 case $cc_basename in
19715 # NonStop-UX NCC 3.20
19716 # FIXME: insert proper C++ library support
19720 # FIXME: insert proper C++ library support
19727 # FIXME: insert proper C++ library support
19732 # FIXME: insert proper C++ library support
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19738 $as_echo "$ld_shlibs_CXX" >&6; }
19739 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19745 ## There is no encapsulation within the following macros, do not change
19746 ## the running order or otherwise move them around unless you know exactly
19747 ## what you are doing...
19748 # Dependencies to place before and after the object being linked:
19749 predep_objects_CXX
=
19750 postdep_objects_CXX
=
19753 compiler_lib_search_path_CXX
=
19755 cat > conftest.
$ac_ext <<_LT_EOF
19759 Foo (void) { a = 0; }
19765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19766 (eval $ac_compile) 2>&5
19768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769 test $ac_status = 0; }; then
19770 # Parse the compiler output and extract the necessary
19771 # objects, libraries and library flags.
19773 # Sentinel used to keep track of whether or not we are before
19774 # the conftest object file.
19775 pre_test_object_deps_done
=no
19777 for p
in `eval "$output_verbose_link_cmd"`; do
19781 # Some compilers place space between "-{L,R}" and the path.
19782 # Remove the space.
19783 if test $p = "-L" ||
19784 test $p = "-R"; then
19791 if test "$pre_test_object_deps_done" = no
; then
19794 # Internal compiler library paths should come after those
19795 # provided the user. The postdeps already come after the
19796 # user supplied libs so there is no need to process them.
19797 if test -z "$compiler_lib_search_path_CXX"; then
19798 compiler_lib_search_path_CXX
="${prev}${p}"
19800 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19803 # The "-l" case would never come before the object being
19804 # linked, so don't bother handling this case.
19807 if test -z "$postdeps_CXX"; then
19808 postdeps_CXX
="${prev}${p}"
19810 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19816 # This assumes that the test object file only shows up
19817 # once in the compiler output.
19818 if test "$p" = "conftest.$objext"; then
19819 pre_test_object_deps_done
=yes
19823 if test "$pre_test_object_deps_done" = no
; then
19824 if test -z "$predep_objects_CXX"; then
19825 predep_objects_CXX
="$p"
19827 predep_objects_CXX
="$predep_objects_CXX $p"
19830 if test -z "$postdep_objects_CXX"; then
19831 postdep_objects_CXX
="$p"
19833 postdep_objects_CXX
="$postdep_objects_CXX $p"
19838 *) ;; # Ignore the rest.
19846 echo "libtool.m4: error: problem compiling CXX test program"
19849 $RM -f confest.
$objext
19851 # PORTME: override above test on systems where it is broken
19854 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19855 # hack all around it, let's just trust "g++" to DTRT.
19856 predep_objects_CXX
=
19857 postdep_objects_CXX
=
19862 case `$CC -V 2>&1 | sed 5q` in
19866 # The more standards-conforming stlport4 library is
19867 # incompatible with the Cstd library. Avoid specifying
19868 # it if it's in CXXFLAGS. Ignore libCrun as
19869 # -library=stlport4 depends on it.
19870 case " $CXX $CXXFLAGS " in
19871 *" -library=stlport4 "*)
19872 solaris_use_stlport4
=yes
19876 if test "$solaris_use_stlport4" != yes; then
19877 postdeps_CXX
='-library=Cstd -library=Crun'
19884 case $cc_basename in
19886 # The more standards-conforming stlport4 library is
19887 # incompatible with the Cstd library. Avoid specifying
19888 # it if it's in CXXFLAGS. Ignore libCrun as
19889 # -library=stlport4 depends on it.
19890 case " $CXX $CXXFLAGS " in
19891 *" -library=stlport4 "*)
19892 solaris_use_stlport4
=yes
19896 # Adding this requires a known-good setup of shared libraries for
19897 # Sun compiler versions before 5.6, else PIC objects from an old
19898 # archive will be linked into the output, leading to subtle bugs.
19899 if test "$solaris_use_stlport4" != yes; then
19900 postdeps_CXX
='-library=Cstd -library=Crun'
19908 case " $postdeps_CXX " in
19909 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19911 compiler_lib_search_dirs_CXX
=
19912 if test -n "${compiler_lib_search_path_CXX}"; then
19913 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19946 lt_prog_compiler_wl_CXX
=
19947 lt_prog_compiler_pic_CXX
=
19948 lt_prog_compiler_static_CXX
=
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19951 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19953 # C++ specific cases for pic, static, wl, etc.
19954 if test "$GXX" = yes; then
19955 lt_prog_compiler_wl_CXX
='-Wl,'
19956 lt_prog_compiler_static_CXX
='-static'
19960 # All AIX code is PIC.
19961 if test "$host_cpu" = ia64
; then
19962 # AIX 5 now supports IA64 processor
19963 lt_prog_compiler_static_CXX
='-Bstatic'
19970 # see comment about AmigaOS4 .so support
19971 lt_prog_compiler_pic_CXX
='-fPIC'
19974 # FIXME: we need at least 68020 code to build shared libraries, but
19975 # adding the `-m68020' flag to GCC prevents building anything better,
19977 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19982 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19983 # PIC is the default for these OSes.
19985 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19986 # This hack is so that the source file can tell whether it is being
19987 # built for inclusion in a dll (and should export symbols for example).
19988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19989 # (--disable-auto-import) libraries
19990 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19992 darwin
* | rhapsody
*)
19993 # PIC is the default on this platform
19994 # Common symbols not allowed in MH_DYLIB files
19995 lt_prog_compiler_pic_CXX
='-fno-common'
19998 # DJGPP does not support shared libraries at all
19999 lt_prog_compiler_pic_CXX
=
20002 # PIC is the default for Haiku.
20003 # The "-static" flag exists, but is broken.
20004 lt_prog_compiler_static_CXX
=
20007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20008 # Instead, we relocate shared libraries at runtime.
20011 if test -d /usr
/nec
; then
20012 lt_prog_compiler_pic_CXX
=-Kconform_pic
20016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20018 # sets the default TLS model and affects inlining.
20023 lt_prog_compiler_pic_CXX
='-fPIC'
20028 # QNX uses GNU C++, but need to define -shared option too, otherwise
20029 # it will coredump.
20030 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20033 lt_prog_compiler_pic_CXX
='-fPIC'
20039 # All AIX code is PIC.
20040 if test "$host_cpu" = ia64
; then
20041 # AIX 5 now supports IA64 processor
20042 lt_prog_compiler_static_CXX
='-Bstatic'
20044 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20048 case $cc_basename in
20050 # Green Hills C++ Compiler
20051 # _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"
20056 case $cc_basename in
20058 lt_prog_compiler_pic_CXX
='-KPIC'
20061 # Green Hills C++ Compiler
20062 lt_prog_compiler_pic_CXX
='-pic'
20068 freebsd
* | dragonfly
*)
20069 # FreeBSD uses GNU C++
20071 hpux9
* | hpux10
* | hpux11
*)
20072 case $cc_basename in
20074 lt_prog_compiler_wl_CXX
='-Wl,'
20075 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20076 if test "$host_cpu" != ia64
; then
20077 lt_prog_compiler_pic_CXX
='+Z'
20081 lt_prog_compiler_wl_CXX
='-Wl,'
20082 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20088 lt_prog_compiler_pic_CXX
='+Z'
20097 # This is c89, which is MS Visual C++ (no shared libs)
20098 # Anyone wants to do a port?
20100 irix5
* | irix6
* | nonstopux
*)
20101 case $cc_basename in
20103 lt_prog_compiler_wl_CXX
='-Wl,'
20104 lt_prog_compiler_static_CXX
='-non_shared'
20105 # CC pic flag -KPIC is the default.
20111 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20112 case $cc_basename in
20115 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20116 lt_prog_compiler_pic_CXX
='-fPIC'
20119 # old Intel C++ for x86_64 which still supported -KPIC.
20120 lt_prog_compiler_wl_CXX
='-Wl,'
20121 lt_prog_compiler_pic_CXX
='-KPIC'
20122 lt_prog_compiler_static_CXX
='-static'
20125 # Intel C++, used to be incompatible with GCC.
20126 # ICC 10 doesn't accept -KPIC any more.
20127 lt_prog_compiler_wl_CXX
='-Wl,'
20128 lt_prog_compiler_pic_CXX
='-fPIC'
20129 lt_prog_compiler_static_CXX
='-static'
20132 # Portland Group C++ compiler
20133 lt_prog_compiler_wl_CXX
='-Wl,'
20134 lt_prog_compiler_pic_CXX
='-fpic'
20135 lt_prog_compiler_static_CXX
='-Bstatic'
20139 # Make sure the PIC flag is empty. It appears that all Alpha
20140 # Linux and Compaq Tru64 Unix objects are PIC.
20141 lt_prog_compiler_pic_CXX
=
20142 lt_prog_compiler_static_CXX
='-non_shared'
20144 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20145 # IBM XL 8.0, 9.0 on PPC and BlueGene
20146 lt_prog_compiler_wl_CXX
='-Wl,'
20147 lt_prog_compiler_pic_CXX
='-qpic'
20148 lt_prog_compiler_static_CXX
='-qstaticlink'
20151 case `$CC -V 2>&1 | sed 5q` in
20154 lt_prog_compiler_pic_CXX
='-KPIC'
20155 lt_prog_compiler_static_CXX
='-Bstatic'
20156 lt_prog_compiler_wl_CXX
='-Qoption ld '
20167 case $cc_basename in
20169 lt_prog_compiler_pic_CXX
='-W c,exportall'
20178 # QNX uses GNU C++, but need to define -shared option too, otherwise
20179 # it will coredump.
20180 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20182 osf3
* | osf4
* | osf5
*)
20183 case $cc_basename in
20185 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20188 # Rational C++ 2.4.1
20189 lt_prog_compiler_pic_CXX
='-pic'
20192 # Digital/Compaq C++
20193 lt_prog_compiler_wl_CXX
='-Wl,'
20194 # Make sure the PIC flag is empty. It appears that all Alpha
20195 # Linux and Compaq Tru64 Unix objects are PIC.
20196 lt_prog_compiler_pic_CXX
=
20197 lt_prog_compiler_static_CXX
='-non_shared'
20206 case $cc_basename in
20208 # Sun C++ 4.2, 5.x and Centerline C++
20209 lt_prog_compiler_pic_CXX
='-KPIC'
20210 lt_prog_compiler_static_CXX
='-Bstatic'
20211 lt_prog_compiler_wl_CXX
='-Qoption ld '
20214 # Green Hills C++ Compiler
20215 lt_prog_compiler_pic_CXX
='-PIC'
20222 case $cc_basename in
20225 lt_prog_compiler_pic_CXX
='-pic'
20226 lt_prog_compiler_static_CXX
='-Bstatic'
20230 lt_prog_compiler_pic_CXX
='-pic'
20236 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20237 case $cc_basename in
20239 lt_prog_compiler_wl_CXX
='-Wl,'
20240 lt_prog_compiler_pic_CXX
='-KPIC'
20241 lt_prog_compiler_static_CXX
='-Bstatic'
20246 case $cc_basename in
20248 # NonStop-UX NCC 3.20
20249 lt_prog_compiler_pic_CXX
='-KPIC'
20258 lt_prog_compiler_can_build_shared_CXX
=no
20264 # For platforms which do not support PIC, -DPIC is meaningless:
20266 lt_prog_compiler_pic_CXX
=
20269 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20278 # Check to make sure the PIC flag actually works.
20280 if test -n "$lt_prog_compiler_pic_CXX"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20283 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20284 $as_echo_n "(cached) " >&6
20286 lt_cv_prog_compiler_pic_works_CXX
=no
20287 ac_outfile
=conftest.
$ac_objext
20288 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20289 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 # The option is referenced via a variable to avoid confusing sed.
20295 lt_compile
=`echo "$ac_compile" | $SED \
20296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20298 -e 's:$: $lt_compiler_flag:'`
20299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20300 (eval "$lt_compile" 2>conftest.err
)
20302 cat conftest.err
>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 if (exit $ac_status) && test -s "$ac_outfile"; then
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings other than the usual output.
20307 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20308 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20309 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20310 lt_cv_prog_compiler_pic_works_CXX
=yes
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20319 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20320 case $lt_prog_compiler_pic_CXX in
20322 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20325 lt_prog_compiler_pic_CXX
=
20326 lt_prog_compiler_can_build_shared_CXX
=no
20334 # Check to make sure the static flag actually works.
20336 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20339 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20342 lt_cv_prog_compiler_static_works_CXX
=no
20343 save_LDFLAGS
="$LDFLAGS"
20344 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20345 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20346 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20347 # The linker can only warn and ignore the option if not recognized
20348 # So say no if there are warnings
20349 if test -s conftest.err
; then
20350 # Append any errors to the config.log.
20351 cat conftest.err
1>&5
20352 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20353 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20354 if diff conftest.exp conftest.er2
>/dev
/null
; then
20355 lt_cv_prog_compiler_static_works_CXX
=yes
20358 lt_cv_prog_compiler_static_works_CXX
=yes
20362 LDFLAGS
="$save_LDFLAGS"
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20368 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20371 lt_prog_compiler_static_CXX
=
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20382 lt_cv_prog_compiler_c_o_CXX
=no
20383 $RM -r conftest
2>/dev
/null
20387 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20389 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20390 # Insert the option either (1) after the last *FLAGS variable, or
20391 # (2) before a word containing "conftest.", or (3) at the end.
20392 # Note that $ac_compile itself does not contain backslashes and begins
20393 # with a dollar sign (not a hyphen), so the echo should work correctly.
20394 lt_compile
=`echo "$ac_compile" | $SED \
20395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20397 -e 's:$: $lt_compiler_flag:'`
20398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20399 (eval "$lt_compile" 2>out
/conftest.err
)
20401 cat out
/conftest.err
>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20405 # The compiler can only warn and ignore the option if not recognized
20406 # So say no if there are warnings
20407 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20408 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20409 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20410 lt_cv_prog_compiler_c_o_CXX
=yes
20415 # SGI C++ compiler will create directory out/ii_files/ for
20416 # template instantiation
20417 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20418 $RM out
/* && rmdir out
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20432 $as_echo_n "(cached) " >&6
20434 lt_cv_prog_compiler_c_o_CXX
=no
20435 $RM -r conftest
2>/dev
/null
20439 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20441 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20442 # Insert the option either (1) after the last *FLAGS variable, or
20443 # (2) before a word containing "conftest.", or (3) at the end.
20444 # Note that $ac_compile itself does not contain backslashes and begins
20445 # with a dollar sign (not a hyphen), so the echo should work correctly.
20446 lt_compile
=`echo "$ac_compile" | $SED \
20447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20449 -e 's:$: $lt_compiler_flag:'`
20450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20451 (eval "$lt_compile" 2>out
/conftest.err
)
20453 cat out
/conftest.err
>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20457 # The compiler can only warn and ignore the option if not recognized
20458 # So say no if there are warnings
20459 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20460 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20461 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20462 lt_cv_prog_compiler_c_o_CXX
=yes
20467 # SGI C++ compiler will create directory out/ii_files/ for
20468 # template instantiation
20469 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20470 $RM out
/* && rmdir out
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20482 hard_links
="nottested"
20483 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20484 # do not overwrite the value of need_locks provided by the user
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20486 $as_echo_n "checking if we can lock with hard links... " >&6; }
20489 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20491 ln conftest.a conftest.b
2>&5 || hard_links
=no
20492 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20494 $as_echo "$hard_links" >&6; }
20495 if test "$hard_links" = no
; then
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20509 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20512 # If we're using GNU nm, then we don't want the "-C" option.
20513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20514 # Also, AIX nm treats weak defined symbols like other global defined
20515 # symbols, whereas GNU nm marks them as "W".
20516 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20517 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'
20519 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'
20523 export_symbols_cmds_CXX
="$ltdll_cmds"
20525 cygwin
* | mingw
* | cegcc
*)
20526 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'
20529 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20532 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20535 $as_echo "$ld_shlibs_CXX" >&6; }
20536 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20538 with_gnu_ld_CXX
=$with_gnu_ld
20546 # Do we need to explicitly link libc?
20548 case "x$archive_cmds_need_lc_CXX" in
20550 # Assume -lc should be added
20551 archive_cmds_need_lc_CXX
=yes
20553 if test "$enable_shared" = yes && test "$GCC" = yes; then
20554 case $archive_cmds_CXX in
20556 # FIXME: we may have to deal with multi-command sequences.
20559 # Test whether the compiler implicitly links with -lc since on some
20560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20561 # to ld, don't add -lc before -lgcc.
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20564 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20568 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; } 2>conftest.err
; then
20577 libobjs
=conftest.
$ac_objext
20579 wl
=$lt_prog_compiler_wl_CXX
20580 pic_flag
=$lt_prog_compiler_pic_CXX
20586 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20587 allow_undefined_flag_CXX
=
20588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20589 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592 test $ac_status = 0; }
20594 lt_cv_archive_cmds_need_lc_CXX
=no
20596 lt_cv_archive_cmds_need_lc_CXX
=yes
20598 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20600 cat conftest.err
1>&5
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20607 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20680 library_names_spec
=
20681 libname_spec
='lib$name'
20685 postuninstall_cmds
=
20689 shlibpath_overrides_runpath
=unknown
20691 dynamic_linker
="$host_os ld.so"
20692 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20693 need_lib_prefix
=unknown
20694 hardcode_into_libs
=no
20696 # when you set need_version to no, make sure it does not cause -set_version
20697 # flags to be left without arguments
20698 need_version
=unknown
20703 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20704 shlibpath_var
=LIBPATH
20706 # AIX 3 has no versioning support, so we append a major version to the name.
20707 soname_spec
='${libname}${release}${shared_ext}$major'
20714 hardcode_into_libs
=yes
20715 if test "$host_cpu" = ia64
; then
20716 # AIX 5 supports IA64
20717 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20718 shlibpath_var
=LD_LIBRARY_PATH
20720 # With GCC up to 2.95.x, collect2 would create an import file
20721 # for dependence libraries. The import file would start with
20722 # the line `#! .'. This would cause the generated library to
20723 # depend on `.', always an invalid library. This was fixed in
20724 # development snapshots of GCC prior to 3.0.
20726 aix4 | aix4.
[01] | aix4.
[01].
*)
20727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20729 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20732 can_build_shared
=no
20736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20737 # soname into executable. Probably we can add versioning support to
20738 # collect2, so additional links can be useful in future.
20739 if test "$aix_use_runtimelinking" = yes; then
20740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20741 # instead of lib<name>.a to let people know that these are not
20742 # typical AIX shared libraries.
20743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20745 # We preserve .a as extension for shared libraries through AIX4.2
20746 # and later when we are not doing run time linking.
20747 library_names_spec
='${libname}${release}.a $libname.a'
20748 soname_spec
='${libname}${release}${shared_ext}$major'
20750 shlibpath_var
=LIBPATH
20757 # Since July 2007 AmigaOS4 officially supports .so libraries.
20758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 library_names_spec
='$libname.ixlibrary $libname.a'
20763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20764 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'
20770 library_names_spec
='${libname}${shared_ext}'
20771 dynamic_linker
="$host_os ld.so"
20772 shlibpath_var
=LIBRARY_PATH
20778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec
='${libname}${release}${shared_ext}$major'
20780 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20781 shlibpath_var
=LD_LIBRARY_PATH
20782 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20783 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20784 # the default ld.so.conf also contains /usr/contrib/lib and
20785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20786 # libtool to hard-code these into programs
20789 cygwin
* | mingw
* | pw32
* | cegcc
*)
20790 version_type
=windows
20795 case $GCC,$host_os in
20796 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20797 library_names_spec
='$libname.dll.a'
20798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20799 postinstall_cmds
='base_file=`basename \${file}`~
20800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20801 dldir=$destdir/`dirname \$dlpath`~
20802 test -d \$dldir || mkdir -p \$dldir~
20803 $install_prog $dir/$dlname \$dldir/$dlname~
20804 chmod a+x \$dldir/$dlname~
20805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20808 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20809 dlpath=$dir/\$dldll~
20811 shlibpath_overrides_runpath
=yes
20815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20816 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20820 # MinGW DLLs use traditional 'lib' prefix
20821 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20824 # pw32 DLLs use 'pw' prefix rather than 'lib'
20825 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20831 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20834 dynamic_linker
='Win32 ld.exe'
20835 # FIXME: first we should search . and the directory the executable is in
20839 darwin
* | rhapsody
*)
20840 dynamic_linker
="$host_os dyld"
20841 version_type
=darwin
20844 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20845 soname_spec
='${libname}${release}${major}$shared_ext'
20846 shlibpath_overrides_runpath
=yes
20847 shlibpath_var
=DYLD_LIBRARY_PATH
20848 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20850 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20858 soname_spec
='${libname}${release}${shared_ext}$major'
20859 shlibpath_var
=LD_LIBRARY_PATH
20862 freebsd
* | dragonfly
*)
20863 # DragonFly does not have aout. When/if they implement a new
20864 # versioning mechanism, adjust this.
20865 if test -x /usr
/bin
/objformat
; then
20866 objformat
=`/usr/bin/objformat`
20869 freebsd
[123]*) objformat
=aout
;;
20870 *) objformat
=elf
;;
20873 version_type
=freebsd-
$objformat
20874 case $version_type in
20876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20881 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20885 shlibpath_var
=LD_LIBRARY_PATH
20888 shlibpath_overrides_runpath
=yes
20890 freebsd3.
[01]* | freebsdelf3.
[01]*)
20891 shlibpath_overrides_runpath
=yes
20892 hardcode_into_libs
=yes
20894 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20895 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20896 shlibpath_overrides_runpath
=no
20897 hardcode_into_libs
=yes
20899 *) # from 4.6 on, and DragonFly
20900 shlibpath_overrides_runpath
=yes
20901 hardcode_into_libs
=yes
20910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20911 soname_spec
='${libname}${release}${shared_ext}$major'
20912 shlibpath_var
=LD_LIBRARY_PATH
20913 hardcode_into_libs
=yes
20920 dynamic_linker
="$host_os runtime_loader"
20921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20922 soname_spec
='${libname}${release}${shared_ext}$major'
20923 shlibpath_var
=LIBRARY_PATH
20924 shlibpath_overrides_runpath
=yes
20925 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20926 hardcode_into_libs
=yes
20929 hpux9
* | hpux10
* | hpux11
*)
20930 # Give a soname corresponding to the major version so that dld.sl refuses to
20931 # link against other versions.
20938 hardcode_into_libs
=yes
20939 dynamic_linker
="$host_os dld.so"
20940 shlibpath_var
=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec
='${libname}${release}${shared_ext}$major'
20944 if test "X$HPUX_IA64_MODE" = X32
; then
20945 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20947 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20949 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20953 hardcode_into_libs
=yes
20954 dynamic_linker
="$host_os dld.sl"
20955 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20956 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec
='${libname}${release}${shared_ext}$major'
20959 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20960 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20964 dynamic_linker
="$host_os dld.sl"
20965 shlibpath_var
=SHLIB_PATH
20966 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec
='${libname}${release}${shared_ext}$major'
20971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20972 postinstall_cmds
='chmod 555 $lib'
20973 # or fails outright, so override atomically:
20974 install_override_mode
=555
20981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20982 soname_spec
='${libname}${release}${shared_ext}$major'
20983 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20984 shlibpath_var
=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath
=no
20986 hardcode_into_libs
=yes
20989 irix5
* | irix6
* | nonstopux
*)
20991 nonstopux
*) version_type
=nonstopux
;;
20993 if test "$lt_cv_prog_gnu_ld" = yes; then
21001 soname_spec
='${libname}${release}${shared_ext}$major'
21002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21004 irix5
* | nonstopux
*)
21005 libsuff
= shlibsuff
=
21008 case $LD in # libtool.m4 will add one of these switches to LD
21009 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21010 libsuff
= shlibsuff
= libmagic
=32-bit;;
21011 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21012 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21013 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21014 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21015 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21019 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21020 shlibpath_overrides_runpath
=no
21021 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21022 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21023 hardcode_into_libs
=yes
21026 # No shared lib support for Linux oldld, aout, or coff.
21027 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21031 # This must be Linux ELF.
21032 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec
='${libname}${release}${shared_ext}$major'
21038 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21039 shlibpath_var
=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath
=no
21042 # Some binutils ld are patched to set DT_RUNPATH
21043 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21046 lt_cv_shlibpath_overrides_runpath
=no
21047 save_LDFLAGS
=$LDFLAGS
21048 save_libdir
=$libdir
21049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21062 if ac_fn_cxx_try_link
"$LINENO"; then :
21063 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21064 lt_cv_shlibpath_overrides_runpath
=yes
21067 rm -f core conftest.err conftest.
$ac_objext \
21068 conftest
$ac_exeext conftest.
$ac_ext
21069 LDFLAGS
=$save_LDFLAGS
21070 libdir
=$save_libdir
21074 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21076 # This implies no fast_install, which is unacceptable.
21077 # Some rework will be needed to allow for fast_install
21078 # before this can be enabled.
21079 hardcode_into_libs
=yes
21081 # Append ld.so.conf contents to the search path
21082 if test -f /etc
/ld.so.conf
; then
21083 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' ' '`
21084 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21087 # We used to test for /lib/ld.so.1 and disable shared libraries on
21088 # powerpc, because MkLinux only supported shared libraries with the
21089 # GNU dynamic linker. Since this was broken with cross compilers,
21090 # most powerpc-linux boxes support dynamic linking these days and
21091 # people can always --disable-shared, the test was removed, and we
21092 # assume the GNU/Linux dynamic linker is in use.
21093 dynamic_linker
='GNU/Linux ld.so'
21100 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21102 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21103 dynamic_linker
='NetBSD (a.out) ld.so'
21105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21106 soname_spec
='${libname}${release}${shared_ext}$major'
21107 dynamic_linker
='NetBSD ld.elf_so'
21109 shlibpath_var
=LD_LIBRARY_PATH
21110 shlibpath_overrides_runpath
=yes
21111 hardcode_into_libs
=yes
21116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 shlibpath_var
=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath
=yes
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec
='${libname}${release}${shared_ext}$major'
21127 shlibpath_var
=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath
=no
21129 hardcode_into_libs
=yes
21130 dynamic_linker
='ldqnx.so'
21135 sys_lib_dlsearch_path_spec
="/usr/lib"
21137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21139 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21140 *) need_version
=no
;;
21142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21143 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21144 shlibpath_var
=LD_LIBRARY_PATH
21145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21147 openbsd2.
[89] | openbsd2.
[89].
*)
21148 shlibpath_overrides_runpath
=no
21151 shlibpath_overrides_runpath
=yes
21155 shlibpath_overrides_runpath
=yes
21160 libname_spec
='$name'
21163 library_names_spec
='$libname${shared_ext} $libname.a'
21164 dynamic_linker
='OS/2 ld.exe'
21165 shlibpath_var
=LIBPATH
21168 osf3
* | osf4
* | osf5
*)
21172 soname_spec
='${libname}${release}${shared_ext}$major'
21173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 shlibpath_var
=LD_LIBRARY_PATH
21175 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21176 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec
='${libname}${release}${shared_ext}$major'
21189 shlibpath_var
=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath
=yes
21191 hardcode_into_libs
=yes
21192 # ldd complains unless libraries are executable
21193 postinstall_cmds
='chmod +x $lib'
21198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21199 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21200 shlibpath_var
=LD_LIBRARY_PATH
21201 shlibpath_overrides_runpath
=yes
21202 if test "$with_gnu_ld" = yes; then
21210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21211 soname_spec
='${libname}${release}${shared_ext}$major'
21212 shlibpath_var
=LD_LIBRARY_PATH
21213 case $host_vendor in
21215 shlibpath_overrides_runpath
=no
21217 runpath_var
=LD_RUN_PATH
21225 shlibpath_overrides_runpath
=no
21226 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21232 if test -d /usr
/nec
;then
21234 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21235 soname_spec
='$libname${shared_ext}.$major'
21236 shlibpath_var
=LD_LIBRARY_PATH
21240 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21241 version_type
=freebsd-elf
21244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 soname_spec
='${libname}${release}${shared_ext}$major'
21246 shlibpath_var
=LD_LIBRARY_PATH
21247 shlibpath_overrides_runpath
=yes
21248 hardcode_into_libs
=yes
21249 if test "$with_gnu_ld" = yes; then
21250 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21252 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21255 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21259 sys_lib_dlsearch_path_spec
='/usr/lib'
21263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21268 shlibpath_var
=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath
=no
21270 hardcode_into_libs
=yes
21275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec
='${libname}${release}${shared_ext}$major'
21277 shlibpath_var
=LD_LIBRARY_PATH
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21285 $as_echo "$dynamic_linker" >&6; }
21286 test "$dynamic_linker" = no
&& can_build_shared
=no
21288 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21289 if test "$GCC" = yes; then
21290 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21294 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21297 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21339 hardcode_action_CXX
=
21340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21341 test -n "$runpath_var_CXX" ||
21342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21344 # We can hardcode non-existent directories.
21345 if test "$hardcode_direct_CXX" != no
&&
21346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21347 # have to relink, otherwise we might link with an installed library
21348 # when we should be linking with a yet-to-be-installed one
21349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21350 test "$hardcode_minus_L_CXX" != no
; then
21351 # Linking always hardcodes the temporary library directory.
21352 hardcode_action_CXX
=relink
21354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21355 hardcode_action_CXX
=immediate
21358 # We cannot hardcode anything, or else we can only hardcode existing
21360 hardcode_action_CXX
=unsupported
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21363 $as_echo "$hardcode_action_CXX" >&6; }
21365 if test "$hardcode_action_CXX" = relink ||
21366 test "$inherit_rpath_CXX" = yes; then
21367 # Fast installation is not supported
21368 enable_fast_install
=no
21369 elif test "$shlibpath_overrides_runpath" = yes ||
21370 test "$enable_shared" = no
; then
21371 # Fast installation is not necessary
21372 enable_fast_install
=needless
21381 fi # test -n "$compiler"
21387 with_gnu_ld
=$lt_save_with_gnu_ld
21388 lt_cv_path_LDCXX
=$lt_cv_path_LD
21389 lt_cv_path_LD
=$lt_save_path_LD
21390 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21391 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21392 fi # test "$_lt_caught_CXX_error" != yes
21395 ac_cpp
='$CPP $CPPFLAGS'
21396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21415 # Only expand once:
21421 # Identify the assembler which will work hand-in-glove with the newly
21422 # built GCC, so that we can examine its features. This is the assembler
21423 # which will be driven by the driver program.
21425 # If build != host, and we aren't building gas in-tree, we identify a
21426 # build->target assembler and hope that it will have the same features
21427 # as the host->target assembler we'll be using.
21428 gcc_cv_gas_major_version
=
21429 gcc_cv_gas_minor_version
=
21430 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21432 if test "${gcc_cv_as+set}" = set; then :
21436 if test -x "$DEFAULT_ASSEMBLER"; then
21437 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21438 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21439 && test -f ..
/gas
/Makefile \
21440 && test x
$build = x
$host; then
21441 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21442 elif test -x as
$build_exeext; then
21443 # Build using assembler in the current directory.
21444 gcc_cv_as
=.
/as
$build_exeext
21445 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21446 gcc_cv_as
="$AS_FOR_TARGET"
21448 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21449 set dummy
$AS_FOR_TARGET; ac_word
=$2
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21451 $as_echo_n "checking for $ac_word... " >&6; }
21452 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21457 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21461 for as_dir
in $PATH
21464 test -z "$as_dir" && as_dir
=.
21465 for ac_exec_ext
in '' $ac_executable_extensions; do
21466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21467 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21478 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21479 if test -n "$gcc_cv_as"; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21481 $as_echo "$gcc_cv_as" >&6; }
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 $as_echo "no" >&6; }
21491 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21493 case "$ORIGINAL_AS_FOR_TARGET" in
21494 .
/as | .
/as
$build_exeext) ;;
21495 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21500 $as_echo_n "checking what assembler to use... " >&6; }
21501 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21502 # Single tree build which includes gas. We want to prefer it
21503 # over whatever linker top-level may have detected, since
21504 # we'll use what we're building after installation anyway.
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21506 $as_echo "newly built gas" >&6; }
21508 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21509 for f
in $gcc_cv_as_bfd_srcdir/configure \
21510 $gcc_cv_as_gas_srcdir/configure \
21511 $gcc_cv_as_gas_srcdir/configure.
in \
21512 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21513 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21514 if test x
$gcc_cv_gas_version != x
; then
21518 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21519 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21520 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21521 case $gcc_cv_gas_patch_version in
21522 "") gcc_cv_gas_patch_version
="0" ;;
21524 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21525 + $gcc_cv_gas_minor_version \) \* 1000 \
21526 + $gcc_cv_gas_patch_version`
21528 in_tree_gas_is_elf
=no
21529 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21530 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21531 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21533 in_tree_gas_is_elf
=yes
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21537 $as_echo "$gcc_cv_as" >&6; }
21541 # Identify the linker which will work hand-in-glove with the newly
21542 # built GCC, so that we can examine its features. This is the linker
21543 # which will be driven by the driver program.
21545 # If build != host, and we aren't building gas in-tree, we identify a
21546 # build->target linker and hope that it will have the same features
21547 # as the host->target linker we'll be using.
21548 gcc_cv_gld_major_version
=
21549 gcc_cv_gld_minor_version
=
21550 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21551 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21553 if test "${gcc_cv_ld+set}" = set; then :
21557 if test -x "$DEFAULT_LINKER"; then
21558 gcc_cv_ld
="$DEFAULT_LINKER"
21559 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21560 && test -f ..
/ld
/Makefile \
21561 && test x
$build = x
$host; then
21562 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21563 elif test -x collect-ld
$build_exeext; then
21564 # Build using linker in the current directory.
21565 gcc_cv_ld
=.
/collect-ld
$build_exeext
21566 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21567 gcc_cv_ld
="$LD_FOR_TARGET"
21569 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21570 set dummy
$LD_FOR_TARGET; ac_word
=$2
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21572 $as_echo_n "checking for $ac_word... " >&6; }
21573 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21574 $as_echo_n "(cached) " >&6
21578 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21582 for as_dir
in $PATH
21585 test -z "$as_dir" && as_dir
=.
21586 for ac_exec_ext
in '' $ac_executable_extensions; do
21587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21588 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21599 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21600 if test -n "$gcc_cv_ld"; then
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21602 $as_echo "$gcc_cv_ld" >&6; }
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21605 $as_echo "no" >&6; }
21612 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21613 PLUGIN_LD
=`basename $gcc_cv_ld`
21615 # Check whether --with-plugin-ld was given.
21616 if test "${with_plugin_ld+set}" = set; then :
21617 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21618 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21619 PLUGIN_LD
="$withval"
21625 cat >>confdefs.h
<<_ACEOF
21626 #define PLUGIN_LD "$PLUGIN_LD"
21630 # Check to see if we are using gold instead of ld
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21632 $as_echo_n "checking whether we are using gold... " >&6; }
21634 if test x
$gcc_cv_ld != x
; then
21635 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21636 |
grep "GNU gold" > /dev
/null
; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21641 $as_echo "$ld_is_gold" >&6; }
21643 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21645 case "$ORIGINAL_LD_FOR_TARGET" in
21646 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21647 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21652 $as_echo_n "checking what linker to use... " >&6; }
21653 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21654 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21655 # Single tree build which includes ld. We want to prefer it
21656 # over whatever linker top-level may have detected, since
21657 # we'll use what we're building after installation anyway.
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21659 $as_echo "newly built ld" >&6; }
21661 in_tree_ld_is_elf
=no
21662 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21663 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21664 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21665 in_tree_ld_is_elf
=yes
21666 elif test "$ld_is_gold" = yes; then
21667 in_tree_ld_is_elf
=yes
21669 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
21671 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21672 if test x
$gcc_cv_gld_version != x
; then
21676 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21677 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21680 $as_echo "$gcc_cv_ld" >&6; }
21684 # Figure out what nm we will be using.
21685 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21686 if test "${gcc_cv_nm+set}" = set; then :
21690 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21691 && test -f ..
/binutils
/Makefile \
21692 && test x
$build = x
$host; then
21693 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21694 elif test -x nm
$build_exeext; then
21695 gcc_cv_nm
=.
/nm
$build_exeext
21696 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21697 gcc_cv_nm
="$NM_FOR_TARGET"
21699 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21700 set dummy
$NM_FOR_TARGET; ac_word
=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21708 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21712 for as_dir
in $PATH
21715 test -z "$as_dir" && as_dir
=.
21716 for ac_exec_ext
in '' $ac_executable_extensions; do
21717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21718 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21729 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21730 if test -n "$gcc_cv_nm"; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21732 $as_echo "$gcc_cv_nm" >&6; }
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21743 $as_echo_n "checking what nm to use... " >&6; }
21744 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21745 # Single tree build which includes binutils.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21747 $as_echo "newly built nm" >&6; }
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21751 $as_echo "$gcc_cv_nm" >&6; }
21755 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21757 case "$ORIGINAL_NM_FOR_TARGET" in
21758 .
/nm | .
/nm
$build_exeext) ;;
21759 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21764 # Figure out what objdump we will be using.
21765 if test "${gcc_cv_objdump+set}" = set; then :
21769 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21770 && test -f ..
/binutils
/Makefile \
21771 && test x
$build = x
$host; then
21772 # Single tree build which includes binutils.
21773 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21774 elif test -x objdump
$build_exeext; then
21775 gcc_cv_objdump
=.
/objdump
$build_exeext
21776 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21777 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21779 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21780 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21782 $as_echo_n "checking for $ac_word... " >&6; }
21783 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21784 $as_echo_n "(cached) " >&6
21786 case $gcc_cv_objdump in
21788 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21792 for as_dir
in $PATH
21795 test -z "$as_dir" && as_dir
=.
21796 for ac_exec_ext
in '' $ac_executable_extensions; do
21797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21798 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21809 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21810 if test -n "$gcc_cv_objdump"; then
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21812 $as_echo "$gcc_cv_objdump" >&6; }
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21823 $as_echo_n "checking what objdump to use... " >&6; }
21824 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21825 # Single tree build which includes binutils.
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21827 $as_echo "newly built objdump" >&6; }
21828 elif test x
$gcc_cv_objdump = x
; then
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21830 $as_echo "not found" >&6; }
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21833 $as_echo "$gcc_cv_objdump" >&6; }
21836 # Figure out what readelf we will be using.
21837 if test "${gcc_cv_readelf+set}" = set; then :
21841 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21842 && test -f ..
/binutils
/Makefile \
21843 && test x
$build = x
$host; then
21844 # Single tree build which includes binutils.
21845 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21846 elif test -x readelf
$build_exeext; then
21847 gcc_cv_readelf
=.
/readelf
$build_exeext
21849 # Extract the first word of "readelf", so it can be a program name with args.
21850 set dummy readelf
; ac_word
=$2
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21852 $as_echo_n "checking for $ac_word... " >&6; }
21853 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21856 case $gcc_cv_readelf in
21858 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21862 for as_dir
in $PATH
21865 test -z "$as_dir" && as_dir
=.
21866 for ac_exec_ext
in '' $ac_executable_extensions; do
21867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21868 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21879 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21880 if test -n "$gcc_cv_readelf"; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21882 $as_echo "$gcc_cv_readelf" >&6; }
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885 $as_echo "no" >&6; }
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21893 $as_echo_n "checking what readelf to use... " >&6; }
21894 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21895 # Single tree build which includes binutils.
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21897 $as_echo "newly built readelf" >&6; }
21898 elif test x
$gcc_cv_readelf = x
; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21900 $as_echo "not found" >&6; }
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21903 $as_echo "$gcc_cv_readelf" >&6; }
21906 # Figure out what assembler alignment features are present.
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21908 $as_echo_n "checking assembler flags... " >&6; }
21909 if test "${gcc_cv_as_flags+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21913 i
[34567]86-*-linux*)
21914 gcc_cv_as_flags
="--32"
21916 powerpc
*-*-darwin*)
21917 gcc_cv_as_flags
="-arch ppc"
21920 gcc_cv_as_flags
=" "
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21925 $as_echo "$gcc_cv_as_flags" >&6; }
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21928 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21929 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21930 $as_echo_n "(cached) " >&6
21932 gcc_cv_as_balign_and_p2align
=no
21933 if test $in_tree_gas = yes; then
21934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21935 then gcc_cv_as_balign_and_p2align
=yes
21937 elif test x
$gcc_cv_as != x
; then
21938 $as_echo '.balign 4
21939 .p2align 2' > conftest.s
21940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21942 (eval $ac_try) 2>&5
21944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21945 test $ac_status = 0; }; }
21947 gcc_cv_as_balign_and_p2align
=yes
21949 echo "configure: failed program was" >&5
21952 rm -f conftest.o conftest.s
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21956 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21957 if test $gcc_cv_as_balign_and_p2align = yes; then
21959 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21964 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21965 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21966 $as_echo_n "(cached) " >&6
21968 gcc_cv_as_max_skip_p2align
=no
21969 if test $in_tree_gas = yes; then
21970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21971 then gcc_cv_as_max_skip_p2align
=yes
21973 elif test x
$gcc_cv_as != x
; then
21974 $as_echo '.p2align 4,,7' > conftest.s
21975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21977 (eval $ac_try) 2>&5
21979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21980 test $ac_status = 0; }; }
21982 gcc_cv_as_max_skip_p2align
=yes
21984 echo "configure: failed program was" >&5
21987 rm -f conftest.o conftest.s
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21991 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21992 if test $gcc_cv_as_max_skip_p2align = yes; then
21994 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21999 $as_echo_n "checking assembler for .literal16... " >&6; }
22000 if test "${gcc_cv_as_literal16+set}" = set; then :
22001 $as_echo_n "(cached) " >&6
22003 gcc_cv_as_literal16
=no
22004 if test $in_tree_gas = yes; then
22005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22006 then gcc_cv_as_literal16
=yes
22008 elif test x
$gcc_cv_as != x
; then
22009 $as_echo '.literal16' > conftest.s
22010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22012 (eval $ac_try) 2>&5
22014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015 test $ac_status = 0; }; }
22017 gcc_cv_as_literal16
=yes
22019 echo "configure: failed program was" >&5
22022 rm -f conftest.o conftest.s
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22026 $as_echo "$gcc_cv_as_literal16" >&6; }
22027 if test $gcc_cv_as_literal16 = yes; then
22029 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22034 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22035 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22038 gcc_cv_as_subsection_m1
=no
22039 if test $in_tree_gas = yes; then
22040 if test $in_tree_gas_is_elf = yes \
22041 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22042 then gcc_cv_as_subsection_m1
=yes
22044 elif test x
$gcc_cv_as != x
; then
22045 $as_echo 'conftest_label1: .word 0
22047 conftest_label2: .word 0
22048 .previous' > conftest.s
22049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22051 (eval $ac_try) 2>&5
22053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22054 test $ac_status = 0; }; }
22056 if test x
$gcc_cv_nm != x
; then
22057 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22058 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22059 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22061 else gcc_cv_as_subsection_m1
=yes
22063 rm -f conftest.nm1 conftest.nm2
22066 echo "configure: failed program was" >&5
22069 rm -f conftest.o conftest.s
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22073 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22074 if test $gcc_cv_as_subsection_m1 = yes; then
22076 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22081 $as_echo_n "checking assembler for .weak... " >&6; }
22082 if test "${gcc_cv_as_weak+set}" = set; then :
22083 $as_echo_n "(cached) " >&6
22086 if test $in_tree_gas = yes; then
22087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22088 then gcc_cv_as_weak
=yes
22090 elif test x
$gcc_cv_as != x
; then
22091 $as_echo ' .weak foobar' > conftest.s
22092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22094 (eval $ac_try) 2>&5
22096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22097 test $ac_status = 0; }; }
22101 echo "configure: failed program was" >&5
22104 rm -f conftest.o conftest.s
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22108 $as_echo "$gcc_cv_as_weak" >&6; }
22109 if test $gcc_cv_as_weak = yes; then
22111 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22116 $as_echo_n "checking assembler for .weakref... " >&6; }
22117 if test "${gcc_cv_as_weakref+set}" = set; then :
22118 $as_echo_n "(cached) " >&6
22120 gcc_cv_as_weakref
=no
22121 if test $in_tree_gas = yes; then
22122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22123 then gcc_cv_as_weakref
=yes
22125 elif test x
$gcc_cv_as != x
; then
22126 $as_echo ' .weakref foobar, barfnot' > conftest.s
22127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22129 (eval $ac_try) 2>&5
22131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22132 test $ac_status = 0; }; }
22134 gcc_cv_as_weakref
=yes
22136 echo "configure: failed program was" >&5
22139 rm -f conftest.o conftest.s
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22143 $as_echo "$gcc_cv_as_weakref" >&6; }
22144 if test $gcc_cv_as_weakref = yes; then
22146 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22151 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22152 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22153 $as_echo_n "(cached) " >&6
22155 gcc_cv_as_nsubspa_comdat
=no
22156 if test $in_tree_gas = yes; then
22157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22158 then gcc_cv_as_nsubspa_comdat
=yes
22160 elif test x
$gcc_cv_as != x
; then
22161 $as_echo ' .SPACE $TEXT$
22162 .NSUBSPA $CODE$,COMDAT' > conftest.s
22163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22165 (eval $ac_try) 2>&5
22167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22168 test $ac_status = 0; }; }
22170 gcc_cv_as_nsubspa_comdat
=yes
22172 echo "configure: failed program was" >&5
22175 rm -f conftest.o conftest.s
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22179 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22180 if test $gcc_cv_as_nsubspa_comdat = yes; then
22182 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22186 # .hidden needs to be supported in both the assembler and the linker,
22187 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22188 # This is irritatingly difficult to feature test for; we have to check the
22189 # date string after the version number. If we've got an in-tree
22190 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22192 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22194 $as_echo_n "checking assembler for .hidden... " >&6; }
22195 if test "${gcc_cv_as_hidden+set}" = set; then :
22196 $as_echo_n "(cached) " >&6
22198 gcc_cv_as_hidden
=no
22199 if test $in_tree_gas = yes; then
22200 if test $in_tree_gas_is_elf = yes \
22201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22202 then gcc_cv_as_hidden
=yes
22204 elif test x
$gcc_cv_as != x
; then
22205 $as_echo ' .hidden foobar
22206 foobar:' > conftest.s
22207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; }
22215 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22216 # STV_HIDDEN, so disable .hidden support if so.
22217 case "${target}" in
22218 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22219 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22220 cat > conftest.s
<<EOF
22225 .set default,hidden
22227 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22228 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22229 grep '\.hidden default' > /dev
/null
; then
22230 gcc_cv_as_hidden
=no
22232 gcc_cv_as_hidden
=yes
22235 # Assume bug is present if objdump is missing.
22236 gcc_cv_as_hidden
=no
22240 gcc_cv_as_hidden
=yes
22244 echo "configure: failed program was" >&5
22247 rm -f conftest.o conftest.s
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22251 $as_echo "$gcc_cv_as_hidden" >&6; }
22253 case "${target}" in
22255 # Darwin as has some visibility support, though with a different syntax.
22256 gcc_cv_as_hidden
=yes
22260 # gnu_indirect_function type is an extension proposed at
22261 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22262 # selection of function implementation
22263 # Check whether --enable-gnu-indirect-function was given.
22264 if test "${enable_gnu_indirect_function+set}" = set; then :
22265 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22267 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22268 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22271 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22274 if test x
$enable_gnu_indirect_function = xyes
; then
22276 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22280 if test $in_tree_ld != yes ; then
22281 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22282 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22283 if test x
"$ld_is_gold" = xyes
; then
22284 # GNU gold --version looks like this:
22286 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22288 # We extract the binutils version which is more familiar and specific
22289 # than the gold version.
22290 ld_vers
=`echo $ld_ver | sed -n \
22291 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22293 # GNU ld --version looks like this:
22295 # GNU ld (GNU Binutils) 2.21.51.20110225
22296 ld_vers
=`echo $ld_ver | sed -n \
22297 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22299 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'`
22300 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22301 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22302 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22304 case "${target}" in
22307 # Solaris 2 ld -V output looks like this for a regular version:
22309 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22311 # but test versions add stuff at the end:
22313 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22315 ld_ver
=`$gcc_cv_ld -V 2>&1`
22316 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22317 ld_vers
=`echo $ld_ver | sed -n \
22318 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22319 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22320 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22328 $as_echo_n "checking linker for .hidden support... " >&6; }
22329 if test "${gcc_cv_ld_hidden+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22332 if test $in_tree_ld = yes ; then
22333 gcc_cv_ld_hidden
=no
22334 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 \
22335 && test $in_tree_ld_is_elf = yes; then
22336 gcc_cv_ld_hidden
=yes
22339 gcc_cv_ld_hidden
=yes
22340 if test x
"$ld_is_gold" = xyes
; then
22342 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22343 if test 0"$ld_date" -lt 20020404; then
22344 if test -n "$ld_date"; then
22345 # If there was date string, but was earlier than 2002-04-04, fail
22346 gcc_cv_ld_hidden
=no
22347 elif test -z "$ld_vers"; then
22348 # If there was no date string nor ld version number, something is wrong
22349 gcc_cv_ld_hidden
=no
22351 test -z "$ld_vers_patch" && ld_vers_patch
=0
22352 if test "$ld_vers_major" -lt 2; then
22353 gcc_cv_ld_hidden
=no
22354 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22355 gcc_cv_ld_hidden
="no"
22356 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22357 gcc_cv_ld_hidden
=no
22362 case "${target}" in
22364 # Darwin ld has some visibility support.
22365 gcc_cv_ld_hidden
=yes
22367 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22368 gcc_cv_ld_hidden
=yes
22371 # .hidden support was backported to Solaris 8, starting with ld
22373 if test "$ld_vers_minor" -ge 276; then
22374 gcc_cv_ld_hidden
=yes
22376 gcc_cv_ld_hidden
=no
22379 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22380 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22381 # .symbolic was only added in Solaris 9 12/02.
22382 gcc_cv_ld_hidden
=yes
22385 gcc_cv_ld_hidden
=no
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22392 $as_echo "$gcc_cv_ld_hidden" >&6; }
22393 libgcc_visibility
=no
22396 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22397 libgcc_visibility
=yes
22399 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22404 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22405 gcc_cv_ld_ro_rw_mix
=unknown
22406 if test $in_tree_ld = yes ; then
22407 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 \
22408 && test $in_tree_ld_is_elf = yes; then
22409 gcc_cv_ld_ro_rw_mix
=read-write
22411 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22412 echo '.section myfoosect, "a"' > conftest1.s
22413 echo '.section myfoosect, "aw"' > conftest2.s
22414 echo '.byte 1' >> conftest2.s
22415 echo '.section myfoosect, "a"' > conftest3.s
22416 echo '.byte 0' >> conftest3.s
22417 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22418 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22419 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22420 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22421 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22422 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22423 | sed -e '/myfoosect/!d' -e N`
22424 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22425 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22426 gcc_cv_ld_ro_rw_mix
=read-only
22428 gcc_cv_ld_ro_rw_mix
=read-write
22432 rm -f conftest.
* conftest
[123].
*
22434 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22436 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22440 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22442 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22444 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22445 if test "${gcc_cv_as_leb128+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22448 gcc_cv_as_leb128
=no
22449 if test $in_tree_gas = yes; then
22450 if test $in_tree_gas_is_elf = yes \
22451 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22452 then gcc_cv_as_leb128
=yes
22454 elif test x
$gcc_cv_as != x
; then
22461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22463 (eval $ac_try) 2>&5
22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22466 test $ac_status = 0; }; }
22468 # GAS versions before 2.11 do not support uleb128,
22469 # despite appearing to.
22470 # ??? There exists an elf-specific test that will crash
22471 # the assembler. Perhaps it's better to figure out whether
22472 # arbitrary sections are supported and try the test.
22473 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22474 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22475 as_vers
=`echo $as_ver | sed -n \
22476 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22477 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22478 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22479 if test $as_major -eq 2 && test $as_minor -lt 11
22481 else gcc_cv_as_leb128
=yes
22485 echo "configure: failed program was" >&5
22488 rm -f conftest.o conftest.s
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22492 $as_echo "$gcc_cv_as_leb128" >&6; }
22493 if test $gcc_cv_as_leb128 = yes; then
22495 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22499 # Check if we have assembler support for unwind directives.
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22501 $as_echo_n "checking assembler for cfi directives... " >&6; }
22502 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22505 gcc_cv_as_cfi_directive
=no
22506 if test x
$gcc_cv_as != x
; then
22512 .cfi_escape 1, 2, 3, 4, 5
22513 .cfi_endproc' > conftest.s
22514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22516 (eval $ac_try) 2>&5
22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22519 test $ac_status = 0; }; }
22523 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22524 # read-only and read-write sections, we need to make sure that the
22525 # assembler used emits read-write .eh_frame sections.
22526 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22527 if test "x$gcc_cv_objdump" != x
; then
22528 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22529 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22530 gcc_cv_as_cfi_directive
=no
22533 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22534 # On Solaris/x86, make sure that GCC and gas agree on using
22535 # read-only .eh_frame sections for 64-bit.
22536 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22537 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22538 sed -e /.eh_frame
/!d
-e N | \
22539 grep READONLY
> /dev
/null
; then
22540 gcc_cv_as_cfi_directive
=yes
22542 gcc_cv_as_cfi_directive
=no
22546 gcc_cv_as_cfi_directive
=yes
22551 # no objdump, err on the side of caution
22552 gcc_cv_as_cfi_directive
=no
22555 gcc_cv_as_cfi_directive
=yes
22559 gcc_cv_as_cfi_directive
=yes
22563 echo "configure: failed program was" >&5
22566 rm -f conftest.o conftest.s
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22570 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22572 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22574 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22575 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22578 gcc_cv_as_cfi_advance_working
=no
22579 if test x
$gcc_cv_as != x
; then
22582 .cfi_adjust_cfa_offset 64
22584 .cfi_adjust_cfa_offset 128
22585 .cfi_endproc' > conftest.s
22586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22588 (eval $ac_try) 2>&5
22590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22591 test $ac_status = 0; }; }
22594 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22595 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22596 gcc_cv_as_cfi_advance_working
=yes
22600 echo "configure: failed program was" >&5
22603 rm -f conftest.o conftest.s
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22607 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22610 # no objdump, err on the side of caution
22611 gcc_cv_as_cfi_advance_working
=no
22615 cat >>confdefs.h
<<_ACEOF
22616 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22617 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22623 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22624 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22625 $as_echo_n "(cached) " >&6
22627 gcc_cv_as_cfi_personality_directive
=no
22628 if test x
$gcc_cv_as != x
; then
22631 .cfi_personality 0, symbol
22632 .cfi_endproc' > conftest.s
22633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }
22640 gcc_cv_as_cfi_personality_directive
=yes
22642 echo "configure: failed program was" >&5
22645 rm -f conftest.o conftest.s
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22649 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22652 cat >>confdefs.h
<<_ACEOF
22653 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22654 then echo 1; else echo 0; fi`
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22659 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22660 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22663 gcc_cv_as_cfi_sections_directive
=no
22664 if test x
$gcc_cv_as != x
; then
22666 .cfi_sections .debug_frame, .eh_frame
22668 .cfi_endproc' > conftest.s
22669 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22671 (eval $ac_try) 2>&5
22673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22674 test $ac_status = 0; }; }
22677 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22678 # Need to check that we generated the correct relocation for the
22679 # .debug_frame section. This was fixed for binutils 2.21.
22680 gcc_cv_as_cfi_sections_directive
=no
22681 if test "x$gcc_cv_objdump" != x
; then
22682 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22683 grep secrel
> /dev
/null
; then
22684 gcc_cv_as_cfi_sections_directive
=yes
22689 gcc_cv_as_cfi_sections_directive
=yes
22693 echo "configure: failed program was" >&5
22696 rm -f conftest.o conftest.s
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22700 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22704 cat >>confdefs.h
<<_ACEOF
22705 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22706 then echo 1; else echo 0; fi`
22710 # GAS versions up to and including 2.11.0 may mis-optimize
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22713 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22714 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22715 $as_echo_n "(cached) " >&6
22717 gcc_cv_as_eh_frame
=no
22718 if test $in_tree_gas = yes; then
22719 if test $in_tree_gas_is_elf = yes \
22720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22721 then gcc_cv_as_eh_frame
=yes
22723 elif test x
$gcc_cv_as != x
; then
22730 .section .eh_frame,"aw",@progbits
22732 .4byte .LECIE1-.LSCIE1
22746 .4byte .LEFDE1-.LASFDE1
22748 .4byte .LASFDE1-__FRAME_BEGIN__
22755 .LEFDE1:' > conftest.s
22756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22758 (eval $ac_try) 2>&5
22760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22761 test $ac_status = 0; }; }
22763 cat > conftest.lit
<<EOF
22764 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22765 0010 01000000 12000000 18000000 00000000 ................
22766 0020 08000000 04080000 0044 .........D
22768 cat > conftest.big
<<EOF
22769 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22770 0010 00000001 00000012 00000018 00000000 ................
22771 0020 00000008 04000000 0844 .........D
22773 # If the assembler didn't choke, and we can objdump,
22774 # and we got the correct data, then succeed.
22775 # The text in the here-document typically retains its unix-style line
22776 # endings, while the output of objdump will use host line endings.
22777 # Therefore, use diff -b for the comparisons.
22778 if test x
$gcc_cv_objdump != x \
22779 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22780 |
tail -3 > conftest.got \
22781 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22782 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22784 gcc_cv_as_eh_frame
=yes
22785 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }; then
22791 gcc_cv_as_eh_frame
=buggy
22793 # Uh oh, what do we do now?
22794 gcc_cv_as_eh_frame
=no
22797 echo "configure: failed program was" >&5
22800 rm -f conftest.o conftest.s
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22804 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22807 if test $gcc_cv_as_eh_frame = buggy
; then
22809 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22814 $as_echo_n "checking assembler for section merging support... " >&6; }
22815 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22816 $as_echo_n "(cached) " >&6
22818 gcc_cv_as_shf_merge
=no
22819 if test $in_tree_gas = yes; then
22820 if test $in_tree_gas_is_elf = yes \
22821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22822 then gcc_cv_as_shf_merge
=yes
22824 elif test x
$gcc_cv_as != x
; then
22825 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22828 (eval $ac_try) 2>&5
22830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22831 test $ac_status = 0; }; }
22833 gcc_cv_as_shf_merge
=yes
22835 echo "configure: failed program was" >&5
22838 rm -f conftest.o conftest.s
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22842 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22844 if test $gcc_cv_as_shf_merge = no
; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22846 $as_echo_n "checking assembler for section merging support... " >&6; }
22847 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22848 $as_echo_n "(cached) " >&6
22850 gcc_cv_as_shf_merge
=no
22851 if test $in_tree_gas = yes; then
22852 if test $in_tree_gas_is_elf = yes \
22853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22854 then gcc_cv_as_shf_merge
=yes
22856 elif test x
$gcc_cv_as != x
; then
22857 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22860 (eval $ac_try) 2>&5
22862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22863 test $ac_status = 0; }; }
22865 gcc_cv_as_shf_merge
=yes
22867 echo "configure: failed program was" >&5
22870 rm -f conftest.o conftest.s
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22874 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22878 cat >>confdefs.h
<<_ACEOF
22879 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22884 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22885 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22886 $as_echo_n "(cached) " >&6
22888 gcc_cv_as_comdat_group
=no
22889 if test $in_tree_gas = yes; then
22890 if test $in_tree_gas_is_elf = yes \
22891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22892 then gcc_cv_as_comdat_group
=yes
22894 elif test x
$gcc_cv_as != x
; then
22895 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22898 (eval $ac_try) 2>&5
22900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22901 test $ac_status = 0; }; }
22903 gcc_cv_as_comdat_group
=yes
22905 echo "configure: failed program was" >&5
22908 rm -f conftest.o conftest.s
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22912 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22914 if test $gcc_cv_as_comdat_group = yes; then
22915 gcc_cv_as_comdat_group_percent
=no
22916 gcc_cv_as_comdat_group_group
=no
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22919 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22920 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22923 gcc_cv_as_comdat_group_percent
=no
22924 if test $in_tree_gas = yes; then
22925 if test $in_tree_gas_is_elf = yes \
22926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22927 then gcc_cv_as_comdat_group_percent
=yes
22929 elif test x
$gcc_cv_as != x
; then
22930 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22938 gcc_cv_as_comdat_group_percent
=yes
22940 echo "configure: failed program was" >&5
22943 rm -f conftest.o conftest.s
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22947 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22949 if test $gcc_cv_as_comdat_group_percent = yes; then
22950 gcc_cv_as_comdat_group_group
=no
22952 case "${target}" in
22953 # Sun as uses a completely different syntax.
22955 case "${target}" in
22956 sparc
*-*-solaris2*)
22958 .group foo,".text%foo",#comdat
22959 .section ".text%foo", #alloc,#execinstr,#progbits
22964 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22966 .group foo,.text%foo,#comdat
22967 .section .text%foo, "ax", @progbits
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22974 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22975 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22976 $as_echo_n "(cached) " >&6
22978 gcc_cv_as_comdat_group_group
=no
22979 if test x
$gcc_cv_as != x
; then
22980 $as_echo "$conftest_s" > conftest.s
22981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }
22988 gcc_cv_as_comdat_group_group
=yes
22990 echo "configure: failed program was" >&5
22993 rm -f conftest.o conftest.s
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22997 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23003 if test x
"$ld_is_gold" = xyes
; then
23005 elif test $in_tree_ld = yes ; then
23007 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 \
23008 && test $in_tree_ld_is_elf = yes; then
23011 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23013 if test 0"$ld_date" -lt 20050308; then
23014 if test -n "$ld_date"; then
23015 # If there was date string, but was earlier than 2005-03-08, fail
23017 elif test "$ld_vers_major" -lt 2; then
23019 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23024 case "${target}" in
23025 *-*-solaris2.1
[1-9]*)
23027 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23028 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23031 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23032 # least ld version 1.2267.
23033 if test "$ld_vers_major" -gt 1; then
23035 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23037 elif test "$ld_vers_minor" -ge 2267; then
23042 # Assume linkers other than GNU ld don't support COMDAT group.
23047 # Allow overriding the automatic COMDAT group tests above.
23048 # Check whether --enable-comdat was given.
23049 if test "${enable_comdat+set}" = set; then :
23050 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23053 if test $comdat_group = no
; then
23054 gcc_cv_as_comdat_group
=no
23055 gcc_cv_as_comdat_group_percent
=no
23056 gcc_cv_as_comdat_group_group
=no
23059 cat >>confdefs.h
<<_ACEOF
23060 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23061 || test $gcc_cv_as_comdat_group_percent = yes \
23062 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23067 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23068 if test "${gcc_cv_as_discriminator+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23071 gcc_cv_as_discriminator
=no
23072 if test $in_tree_gas = yes; then
23073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23074 then gcc_cv_as_discriminator
=yes
23076 elif test x
$gcc_cv_as != x
; then
23079 .loc 1 1 0 discriminator 1' > conftest.s
23080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23082 (eval $ac_try) 2>&5
23084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23085 test $ac_status = 0; }; }
23087 gcc_cv_as_discriminator
=yes
23089 echo "configure: failed program was" >&5
23092 rm -f conftest.o conftest.s
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23096 $as_echo "$gcc_cv_as_discriminator" >&6; }
23097 if test $gcc_cv_as_discriminator = yes; then
23099 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23103 # Thread-local storage - the check is heavily parameterized.
23111 .section ".tdata","awT",@progbits
23114 ldq $27,__tls_get_addr($29) !literal!1
23115 lda $16,foo($29) !tlsgd!1
23116 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23117 ldq $27,__tls_get_addr($29) !literal!2
23118 lda $16,foo($29) !tlsldm!2
23119 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23120 ldq $1,foo($29) !gotdtprel
23121 ldah $2,foo($29) !dtprelhi
23122 lda $3,foo($2) !dtprello
23123 lda $4,foo($29) !dtprel
23124 ldq $1,foo($29) !gottprel
23125 ldah $2,foo($29) !tprelhi
23126 lda $3,foo($2) !tprello
23127 lda $4,foo($29) !tprel'
23130 tls_as_opt
=--fatal-warnings
23132 cris-
*-*|crisv32-
*-*)
23134 .section ".tdata","awT",@progbits
23141 tls_as_opt
=--fatal-warnings
23145 .section ".tdata","awT",@progbits
23148 call #gettlsoff(x)'
23157 .section ".tdata","awT",@progbits
23161 addil LT%foo-$tls_gdidx$,gp
23162 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23165 addil LT%foo-$tls_ldidx$,gp
23167 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23168 addil LR%foo-$tls_dtpoff$,%ret0
23169 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23171 addil LT%foo-$tls_ieoff$,gp
23172 ldw RT%foo-$tls_ieoff$(%r1),%t2
23175 addil LR%foo-$tls_leoff$,%t1
23176 ldo RR%foo-$tls_leoff$(%r1),%t2'
23179 tls_as_opt
=--fatal-warnings
23183 .section ".tdata","awT",%progbits
23186 .word foo(gottpoff)
23194 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23196 i
[34567]86-*-solaris2.
*)
23198 tga_func
=___tls_get_addr
23200 x86_64-
*-solaris2.1
[0-9]*)
23202 tga_func
=__tls_get_addr
23208 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23210 .section .tdata,"awt",@progbits'
23214 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23218 .section ".tdata","awT",@progbits'
23221 tls_as_opt
="--fatal-warnings"
23223 conftest_s
="$conftest_s
23227 leal foo@tlsgd(,%ebx,1), %eax
23228 leal foo@tlsldm(%ebx), %eax
23229 leal foo@dtpoff(%eax), %edx
23230 movl foo@gottpoff(%ebx), %eax
23231 subl foo@gottpoff(%ebx), %eax
23232 addl foo@gotntpoff(%ebx), %eax
23233 movl foo@indntpoff, %eax
23234 movl \$foo@tpoff, %eax
23235 subl \$foo@tpoff, %eax
23236 leal foo@ntpoff(%ecx), %eax"
23240 .section ".tdata","awT",@progbits
23244 leaq foo@TLSGD(%rip), %rdi
23245 leaq foo@TLSLD(%rip), %rdi
23246 leaq foo@DTPOFF(%rax), %rdx
23247 movq foo@GOTTPOFF(%rip), %rax
23248 movq $foo@TPOFF, %rax'
23251 tls_as_opt
=--fatal-warnings
23255 .section ".tdata","awT",@progbits
23258 addl r16 = @ltoff(@dtpmod(foo#)), gp
23259 addl r17 = @ltoff(@dtprel(foo#)), gp
23260 addl r18 = @ltoff(@tprel(foo#)), gp
23261 addl r19 = @dtprel(foo#), gp
23262 adds r21 = @dtprel(foo#), r13
23263 movl r23 = @dtprel(foo#)
23264 addl r20 = @tprel(foo#), gp
23265 adds r22 = @tprel(foo#), r13
23266 movl r24 = @tprel(foo#)'
23269 tls_as_opt
=--fatal-warnings
23273 .section .tdata,"awT",@progbits
23277 addiu $4, $28, %tlsgd(x)
23278 addiu $4, $28, %tlsldm(x)
23279 lui $4, %dtprel_hi(x)
23280 addiu $4, $4, %dtprel_lo(x)
23281 lw $4, %gottprel(x)($28)
23282 lui $4, %tprel_hi(x)
23283 addiu $4, $4, %tprel_lo(x)'
23286 tls_as_opt
='-32 --fatal-warnings'
23290 .section .tdata,"awT",@progbits
23295 move.l x@TLSGD(%a5),%a0
23296 move.l x@TLSLDM(%a5),%a0
23297 move.l x@TLSLDO(%a5),%a0
23298 move.l x@TLSIE(%a5),%a0
23299 move.l x@TLSLE(%a5),%a0'
23302 tls_as_opt
='--fatal-warnings'
23306 .section ".tdata","awT",@progbits
23314 addi 3,31,ld0@got@tlsgd
23316 addi 3,31,x1@got@tlsld
23319 addis 9,3,x2@dtprel@ha
23320 addi 9,9,x2@dtprel@l
23321 lwz 9,x3@got@tprel(31)
23324 addis 9,2,x2@tprel@ha
23325 addi 9,9,x2@tprel@l'
23328 tls_as_opt
="-a32 --fatal-warnings"
23332 .section ".tdata","awT",@progbits
23340 addi 3,2,ld0@got@tlsgd
23346 addi 3,2,x1@got@tlsld
23352 addis 9,3,x2@dtprel@ha
23353 addi 9,9,x2@dtprel@l
23356 ld 9,x3@got@dtprel(2)
23362 tls_as_opt
="-a64 --fatal-warnings"
23366 .section ".tdata","awT",@progbits
23373 .long foo@GOTNTPOFF
23374 .long foo@INDNTPOFF
23375 l %r1,foo@GOTNTPOFF(%r12)
23376 l %r1,0(%r1):tls_load:foo
23377 bas %r14,0(%r1,%r13):tls_gdcall:foo
23378 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23381 tls_as_opt
="-m31 --fatal-warnings"
23385 .section ".tdata","awT",@progbits
23392 .quad foo@GOTNTPOFF
23393 lg %r1,foo@GOTNTPOFF(%r12)
23394 larl %r1,foo@INDNTPOFF
23395 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23396 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23399 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23401 sh-
*-* | sh
[34]-*-*)
23403 .section ".tdata","awT",@progbits
23413 tls_as_opt
=--fatal-warnings
23417 sparc
*-sun-solaris2.
*)
23419 tga_func
=__tls_get_addr
23425 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23427 .section ".tdata",#alloc,#write,#tls'
23432 .section ".tdata","awT",@progbits'
23435 tls_as_opt
="-32 --fatal-warnings"
23437 conftest_s
="$conftest_s
23440 sethi %tgd_hi22(foo), %o0
23441 add %o0, %tgd_lo10(foo), %o1
23442 add %l7, %o1, %o0, %tgd_add(foo)
23443 call __tls_get_addr, %tgd_call(foo)
23444 sethi %tldm_hi22(foo), %l1
23445 add %l1, %tldm_lo10(foo), %l2
23446 add %l7, %l2, %o0, %tldm_add(foo)
23447 call __tls_get_addr, %tldm_call(foo)
23448 sethi %tldo_hix22(foo), %l3
23449 xor %l3, %tldo_lox10(foo), %l4
23450 add %o0, %l4, %l5, %tldo_add(foo)
23451 sethi %tie_hi22(foo), %o3
23452 add %o3, %tie_lo10(foo), %o3
23453 ld [%l7 + %o3], %o2, %tie_ld(foo)
23454 add %g7, %o2, %o4, %tie_add(foo)
23455 sethi %tle_hix22(foo), %l1
23456 xor %l1, %tle_lox10(foo), %o5
23457 ld [%g7 + %o5], %o1"
23461 .section ".tdata","awT",@progbits
23464 movi a8, foo@TLSFUNC
23465 movi a10, foo@TLSARG
23466 callx8.tls a8, foo@TLSCALL'
23472 if test "x$enable_tls" = xno
; then
23473 : # TLS explicitly disabled.
23474 elif test "x$enable_tls" = xyes
; then
23475 set_have_as_tls
=yes # TLS explicitly enabled.
23476 elif test -z "$tls_first_major"; then
23477 : # If we don't have a check, assume no support.
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23480 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23481 if test "${gcc_cv_as_tls+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23485 if test $in_tree_gas = yes; then
23486 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23487 then gcc_cv_as_tls
=yes
23489 elif test x
$gcc_cv_as != x
; then
23490 $as_echo "$conftest_s" > conftest.s
23491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23493 (eval $ac_try) 2>&5
23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23496 test $ac_status = 0; }; }
23500 echo "configure: failed program was" >&5
23503 rm -f conftest.o conftest.s
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23507 $as_echo "$gcc_cv_as_tls" >&6; }
23508 if test $gcc_cv_as_tls = yes; then
23509 set_have_as_tls
=yes
23514 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23515 # with TLS support are in use, native TLS cannot work.
23519 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23520 # gld with TLS support are in use, native TLS cannot work.
23523 # TLS was introduced in the Solaris 9 FCS release and backported to
23524 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23525 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23526 # ld and GCC don't support any longer.
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23529 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23531 # Check ld and ld.so.1 TLS support.
23532 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23533 # Assume all interesting versions of GNU ld have TLS support.
23534 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23538 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23540 min_tls_ld_vers_minor
=280
23542 # Solaris 8/SPARC ld has TLS support since version 1.272.
23543 sparc
*-*-solaris2.8
)
23544 min_tls_ld_vers_minor
=272
23546 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23548 min_tls_ld_vers_minor
=374
23550 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23551 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23552 min_tls_ld_vers_minor
=343
23555 if test "$ld_vers_major" -gt 1 || \
23556 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23563 $as_echo "$ld_tls_support" >&6; }
23566 save_LDFLAGS
="$LDFLAGS"
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23571 $as_echo_n "checking alternate thread library... " >&6; }
23573 # TLS support was backported to Solaris 8 patches, but only lives in
23574 # the alternate thread library which became the default in Solaris 9.
23575 # We want to always use that, irrespective of TLS support.
23577 # Take multilib subdir into account. There's no spec to handle
23578 # this. The 64 symlink exists since Solaris 8.
23579 lwp_dir
=/usr
/lib
/lwp
23580 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23581 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23588 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23590 cat >>confdefs.h
<<_ACEOF
23591 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23595 $as_echo "$lwp_dir" >&6; }
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23598 $as_echo_n "checking library containing $tga_func... " >&6; }
23599 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23600 # (32-bit x86) only lived in libthread, so check for that. Keep
23601 # set_have_as_tls if found, disable if not.
23602 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23604 $as_echo_n "checking for library containing $tga_func... " >&6; }
23605 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23606 $as_echo_n "(cached) " >&6
23608 ac_func_search_save_LIBS
=$LIBS
23609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23610 /* end confdefs.h. */
23612 /* Override any GCC internal prototype to avoid an error.
23613 Use char because int might match the return type of a GCC
23614 builtin and then its argument prototype would still apply. */
23622 return $tga_func ();
23627 for ac_lib
in '' thread
; do
23628 if test -z "$ac_lib"; then
23629 ac_res
="none required"
23632 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23634 if ac_fn_c_try_link
"$LINENO"; then :
23635 eval "$as_ac_Search=\$ac_res"
23637 rm -f core conftest.err conftest.
$ac_objext \
23639 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23643 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23646 eval "$as_ac_Search=no"
23648 rm conftest.
$ac_ext
23649 LIBS
=$ac_func_search_save_LIBS
23651 eval ac_res
=\$
$as_ac_Search
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23653 $as_echo "$ac_res" >&6; }
23654 eval ac_res
=\$
$as_ac_Search
23655 if test "$ac_res" != no
; then :
23656 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23662 # Clear LIBS if we cannot support TLS.
23663 if test $set_have_as_tls = no
; then
23666 # Always define LIB_TLS_SPEC, even without TLS support.
23668 cat >>confdefs.h
<<_ACEOF
23669 #define LIB_TLS_SPEC "$LIBS"
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23673 $as_echo "$LIBS" >&6; }
23676 LDFLAGS
="$save_LDFLAGS"
23679 if test $set_have_as_tls = yes ; then
23681 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23685 # Target-specific assembler checks.
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23688 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23689 gcc_cv_ld_static_dynamic
=no
23690 gcc_cv_ld_static_option
='-Bstatic'
23691 gcc_cv_ld_dynamic_option
='-Bdynamic'
23692 if test $in_tree_ld = yes ; then
23693 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
23694 gcc_cv_ld_static_dynamic
=yes
23696 elif test x
$gcc_cv_ld != x
; then
23697 # Check if linker supports -Bstatic/-Bdynamic option
23698 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23699 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23700 gcc_cv_ld_static_dynamic
=yes
23703 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23705 gcc_cv_ld_static_dynamic
=yes
23706 gcc_cv_ld_static_option
="-noso"
23707 gcc_cv_ld_dynamic_option
="-so_archive"
23709 # HP-UX ld uses -a flags to select between shared and archive.
23711 if test x
"$gnu_ld" = xno
; then
23712 gcc_cv_ld_static_dynamic
=yes
23713 gcc_cv_ld_static_option
="-aarchive_shared"
23714 gcc_cv_ld_dynamic_option
="-adefault"
23717 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23719 gcc_cv_ld_static_dynamic
=yes
23721 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23723 gcc_cv_ld_static_dynamic
=yes
23728 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23730 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23733 cat >>confdefs.h
<<_ACEOF
23734 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23738 cat >>confdefs.h
<<_ACEOF
23739 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23744 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23746 if test x
"$demangler_in_ld" = xyes
; then
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23748 $as_echo_n "checking linker --demangle support... " >&6; }
23749 gcc_cv_ld_demangle
=no
23750 if test $in_tree_ld = yes; then
23751 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 \
23752 gcc_cv_ld_demangle
=yes
23754 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23755 # Check if the GNU linker supports --demangle option
23756 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23757 gcc_cv_ld_demangle
=yes
23760 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23762 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23766 $as_echo "$gcc_cv_ld_demangle" >&6; }
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23770 $as_echo_n "checking linker plugin support... " >&6; }
23771 gcc_cv_lto_plugin
=0
23772 if test -f liblto_plugin.la
; then
23773 save_ld_ver
="$ld_ver"
23774 save_ld_vers_major
="$ld_vers_major"
23775 save_ld_vers_minor
="$ld_vers_minor"
23776 save_ld_is_gold
="$ld_is_gold"
23780 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23782 # FIXME: ld_is_gold?
23783 ld_vers_major
="$gcc_cv_gld_major_version"
23784 ld_vers_minor
="$gcc_cv_gld_minor_version"
23786 # Determine plugin linker version.
23787 # FIXME: Partial duplicate from above, generalize.
23788 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23789 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23790 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23792 ld_vers
=`echo $ld_ver | sed -n \
23793 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23795 ld_vers
=`echo $ld_ver | sed -n \
23796 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23798 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23799 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23803 # Determine plugin support.
23804 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23805 # Require GNU ld or gold 2.21+ for plugin support by default.
23806 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23807 gcc_cv_lto_plugin
=2
23808 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23809 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23810 gcc_cv_lto_plugin
=1
23814 ld_ver
="$save_ld_ver"
23815 ld_vers_major
="$save_ld_vers_major"
23816 ld_vers_minor
="$save_ld_vers_minor"
23817 ld_is_gold
="$save_ld_is_gold"
23820 cat >>confdefs.h
<<_ACEOF
23821 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23825 $as_echo "$gcc_cv_lto_plugin" >&6; }
23828 # All TARGET_ABI_OSF targets.
23829 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23831 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23832 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23833 $as_echo_n "(cached) " >&6
23835 gcc_cv_as_alpha_explicit_relocs
=no
23836 if test $in_tree_gas = yes; then
23837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23838 then gcc_cv_as_alpha_explicit_relocs
=yes
23840 elif test x
$gcc_cv_as != x
; then
23841 $as_echo ' .set nomacro
23843 extbl $3, $2, $3 !lituse_bytoff!1
23844 ldq $2, a($29) !literal!1
23845 ldq $4, b($29) !literal!2
23846 ldq_u $3, 0($2) !lituse_base!1
23847 ldq $27, f($29) !literal!5
23848 jsr $26, ($27), f !lituse_jsr!5
23849 ldah $29, 0($26) !gpdisp!3
23850 lda $0, c($29) !gprel
23851 ldah $1, d($29) !gprelhigh
23852 lda $1, d($1) !gprellow
23853 lda $29, 0($29) !gpdisp!3' > conftest.s
23854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23856 (eval $ac_try) 2>&5
23858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23859 test $ac_status = 0; }; }
23861 gcc_cv_as_alpha_explicit_relocs
=yes
23863 echo "configure: failed program was" >&5
23866 rm -f conftest.o conftest.s
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23870 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23871 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23873 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23877 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23878 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23879 $as_echo_n "(cached) " >&6
23881 gcc_cv_as_alpha_jsrdirect_relocs
=no
23882 if test $in_tree_gas = yes; then
23883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23884 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23886 elif test x
$gcc_cv_as != x
; then
23887 $as_echo ' .set nomacro
23889 ldq $27, a($29) !literal!1
23890 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893 (eval $ac_try) 2>&5
23895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896 test $ac_status = 0; }; }
23898 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23900 echo "configure: failed program was" >&5
23903 rm -f conftest.o conftest.s
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23907 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23908 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23910 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23917 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23918 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23919 $as_echo_n "(cached) " >&6
23921 gcc_cv_as_cris_no_mul_bug
=no
23922 if test $in_tree_gas = yes; then
23923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23924 then gcc_cv_as_cris_no_mul_bug
=yes
23926 elif test x
$gcc_cv_as != x
; then
23927 $as_echo '.text' > conftest.s
23928 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23930 (eval $ac_try) 2>&5
23932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23933 test $ac_status = 0; }; }
23935 gcc_cv_as_cris_no_mul_bug
=yes
23937 echo "configure: failed program was" >&5
23940 rm -f conftest.o conftest.s
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23944 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23945 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23947 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23954 $as_echo_n "checking assembler for .register... " >&6; }
23955 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23956 $as_echo_n "(cached) " >&6
23958 gcc_cv_as_sparc_register_op
=no
23959 if test x
$gcc_cv_as != x
; then
23960 $as_echo '.register %g2, #scratch' > conftest.s
23961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963 (eval $ac_try) 2>&5
23965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966 test $ac_status = 0; }; }
23968 gcc_cv_as_sparc_register_op
=yes
23970 echo "configure: failed program was" >&5
23973 rm -f conftest.o conftest.s
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23977 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23978 if test $gcc_cv_as_sparc_register_op = yes; then
23980 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23985 $as_echo_n "checking assembler for -relax option... " >&6; }
23986 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23987 $as_echo_n "(cached) " >&6
23989 gcc_cv_as_sparc_relax
=no
23990 if test x
$gcc_cv_as != x
; then
23991 $as_echo '.text' > conftest.s
23992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23994 (eval $ac_try) 2>&5
23996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23997 test $ac_status = 0; }; }
23999 gcc_cv_as_sparc_relax
=yes
24001 echo "configure: failed program was" >&5
24004 rm -f conftest.o conftest.s
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24008 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24009 if test $gcc_cv_as_sparc_relax = yes; then
24011 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24016 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24017 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24018 $as_echo_n "(cached) " >&6
24020 gcc_cv_as_sparc_gotdata_op
=no
24021 if test x
$gcc_cv_as != x
; then
24027 sethi %gdop_hix22(foo), %g1
24028 xor %g1, %gdop_lox10(foo), %g1
24029 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24037 if test x
$gcc_cv_ld != x \
24038 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24039 if test x
$gcc_cv_objdump != x
; then
24040 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24041 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24042 gcc_cv_as_sparc_gotdata_op
=no
24044 gcc_cv_as_sparc_gotdata_op
=yes
24050 echo "configure: failed program was" >&5
24053 rm -f conftest.o conftest.s
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24057 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24058 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24060 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24065 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24066 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24069 gcc_cv_as_sparc_ua_pcrel
=no
24070 if test x
$gcc_cv_as != x
; then
24077 .uaword %r_disp32(foo)' > conftest.s
24078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24080 (eval $ac_try) 2>&5
24082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24083 test $ac_status = 0; }; }
24085 if test x
$gcc_cv_ld != x \
24086 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24087 gcc_cv_as_sparc_ua_pcrel
=yes
24091 echo "configure: failed program was" >&5
24094 rm -f conftest.o conftest.s
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24098 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24099 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24101 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24105 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24106 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24109 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24110 if test x
$gcc_cv_as != x
; then
24114 .uaword %r_disp32(foo)
24115 .byte 0x32, 0x33, 0x34
24119 .skip 4' > conftest.s
24120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24122 (eval $ac_try) 2>&5
24124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24125 test $ac_status = 0; }; }
24127 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24128 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24129 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24130 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24131 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24132 |
grep 'DISP32' > /dev
/null
2>&1; then
24135 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24140 echo "configure: failed program was" >&5
24143 rm -f conftest.o conftest.s
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24147 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24148 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24150 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24154 fi # unaligned pcrel relocs
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24157 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24158 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24159 $as_echo_n "(cached) " >&6
24161 gcc_cv_as_sparc_offsetable_lo10
=no
24162 if test x
$gcc_cv_as != x
; then
24164 or %g1, %lo(ab) + 12, %g1
24165 or %g1, %lo(ab + 12), %g1' > conftest.s
24166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24173 if test x
$gcc_cv_objdump != x \
24174 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24175 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24176 gcc_cv_as_sparc_offsetable_lo10
=yes
24179 echo "configure: failed program was" >&5
24182 rm -f conftest.o conftest.s
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24186 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24187 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24189 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24194 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24195 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24196 $as_echo_n "(cached) " >&6
24198 gcc_cv_as_sparc_fmaf
=no
24199 if test x
$gcc_cv_as != x
; then
24201 .register %g2, #scratch
24202 .register %g3, #scratch
24204 fmaddd %f0, %f2, %f4, %f6
24205 addxccc %g1, %g2, %g3
24206 fsrl32 %f2, %f4, %f8
24207 fnaddd %f10, %f12, %f14' > conftest.s
24208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24210 (eval $ac_try) 2>&5
24212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24213 test $ac_status = 0; }; }
24215 gcc_cv_as_sparc_fmaf
=yes
24217 echo "configure: failed program was" >&5
24220 rm -f conftest.o conftest.s
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24224 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24225 if test $gcc_cv_as_sparc_fmaf = yes; then
24227 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24232 i
[34567]86-*-* | x86_64-
*-*)
24235 # Full C++ conformance when using a shared libstdc++-v3 requires some
24236 # support from the Cygwin DLL, which in more recent versions exports
24237 # wrappers to aid in interposing and redirecting operators new, delete,
24238 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24239 # are configuring for a version of Cygwin that exports the wrappers.
24240 if test x
$host = x
$target; then
24241 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24242 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24243 gcc_ac_cygwin_dll_wrappers
=yes
24245 gcc_ac_cygwin_dll_wrappers
=no
24249 # Can't check presence of libc functions during cross-compile, so
24250 # we just have to assume we're building for an up-to-date target.
24251 gcc_ac_cygwin_dll_wrappers
=yes
24254 cat >>confdefs.h
<<_ACEOF
24255 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24260 cygwin
* | pe | mingw32
*)
24261 # Recent binutils allows the three-operand form of ".comm" on PE. This
24262 # definition is used unconditionally to initialise the default state of
24263 # the target option variable that governs usage of the feature.
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24265 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24266 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24267 $as_echo_n "(cached) " >&6
24269 gcc_cv_as_comm_has_align
=no
24270 if test $in_tree_gas = yes; then
24271 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24272 then gcc_cv_as_comm_has_align
=yes
24274 elif test x
$gcc_cv_as != x
; then
24275 $as_echo '.comm foo,1,32' > conftest.s
24276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278 (eval $ac_try) 2>&5
24280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281 test $ac_status = 0; }; }
24283 gcc_cv_as_comm_has_align
=yes
24285 echo "configure: failed program was" >&5
24288 rm -f conftest.o conftest.s
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24292 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24295 cat >>confdefs.h
<<_ACEOF
24296 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24299 # Used for DWARF 2 in PE
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24301 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24302 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24303 $as_echo_n "(cached) " >&6
24305 gcc_cv_as_ix86_pe_secrel32
=no
24306 if test $in_tree_gas = yes; then
24307 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24308 then gcc_cv_as_ix86_pe_secrel32
=yes
24310 elif test x
$gcc_cv_as != x
; then
24314 .secrel32 foo' > conftest.s
24315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24317 (eval $ac_try) 2>&5
24319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24320 test $ac_status = 0; }; }
24322 if test x
$gcc_cv_ld != x \
24323 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24324 gcc_cv_as_ix86_pe_secrel32
=yes
24328 echo "configure: failed program was" >&5
24331 rm -f conftest.o conftest.s
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24335 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24336 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24338 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24341 # Test if the assembler supports the extended form of the .section
24342 # directive that specifies section alignment. LTO support uses this,
24343 # but normally only after installation, so we warn but don't fail the
24344 # configure if LTO is enabled but the assembler does not support it.
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24346 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24347 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24350 gcc_cv_as_section_has_align
=no
24351 if test $in_tree_gas = yes; then
24352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24353 then gcc_cv_as_section_has_align
=yes
24355 elif test x
$gcc_cv_as != x
; then
24356 $as_echo '.section lto_test,"dr0"' > conftest.s
24357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24359 (eval $ac_try) 2>&5
24361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24362 test $ac_status = 0; }; }
24364 gcc_cv_as_section_has_align
=yes
24366 echo "configure: failed program was" >&5
24369 rm -f conftest.o conftest.s
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24373 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24375 if test x
$gcc_cv_as_section_has_align != xyes
; then
24376 case ",$enable_languages," in
24378 { $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
24379 $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;}
24383 # Test if the assembler supports the section flag 'e' for specifying
24384 # an excluded section.
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24386 $as_echo_n "checking assembler for .section with e... " >&6; }
24387 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24390 gcc_cv_as_section_has_e
=no
24391 if test $in_tree_gas = yes; then
24392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24393 then gcc_cv_as_section_has_e
=yes
24395 elif test x
$gcc_cv_as != x
; then
24396 $as_echo '.section foo1,"e"
24397 .byte 0,0,0,0' > conftest.s
24398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24405 gcc_cv_as_section_has_e
=yes
24407 echo "configure: failed program was" >&5
24410 rm -f conftest.o conftest.s
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24414 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24417 cat >>confdefs.h
<<_ACEOF
24418 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24425 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24426 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24427 $as_echo_n "(cached) " >&6
24429 gcc_cv_as_ix86_filds
=no
24430 if test x
$gcc_cv_as != x
; then
24431 $as_echo 'filds mem; fists mem' > conftest.s
24432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24434 (eval $ac_try) 2>&5
24436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24437 test $ac_status = 0; }; }
24439 gcc_cv_as_ix86_filds
=yes
24441 echo "configure: failed program was" >&5
24444 rm -f conftest.o conftest.s
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24448 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24449 if test $gcc_cv_as_ix86_filds = yes; then
24451 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24456 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24457 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24460 gcc_cv_as_ix86_fildq
=no
24461 if test x
$gcc_cv_as != x
; then
24462 $as_echo 'fildq mem; fistpq mem' > conftest.s
24463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24470 gcc_cv_as_ix86_fildq
=yes
24472 echo "configure: failed program was" >&5
24475 rm -f conftest.o conftest.s
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24479 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24480 if test $gcc_cv_as_ix86_fildq = yes; then
24482 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24487 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24488 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_ix86_cmov_sun_syntax
=no
24492 if test x
$gcc_cv_as != x
; then
24493 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24501 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24503 echo "configure: failed program was" >&5
24506 rm -f conftest.o conftest.s
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24510 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24511 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24513 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24518 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24519 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24522 gcc_cv_as_ix86_ffreep
=no
24523 if test x
$gcc_cv_as != x
; then
24524 $as_echo 'ffreep %st(1)' > conftest.s
24525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24527 (eval $ac_try) 2>&5
24529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24530 test $ac_status = 0; }; }
24532 gcc_cv_as_ix86_ffreep
=yes
24534 echo "configure: failed program was" >&5
24537 rm -f conftest.o conftest.s
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24541 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24542 if test $gcc_cv_as_ix86_ffreep = yes; then
24544 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24549 $as_echo_n "checking assembler for .quad directive... " >&6; }
24550 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24551 $as_echo_n "(cached) " >&6
24553 gcc_cv_as_ix86_quad
=no
24554 if test x
$gcc_cv_as != x
; then
24555 $as_echo '.quad 0' > conftest.s
24556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24563 gcc_cv_as_ix86_quad
=yes
24565 echo "configure: failed program was" >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24572 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24573 if test $gcc_cv_as_ix86_quad = yes; then
24575 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24580 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24581 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24584 gcc_cv_as_ix86_sahf
=no
24585 if test x
$gcc_cv_as != x
; then
24588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24590 (eval $ac_try) 2>&5
24592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24593 test $ac_status = 0; }; }
24595 gcc_cv_as_ix86_sahf
=yes
24597 echo "configure: failed program was" >&5
24600 rm -f conftest.o conftest.s
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24604 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24605 if test $gcc_cv_as_ix86_sahf = yes; then
24607 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24612 $as_echo_n "checking assembler for swap suffix... " >&6; }
24613 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24616 gcc_cv_as_ix86_swap
=no
24617 if test x
$gcc_cv_as != x
; then
24618 $as_echo 'movl.s %esp, %ebp' > conftest.s
24619 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24621 (eval $ac_try) 2>&5
24623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24624 test $ac_status = 0; }; }
24626 gcc_cv_as_ix86_swap
=yes
24628 echo "configure: failed program was" >&5
24631 rm -f conftest.o conftest.s
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24635 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24636 if test $gcc_cv_as_ix86_swap = yes; then
24638 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24643 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24644 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24647 gcc_cv_as_ix86_diff_sect_delta
=no
24648 if test x
$gcc_cv_as != x
; then
24649 $as_echo '.section .rodata
24655 .L2: nop' > conftest.s
24656 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24658 (eval $ac_try) 2>&5
24660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24661 test $ac_status = 0; }; }
24663 gcc_cv_as_ix86_diff_sect_delta
=yes
24665 echo "configure: failed program was" >&5
24668 rm -f conftest.o conftest.s
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24672 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24673 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24675 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24679 # These two are used unconditionally by i386.[ch]; it is to be defined
24680 # to 1 if the feature is present, 0 otherwise.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24682 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24683 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_ix86_gotoff_in_data
=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24689 then gcc_cv_as_ix86_gotoff_in_data
=yes
24691 elif test x
$gcc_cv_as != x
; then
24696 .long .L0@GOTOFF' > conftest.s
24697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24704 gcc_cv_as_ix86_gotoff_in_data
=yes
24706 echo "configure: failed program was" >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24713 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24716 cat >>confdefs.h
<<_ACEOF
24717 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24722 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24723 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24726 gcc_cv_as_ix86_rep_lock_prefix
=no
24727 if test x
$gcc_cv_as != x
; then
24728 $as_echo 'rep movsl
24729 lock addl %edi, (%eax,%esi)
24730 lock orl $0, (%esp)' > conftest.s
24731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24738 gcc_cv_as_ix86_rep_lock_prefix
=yes
24740 echo "configure: failed program was" >&5
24743 rm -f conftest.o conftest.s
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24747 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24748 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24750 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24755 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24756 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24759 gcc_cv_as_ix86_tlsgdplt
=no
24760 if test x
$gcc_cv_as != x
; then
24761 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24769 gcc_cv_as_ix86_tlsgdplt
=yes
24771 echo "configure: failed program was" >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24778 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24779 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24781 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24786 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24787 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24790 gcc_cv_as_ix86_tlsldmplt
=no
24791 if test x
$gcc_cv_as != x
; then
24792 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; }
24800 gcc_cv_as_ix86_tlsldmplt
=yes
24802 echo "configure: failed program was" >&5
24805 rm -f conftest.o conftest.s
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24809 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24810 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24812 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24820 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24821 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24824 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24825 if test $in_tree_gas = yes; then
24826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24827 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24829 elif test x
$gcc_cv_as != x
; then
24831 addl r15 = @ltoffx(x#), gp
24833 ld8.mov r16 = [r15], x#' > conftest.s
24834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24836 (eval $ac_try) 2>&5
24838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24839 test $ac_status = 0; }; }
24841 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24843 echo "configure: failed program was" >&5
24846 rm -f conftest.o conftest.s
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24850 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24851 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24853 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24861 *-*-aix*) conftest_s
=' .machine "pwr5"
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24866 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24867 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24870 gcc_cv_as_machine_directive
=no
24871 if test x
$gcc_cv_as != x
; then
24872 $as_echo ' .machine ppc7400' > conftest.s
24873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24880 gcc_cv_as_machine_directive
=yes
24882 echo "configure: failed program was" >&5
24885 rm -f conftest.o conftest.s
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24889 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24891 if test x
$gcc_cv_as_machine_directive != xyes
; then
24892 echo "*** This target requires an assembler supporting \".machine\"" >&2
24893 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24894 test x
$build = x
$target && exit 1
24898 *) conftest_s
=' .machine power4
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24904 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24905 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24906 $as_echo_n "(cached) " >&6
24908 gcc_cv_as_powerpc_mfcrf
=no
24909 if test $in_tree_gas = yes; then
24910 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24911 then gcc_cv_as_powerpc_mfcrf
=yes
24913 elif test x
$gcc_cv_as != x
; then
24914 $as_echo "$conftest_s" > conftest.s
24915 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24922 gcc_cv_as_powerpc_mfcrf
=yes
24924 echo "configure: failed program was" >&5
24927 rm -f conftest.o conftest.s
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24931 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24932 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24934 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24939 *-*-aix*) conftest_s
=' .machine "pwr5"
24942 *) conftest_s
=' .machine power5
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24948 $as_echo_n "checking assembler for popcntb support... " >&6; }
24949 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24950 $as_echo_n "(cached) " >&6
24952 gcc_cv_as_powerpc_popcntb
=no
24953 if test $in_tree_gas = yes; then
24954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24955 then gcc_cv_as_powerpc_popcntb
=yes
24957 elif test x
$gcc_cv_as != x
; then
24958 $as_echo "$conftest_s" > conftest.s
24959 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24961 (eval $ac_try) 2>&5
24963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24964 test $ac_status = 0; }; }
24966 gcc_cv_as_powerpc_popcntb
=yes
24968 echo "configure: failed program was" >&5
24971 rm -f conftest.o conftest.s
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24975 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24976 if test $gcc_cv_as_powerpc_popcntb = yes; then
24978 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24983 *-*-aix*) conftest_s
=' .machine "pwr5x"
24986 *) conftest_s
=' .machine power5
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24992 $as_echo_n "checking assembler for fp round support... " >&6; }
24993 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24994 $as_echo_n "(cached) " >&6
24996 gcc_cv_as_powerpc_fprnd
=no
24997 if test $in_tree_gas = yes; then
24998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24999 then gcc_cv_as_powerpc_fprnd
=yes
25001 elif test x
$gcc_cv_as != x
; then
25002 $as_echo "$conftest_s" > conftest.s
25003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25005 (eval $ac_try) 2>&5
25007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25008 test $ac_status = 0; }; }
25010 gcc_cv_as_powerpc_fprnd
=yes
25012 echo "configure: failed program was" >&5
25015 rm -f conftest.o conftest.s
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25019 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25020 if test $gcc_cv_as_powerpc_fprnd = yes; then
25022 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25027 *-*-aix*) conftest_s
=' .machine "pwr6"
25030 *) conftest_s
=' .machine power6
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25036 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25037 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25040 gcc_cv_as_powerpc_mfpgpr
=no
25041 if test $in_tree_gas = yes; then
25042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25043 then gcc_cv_as_powerpc_mfpgpr
=yes
25045 elif test x
$gcc_cv_as != x
; then
25046 $as_echo "$conftest_s" > conftest.s
25047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25049 (eval $ac_try) 2>&5
25051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }; }
25054 gcc_cv_as_powerpc_mfpgpr
=yes
25056 echo "configure: failed program was" >&5
25059 rm -f conftest.o conftest.s
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25063 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25064 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25066 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25071 *-*-aix*) conftest_s
=' .csect .text[PR]
25073 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25077 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25078 *) conftest_s
=' .text
25080 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25084 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25085 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25088 gcc_cv_as_powerpc_rel16
=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25091 then gcc_cv_as_powerpc_rel16
=yes
25093 elif test x
$gcc_cv_as != x
; then
25094 $as_echo "$conftest_s" > conftest.s
25095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097 (eval $ac_try) 2>&5
25099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100 test $ac_status = 0; }; }
25102 gcc_cv_as_powerpc_rel16
=yes
25104 echo "configure: failed program was" >&5
25107 rm -f conftest.o conftest.s
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25111 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25112 if test $gcc_cv_as_powerpc_rel16 = yes; then
25114 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25119 *-*-aix*) conftest_s
=' .machine "pwr6"
25122 *) conftest_s
=' .machine power6
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25128 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25129 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_powerpc_cmpb
=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25135 then gcc_cv_as_powerpc_cmpb
=yes
25137 elif test x
$gcc_cv_as != x
; then
25138 $as_echo "$conftest_s" > conftest.s
25139 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25141 (eval $ac_try) 2>&5
25143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25144 test $ac_status = 0; }; }
25146 gcc_cv_as_powerpc_cmpb
=yes
25148 echo "configure: failed program was" >&5
25151 rm -f conftest.o conftest.s
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25155 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25156 if test $gcc_cv_as_powerpc_cmpb = yes; then
25158 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25163 *-*-aix*) conftest_s
=' .machine "pwr6"
25166 *) conftest_s
=' .machine power6
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25172 $as_echo_n "checking assembler for decimal float support... " >&6; }
25173 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25174 $as_echo_n "(cached) " >&6
25176 gcc_cv_as_powerpc_dfp
=no
25177 if test $in_tree_gas = yes; then
25178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25179 then gcc_cv_as_powerpc_dfp
=yes
25181 elif test x
$gcc_cv_as != x
; then
25182 $as_echo "$conftest_s" > conftest.s
25183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25185 (eval $ac_try) 2>&5
25187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25188 test $ac_status = 0; }; }
25190 gcc_cv_as_powerpc_dfp
=yes
25192 echo "configure: failed program was" >&5
25195 rm -f conftest.o conftest.s
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25199 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25200 if test $gcc_cv_as_powerpc_dfp = yes; then
25202 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25207 *-*-aix*) conftest_s
=' .machine "pwr7"
25210 *) conftest_s
=' .machine power7
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25216 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25217 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25218 $as_echo_n "(cached) " >&6
25220 gcc_cv_as_powerpc_vsx
=no
25221 if test $in_tree_gas = yes; then
25222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25223 then gcc_cv_as_powerpc_vsx
=yes
25225 elif test x
$gcc_cv_as != x
; then
25226 $as_echo "$conftest_s" > conftest.s
25227 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25234 gcc_cv_as_powerpc_vsx
=yes
25236 echo "configure: failed program was" >&5
25239 rm -f conftest.o conftest.s
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25243 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25244 if test $gcc_cv_as_powerpc_vsx = yes; then
25246 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25251 *-*-aix*) conftest_s
=' .machine "pwr7"
25254 *) conftest_s
=' .machine power7
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25260 $as_echo_n "checking assembler for popcntd support... " >&6; }
25261 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25262 $as_echo_n "(cached) " >&6
25264 gcc_cv_as_powerpc_popcntd
=no
25265 if test $in_tree_gas = yes; then
25266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25267 then gcc_cv_as_powerpc_popcntd
=yes
25269 elif test x
$gcc_cv_as != x
; then
25270 $as_echo "$conftest_s" > conftest.s
25271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25273 (eval $ac_try) 2>&5
25275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25276 test $ac_status = 0; }; }
25278 gcc_cv_as_powerpc_popcntd
=yes
25280 echo "configure: failed program was" >&5
25283 rm -f conftest.o conftest.s
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25287 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25288 if test $gcc_cv_as_powerpc_popcntd = yes; then
25290 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25295 *-*-aix*) conftest_s
=' .csect .text[PR]
25297 *) conftest_s
=' .text
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25302 $as_echo_n "checking assembler for lwsync support... " >&6; }
25303 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25306 gcc_cv_as_powerpc_lwsync
=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25309 then gcc_cv_as_powerpc_lwsync
=yes
25311 elif test x
$gcc_cv_as != x
; then
25312 $as_echo "$conftest_s" > conftest.s
25313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25320 gcc_cv_as_powerpc_lwsync
=yes
25322 echo "configure: failed program was" >&5
25325 rm -f conftest.o conftest.s
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25329 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25330 if test $gcc_cv_as_powerpc_lwsync = yes; then
25332 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25337 *-*-aix*) conftest_s
=' .machine "476"
25340 *) conftest_s
=' .machine "476"
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25346 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25350 gcc_cv_as_powerpc_dci
=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25353 then gcc_cv_as_powerpc_dci
=yes
25355 elif test x
$gcc_cv_as != x
; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_powerpc_dci
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25373 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25374 if test $gcc_cv_as_powerpc_dci = yes; then
25376 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25381 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25382 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
25385 gcc_cv_as_powerpc_gnu_attribute
=no
25386 if test $in_tree_gas = yes; then
25387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25388 then gcc_cv_as_powerpc_gnu_attribute
=yes
25390 elif test x
$gcc_cv_as != x
; then
25391 $as_echo '.gnu_attribute 4,1' > conftest.s
25392 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25394 (eval $ac_try) 2>&5
25396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25397 test $ac_status = 0; }; }
25399 gcc_cv_as_powerpc_gnu_attribute
=yes
25401 echo "configure: failed program was" >&5
25404 rm -f conftest.o conftest.s
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25408 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25409 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25411 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25416 $as_echo_n "checking assembler for tls marker support... " >&6; }
25417 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
25420 gcc_cv_as_powerpc_tls_markers
=no
25421 if test $in_tree_gas = yes; then
25422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25423 then gcc_cv_as_powerpc_tls_markers
=yes
25425 elif test x
$gcc_cv_as != x
; then
25426 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }
25434 gcc_cv_as_powerpc_tls_markers
=yes
25436 echo "configure: failed program was" >&5
25439 rm -f conftest.o conftest.s
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25443 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25444 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25446 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25453 $as_echo_n "checking assembler for .ref support... " >&6; }
25454 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25457 gcc_cv_as_aix_ref
=no
25458 if test $in_tree_gas = yes; then
25459 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25462 elif test x
$gcc_cv_as != x
; then
25463 $as_echo ' .csect stuff[rw]
25469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25476 gcc_cv_as_aix_ref
=yes
25478 echo "configure: failed program was" >&5
25481 rm -f conftest.o conftest.s
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25485 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25486 if test $gcc_cv_as_aix_ref = yes; then
25488 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25497 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25498 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25501 gcc_cv_as_mips_explicit_relocs
=no
25502 if test $in_tree_gas = yes; then
25503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25504 then gcc_cv_as_mips_explicit_relocs
=yes
25506 elif test x
$gcc_cv_as != x
; then
25507 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25515 gcc_cv_as_mips_explicit_relocs
=yes
25517 echo "configure: failed program was" >&5
25520 rm -f conftest.o conftest.s
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25524 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25525 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25526 if test x
$target_cpu_default = x
25527 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25528 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25532 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25533 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
25536 gcc_cv_as_mips_no_shared
=no
25537 if test $in_tree_gas = yes; then
25538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25539 then gcc_cv_as_mips_no_shared
=yes
25541 elif test x
$gcc_cv_as != x
; then
25542 $as_echo 'nop' > conftest.s
25543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25550 gcc_cv_as_mips_no_shared
=yes
25552 echo "configure: failed program was" >&5
25555 rm -f conftest.o conftest.s
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25559 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25560 if test $gcc_cv_as_mips_no_shared = yes; then
25562 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25567 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25568 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25569 $as_echo_n "(cached) " >&6
25571 gcc_cv_as_mips_gnu_attribute
=no
25572 if test $in_tree_gas = yes; then
25573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25574 then gcc_cv_as_mips_gnu_attribute
=yes
25576 elif test x
$gcc_cv_as != x
; then
25577 $as_echo '.gnu_attribute 4,1' > conftest.s
25578 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25580 (eval $ac_try) 2>&5
25582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25583 test $ac_status = 0; }; }
25585 gcc_cv_as_mips_gnu_attribute
=yes
25587 echo "configure: failed program was" >&5
25590 rm -f conftest.o conftest.s
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25594 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25595 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25597 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25602 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25603 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25606 gcc_cv_as_mips_dtprelword
=no
25607 if test $in_tree_gas = yes; then
25608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25609 then gcc_cv_as_mips_dtprelword
=yes
25611 elif test x
$gcc_cv_as != x
; then
25612 $as_echo '.section .tdata,"awT",@progbits
25616 .dtprelword x+0x8000' > conftest.s
25617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25624 gcc_cv_as_mips_dtprelword
=yes
25626 echo "configure: failed program was" >&5
25629 rm -f conftest.o conftest.s
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25633 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25634 if test $gcc_cv_as_mips_dtprelword = yes; then
25636 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25641 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25642 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25645 gcc_cv_as_mips_dspr1_mult
=no
25646 if test x
$gcc_cv_as != x
; then
25647 $as_echo ' .set mips32r2
25655 multu $ac3,$4,$5' > conftest.s
25656 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25658 (eval $ac_try) 2>&5
25660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25661 test $ac_status = 0; }; }
25663 gcc_cv_as_mips_dspr1_mult
=yes
25665 echo "configure: failed program was" >&5
25668 rm -f conftest.o conftest.s
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25672 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25673 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25675 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25680 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25681 gcc_cv_as_ld_jalr_reloc
=no
25682 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25683 if test $in_tree_ld = yes ; then
25684 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 \
25685 && test $in_tree_ld_is_elf = yes; then
25686 gcc_cv_as_ld_jalr_reloc
=yes
25688 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25689 echo ' .ent x' > conftest.s
25690 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25691 echo ' ld $25,%call16(y)($28)' >> conftest.s
25692 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25693 echo '1: jalr $25' >> conftest.s
25694 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25695 echo '1: jalr $25' >> conftest.s
25696 echo ' .end x' >> conftest.s
25697 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25698 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25699 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25700 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25701 gcc_cv_as_ld_jalr_reloc
=yes
25707 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25708 if test x
$target_cpu_default = x
; then
25709 target_cpu_default
=MASK_RELAX_PIC_CALLS
25711 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25715 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25718 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25719 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25720 $as_echo_n "(cached) " >&6
25722 gcc_cv_ld_mips_personality_relaxation
=no
25723 if test $in_tree_ld = yes ; then
25724 if test "$gcc_cv_gld_major_version" -eq 2 \
25725 -a "$gcc_cv_gld_minor_version" -ge 21 \
25726 -o "$gcc_cv_gld_major_version" -gt 2; then
25727 gcc_cv_ld_mips_personality_relaxation
=yes
25729 elif test x
$gcc_cv_as != x \
25730 -a x
$gcc_cv_ld != x \
25731 -a x
$gcc_cv_readelf != x
; then
25732 cat > conftest.s
<<EOF
25734 .cfi_personality 0x80,indirect_ptr
25741 .section .data,"aw",@progbits
25745 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25746 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25747 if $gcc_cv_readelf -d conftest
2>&1 \
25748 |
grep TEXTREL
> /dev
/null
2>&1; then
25750 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25751 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25754 gcc_cv_ld_mips_personality_relaxation
=yes
25758 rm -f conftest.s conftest.o conftest
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25761 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25762 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25764 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25770 # Mips and HP-UX need the GNU assembler.
25771 # Linux on IA64 might be able to use the Intel assembler.
25774 mips
*-*-* |
*-*-hpux* )
25775 if test x
$gas_flag = xyes \
25776 ||
test x
"$host" != x
"$build" \
25777 ||
test ! -x "$gcc_cv_as" \
25778 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25781 echo "*** This configuration requires the GNU assembler" >&2
25787 # ??? Not all targets support dwarf2 debug_line, even within a version
25788 # of gas. Moreover, we need to emit a valid instruction to trigger any
25789 # info to the output file. So, as supported targets are added to gas 2.11,
25790 # add some instruction here to (also) show we expect this might work.
25791 # ??? Once 2.11 is released, probably need to add first known working
25792 # version to the per-target configury.
25793 case "$cpu_type" in
25794 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25795 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25805 if test x
"$insn" != x
; then
25807 .file 1 \"conftest.s\"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25811 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25812 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25815 gcc_cv_as_dwarf2_debug_line
=no
25816 if test $in_tree_gas = yes; then
25817 if test $in_tree_gas_is_elf = yes \
25818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25819 then gcc_cv_as_dwarf2_debug_line
=yes
25821 elif test x
$gcc_cv_as != x
; then
25822 $as_echo "$conftest_s" > conftest.s
25823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825 (eval $ac_try) 2>&5
25827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828 test $ac_status = 0; }; }
25830 if test x
$gcc_cv_objdump != x \
25831 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25832 |
grep debug_line
> /dev
/null
2>&1; then
25833 gcc_cv_as_dwarf2_debug_line
=yes
25836 echo "configure: failed program was" >&5
25839 rm -f conftest.o conftest.s
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25843 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25846 # The .debug_line file table must be in the exact order that
25847 # we specified the files, since these indices are also used
25848 # by DW_AT_decl_file. Approximate this test by testing if
25849 # the assembler bitches if the same index is assigned twice.
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25851 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25852 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25855 gcc_cv_as_dwarf2_file_buggy
=no
25856 if test x
$gcc_cv_as != x
; then
25857 $as_echo ' .file 1 "foo.s"
25858 .file 1 "bar.s"' > conftest.s
25859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25866 gcc_cv_as_dwarf2_file_buggy
=yes
25868 echo "configure: failed program was" >&5
25871 rm -f conftest.o conftest.s
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25875 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25878 if test $gcc_cv_as_dwarf2_debug_line = yes \
25879 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25881 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25886 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25887 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25888 $as_echo_n "(cached) " >&6
25890 gcc_cv_as_gdwarf2_flag
=no
25891 if test $in_tree_gas = yes; then
25892 if test $in_tree_gas_is_elf = yes \
25893 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25894 then gcc_cv_as_gdwarf2_flag
=yes
25896 elif test x
$gcc_cv_as != x
; then
25897 $as_echo "$insn" > conftest.s
25898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25905 gcc_cv_as_gdwarf2_flag
=yes
25907 echo "configure: failed program was" >&5
25910 rm -f conftest.o conftest.s
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25914 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25915 if test $gcc_cv_as_gdwarf2_flag = yes; then
25917 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25922 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25923 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25924 $as_echo_n "(cached) " >&6
25926 gcc_cv_as_gstabs_flag
=no
25927 if test $in_tree_gas = yes; then
25928 if test $in_tree_gas_is_elf = yes \
25929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25930 then gcc_cv_as_gstabs_flag
=yes
25932 elif test x
$gcc_cv_as != x
; then
25933 $as_echo "$insn" > conftest.s
25934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25941 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25942 # and warns about it, but still exits successfully. So check for
25944 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25951 else gcc_cv_as_gstabs_flag
=yes
25954 echo "configure: failed program was" >&5
25957 rm -f conftest.o conftest.s
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25961 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25962 if test $gcc_cv_as_gstabs_flag = yes; then
25964 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25969 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25970 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25973 gcc_cv_as_debug_prefix_map_flag
=no
25974 if test $in_tree_gas = yes; then
25975 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25976 then gcc_cv_as_debug_prefix_map_flag
=yes
25978 elif test x
$gcc_cv_as != x
; then
25979 $as_echo "$insn" > conftest.s
25980 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25982 (eval $ac_try) 2>&5
25984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25985 test $ac_status = 0; }; }
25987 gcc_cv_as_debug_prefix_map_flag
=yes
25989 echo "configure: failed program was" >&5
25992 rm -f conftest.o conftest.s
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25996 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25997 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25999 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26005 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26006 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26007 $as_echo_n "(cached) " >&6
26009 gcc_cv_as_lcomm_with_alignment
=no
26010 if test x
$gcc_cv_as != x
; then
26011 $as_echo '.lcomm bar,4,16' > conftest.s
26012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26019 gcc_cv_as_lcomm_with_alignment
=yes
26021 echo "configure: failed program was" >&5
26024 rm -f conftest.o conftest.s
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26028 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26029 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26031 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26035 # Check whether --enable-gnu-unique-object was given.
26036 if test "${enable_gnu_unique_object+set}" = set; then :
26037 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26039 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26040 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26044 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26045 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26046 $as_echo_n "(cached) " >&6
26048 gcc_cv_as_gnu_unique_object
=no
26049 if test $in_tree_gas = yes; then
26050 if test $in_tree_gas_is_elf = yes \
26051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26052 then gcc_cv_as_gnu_unique_object
=yes
26054 elif test x
$gcc_cv_as != x
; then
26055 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26063 gcc_cv_as_gnu_unique_object
=yes
26065 echo "configure: failed program was" >&5
26068 rm -f conftest.o conftest.s
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26072 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26073 if test $gcc_cv_as_gnu_unique_object = yes; then
26074 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26075 if test x
$host = x
$build -a x
$host = x
$target &&
26076 ldd
--version 2>/dev
/null
&&
26077 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26078 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26079 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26080 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26081 if test "$glibcnum" -ge 2011 ; then
26082 enable_gnu_unique_object
=yes
26088 if test x
$enable_gnu_unique_object = xyes
; then
26090 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26095 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26096 if test "${gcc_cv_as_line_zero+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26099 gcc_cv_as_line_zero
=no
26100 if test $in_tree_gas = yes; then
26101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26102 then gcc_cv_as_line_zero
=yes
26104 elif test "x$gcc_cv_as" != x
; then
26105 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26106 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; } &&
26112 test "x`cat conftest.out`" = x
26114 gcc_cv_as_line_zero
=yes
26116 echo "configure: failed program was" >&5
26118 echo "configure: error output was" >&5
26119 cat conftest.out
>&5
26121 rm -f conftest.o conftest.s conftest.out
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26125 $as_echo "$gcc_cv_as_line_zero" >&6; }
26126 if test "x$gcc_cv_as_line_zero" = xyes
; then
26128 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26133 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26134 gcc_cv_ld_eh_frame_hdr
=no
26135 if test $in_tree_ld = yes ; then
26136 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 \
26137 && test $in_tree_ld_is_elf = yes; then
26138 gcc_cv_ld_eh_frame_hdr
=yes
26140 elif test x
$gcc_cv_ld != x
; then
26141 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26142 # Check if linker supports --eh-frame-hdr option
26143 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26144 gcc_cv_ld_eh_frame_hdr
=yes
26149 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26150 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26151 gcc_cv_ld_eh_frame_hdr
=yes
26158 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26160 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26164 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26167 $as_echo_n "checking linker position independent executable support... " >&6; }
26169 if test $in_tree_ld = yes ; then
26170 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 \
26171 && test $in_tree_ld_is_elf = yes; then
26174 elif test x
$gcc_cv_ld != x
; then
26175 # Check if linker supports -pie option
26176 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26180 if test x
"$gcc_cv_ld_pie" = xyes
; then
26182 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26186 $as_echo "$gcc_cv_ld_pie" >&6; }
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26189 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26190 gcc_cv_ld_eh_gc_sections
=no
26191 if test $in_tree_ld = yes ; then
26192 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 \
26193 && test $in_tree_ld_is_elf = yes; then
26194 gcc_cv_ld_eh_gc_sections
=yes
26196 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26197 cat > conftest.s
<<EOF
26200 .type _start, @function
26203 .size _start, .-_start
26204 .section .text.foo,"ax",@progbits
26205 .type foo, @function
26209 .section .gcc_except_table.foo,"a",@progbits
26212 .section .eh_frame,"a",@progbits
26215 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26216 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26217 |
grep "gc-sections option ignored" > /dev
/null
; then
26218 gcc_cv_ld_eh_gc_sections
=no
26219 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26220 |
grep gcc_except_table
> /dev
/null
; then
26221 gcc_cv_ld_eh_gc_sections
=yes
26222 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26223 if test x
$gcc_cv_as_comdat_group != xyes
; then
26224 gcc_cv_ld_eh_gc_sections
=no
26225 cat > conftest.s
<<EOF
26228 .type _start, @function
26231 .size _start, .-_start
26232 .section .gnu.linkonce.t.foo,"ax",@progbits
26233 .type foo, @function
26237 .section .gcc_except_table.foo,"a",@progbits
26240 .section .eh_frame,"a",@progbits
26243 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26244 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26245 |
grep "gc-sections option ignored" > /dev
/null
; then
26246 gcc_cv_ld_eh_gc_sections
=no
26247 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26248 |
grep gcc_except_table
> /dev
/null
; then
26249 gcc_cv_ld_eh_gc_sections
=yes
26255 rm -f conftest.s conftest.o conftest
26259 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26260 gcc_cv_ld_eh_gc_sections
=no
26263 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26265 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26269 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26272 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26273 gcc_cv_ld_eh_gc_sections_bug
=no
26274 if test $in_tree_ld = yes ; then
26275 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 \
26276 && test $in_tree_ld_is_elf = yes; then
26277 gcc_cv_ld_eh_gc_sections_bug
=yes
26279 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
26280 gcc_cv_ld_eh_gc_sections_bug
=yes
26281 cat > conftest.s
<<EOF
26284 .type _start, @function
26287 .size _start, .-_start
26288 .section .text.startup.foo,"ax",@progbits
26289 .type foo, @function
26293 .section .gcc_except_table.foo,"a",@progbits
26296 .section .eh_frame,"a",@progbits
26299 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26300 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26301 |
grep "gc-sections option ignored" > /dev
/null
; then
26303 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26304 |
grep gcc_except_table
> /dev
/null
; then
26305 gcc_cv_ld_eh_gc_sections_bug
=no
26308 rm -f conftest.s conftest.o conftest
26310 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26312 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26316 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26323 $as_echo_n "checking linker --as-needed support... " >&6; }
26324 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26325 $as_echo_n "(cached) " >&6
26327 gcc_cv_ld_as_needed
=no
26328 if test $in_tree_ld = yes ; then
26329 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 \
26330 && test $in_tree_ld_is_elf = yes; then
26331 gcc_cv_ld_as_needed
=yes
26333 elif test x
$gcc_cv_ld != x
; then
26334 # Check if linker supports --as-needed and --no-as-needed options
26335 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26336 gcc_cv_ld_as_needed
=yes
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26342 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26343 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26345 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26349 case "$target:$tm_file" in
26350 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26352 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26353 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26354 $as_echo_n "(cached) " >&6
26356 gcc_cv_ld_no_dot_syms
=no
26357 if test $in_tree_ld = yes ; then
26358 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
26359 gcc_cv_ld_no_dot_syms
=yes
26361 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26362 cat > conftest1.s
<<EOF
26366 cat > conftest2.s
<<EOF
26367 .section ".opd","aw"
26370 .type foo,@function
26372 .quad .LEfoo,.TOC.@tocbase,0
26378 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26379 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26380 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26381 gcc_cv_ld_no_dot_syms
=yes
26383 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26388 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26389 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26391 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26396 $as_echo_n "checking linker large toc support... " >&6; }
26397 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
26400 gcc_cv_ld_large_toc
=no
26401 if test $in_tree_ld = yes ; then
26402 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
26403 gcc_cv_ld_large_toc
=yes
26405 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26406 cat > conftest.s
<<EOF
26407 .section ".tbss","awT",@nobits
26413 addis 9,13,ie0@got@tprel@ha
26414 ld 9,ie0@got@tprel@l(9)
26416 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26417 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26418 gcc_cv_ld_large_toc
=yes
26420 rm -f conftest conftest.o conftest.s
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26425 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26426 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26428 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26435 $as_echo_n "checking linker --build-id support... " >&6; }
26436 if test "${gcc_cv_ld_buildid+set}" = set; then :
26437 $as_echo_n "(cached) " >&6
26439 gcc_cv_ld_buildid
=no
26440 if test $in_tree_ld = yes ; then
26441 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26442 "$gcc_cv_gld_minor_version" -ge 18 -o \
26443 "$gcc_cv_gld_major_version" -gt 2 \
26444 && test $in_tree_ld_is_elf = yes; then
26445 gcc_cv_ld_buildid
=yes
26447 elif test x
$gcc_cv_ld != x
; then
26448 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26449 gcc_cv_ld_buildid
=yes
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26454 $as_echo "$gcc_cv_ld_buildid" >&6; }
26455 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26457 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26461 # Check whether --enable-linker-build-id was given.
26462 if test "${enable_linker_build_id+set}" = set; then :
26463 enableval
=$enable_linker_build_id;
26465 enable_linker_build_id
=no
26469 if test x
"$enable_linker_build_id" = xyes
; then
26470 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26472 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26476 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26480 # In binutils 2.21, GNU ld gained support for new emulations fully
26481 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26483 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26484 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26485 $as_echo_n "(cached) " >&6
26487 gcc_cv_ld_sol2_emulation
=no
26488 if test $in_tree_ld = yes ; then
26489 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26490 "$gcc_cv_gld_minor_version" -ge 21 -o \
26491 "$gcc_cv_gld_major_version" -gt 2 \
26492 && test $in_tree_ld_is_elf = yes; then
26493 gcc_cv_ld_sol2_emulation
=yes
26495 elif test x
$gcc_cv_ld != x
; then
26496 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26497 grep _sol2
> /dev
/null
; then
26498 gcc_cv_ld_sol2_emulation
=yes
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26503 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26504 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26506 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26511 $as_echo_n "checking linker --sysroot support... " >&6; }
26512 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26515 gcc_cv_ld_sysroot
=no
26516 if test $in_tree_ld = yes ; then
26517 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
26518 gcc_cv_ld_sysroot
=yes
26520 elif test x
$gcc_cv_ld != x
; then
26521 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26522 gcc_cv_ld_sysroot
=yes
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26527 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26528 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26530 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26534 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26535 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26536 && test "$prefix" != "NONE"; then
26538 cat >>confdefs.h
<<_ACEOF
26539 #define PREFIX_INCLUDE_DIR "$prefix/include"
26544 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26545 if test "x$with_headers" != x
; then
26546 target_header_dir
=$with_headers
26547 elif test "x$with_sysroot" = x
; then
26548 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26549 elif test "x$with_build_sysroot" != "x"; then
26550 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26551 elif test "x$with_sysroot" = xyes
; then
26552 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26554 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26557 target_header_dir
=${native_system_header_dir}
26560 # Test for stack protector support in target C library.
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26562 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26563 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26566 gcc_cv_libc_provides_ssp
=no
26568 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26569 # glibc 2.4 and later provides __stack_chk_fail and
26570 # either __stack_chk_guard, or TLS access to stack guard canary.
26571 if test -f $target_header_dir/features.h \
26572 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26573 $target_header_dir/features.h
> /dev
/null
; then
26574 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26575 $target_header_dir/features.h
> /dev
/null
; then
26576 gcc_cv_libc_provides_ssp
=yes
26577 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26578 $target_header_dir/features.h
> /dev
/null \
26579 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26580 $target_header_dir/features.h
> /dev
/null
; then
26581 gcc_cv_libc_provides_ssp
=yes
26582 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26583 $target_header_dir/features.h
> /dev
/null
&& \
26584 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26585 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26586 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26587 gcc_cv_libc_provides_ssp
=yes
26592 # Avoid complicated tests (see
26593 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26594 # simply assert that glibc does provide this, which is true for all
26595 # realistically usable GNU/Hurd configurations.
26596 gcc_cv_libc_provides_ssp
=yes;;
26597 *-*-darwin* |
*-*-freebsd*)
26598 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26599 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26600 gcc_cv_libc_provides_ssp
=yes
26602 echo "no __stack_chk_fail on this target"
26606 *) gcc_cv_libc_provides_ssp
=no
;;
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26610 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26612 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26614 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26618 # Test for <sys/sdt.h> on the target.
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26621 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26623 if test -f $target_header_dir/sys
/sdt.h
; then
26626 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26630 $as_echo "$have_sys_sdt_h" >&6; }
26632 # Check if TFmode long double should be used by default or not.
26633 # Some glibc targets used DFmode long double, but with glibc 2.4
26634 # and later they can use TFmode.
26636 powerpc
*-*-linux* | \
26637 sparc
*-*-linux* | \
26641 # Check whether --with-long-double-128 was given.
26642 if test "${with_long_double_128+set}" = set; then :
26643 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26645 gcc_cv_target_ldbl128
=no
26646 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26647 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26648 && gcc_cv_target_ldbl128
=yes
26654 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26656 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26661 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26662 gcc_cv_target_dl_iterate_phdr
=unknown
26665 # <link.h> needs both a dl_iterate_phdr declaration and support for
26666 # compilation with largefile support.
26667 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26668 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26669 gcc_cv_target_dl_iterate_phdr
=yes
26671 gcc_cv_target_dl_iterate_phdr
=no
26676 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26678 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26682 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26684 # Find out what GC implementation we want, or may, use.
26686 # Check whether --with-gc was given.
26687 if test "${with_gc+set}" = set; then :
26688 withval
=$with_gc; case "$withval" in
26695 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26699 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26707 echo "Using $GGC for garbage collection."
26709 # Libraries to use on the host. This will normally be set by the top
26710 # level Makefile. Here we simply capture the value for our Makefile.
26711 if test -z "${HOST_LIBS+set}"; then
26716 # Use the system's zlib library.
26718 zlibinc
="-I\$(srcdir)/../zlib"
26720 # Check whether --with-system-zlib was given.
26721 if test "${with_system_zlib+set}" = set; then :
26722 withval
=$with_system_zlib; zlibdir
=
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26732 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26733 # Check whether --enable-maintainer-mode was given.
26734 if test "${enable_maintainer_mode+set}" = set; then :
26735 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26742 $as_echo "$maintainer_mode" >&6; }
26744 if test "$maintainer_mode" = "yes"; then
26754 # Make empty files to contain the specs and options for each language.
26755 # Then add #include lines to for a compiler that has specs and/or options.
26761 # These (without "all_") are set in each config-lang.in.
26762 # `language' must be a single word so is spelled singularly.
26765 all_outputs
='Makefile'
26766 # List of language makefile fragments.
26767 all_lang_makefrags
=
26768 # Additional files for gengtype
26769 all_gtfiles
="$target_gtfiles"
26771 # These are the languages that are set in --enable-languages,
26772 # and are available in the GCC tree.
26773 all_selected_languages
=
26775 # Add the language fragments.
26776 # Languages are added via two mechanisms. Some information must be
26777 # recorded in makefile variables, these are defined in config-lang.in.
26778 # We accumulate them and plug them into the main Makefile.
26779 # The other mechanism is a set of hooks for each of the main targets
26780 # like `clean', `install', etc.
26782 language_hooks
="Make-hooks"
26784 for lang
in ${srcdir}/*/config-lang.
in
26786 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26788 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26789 if test "x$lang_alias" = x
26791 echo "$lang doesn't set \$language." 1>&2
26794 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26795 subdirs
="$subdirs $subdir"
26797 # $gcc_subdir is where the gcc integration files are to be found
26798 # for a language, both for internal compiler purposes (compiler
26799 # sources implementing front-end to GCC tree converters), and for
26800 # build infrastructure purposes (Make-lang.in, etc.)
26802 # This will be <subdir> (relative to $srcdir) if a line like
26803 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26804 # is found in <langdir>/config-lang.in, and will remain <langdir>
26807 # Except for the language alias (fetched above), the regular
26808 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26809 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26810 # only this and the language alias.
26812 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26813 if [ "$gcc_subdir" = "" ]; then
26814 gcc_subdir
="$subdir"
26817 case ",$enable_languages," in
26819 all_selected_languages
="$all_selected_languages $lang_alias"
26820 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26821 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26832 .
${srcdir}/$gcc_subdir/config-lang.
in
26833 if test "x$language" = x
26835 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26840 case ",$enable_languages," in
26841 *,$lang_alias,*) ;;
26843 for i
in $subdir_requires; do
26844 test -f "${srcdir}/$i/config-lang.in" && continue
26852 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26853 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26854 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26855 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26857 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26858 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26860 all_languages
="$all_languages $language"
26861 all_compilers
="$all_compilers $compilers"
26862 all_outputs
="$all_outputs $outputs"
26863 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26864 case ",$enable_languages," in
26867 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26876 # Pick up gtfiles for c
26878 .
${srcdir}/c-config-lang.
in
26879 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26882 for language
in $all_selected_languages
26884 check_languages
="$check_languages check-$language"
26887 # We link each language in with a set of hooks, reached indirectly via
26888 # lang.${target}. Only do so for selected languages.
26892 target_list
="all.cross start.encap rest.encap tags \
26893 install-common install-man install-info install-pdf install-html dvi \
26894 pdf html uninstall info man srcextra srcman srcinfo \
26895 mostlyclean clean distclean maintainer-clean install-plugin"
26897 for t
in $target_list
26900 for lang
in $all_selected_languages
26904 echo "lang.$t: $x" >> Make-hooks
26908 # Option include files
26911 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26912 option_includes
="option-includes.mk"
26921 echo "dir ." > .gdbinit
26922 echo "dir ${srcdir}" >> .gdbinit
26923 if test x
$gdb_needs_out_file_path = xyes
26925 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26927 if test "x$subdirs" != x
; then
26930 echo "dir ${srcdir}/$s" >> .gdbinit
26933 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26935 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26939 # Find a directory in which to install a shared libgcc.
26941 # Check whether --enable-version-specific-runtime-libs was given.
26942 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26943 enableval
=$enable_version_specific_runtime_libs;
26947 # Substitute configuration variables
27012 if test x
${build} = x
${host} ; then
27013 if test x
${host} = x
${target} ; then
27014 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27016 echo "Links are now set up to build a cross-compiler" 1>&2
27017 echo " from ${host} to ${target}." 1>&2
27020 if test x
${host} = x
${target} ; then
27021 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27022 echo " for ${target}." 1>&2
27024 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27025 echo " from ${host} to ${target}." 1>&2
27037 if test "x${CLOOGLIBS}" != "x" ; then
27039 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27043 # Check for plugin support
27044 # Check whether --enable-plugin was given.
27045 if test "${enable_plugin+set}" = set; then :
27046 enableval
=$enable_plugin; enable_plugin
=$enableval
27048 enable_plugin
=yes; default_plugin
=yes
27056 if test x
$build = x
$host; then
27057 export_sym_check
="nm${exeext} -g"
27058 elif test x
$host = x
$target; then
27059 export_sym_check
="$gcc_cv_nm -g"
27065 if test x
$build = x
$host; then
27066 export_sym_check
="objdump${exeext} -T"
27067 elif test x
$host = x
$target; then
27068 export_sym_check
="$gcc_cv_objdump -T"
27075 if test x
"$enable_plugin" = x
"yes"; then
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27078 $as_echo_n "checking for exported symbols... " >&6; }
27079 if test "x$export_sym_check" != x
; then
27080 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27081 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27082 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27083 : # No need to use a flag
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27085 $as_echo "yes" >&6; }
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27088 $as_echo "yes" >&6; }
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27090 $as_echo_n "checking for -rdynamic... " >&6; }
27091 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27092 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27093 plugin_rdynamic
=yes
27094 pluginlibs
="-rdynamic"
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27100 $as_echo "$plugin_rdynamic" >&6; }
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27104 $as_echo "unable to check" >&6; }
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27110 $as_echo_n "checking for library containing dlopen... " >&6; }
27111 if test "${ac_cv_search_dlopen+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27114 ac_func_search_save_LIBS
=$LIBS
27115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27116 /* end confdefs.h. */
27118 /* Override any GCC internal prototype to avoid an error.
27119 Use char because int might match the return type of a GCC
27120 builtin and then its argument prototype would still apply. */
27133 for ac_lib
in '' dl
; do
27134 if test -z "$ac_lib"; then
27135 ac_res
="none required"
27138 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27140 if ac_fn_c_try_link
"$LINENO"; then :
27141 ac_cv_search_dlopen
=$ac_res
27143 rm -f core conftest.err conftest.
$ac_objext \
27145 if test "${ac_cv_search_dlopen+set}" = set; then :
27149 if test "${ac_cv_search_dlopen+set}" = set; then :
27152 ac_cv_search_dlopen
=no
27154 rm conftest.
$ac_ext
27155 LIBS
=$ac_func_search_save_LIBS
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27158 $as_echo "$ac_cv_search_dlopen" >&6; }
27159 ac_res
=$ac_cv_search_dlopen
27160 if test "$ac_res" != no
; then :
27161 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27165 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27166 pluginlibs
="$pluginlibs -ldl"
27170 # Check that we can build shared objects with -fPIC -shared
27171 saved_LDFLAGS
="$LDFLAGS"
27172 saved_CFLAGS
="$CFLAGS"
27175 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27176 CFLAGS
="$CFLAGS -fPIC"
27177 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27180 CFLAGS
="$CFLAGS -fPIC"
27181 LDFLAGS
="$LDFLAGS -fPIC -shared"
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27185 $as_echo_n "checking for -fPIC -shared... " >&6; }
27186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27187 /* end confdefs.h. */
27197 if ac_fn_c_try_link
"$LINENO"; then :
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27199 $as_echo "yes" >&6; }; have_pic_shared
=yes
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27202 $as_echo "no" >&6; }; have_pic_shared
=no
27204 rm -f core conftest.err conftest.
$ac_objext \
27205 conftest
$ac_exeext conftest.
$ac_ext
27206 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27210 LDFLAGS
="$saved_LDFLAGS"
27211 CFLAGS
="$saved_CFLAGS"
27213 # If plugin support had been requested but not available, fail.
27214 if test x
"$enable_plugin" = x
"no" ; then
27215 if test x
"$default_plugin" != x
"yes"; then
27217 Building GCC with plugin support requires a host that supports
27218 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27225 if test x
"$enable_plugin" = x
"yes"; then
27227 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27232 # Check whether --enable-libquadmath-support was given.
27233 if test "${enable_libquadmath_support+set}" = set; then :
27234 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27236 ENABLE_LIBQUADMATH_SUPPORT
=yes
27239 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27241 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27246 # Specify what hash style to use by default.
27248 # Check whether --with-linker-hash-style was given.
27249 if test "${with_linker_hash_style+set}" = set; then :
27250 withval
=$with_linker_hash_style; case x
"$withval" in
27252 LINKER_HASH_STYLE
=sysv
27255 LINKER_HASH_STYLE
=gnu
27258 LINKER_HASH_STYLE
=both
27261 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27265 LINKER_HASH_STYLE
=''
27268 if test x
"${LINKER_HASH_STYLE}" != x
; then
27270 cat >>confdefs.h
<<_ACEOF
27271 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27276 # Configure the subdirectories
27277 # AC_CONFIG_SUBDIRS($subdirs)
27279 # Create the Makefile
27280 # and configure language subdirectories
27281 ac_config_files
="$ac_config_files $all_outputs"
27284 ac_config_commands
="$ac_config_commands default"
27286 cat >confcache
<<\_ACEOF
27287 # This file is a shell script that caches the results of configure
27288 # tests run on this system so they can be shared between configure
27289 # scripts and configure runs, see configure's option --config-cache.
27290 # It is not useful on other systems. If it contains results you don't
27291 # want to keep, you may remove or edit it.
27293 # config.status only pays attention to the cache file if you give it
27294 # the --recheck option to rerun configure.
27296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27298 # following values.
27302 # The following way of writing the cache mishandles newlines in values,
27303 # but we know of no workaround that is simple, portable, and efficient.
27304 # So, we kill variables containing newlines.
27305 # Ultrix sh set writes to stderr and can't be redirected directly,
27306 # and sets the high bit in the cache file unless we assign to the vars.
27308 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27309 eval ac_val
=\$
$ac_var
27313 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27317 _ | IFS | as_nl
) ;; #(
27318 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27319 *) { eval $ac_var=; unset $ac_var;} ;;
27325 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27326 *${as_nl}ac_space
=\
*)
27327 # `set' does not quote correctly, so add quotes: double-quote
27328 # substitution turns \\\\ into \\, and sed turns \\ into \.
27331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27334 # `set' quotes correctly as required by POSIX, so do not add quotes.
27335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27346 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27348 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27349 if test -w "$cache_file"; then
27350 test "x$cache_file" != "x/dev/null" &&
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27352 $as_echo "$as_me: updating cache $cache_file" >&6;}
27353 cat confcache
>$cache_file
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27356 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27361 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27362 # Let make expand exec_prefix.
27363 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27365 DEFS
=-DHAVE_CONFIG_H
27369 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27370 # 1. Remove the extension, and $U if already installed.
27371 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27372 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27374 # will be set to the directory where LIBOBJS objects are built.
27375 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27376 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27378 LIBOBJS
=$ac_libobjs
27380 LTLIBOBJS
=$ac_ltlibobjs
27385 : ${CONFIG_STATUS=./config.status}
27387 ac_clean_files_save
=$ac_clean_files
27388 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27394 # Generated by $as_me.
27395 # Run this file to recreate the current configuration.
27396 # Compiler output produced by configure, useful for debugging
27397 # configure, is in config.log if it exists.
27400 ac_cs_recheck=false
27403 SHELL=\${CONFIG_SHELL-$SHELL}
27406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27407 ## -------------------- ##
27408 ## M4sh Initialization. ##
27409 ## -------------------- ##
27411 # Be more Bourne compatible
27412 DUALCASE
=1; export DUALCASE
# for MKS sh
27413 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27417 # is contrary to our usage. Disable this feature.
27418 alias -g '${1+"$@"}'='"$@"'
27419 setopt NO_GLOB_SUBST
27421 case `(set -o) 2>/dev/null` in #(
27433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27434 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27437 # Prefer a ksh shell builtin over an external printf program on Solaris,
27438 # but without wasting forks for bash or zsh.
27439 if test -z "$BASH_VERSION$ZSH_VERSION" \
27440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27441 as_echo='print
-r --'
27442 as_echo_n='print
-rn --'
27443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27444 as_echo='printf %s
\n'
27445 as_echo_n='printf %s
'
27447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27448 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27449 as_echo_n='/usr
/ucb
/echo -n'
27451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27452 as_echo_n_body='eval
27456 expr "X$arg" : "X\\(.*\\)$as_nl";
27457 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27459 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27461 export as_echo_n_body
27462 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27464 export as_echo_body
27465 as_echo='sh
-c $as_echo_body as_echo
'
27468 # The user is always right.
27469 if test "${PATH_SEPARATOR+set}" != set; then
27471 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27472 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27479 # We need space, tab and new line, in precisely that order. Quoting is
27480 # there to prevent editors from complaining about space-tab.
27481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27482 # splitting by setting IFS to empty value.)
27485 # Find who we are. Look in the path if we contain no directory separator.
27487 *[\\/]* ) as_myself=$0 ;;
27488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 for as_dir in $PATH
27492 test -z "$as_dir" && as_dir=.
27493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27499 # We did not find ourselves, most probably we were run as `sh COMMAND'
27500 # in which case we are not to be found in the path.
27501 if test "x$as_myself" = x
; then
27504 if test ! -f "$as_myself"; then
27505 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27509 # Unset variables that we do not need and which cause bugs (e.g. in
27510 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27511 # suppresses any "Segmentation fault" message there. '((' could
27512 # trigger a bug in pdksh 5.2.14.
27513 for as_var
in BASH_ENV ENV MAIL MAILPATH
27514 do eval test x\
${$as_var+set} = xset \
27515 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27528 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27531 # as_fn_error ERROR [LINENO LOG_FD]
27532 # ---------------------------------
27533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27535 # script with status $?, using 1 if that was 0.
27538 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27540 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27541 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27543 $as_echo "$as_me: error: $1" >&2
27544 as_fn_exit
$as_status
27548 # as_fn_set_status STATUS
27549 # -----------------------
27550 # Set $? to STATUS, without forking.
27551 as_fn_set_status
()
27554 } # as_fn_set_status
27556 # as_fn_exit STATUS
27557 # -----------------
27558 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27562 as_fn_set_status
$1
27568 # Portably unset VAR.
27571 { eval $1=; unset $1;}
27573 as_unset
=as_fn_unset
27574 # as_fn_append VAR VALUE
27575 # ----------------------
27576 # Append the text in VALUE to the end of the definition contained in VAR. Take
27577 # advantage of any shell optimizations that allow amortized linear growth over
27578 # repeated appends, instead of the typical quadratic growth present in naive
27580 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27581 eval 'as_fn_append ()
27592 # as_fn_arith ARG...
27593 # ------------------
27594 # Perform arithmetic evaluation on the ARGs, and store the result in the
27595 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27596 # must be portable across $(()) and expr.
27597 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27598 eval 'as_fn_arith ()
27605 as_val
=`expr "$@" || test $? -eq 1`
27610 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27611 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27617 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27618 as_basename
=basename
27623 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27629 as_me
=`$as_basename -- "$0" ||
27630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27631 X"$0" : 'X\(//\)$' \| \
27632 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27634 sed '/^.*\/\([^/][^/]*\)\/*$/{
27648 # Avoid depending upon Character Ranges.
27649 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27650 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27651 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27652 as_cr_digits
='0123456789'
27653 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27655 ECHO_C
= ECHO_N
= ECHO_T
=
27656 case `echo -n x` in #(((((
27658 case `echo 'xy\c'` in
27659 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27661 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27668 rm -f conf$$ conf$$.exe conf$$.
file
27669 if test -d conf$$.dir
; then
27670 rm -f conf$$.dir
/conf$$.
file
27673 mkdir conf$$.dir
2>/dev
/null
27675 if (echo >conf$$.
file) 2>/dev
/null
; then
27676 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27678 # ... but there are two gotchas:
27679 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27680 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27681 # In both cases, we have to default to `cp -p'.
27682 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27684 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27692 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27693 rmdir conf$$.dir
2>/dev
/null
27698 # Create "$as_dir" as a directory, including parents if necessary.
27703 -*) as_dir
=.
/$as_dir;;
27705 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27709 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27710 *) as_qdir
=$as_dir;;
27712 as_dirs
="'$as_qdir' $as_dirs"
27713 as_dir
=`$as_dirname -- "$as_dir" ||
27714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27715 X"$as_dir" : 'X\(//\)[^/]' \| \
27716 X"$as_dir" : 'X\(//\)$' \| \
27717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27718 $as_echo X"$as_dir" |
27719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27723 /^X\(\/\/\)[^/].*/{
27736 test -d "$as_dir" && break
27738 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27739 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27743 if mkdir
-p .
2>/dev
/null
; then
27744 as_mkdir_p
='mkdir -p "$as_dir"'
27746 test -d .
/-p && rmdir .
/-p
27750 if test -x / >/dev
/null
2>&1; then
27751 as_test_x
='test -x'
27753 if ls -dL / >/dev
/null
2>&1; then
27760 if test -d "$1"; then
27766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27767 ???[sx]*):;;*)false;;esac;fi
27771 as_executable_p
=$as_test_x
27773 # Sed expression to map a string onto a valid CPP name.
27774 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27776 # Sed expression to map a string onto a valid variable name.
27777 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27781 ## ----------------------------------- ##
27782 ## Main body of $CONFIG_STATUS script. ##
27783 ## ----------------------------------- ##
27785 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27788 # Save the log message, to keep $0 and so on meaningful, and to
27789 # report actual input values of CONFIG_FILES etc. instead of their
27790 # values after options handling.
27792 This file was extended by $as_me, which was
27793 generated by GNU Autoconf 2.64. Invocation command line was
27795 CONFIG_FILES = $CONFIG_FILES
27796 CONFIG_HEADERS = $CONFIG_HEADERS
27797 CONFIG_LINKS = $CONFIG_LINKS
27798 CONFIG_COMMANDS = $CONFIG_COMMANDS
27801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27806 case $ac_config_files in *"
27807 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27810 case $ac_config_headers in *"
27811 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27816 # Files that config.status was made for.
27817 config_files="$ac_config_files"
27818 config_headers="$ac_config_headers"
27819 config_commands="$ac_config_commands"
27823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27825 \`$as_me' instantiates files and other configuration actions
27826 from templates according to the current configuration. Unless the files
27827 and actions are specified as TAGs, all are instantiated by default.
27829 Usage: $0 [OPTION]... [TAG]...
27831 -h, --help print this help, then exit
27832 -V, --version print version number and configuration settings, then exit
27833 -q, --quiet, --silent
27834 do not print progress messages
27835 -d, --debug don't remove temporary files
27836 --recheck update $as_me by reconfiguring in the same conditions
27837 --file=FILE[:TEMPLATE]
27838 instantiate the configuration file FILE
27839 --header=FILE[:TEMPLATE]
27840 instantiate the configuration header FILE
27842 Configuration files:
27845 Configuration headers:
27848 Configuration commands:
27851 Report bugs to the package provider."
27854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27857 configured by $0, generated by GNU Autoconf 2.64,
27858 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27860 Copyright (C) 2009 Free Software Foundation, Inc.
27861 This config.status script is free software; the Free Software Foundation
27862 gives unlimited permission to copy, distribute and modify it."
27867 test -n "\$AWK" || AWK=awk
27870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27871 # The default lists apply if the user does not specify any file.
27877 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27878 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27889 # Handling of the options.
27890 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27892 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27893 $as_echo "$ac_cs_version"; exit ;;
27894 --debug |
--debu |
--deb |
--de |
--d |
-d )
27896 --file |
--fil |
--fi |
--f )
27899 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27901 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27902 ac_need_defaults
=false
;;
27903 --header |
--heade |
--head |
--hea )
27906 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27908 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27909 ac_need_defaults
=false
;;
27911 # Conflict between --help and --header
27912 as_fn_error
"ambiguous option: \`$1'
27913 Try \`$0 --help' for more information.";;
27914 --help |
--hel |
-h )
27915 $as_echo "$ac_cs_usage"; exit ;;
27916 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27917 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27920 # This is an error.
27921 -*) as_fn_error
"unrecognized option: \`$1'
27922 Try \`$0 --help' for more information." ;;
27924 *) as_fn_append ac_config_targets
" $1"
27925 ac_need_defaults
=false
;;
27931 ac_configure_extra_args
=
27933 if $ac_cs_silent; then
27935 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27940 if \$ac_cs_recheck; then
27941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27943 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27944 CONFIG_SHELL='$SHELL'
27945 export CONFIG_SHELL
27950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27954 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27955 ## Running $as_me. ##
27961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27971 # Handling of arguments.
27972 for ac_config_target
in $ac_config_targets
27974 case $ac_config_target in
27975 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27976 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27977 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27978 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27979 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27980 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27982 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27987 # If the user did not use the arguments to specify the items to instantiate,
27988 # then the envvar interface is used. Set only those that are not.
27989 # We use the long form for the default assignment because of an extremely
27990 # bizarre bug on SunOS 4.1.3.
27991 if $ac_need_defaults; then
27992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27994 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27997 # Have a temporary directory for convenience. Make it in the build tree
27998 # simply because there is no reason against having it here, and in addition,
27999 # creating and moving files from /tmp can sometimes cause problems.
28000 # Hook for its removal unless debugging.
28001 # Note that there is a small window in which the directory will not be cleaned:
28002 # after its creation but before its name has been assigned to `$tmp'.
28006 trap 'exit_status=$?
28007 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28009 trap 'as_fn_exit 1' 1 2 13 15
28011 # Create a (secure) tmp directory for tmp files.
28014 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28015 test -n "$tmp" && test -d "$tmp"
28018 tmp
=.
/conf$$
-$RANDOM
28019 (umask 077 && mkdir
"$tmp")
28020 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28022 # Set up the scripts for CONFIG_FILES section.
28023 # No need to generate them if there are no CONFIG_FILES.
28024 # This happens for instance with `./config.status config.h'.
28025 if test -n "$CONFIG_FILES"; then
28027 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28028 ac_cs_awk_getline
=:
28029 ac_cs_awk_pipe_init
=
28030 ac_cs_awk_read_file
='
28031 while ((getline aline < (F[key])) > 0)
28034 ac_cs_awk_pipe_fini
=
28036 ac_cs_awk_getline
=false
28037 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28038 ac_cs_awk_read_file
='
28040 print "cat " F[key] " &&"
28041 '$ac_cs_awk_pipe_init
28042 # The final `:' finishes the AND list.
28043 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28045 ac_cr
=`echo X | tr X '\015'`
28046 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28047 # But we know of no other shell where ac_cr would be empty at this
28048 # point, so we can use a bashism as a fallback.
28049 if test "x$ac_cr" = x
; then
28050 eval ac_cr
=\$
\'\\r
\'
28052 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28053 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28056 ac_cs_awk_cr
=$ac_cr
28059 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28062 # Create commands to substitute file output variables.
28064 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28065 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28066 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28069 } >conf$
$files.sh
&&
28070 . .
/conf$
$files.sh ||
28071 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28072 rm -f conf$
$files.sh
28075 echo "cat >conf$$subs.awk <<_ACEOF" &&
28076 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28078 } >conf$$subs.sh ||
28079 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28080 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28082 for ac_last_try in false false false false false :; do
28083 . ./conf$$subs.sh ||
28084 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28086 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28087 if test $ac_delim_n = $ac_delim_num; then
28089 elif $ac_last_try; then
28090 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28092 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28095 rm -f conf$$subs.sh
28097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28098 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28102 s/^/S["/; s
/!.
*/"]=/
28112 s/\(.\{148\}\).*/\1/
28114 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28119 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28126 s/\(.\{148\}\).*/\1/
28128 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28132 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28137 ' <conf$$subs.awk | sed '
28142 ' >>$CONFIG_STATUS || ac_write_fail=1
28143 rm -f conf$$subs.awk
28144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28146 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28147 for (key in S) S_is_set[key] = 1
28149 \$ac_cs_awk_pipe_init
28153 nfields = split(line, field, "@
")
28155 len = length(field[1])
28156 for (i = 2; i < nfields; i++) {
28158 keylen = length(key)
28159 if (S_is_set[key]) {
28161 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28162 len += length(value) + length(field[++i])
28167 if (nfields == 3 && !substed) {
28169 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28170 \$ac_cs_awk_read_file
28176 \$ac_cs_awk_pipe_fini
28179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28180 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28181 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28184 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28185 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28190 # trailing colons and then remove the whole line if VPATH becomes empty
28191 # (actually we leave an empty line to preserve line numbers).
28192 if test "x
$srcdir" = x.; then
28193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28194 s/:*\$(srcdir):*/:/
28195 s/:*\${srcdir}:*/:/
28197 s/^\([^=]*=[ ]*\):*/\1/
28203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28204 fi # test -n "$CONFIG_FILES"
28206 # Set up the scripts for CONFIG_HEADERS section.
28207 # No need to generate them if there are no CONFIG_HEADERS.
28208 # This happens for instance with `./config.status Makefile'.
28209 if test -n "$CONFIG_HEADERS"; then
28210 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28214 # Transform confdefs.h into an awk script `defines.awk', embedded as
28215 # here-document in config.status, that substitutes the proper values into
28216 # config.h.in to produce config.h.
28218 # Create a delimiter string that does not exist in confdefs.h, to ease
28219 # handling of long lines.
28221 for ac_last_try in false false :; do
28222 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28223 if test -z "$ac_t"; then
28225 elif $ac_last_try; then
28226 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28228 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28232 # For the awk script, D is an array of macro values keyed by name,
28233 # likewise P contains macro parameters if any. Preserve backslash
28234 # newline sequences.
28236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28238 s/.\{148\}/&'"$ac_delim"'/g
28241 s/^[ ]*#[ ]*define[ ][ ]*/ /
28248 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28250 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28255 D["\
1"]=" \
3\\\\\\n
"\\/p
28257 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28262 s/.\{148\}/&'"$ac_delim"'/g
28267 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28270 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28272 ' <confdefs.h | sed '
28273 s/'"$ac_delim"'/"\\\
28274 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28277 for (key in D) D_is_set[key] = 1
28280 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28282 split(line, arg, " ")
28283 if (arg[1] == "#") {
28287 defundef
= substr
(arg
[1], 2)
28290 split(mac1
, mac2
, "(") #)
28292 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28293 if (D_is_set
[macro
]) {
28294 # Preserve the white space surrounding the "#".
28295 print prefix
"define", macro P
[macro
] D
[macro
]
28298 # Replace #undef with comments. This is necessary, for example,
28299 # in the case of _POSIX_SOURCE, which is predefined and required
28300 # on some systems where configure will not decide to define it.
28301 if (defundef
== "undef") {
28302 print
"/*", prefix defundef
, macro
, "*/"
28310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28311 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28312 fi # test -n "$CONFIG_HEADERS"
28315 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28320 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28322 case $ac_mode$ac_tag in
28324 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28325 :[FH
]-) ac_tag
=-:-;;
28326 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28343 -) ac_f
="$tmp/stdin";;
28344 *) # Look for the file first in the build tree, then in the source tree
28345 # (if the path is not absolute). The absolute path cannot be DOS-style,
28346 # because $ac_f cannot contain `:'.
28350 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28352 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28354 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28355 as_fn_append ac_file_inputs
" '$ac_f'"
28358 # Let's still pretend it is `configure' which instantiates (i.e., don't
28359 # use $as_me), people would be surprised to read:
28360 # /* config.h. Generated by config.status. */
28361 configure_input
='Generated from '`
28362 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28364 if test x
"$ac_file" != x-
; then
28365 configure_input
="$ac_file. $configure_input"
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28367 $as_echo "$as_me: creating $ac_file" >&6;}
28369 # Neutralize special characters interpreted by sed in replacement strings.
28370 case $configure_input in #(
28371 *\
&* |
*\|
* |
*\\* )
28372 ac_sed_conf_input
=`$as_echo "$configure_input" |
28373 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28374 *) ac_sed_conf_input
=$configure_input;;
28378 *:-:* |
*:-) cat >"$tmp/stdin" \
28379 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28384 ac_dir
=`$as_dirname -- "$ac_file" ||
28385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28386 X"$ac_file" : 'X\(//\)[^/]' \| \
28387 X"$ac_file" : 'X\(//\)$' \| \
28388 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28389 $as_echo X"$ac_file" |
28390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28394 /^X\(\/\/\)[^/].*/{
28407 as_dir
="$ac_dir"; as_fn_mkdir_p
28411 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28413 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28414 # A ".." for each directory in $ac_dir_suffix.
28415 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28416 case $ac_top_builddir_sub in
28417 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28418 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28421 ac_abs_top_builddir
=$ac_pwd
28422 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28423 # for backward compatibility:
28424 ac_top_builddir
=$ac_top_build_prefix
28427 .
) # We are building in place.
28429 ac_top_srcdir
=$ac_top_builddir_sub
28430 ac_abs_top_srcdir
=$ac_pwd ;;
28431 [\\/]* | ?
:[\\/]* ) # Absolute name.
28432 ac_srcdir
=$srcdir$ac_dir_suffix;
28433 ac_top_srcdir
=$srcdir
28434 ac_abs_top_srcdir
=$srcdir ;;
28435 *) # Relative name.
28436 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28437 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28438 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28440 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28452 # If the template does not know about datarootdir, expand it.
28453 # FIXME: This hack should be removed a few years after 2.60.
28454 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28465 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28466 *datarootdir
*) ac_datarootdir_seen
=yes;;
28467 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28469 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28472 ac_datarootdir_hack='
28473 s&@datadir@&$datadir&g
28474 s&@docdir@&$docdir&g
28475 s&@infodir@&$infodir&g
28476 s&@localedir@&$localedir&g
28477 s&@mandir@&$mandir&g
28478 s&\\\${datarootdir}&$datarootdir&g' ;;
28482 # Neutralize VPATH when `$srcdir' = `.'.
28483 # Shell code in configure.ac might set extrasub.
28484 # FIXME: do we really want to maintain this feature?
28485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28486 ac_sed_extra="$ac_vpsub
28489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28491 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28492 s|@configure_input@|
$ac_sed_conf_input|
;t t
28493 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28494 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28495 s
&@srcdir@
&$ac_srcdir&;t t
28496 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28497 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28498 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28499 s
&@builddir@
&$ac_builddir&;t t
28500 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28501 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28502 $ac_datarootdir_hack
28504 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28505 if $ac_cs_awk_getline; then
28506 $AWK -f "$tmp/subs.
awk"
28508 $AWK -f "$tmp/subs.
awk" | $SHELL
28510 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28513 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28516 which seems to be undefined. Please make sure it is defined." >&5
28517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28518 which seems to be undefined. Please make sure it is defined." >&2;}
28522 -) cat "$tmp/out" && rm -f "$tmp/out";;
28523 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28525 || as_fn_error "could not create $ac_file" "$LINENO" 5
28531 if test x"$ac_file" != x-; then
28533 $as_echo "/* $configure_input */" \
28534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28535 } >"$tmp/config.h" \
28536 || as_fn_error "could not create $ac_file" "$LINENO" 5
28537 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28539 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28542 mv "$tmp/config.h" "$ac_file" \
28543 || as_fn_error "could not create $ac_file" "$LINENO" 5
28546 $as_echo "/* $configure_input */" \
28547 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28548 || as_fn_error "could not create -" "$LINENO" 5
28552 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28553 $as_echo "$as_me: executing $ac_file commands" >&6;}
28558 case $ac_file$ac_mode in
28559 "as":F) chmod +x as ;;
28560 "collect-ld":F) chmod +x collect-ld ;;
28561 "nm":F) chmod +x nm ;;
28563 case ${CONFIG_HEADERS} in
28564 *auto-host.h:config.in*)
28567 # Make sure all the subdirs exist.
28568 for d in $subdirs doc build common c-family
28570 test -d $d || mkdir $d
28580 ac_clean_files=$ac_clean_files_save
28582 test $ac_write_fail = 0 ||
28583 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28586 # configure is writing to config.log, and then calls config.status.
28587 # config.status does its own redirection, appending to config.log.
28588 # Unfortunately, on DOS this fails, as config.log is still kept open
28589 # by configure, so config.status won't be able to
write to it
; its
28590 # output is simply discarded. So we exec the FD to /dev/null,
28591 # effectively closing config.log, so it can be properly (re)opened and
28592 # appended to by config.status. When coming back to configure, we
28593 # need to make the FD available again.
28594 if test "$no_create" != yes; then
28596 ac_config_status_args
=
28597 test "$silent" = yes &&
28598 ac_config_status_args
="$ac_config_status_args --quiet"
28600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28603 # would make configure fail if this is the last instruction.
28604 $ac_cs_success || as_fn_exit $?
28606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28608 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}