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
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
768 ENABLE_BUILD_WITH_CXX
771 valgrind_path_defines
843 program_transform_name
854 ac_subst_files
='language_hooks'
856 enable_option_checking
861 enable_generated_files_in_srcdir
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
892 enable_initfini_array
893 enable_sjlj_exceptions
894 with_system_libunwind
897 enable_win32_registry
904 enable_gnu_unique_object
905 enable_linker_build_id
909 enable_maintainer_mode
910 enable_version_specific_runtime_libs
914 ac_precious_vars
='build_alias
937 # Initialize some variables set by options.
939 ac_init_version
=false
940 ac_unrecognized_opts
=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name
=s
,x
,x
,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir
='${exec_prefix}/bin'
966 sbindir
='${exec_prefix}/sbin'
967 libexecdir
='${exec_prefix}/libexec'
968 datarootdir
='${prefix}/share'
969 datadir
='${datarootdir}'
970 sysconfdir
='${prefix}/etc'
971 sharedstatedir
='${prefix}/com'
972 localstatedir
='${prefix}/var'
973 includedir
='${prefix}/include'
974 oldincludedir
='/usr/include'
975 docdir
='${datarootdir}/doc/${PACKAGE}'
976 infodir
='${datarootdir}/info'
981 libdir
='${exec_prefix}/lib'
982 localedir
='${datarootdir}/locale'
983 mandir
='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\
$ac_option
997 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1009 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1010 bindir
=$ac_optarg ;;
1012 -build |
--build |
--buil |
--bui |
--bu)
1013 ac_prev
=build_alias
;;
1014 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1015 build_alias
=$ac_optarg ;;
1017 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1018 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1019 ac_prev
=cache_file
;;
1020 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1021 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1022 cache_file
=$ac_optarg ;;
1024 --config-cache |
-C)
1025 cache_file
=config.cache
;;
1027 -datadir |
--datadir |
--datadi |
--datad)
1029 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1030 datadir
=$ac_optarg ;;
1032 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1033 |
--dataroo |
--dataro |
--datar)
1034 ac_prev
=datarootdir
;;
1035 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1036 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1037 datarootdir
=$ac_optarg ;;
1039 -disable-* |
--disable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=no
;;
1055 -docdir |
--docdir |
--docdi |
--doc |
--do)
1057 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1058 docdir
=$ac_optarg ;;
1060 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1062 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1063 dvidir
=$ac_optarg ;;
1065 -enable-* |
--enable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=\
$ac_optarg ;;
1081 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1082 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1083 |
--exec |
--exe |
--ex)
1084 ac_prev
=exec_prefix
;;
1085 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1086 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1087 |
--exec=* |
--exe=* |
--ex=*)
1088 exec_prefix
=$ac_optarg ;;
1090 -gas |
--gas |
--ga |
--g)
1091 # Obsolete; use --with-gas.
1094 -help |
--help |
--hel |
--he |
-h)
1095 ac_init_help
=long
;;
1096 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1097 ac_init_help
=recursive
;;
1098 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1099 ac_init_help
=short
;;
1101 -host |
--host |
--hos |
--ho)
1102 ac_prev
=host_alias
;;
1103 -host=* |
--host=* |
--hos=* |
--ho=*)
1104 host_alias
=$ac_optarg ;;
1106 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1108 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1110 htmldir
=$ac_optarg ;;
1112 -includedir |
--includedir |
--includedi |
--included |
--include \
1113 |
--includ |
--inclu |
--incl |
--inc)
1114 ac_prev
=includedir
;;
1115 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1116 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1117 includedir
=$ac_optarg ;;
1119 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1121 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1122 infodir
=$ac_optarg ;;
1124 -libdir |
--libdir |
--libdi |
--libd)
1126 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1127 libdir
=$ac_optarg ;;
1129 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1130 |
--libexe |
--libex |
--libe)
1131 ac_prev
=libexecdir
;;
1132 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1133 |
--libexe=* |
--libex=* |
--libe=*)
1134 libexecdir
=$ac_optarg ;;
1136 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1137 ac_prev
=localedir
;;
1138 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1139 localedir
=$ac_optarg ;;
1141 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1142 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1143 ac_prev
=localstatedir
;;
1144 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1145 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1146 localstatedir
=$ac_optarg ;;
1148 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1150 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1151 mandir
=$ac_optarg ;;
1153 -nfp |
--nfp |
--nf)
1154 # Obsolete; use --without-fp.
1157 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1158 |
--no-cr |
--no-c |
-n)
1161 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1162 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1165 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1166 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1167 |
--oldin |
--oldi |
--old |
--ol |
--o)
1168 ac_prev
=oldincludedir
;;
1169 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1170 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1171 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1172 oldincludedir
=$ac_optarg ;;
1174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1177 prefix
=$ac_optarg ;;
1179 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1180 |
--program-pre |
--program-pr |
--program-p)
1181 ac_prev
=program_prefix
;;
1182 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1183 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1184 program_prefix
=$ac_optarg ;;
1186 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1187 |
--program-suf |
--program-su |
--program-s)
1188 ac_prev
=program_suffix
;;
1189 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1190 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1191 program_suffix
=$ac_optarg ;;
1193 -program-transform-name |
--program-transform-name \
1194 |
--program-transform-nam |
--program-transform-na \
1195 |
--program-transform-n |
--program-transform- \
1196 |
--program-transform |
--program-transfor \
1197 |
--program-transfo |
--program-transf \
1198 |
--program-trans |
--program-tran \
1199 |
--progr-tra |
--program-tr |
--program-t)
1200 ac_prev
=program_transform_name
;;
1201 -program-transform-name=* |
--program-transform-name=* \
1202 |
--program-transform-nam=* |
--program-transform-na=* \
1203 |
--program-transform-n=* |
--program-transform-=* \
1204 |
--program-transform=* |
--program-transfor=* \
1205 |
--program-transfo=* |
--program-transf=* \
1206 |
--program-trans=* |
--program-tran=* \
1207 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1208 program_transform_name
=$ac_optarg ;;
1210 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1212 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1213 pdfdir
=$ac_optarg ;;
1215 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1217 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1221 |
-silent |
--silent |
--silen |
--sile |
--sil)
1224 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1226 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1228 sbindir
=$ac_optarg ;;
1230 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1231 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1232 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1234 ac_prev
=sharedstatedir
;;
1235 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1236 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1237 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1239 sharedstatedir
=$ac_optarg ;;
1241 -site |
--site |
--sit)
1243 -site=* |
--site=* |
--sit=*)
1246 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1248 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1249 srcdir
=$ac_optarg ;;
1251 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1252 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1253 ac_prev
=sysconfdir
;;
1254 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1255 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1256 sysconfdir
=$ac_optarg ;;
1258 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1259 ac_prev
=target_alias
;;
1260 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1261 target_alias
=$ac_optarg ;;
1263 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1266 -version |
--version |
--versio |
--versi |
--vers |
-V)
1267 ac_init_version
=: ;;
1270 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=\
$ac_optarg ;;
1285 -without-* |
--without-*)
1286 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=no
;;
1302 # Obsolete; use --with-x.
1305 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1306 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1307 ac_prev
=x_includes
;;
1308 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1309 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1310 x_includes
=$ac_optarg ;;
1312 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1313 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1314 ac_prev
=x_libraries
;;
1315 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1316 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1317 x_libraries
=$ac_optarg ;;
1319 -*) as_fn_error
"unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1324 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1328 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\
$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error
"missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val
=\$
$ac_var
1364 # Remove trailing slashes.
1367 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\
$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$
]* | ?
:[\\/]* ) continue;;
1373 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1375 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target
=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x
; then
1387 if test "x$build_alias" = x
; then
1388 cross_compiling
=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1397 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1399 test "$silent" = yes && exec 6>/dev
/null
1402 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di
=`ls -di .` &&
1404 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error
"working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error
"pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted
=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir
=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1442 ac_srcdir_defaulted
=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1446 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var
in $ac_precious_vars; do
1463 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1465 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1539 --build=BUILD configure
for building on BUILD
[guessed
]
1540 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1541 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized
--enable/--with options
1551 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1552 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files
in source dir
1555 intended
for creating
source tarballs
for users
1556 without texinfo bison or flex.
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST
,
1560 enable only specific categories of checks.
1561 Categories are
: yes,no
,all
,none
,release.
1562 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1563 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1564 --enable-coverage=LEVEL
1565 enable compiler
's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid
'
1576 or 'dpd
' choses which decimal floating point format
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don
't provide a shared libgcc
1586 --enable-intermodule build the compiler in one step
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-cld enable -mcld by default for 32bit x86
1594 --disable-win32-registry
1595 disable lookup of installation paths in the
1596 Registry on Windows hosts
1597 --enable-win32-registry enable registry lookup (default)
1598 --enable-win32-registry=KEY
1599 use KEY instead of GCC version as the last portion
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-static[=PKGS] build static libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606 --enable-comdat enable COMDAT group support
1607 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1609 --enable-linker-build-id
1610 compiler will always pass --build-id to linker
1611 --enable-maintainer-mode
1612 enable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --enable-version-specific-runtime-libs
1615 specify that runtime libraries should be
1616 installed in a compiler-specific directory
1617 --enable-plugin enable plugin support
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-build-libsubdir=DIR Directory where to find libraries for build system
1623 --with-local-prefix=DIR specifies directory to put local include
1624 --with-gxx-include-dir=DIR
1625 specifies directory to put g++ header files
1626 --with-cpp-install-dir=DIR
1627 install the user visible C preprocessor in DIR
1628 (relative to PREFIX) as well as PREFIX/bin
1629 --with-gnu-ld arrange to work with GNU ld.
1630 --with-ld arrange to use the specified ld (full pathname)
1631 --with-demangler-in-ld try to use demangler in GNU ld.
1632 --with-gnu-as arrange to work with GNU as
1633 --with-as arrange to use the specified as (full pathname)
1634 --with-stabs arrange to use stabs instead of host debug format
1635 --with-dwarf2 force the default debug format to be DWARF 2
1636 --with-build-sysroot=sysroot
1637 use sysroot as the system root during the build
1638 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1639 --with-specs=SPECS add SPECS to driver command-line processing
1640 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1641 --with-bugurl=URL Direct users to URL to report a bug
1642 --with-multilib-list Select multilibs (SH only)
1643 --with-gnu-ld assume the C compiler uses GNU ld default=no
1644 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1646 --with-system-libunwind use installed libunwind
1647 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1649 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1650 --with-plugin-ld=[ARG
] specify the plugin linker
1651 --with-long-double-128 Use
128-bit long double by default.
1652 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1654 --with-system-zlib use installed libz
1655 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1657 Some influential environment variables
:
1658 CC C compiler
command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1661 nonstandard directory
<lib dir
>
1662 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1663 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1664 you have headers
in a nonstandard directory
<include dir
>
1665 CXX C
++ compiler
command
1666 CXXFLAGS C
++ compiler flags
1668 CXXCPP C
++ preprocessor
1669 GMPLIBS How to link GMP
1670 GMPINC How to
find GMP include files
1671 PPLLIBS How to link PPL
1672 PPLINC How to
find PPL include files
1673 CLOOGLIBS How to link CLOOG
1674 CLOOGINC How to
find CLOOG include files
1675 LIBELFLIBS How to link libelf
1676 LIBELFINC How to
find libelf include files
1678 Use these variables to override the choices made by
`configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1711 .) # We are building in place.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1745 generated by GNU Autoconf 2.64
1747 Copyright (C) 2009 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1768 *) ac_try_echo
=$ac_try;;
1770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1774 if test -s conftest.err
; then
1775 grep -v '^ *+' conftest.err
>conftest.er1
1776 cat conftest.er1
>&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.
$ac_objext; then :
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.
$ac_ext >&5
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1794 } # ac_fn_c_try_compile
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile
()
1801 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1802 rm -f conftest.
$ac_objext
1803 if { { ac_try
="$ac_compile"
1805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1843 *) ac_try_echo
=$ac_try;;
1845 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849 if test -s conftest.err
; then
1850 grep -v '^ *+' conftest.err
>conftest.er1
1851 cat conftest.er1
>&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } >/dev
/null
&& {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.
$ac_ext >&5
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1871 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874 # the include files in INCLUDES and setting the cache variable VAR
1876 ac_fn_c_check_header_mongrel
()
1878 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1879 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1889 # Is the header compilable?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891 $as_echo_n "checking $2 usability... " >&6; }
1892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1897 if ac_fn_c_try_compile
"$LINENO"; then :
1898 ac_header_compiler
=yes
1900 ac_header_compiler
=no
1902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904 $as_echo "$ac_header_compiler" >&6; }
1906 # Is the header present?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908 $as_echo_n "checking $2 presence... " >&6; }
1909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1913 if ac_fn_c_try_cpp
"$LINENO"; then :
1914 ac_header_preproc
=yes
1916 ac_header_preproc
=no
1918 rm -f conftest.err conftest.
$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920 $as_echo "$ac_header_preproc" >&6; }
1922 # So? What about this header?
1923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1948 eval "$3=\$ac_header_compiler"
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1964 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1965 if { { ac_try
="$ac_link"
1967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1978 *) ac_try_echo
=$ac_try;;
1980 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1992 ac_retval
=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile
()
2006 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2017 if ac_fn_c_try_compile
"$LINENO"; then :
2022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2029 } # ac_fn_c_check_header_compile
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2036 ac_fn_c_compute_int
()
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 if test "$cross_compiling" = yes; then
2040 # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2054 if ac_fn_c_try_compile
"$LINENO"; then :
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2071 ac_hi
=$ac_mid; break
2073 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2074 if test $ac_lo -le $ac_mid; then
2078 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) < 0)];
2096 if ac_fn_c_try_compile
"$LINENO"; then :
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2113 ac_lo
=$ac_mid; break
2115 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2116 if test $ac_mid -le $ac_hi; then
2120 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2149 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2169 FILE *f = fopen ("conftest.val", "w");
2174 long int i = longval ();
2177 fprintf (f, "%ld", i);
2181 unsigned long int i = ulongval ();
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2194 if ac_fn_c_try_run
"$LINENO"; then :
2195 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type
()
2215 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2234 if ac_fn_c_try_compile
"$LINENO"; then :
2235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2247 if ac_fn_c_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2261 } # ac_fn_c_check_type
2263 # ac_fn_c_find_intX_t LINENO BITS VAR
2264 # -----------------------------------
2265 # Finds a signed integer type with width BITS, setting cache variable VAR
2267 ac_fn_c_find_intX_t
()
2269 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2271 $as_echo_n "checking for int$2_t... " >&6; }
2272 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2276 for ac_type
in int
$2_t 'int' 'long int' \
2277 'long long int' 'short int' 'signed char'; do
2278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $ac_includes_default
2284 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2291 if ac_fn_c_try_compile
"$LINENO"; then :
2292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2298 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2299 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2313 eval "$3=\$ac_type" ;;
2316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2320 if test "x$as_val" = x
""no
; then :
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2332 } # ac_fn_c_find_intX_t
2334 # ac_fn_c_try_link LINENO
2335 # -----------------------
2336 # Try to link conftest.$ac_ext, and return whether this succeeded.
2339 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2340 rm -f conftest.
$ac_objext conftest
$ac_exeext
2341 if { { ac_try
="$ac_link"
2343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
2361 $as_test_x conftest$ac_exeext
2365 $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 } # ac_fn_c_try_link
2380 # ac_fn_c_find_uintX_t LINENO BITS VAR
2381 # ------------------------------------
2382 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2384 ac_fn_c_find_uintX_t ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2388 $as_echo_n "checking for uint$2_t... " >&6; }
2389 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2390 $as_echo_n "(cached) " >&6
2393 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2394 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2401 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2408 if ac_fn_c_try_compile "$LINENO"; then :
2413 eval "$3=\$ac_type" ;;
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 if test "x$as_val" = x""no; then :
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_find_uintX_t
2432 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2433 # ----------------------------------------------
2434 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_preproc ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2452 rm -f conftest.err conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_check_header_preproc
2461 # ac_fn_c_check_func LINENO FUNC VAR
2462 # ----------------------------------
2463 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2464 ac_fn_c_check_func ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2476 #define $2 innocuous_$2
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $2 (); below.
2480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 <limits.h> exists even on freestanding compilers. */
2484 # include <limits.h>
2486 # include <assert.h>
2491 /* Override any GCC internal prototype to avoid an error.
2492 Use char because int might match the return type of a GCC
2493 builtin and then its argument prototype would still apply. */
2498 /* The GNU C library defines this for functions which it implements
2499 to always fail with ENOSYS. Some functions are actually named
2500 something starting with __ and the normal name is an alias. */
2501 #if defined __stub_$2 || defined __stub___$2
2513 if ac_fn_c_try_link "$LINENO"; then :
2518 rm -f core conftest.err conftest.$ac_objext \
2519 conftest$ac_exeext conftest.$ac_ext
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2523 $as_echo "$ac_res" >&6; }
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 } # ac_fn_c_check_func
2528 # ac_fn_cxx_try_cpp LINENO
2529 # ------------------------
2530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2531 ac_fn_cxx_try_cpp ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 if { { ac_try="$ac_cpp conftest.$ac_ext"
2536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2537 *) ac_try_echo
=$ac_try;;
2539 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2543 if test -s conftest.err
; then
2544 grep -v '^ *+' conftest.err
>conftest.er1
2545 cat conftest.er1
>&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } >/dev
/null
&& {
2550 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2563 } # ac_fn_cxx_try_cpp
2565 # ac_fn_cxx_try_link LINENO
2566 # -------------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded.
2568 ac_fn_cxx_try_link
()
2570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2571 rm -f conftest.
$ac_objext conftest
$ac_exeext
2572 if { { ac_try
="$ac_link"
2574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>conftest.err
2581 if test -s conftest.err; then
2582 grep -v '^ *+' conftest.err >conftest.er1
2583 cat conftest.er1 >&5
2584 mv -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; } && {
2588 test -z "$ac_cxx_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest$ac_exeext && {
2591 test "$cross_compiling" = yes ||
2592 $as_test_x conftest$ac_exeext
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2603 # interfere with the next link command; also delete a directory that is
2604 # left behind by Apple's compiler. We do this before executing the actions.
2605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 } # ac_fn_cxx_try_link
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by $as_me, which was
2615 generated by GNU Autoconf 2.64. Invocation command line was
2627 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2628 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2629 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2630 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2631 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2633 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2634 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2636 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2637 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2638 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2639 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2640 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2641 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2642 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_must_keep_next=false
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2686 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704 -* ) ac_must_keep_next=true ;;
2707 as_fn_append ac_configure_args " '$ac_arg'"
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2734 eval ac_val=\$$ac_var
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2749 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2773 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 $as_echo "$ac_var='\''$ac_val'\''"
2779 if test -n "$ac_subst_files"; then
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2786 for ac_var in $ac_subst_files
2788 eval ac_val=\$$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2797 if test -s confdefs.h; then
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2815 for ac_signal in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE; then
2859 ac_site_file1=$prefix/share/config.site
2860 ac_site_file2=$prefix/etc/config.site
2862 ac_site_file1=$ac_default_prefix/share/config.site
2863 ac_site_file2=$ac_default_prefix/etc/config.site
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE && continue
2868 if test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special
2878 # files actually), so we avoid doing that.
2879 if test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 # Check that the precious variables saved in the cache have kept the same
2895 ac_cache_corrupted=false
2896 for ac_var in $ac_precious_vars; do
2897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2898 eval ac_new_set=\$ac_env_${ac_var}_set
2899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2900 eval ac_new_val=\$ac_env_${ac_var}_value
2901 case $ac_old_set,$ac_new_set in
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2904 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2905 ac_cache_corrupted=: ;;
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2908 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2912 if test "x$ac_old_val" != "x$ac_new_val"; then
2913 # differences in whitespace do not lead to failure.
2914 ac_old_val_w=`echo x
$ac_old_val`
2915 ac_new_val_w=`echo x
$ac_new_val`
2916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2919 ac_cache_corrupted=:
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2923 eval $ac_var=\$ac_old_val
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2926 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2931 # Pass precious variables to config.status.
2932 if test "$ac_new_set" = set; then
2934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2935 *) ac_arg=$ac_var=$ac_new_val ;;
2937 case " $ac_configure_args " in
2938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2939 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2943 if $ac_cache_corrupted; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2948 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2950 ## -------------------- ##
2951 ## Main body of script. ##
2952 ## -------------------- ##
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968 gcc_version=`cat $srcdir/BASE-VER
`
2970 # Determine the host, build, and target systems
2972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t in install-sh install.sh shtool; do
2974 if test -f "$ac_dir/$ac_t"; then
2976 ac_install_sh="$ac_aux_dir/$ac_t -c"
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Make sure we can run config.sub.
2995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2996 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2999 $as_echo_n "checking build system type... " >&6; }
3000 if test "${ac_cv_build+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 ac_build_alias=$build_alias
3004 test "x$ac_build_alias" = x &&
3005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3006 test "x$ac_build_alias" = x &&
3007 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3008 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3009 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3013 $as_echo "$ac_cv_build" >&6; }
3014 case $ac_cv_build in
3016 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3019 ac_save_IFS=$IFS; IFS='-'
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3029 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3033 $as_echo_n "checking host system type... " >&6; }
3034 if test "${ac_cv_host+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test "x$host_alias" = x; then
3038 ac_cv_host=$ac_cv_build
3040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3041 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3046 $as_echo "$ac_cv_host" >&6; }
3049 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3052 ac_save_IFS=$IFS; IFS='-'
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3062 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3066 $as_echo_n "checking target system type... " >&6; }
3067 if test "${ac_cv_target+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3070 if test "x$target_alias" = x; then
3071 ac_cv_target=$ac_cv_host
3073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3074 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3079 $as_echo "$ac_cv_target" >&6; }
3080 case $ac_cv_target in
3082 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3084 target=$ac_cv_target
3085 ac_save_IFS=$IFS; IFS='-'
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3095 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3098 # The aliases save the names the user supplied, while $host etc.
3099 # will get canonicalized.
3100 test -n "$target_alias" &&
3101 test "$program_prefix$program_suffix$program_transform_name" = \
3103 program_prefix=${target_alias}-
3105 # Determine the noncanonical target name, for directory use.
3106 case ${build_alias} in
3107 "") build_noncanonical=${build} ;;
3108 *) build_noncanonical=${build_alias} ;;
3111 case ${host_alias} in
3112 "") host_noncanonical=${build_noncanonical} ;;
3113 *) host_noncanonical=${host_alias} ;;
3116 case ${target_alias} in
3117 "") target_noncanonical=${host_noncanonical} ;;
3118 *) target_noncanonical=${target_alias} ;;
3124 # Determine the target- and build-specific subdirectories
3126 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3127 # have matching libraries, they should use host libraries: Makefile.tpl
3128 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3129 # However, they still use the build modules, because the corresponding
3130 # host modules (e.g. bison) are only built for the host when bootstrap
3132 # - build_subdir is where we find build modules, and never changes.
3133 # - build_libsubdir is where we find build libraries, and can be overridden.
3135 # Prefix 'build-' so this never conflicts with target_subdir.
3136 build_subdir="build-${build_noncanonical}"
3138 # Check whether --with-build-libsubdir was given.
3139 if test "${with_build_libsubdir+set}" = set; then :
3140 withval=$with_build_libsubdir; build_libsubdir="$withval"
3142 build_libsubdir="$build_subdir"
3145 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3146 if ( test $srcdir = . && test -d gcc ) \
3147 || test -d $srcdir/../host-${host_noncanonical}; then
3148 host_subdir="host-${host_noncanonical}"
3153 target_subdir=${target_noncanonical}
3156 # Set program_transform_name
3157 test "$program_prefix" != NONE &&
3158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3159 # Use a double $ so make ignores it.
3160 test "$program_suffix" != NONE &&
3161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3162 # Double any \ or $.
3163 # By default was `s
,x
,x
', remove it if useless.
3164 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3165 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3168 # Check for bogus environment variables.
3169 # Test if LIBRARY_PATH contains the notation for the current directory
3170 # since this would lead to problems installing/building glibc.
3171 # LIBRARY_PATH contains the current directory if one of the following
3173 # - one of the terminals (":" and ";") is the first or last sign
3174 # - two terminals occur directly after each other
3175 # - the path contains an element with a dot in it
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3177 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3178 case ${LIBRARY_PATH} in
3179 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3180 library_path_setting="contains current directory"
3183 library_path_setting="ok"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3187 $as_echo "$library_path_setting" >&6; }
3188 if test "$library_path_setting" != "ok"; then
3190 *** LIBRARY_PATH shouldn't contain the current directory when
3191 *** building gcc. Please change the environment variable
3192 *** and run configure again.
" "$LINENO" 5
3195 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3196 # since this would lead to problems installing/building glibc.
3197 # GCC_EXEC_PREFIX contains the current directory if one of the following
3199 # - one of the terminals (":" and ";") is the first or last sign
3200 # - two terminals occur directly after each other
3201 # - the path contains an element with a dot in it
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3203 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3204 case ${GCC_EXEC_PREFIX} in
3205 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3206 gcc_exec_prefix_setting="contains current directory
"
3209 gcc_exec_prefix_setting="ok
"
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3213 $as_echo "$gcc_exec_prefix_setting" >&6; }
3214 if test "$gcc_exec_prefix_setting" != "ok
"; then
3216 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3217 *** building gcc. Please change the environment variable
3218 *** and run configure again." "$LINENO" 5
3225 # Specify the local prefix
3228 # Check whether --with-local-prefix was given.
3229 if test "${with_local_prefix+set}" = set; then :
3230 withval=$with_local_prefix; case "${withval}" in
3231 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3233 *) local_prefix=$with_local_prefix ;;
3238 # Default local prefix if it is empty
3239 if test x$local_prefix = x; then
3240 local_prefix=/usr/local
3243 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3244 # passed in by the toplevel make and thus we'd get different behavior
3245 # depending on where we built the sources.
3246 gcc_gxx_include_dir
=
3247 # Specify the g++ header file directory
3249 # Check whether --with-gxx-include-dir was given.
3250 if test "${with_gxx_include_dir+set}" = set; then :
3251 withval
=$with_gxx_include_dir; case "${withval}" in
3252 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3254 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3259 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3260 if test x
${gcc_gxx_include_dir} = x
; then
3261 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3262 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3264 libstdcxx_incdir
='include/c++/$(version)'
3265 if test x
$host != x
$target; then
3266 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3268 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273 # Check whether --with-cpp_install_dir was given.
3274 if test "${with_cpp_install_dir+set}" = set; then :
3275 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3276 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3277 elif test x
$withval != xno
; then
3278 cpp_install_dir
=$withval
3283 # We would like to our source tree to be readonly. However when releases or
3284 # pre-releases are generated, the flex/bison generated files as well as the
3285 # various formats of manuals need to be included along with the rest of the
3286 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3290 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3291 # Check whether --enable-generated-files-in-srcdir was given.
3292 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3293 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3295 generated_files_in_srcdir
=no
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3300 $as_echo "$generated_files_in_srcdir" >&6; }
3302 if test "$generated_files_in_srcdir" = "yes"; then
3309 # -------------------
3310 # Find default linker
3311 # -------------------
3315 # Check whether --with-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then :
3317 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3323 # With pre-defined ld
3325 # Check whether --with-ld was given.
3326 if test "${with_ld+set}" = set; then :
3327 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3330 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3331 if test ! -x "$DEFAULT_LINKER"; then
3332 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3333 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3337 cat >>confdefs.h
<<_ACEOF
3338 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3343 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3345 cat >>confdefs.h
<<_ACEOF
3346 #define HAVE_GNU_LD $gnu_ld
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3351 $as_echo_n "checking whether a default linker was specified... " >&6; }
3352 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3353 if test x
"$gnu_ld_flag" = x
"no"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3355 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3365 # With demangler in GNU ld
3367 # Check whether --with-demangler-in-ld was given.
3368 if test "${with_demangler_in_ld+set}" = set; then :
3369 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3375 # ----------------------
3376 # Find default assembler
3377 # ----------------------
3381 # Check whether --with-gnu-as was given.
3382 if test "${with_gnu_as+set}" = set; then :
3383 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3390 # Check whether --with-as was given.
3391 if test "${with_as+set}" = set; then :
3392 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3395 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3396 if test ! -x "$DEFAULT_ASSEMBLER"; then
3397 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3398 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3402 cat >>confdefs.h
<<_ACEOF
3403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3408 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3410 cat >>confdefs.h
<<_ACEOF
3411 #define HAVE_GNU_AS $gnu_as
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3416 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3417 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3418 if test x
"$gas_flag" = x
"no"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3420 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3434 # If a non-executable a.out is present (e.g. created by GNU as above even if
3435 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3436 # file, even when creating an executable, so an execution test fails.
3437 # Remove possible default executable files to avoid this.
3439 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3440 # Autoconf includes it.
3441 rm -f a.out a.exe b.out
3443 # Find the native compiler
3445 ac_cpp
='$CPP $CPPFLAGS'
3446 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3449 if test -n "$ac_tool_prefix"; then
3450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3451 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC
="$CC" # Let the user override the test.
3460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir
=.
3465 for ac_exec_ext
in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 if test -z "$ac_cv_prog_CC"; then
3490 # Extract the first word of "gcc", so it can be a program name with args.
3491 set dummy gcc
; ac_word
=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir
=.
3505 for ac_exec_ext
in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC
="gcc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3526 if test "x$ac_ct_CC" = x
; then
3529 case $cross_compiling:$ac_tool_warned in
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned
=yes ;;
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC
="$CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3582 if test -z "$CC"; then
3583 # Extract the first word of "cc", so it can be a program name with args.
3584 set dummy cc
; ac_word
=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC
="$CC" # Let the user override the test.
3594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir
=.
3599 for ac_exec_ext
in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3602 ac_prog_rejected
=yes
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy
$ac_cv_prog_CC
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3622 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog
in cl.exe
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC
="$CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$CC" && break
3682 if test -z "$CC"; then
3684 for ac_prog
in cl.exe
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy
$ac_prog; ac_word
=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_ac_ct_CC
="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3714 if test -n "$ac_ct_CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716 $as_echo "$ac_ct_CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$ac_ct_CC" && break
3726 if test "x$ac_ct_CC" = x
; then
3729 case $cross_compiling:$ac_tool_warned in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733 ac_tool_warned
=yes ;;
3742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error
"no acceptable C compiler found in \$PATH
3745 See \`config.log' for more details." "$LINENO" 5; }
3747 # Provide some information about the compiler.
3748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3751 for ac_option
in --version -v -V -qversion; do
3752 { { ac_try
="$ac_compiler $ac_option >&5"
3754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3761 if test -s conftest.err; then
3763 ... rest of stderr output deleted ...
3764 10q' conftest.err >conftest.er1
3765 cat conftest.er1 >&5
3766 rm -f conftest.er1 conftest.err
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 ac_clean_files_save=$ac_clean_files
3784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3785 # Try to create an executable without -o first, disregard a.out.
3786 # It will help us diagnose broken compilers, and finding out an intuition
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3789 $as_echo_n "checking for C compiler default output file name... " >&6; }
3790 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3792 # The possible output files:
3793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3796 for ac_file in $ac_files
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805 if { { ac_try="$ac_link_default"
3807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3808 *) ac_try_echo
=$ac_try;;
3810 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link_default") 2>&5
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3819 # so that the user can short-circuit this test for compilers unknown to
3821 for ac_file
in $ac_files ''
3823 test -f "$ac_file" ||
continue
3825 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3828 # We found the default executable, but exeext='' is most
3832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3834 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 # We set ac_cv_exeext here because the later test for it is not
3837 # safe: cross compilers may not add the suffix if given an `-o'
3838 # argument, so we may need to know it at that point already.
3839 # Even if this section looks crufty: it has the advantage of
3846 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852 $as_echo "$ac_file" >&6; }
3853 if test -z "$ac_file"; then :
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.
$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 { as_fn_set_status
77
3860 as_fn_error
"C compiler cannot create executables
3861 See \`config.log' for more details." "$LINENO" 5; }; }
3863 ac_exeext
=$ac_cv_exeext
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 # If not cross compiling, check that we can run a simple program.
3870 if test "$cross_compiling" != yes; then
3871 if { ac_try
='./$ac_file'
3872 { { case "(($ac_try" in
3873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3884 if test "$cross_compiling" = maybe; then
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot run C compiled programs.
3890 If you meant to cross compile
, use \
`--host'.
3891 See \`config.log
' for more details." "$LINENO" 5; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3899 ac_clean_files=$ac_clean_files_save
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903 $as_echo_n "checking whether we are cross compiling... " >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3905 $as_echo "$cross_compiling" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3908 $as_echo_n "checking for suffix of executables... " >&6; }
3909 if { { ac_try="$ac_link"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3921 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3922 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3924 for ac_file
in conftest.exe conftest conftest.
*; do
3925 test -f "$ac_file" ||
continue
3927 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3928 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3937 See \`config.log' for more details." "$LINENO" 5; }
3939 rm -f conftest
$ac_cv_exeext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3941 $as_echo "$ac_cv_exeext" >&6; }
3943 rm -f conftest.
$ac_ext
3944 EXEEXT
=$ac_cv_exeext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947 $as_echo_n "checking for suffix of object files... " >&6; }
3948 if test "${ac_cv_objext+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 rm -f conftest.o conftest.obj
3963 if { { ac_try
="$ac_compile"
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error "cannot compute suffix of object files
: cannot compile
3989 See \
`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3994 $as_echo "$ac_cv_objext" >&6; }
3995 OBJEXT=$ac_cv_objext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4016 if ac_fn_c_try_compile "$LINENO"; then :
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if test "${ac_cv_prog_cc_g+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4106 if test "$GCC" = yes; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4117 ac_cv_prog_cc_c89=no
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4139 s = g (p, va_arg (v,int));
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 rm -f conftest.$ac_ext
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 if test "x$CC" != xcc; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4211 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4214 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4216 set dummy $CC; ac_cc=`$as_echo "$2" |
4217 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4218 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4219 $as_echo_n "(cached) " >&6
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4232 # Make sure it works both with $CC and with simple cc.
4233 # We do the test twice because some compilers refuse to overwrite an
4234 # existing .o file with -o, though they will create one.
4235 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4237 if { { case "(($ac_try" in
4238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4239 *) ac_try_echo
=$ac_try;;
4241 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; } &&
4247 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_try") 2>&5
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; };
4258 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4259 if test "x$CC" != xcc; then
4260 # Test first that cc exists at all.
4261 if { ac_try='cc -c conftest.$ac_ext >&5'
4262 { { case "(($ac_try" in
4263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4264 *) ac_try_echo
=$ac_try;;
4266 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; }; then
4272 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4274 if { { case "(($ac_try" in
4275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_try") 2>&5
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; } &&
4284 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4286 *) ac_try_echo
=$ac_try;;
4288 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; };
4298 # cc exists but doesn't like -o.
4299 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4304 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4306 rm -f core conftest
*
4309 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4316 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4320 # expand $ac_aux_dir to an absolute path
4321 am_aux_dir
=`cd $ac_aux_dir && pwd`
4323 # FIXME: we rely on the cache variable name because
4324 # there is no other way.
4326 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4327 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4328 if test "$am_t" != yes; then
4329 # Losing compiler, so override with the script.
4330 # FIXME: It is wrong to rewrite CC.
4331 # But if we don't then we get into trouble of one sort or another.
4332 # A longer-term fix would be to have automake use am__CC in this case,
4333 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4334 CC
="$am_aux_dir/compile $CC"
4339 ac_cpp
='$CXXCPP $CPPFLAGS'
4340 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4343 if test -z "$CXX"; then
4344 if test -n "$CCC"; then
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$CXX"; then
4358 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir
=.
4365 for ac_exec_ext
in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 if test -n "$CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4380 $as_echo "$CXX" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$CXX" && break
4390 if test -z "$CXX"; then
4392 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy
$ac_prog; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$ac_ct_CXX"; then
4402 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4422 if test -n "$ac_ct_CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4424 $as_echo "$ac_ct_CXX" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_CXX" && break
4434 if test "x$ac_ct_CXX" = x
; then
4437 case $cross_compiling:$ac_tool_warned in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned
=yes ;;
4449 # Provide some information about the compiler.
4450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4453 for ac_option
in --version -v -V -qversion; do
4454 { { ac_try
="$ac_compiler $ac_option >&5"
4456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4463 if test -s conftest.err; then
4465 ... rest of stderr output deleted ...
4466 10q' conftest.err >conftest.er1
4467 cat conftest.er1 >&5
4468 rm -f conftest.er1 conftest.err
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4475 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4503 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4504 if test $ac_compiler_gnu = yes; then
4509 ac_test_CXXFLAGS=${CXXFLAGS+set}
4510 ac_save_CXXFLAGS=$CXXFLAGS
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4512 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4513 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4517 ac_cxx_werror_flag=yes
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_cv_prog_cxx_g=yes
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4563 ac_cv_prog_cxx_g=yes
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 if test "$ac_test_CXXFLAGS" = set; then
4575 CXXFLAGS=$ac_save_CXXFLAGS
4576 elif test $ac_cv_prog_cxx_g = yes; then
4577 if test "$GXX" = yes; then
4583 if test "$GXX" = yes; then
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$GNATBIND"; then
4607 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 GNATBIND=$ac_cv_prog_GNATBIND
4627 if test -n "$GNATBIND"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4629 $as_echo "$GNATBIND" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_GNATBIND"; then
4638 ac_ct_GNATBIND=$GNATBIND
4639 # Extract the first word of "gnatbind", so it can be a program name with args.
4640 set dummy gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$ac_ct_GNATBIND"; then
4647 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4667 if test -n "$ac_ct_GNATBIND"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4669 $as_echo "$ac_ct_GNATBIND" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_GNATBIND" = x; then
4678 case $cross_compiling:$ac_tool_warned in
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4684 GNATBIND=$ac_ct_GNATBIND
4687 GNATBIND="$ac_cv_prog_GNATBIND"
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$GNATMAKE"; then
4699 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 GNATMAKE=$ac_cv_prog_GNATMAKE
4719 if test -n "$GNATMAKE"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4721 $as_echo "$GNATMAKE" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 if test -z "$ac_cv_prog_GNATMAKE"; then
4730 ac_ct_GNATMAKE=$GNATMAKE
4731 # Extract the first word of "gnatmake", so it can be a program name with args.
4732 set dummy gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$ac_ct_GNATMAKE"; then
4739 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4759 if test -n "$ac_ct_GNATMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4761 $as_echo "$ac_ct_GNATMAKE" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4767 if test "x$ac_ct_GNATMAKE" = x; then
4770 case $cross_compiling:$ac_tool_warned in
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4776 GNATMAKE=$ac_ct_GNATMAKE
4779 GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4783 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4784 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4787 cat >conftest.adb <<EOF
4788 procedure conftest is begin null; end conftest;
4790 acx_cv_cc_gcc_supports_ada=no
4791 # There is a bug in old released versions of GCC which causes the
4792 # driver to exit successfully when the appropriate language module
4793 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4794 # Therefore we must check for the error message as well as an
4795 # unsuccessful exit.
4796 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4797 # given a .adb file, but produce no object file. So we must check
4798 # if an object file was really produced to guard against this.
4799 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4800 if test x"$errors" = x && test -f conftest.$ac_objext; then
4801 acx_cv_cc_gcc_supports_ada=yes
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4806 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4808 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4815 # autoconf is lame and doesn't give us any substitution variable for this.
4816 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4817 NO_MINUS_C_MINUS_O=yes
4819 OUTPUT_OPTION='-o $@'
4824 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4825 # optimizations to be activated explicitly by the toplevel.
4827 */prev-gcc/xgcc*) ;;
4828 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4832 # -------------------------
4833 # Check C compiler features
4834 # -------------------------
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4844 # On Suns, sometimes $CPP names a directory.
4845 if test -n "$CPP" && test -d "$CPP"; then
4848 if test -z "$CPP"; then
4849 if test "${ac_cv_prog_CPP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4852 # Double quotes because CPP needs to be expanded
4853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4867 # include <limits.h>
4869 # include <assert.h>
4873 if ac_fn_c_try_cpp "$LINENO"; then :
4876 # Broken: fails on valid input.
4879 rm -f conftest.err conftest.$ac_ext
4881 # OK, works on sane cases. Now check whether nonexistent headers
4882 # can be detected and how.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888 # Broken: success on invalid input.
4891 # Passes both tests.
4895 rm -f conftest.err conftest.$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then :
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4913 $as_echo "$CPP" >&6; }
4915 for ac_c_preproc_warn_flag
in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4926 # include <limits.h>
4928 # include <assert.h>
4932 if ac_fn_c_try_cpp
"$LINENO"; then :
4935 # Broken: fails on valid input.
4938 rm -f conftest.err conftest.
$ac_ext
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4946 if ac_fn_c_try_cpp
"$LINENO"; then :
4947 # Broken: success on invalid input.
4950 # Passes both tests.
4954 rm -f conftest.err conftest.
$ac_ext
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.err conftest.
$ac_ext
4959 if $ac_preproc_ok; then :
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4965 See \`config.log' for more details." "$LINENO" 5; }
4969 ac_cpp
='$CPP $CPPFLAGS'
4970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 if test "${ac_cv_path_GREP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4980 if test -z "$GREP"; then
4981 ac_path_GREP_found
=false
4982 # Loop through the user's path and test for each of PROGNAME-LIST
4983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4984 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4987 test -z "$as_dir" && as_dir
=.
4988 for ac_prog
in grep ggrep
; do
4989 for ac_exec_ext
in '' $ac_executable_extensions; do
4990 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4992 # Check for GNU ac_path_GREP and select it if it is found.
4993 # Check for GNU $ac_path_GREP
4994 case `"$ac_path_GREP" --version 2>&1` in
4996 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4999 $as_echo_n 0123456789 >"conftest.in"
5002 cat "conftest.in" "conftest.in" >"conftest.tmp"
5003 mv "conftest.tmp" "conftest.in"
5004 cp "conftest.in" "conftest.nl"
5005 $as_echo 'GREP' >> "conftest.nl"
5006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5007 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5008 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5010 # Best one so far, save it but keep looking for a better one
5011 ac_cv_path_GREP
="$ac_path_GREP"
5012 ac_path_GREP_max
=$ac_count
5014 # 10*(2^10) chars as input seems more than enough
5015 test $ac_count -gt 10 && break
5017 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5020 $ac_path_GREP_found && break 3
5025 if test -z "$ac_cv_path_GREP"; then
5026 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5029 ac_cv_path_GREP
=$GREP
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5034 $as_echo "$ac_cv_path_GREP" >&6; }
5035 GREP
="$ac_cv_path_GREP"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039 $as_echo_n "checking for egrep... " >&6; }
5040 if test "${ac_cv_path_EGREP+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5043 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5044 then ac_cv_path_EGREP
="$GREP -E"
5046 if test -z "$EGREP"; then
5047 ac_path_EGREP_found
=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5053 test -z "$as_dir" && as_dir
=.
5054 for ac_prog
in egrep; do
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5058 # Check for GNU ac_path_EGREP and select it if it is found.
5059 # Check for GNU $ac_path_EGREP
5060 case `"$ac_path_EGREP" --version 2>&1` in
5062 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5065 $as_echo_n 0123456789 >"conftest.in"
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo 'EGREP' >> "conftest.nl"
5072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5073 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5074 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_EGREP
="$ac_path_EGREP"
5078 ac_path_EGREP_max
=$ac_count
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5083 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5086 $ac_path_EGREP_found && break 3
5091 if test -z "$ac_cv_path_EGREP"; then
5092 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5095 ac_cv_path_EGREP
=$EGREP
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5101 $as_echo "$ac_cv_path_EGREP" >&6; }
5102 EGREP
="$ac_cv_path_EGREP"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5106 $as_echo_n "checking for ANSI C header files... " >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5125 if ac_fn_c_try_compile
"$LINENO"; then :
5126 ac_cv_header_stdc
=yes
5128 ac_cv_header_stdc
=no
5130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5132 if test $ac_cv_header_stdc = yes; then
5133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "memchr" >/dev
/null
2>&1; then :
5143 ac_cv_header_stdc
=no
5149 if test $ac_cv_header_stdc = yes; then
5150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 $EGREP "free" >/dev
/null
2>&1; then :
5160 ac_cv_header_stdc
=no
5166 if test $ac_cv_header_stdc = yes; then
5167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5168 if test "$cross_compiling" = yes; then :
5171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5175 #if ((' ' & 0x0FF) == 0x020)
5176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5179 # define ISLOWER(c) \
5180 (('a' <= (c) && (c) <= 'i') \
5181 || ('j' <= (c) && (c) <= 'r') \
5182 || ('s' <= (c) && (c) <= 'z'))
5183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 for (i = 0; i < 256; i++)
5192 if (XOR (islower (i), ISLOWER (i))
5193 || toupper (i) != TOUPPER (i))
5198 if ac_fn_c_try_run
"$LINENO"; then :
5201 ac_cv_header_stdc
=no
5203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5210 $as_echo "$ac_cv_header_stdc" >&6; }
5211 if test $ac_cv_header_stdc = yes; then
5213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5218 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5219 inttypes.h stdint.h unistd.h
5221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5224 eval as_val
=\$
$as_ac_Header
5225 if test "x$as_val" = x
""yes; then :
5226 cat >>confdefs.h
<<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5237 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5244 if test "$MINIX" = yes; then
5246 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252 $as_echo "#define _MINIX 1" >>confdefs.h
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5258 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5259 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 # define __EXTENSIONS__ 1
5266 $ac_includes_default
5275 if ac_fn_c_try_compile
"$LINENO"; then :
5276 ac_cv_safe_to_define___extensions__
=yes
5278 ac_cv_safe_to_define___extensions__
=no
5280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5283 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5284 test $ac_cv_safe_to_define___extensions__ = yes &&
5285 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5287 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5293 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5297 ac_cpp
='$CPP $CPPFLAGS'
5298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5303 # On Suns, sometimes $CPP names a directory.
5304 if test -n "$CPP" && test -d "$CPP"; then
5307 if test -z "$CPP"; then
5308 if test "${ac_cv_prog_CPP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5311 # Double quotes because CPP needs to be expanded
5312 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5315 for ac_c_preproc_warn_flag
in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if ac_fn_c_try_cpp
"$LINENO"; then :
5335 # Broken: fails on valid input.
5338 rm -f conftest.err conftest.
$ac_ext
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5346 if ac_fn_c_try_cpp
"$LINENO"; then :
5347 # Broken: success on invalid input.
5350 # Passes both tests.
5354 rm -f conftest.err conftest.
$ac_ext
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.
$ac_ext
5359 if $ac_preproc_ok; then :
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5372 $as_echo "$CPP" >&6; }
5374 for ac_c_preproc_warn_flag
in '' yes
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5385 # include <limits.h>
5387 # include <assert.h>
5391 if ac_fn_c_try_cpp
"$LINENO"; then :
5394 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.
$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <ac_nonexistent.h>
5405 if ac_fn_c_try_cpp
"$LINENO"; then :
5406 # Broken: success on invalid input.
5409 # Passes both tests.
5413 rm -f conftest.err conftest.
$ac_ext
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.err conftest.
$ac_ext
5418 if $ac_preproc_ok; then :
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5424 See \`config.log' for more details." "$LINENO" 5; }
5428 ac_cpp
='$CPP $CPPFLAGS'
5429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5434 $as_echo_n "checking for inline... " >&6; }
5435 if test "${ac_cv_c_inline+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5439 for ac_kw
in inline __inline__ __inline
; do
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5444 static $ac_kw foo_t static_foo () {return 0; }
5445 $ac_kw foo_t foo () {return 0; }
5449 if ac_fn_c_try_compile
"$LINENO"; then :
5450 ac_cv_c_inline
=$ac_kw
5452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 test "$ac_cv_c_inline" != no
&& break
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5458 $as_echo "$ac_cv_c_inline" >&6; }
5460 case $ac_cv_c_inline in
5463 case $ac_cv_c_inline in
5465 *) ac_val
=$ac_cv_c_inline;;
5467 cat >>confdefs.h
<<_ACEOF
5469 #define inline $ac_val
5476 # sizeof(char) is 1 by definition.
5477 # The cast to long int works around a bug in the HP C Compiler
5478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480 # This bug is HP SR number 8606223364.
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5482 $as_echo_n "checking size of void *... " >&6; }
5483 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5486 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5489 if test "$ac_cv_type_void_p" = yes; then
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 { as_fn_set_status
77
5493 as_fn_error
"cannot compute sizeof (void *)
5494 See \`config.log' for more details." "$LINENO" 5; }; }
5496 ac_cv_sizeof_void_p
=0
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5502 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5506 cat >>confdefs.h
<<_ACEOF
5507 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5511 # The cast to long int works around a bug in the HP C Compiler
5512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514 # This bug is HP SR number 8606223364.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5516 $as_echo_n "checking size of short... " >&6; }
5517 if test "${ac_cv_sizeof_short+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5520 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5523 if test "$ac_cv_type_short" = yes; then
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 { as_fn_set_status
77
5527 as_fn_error
"cannot compute sizeof (short)
5528 See \`config.log' for more details." "$LINENO" 5; }; }
5530 ac_cv_sizeof_short
=0
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5536 $as_echo "$ac_cv_sizeof_short" >&6; }
5540 cat >>confdefs.h
<<_ACEOF
5541 #define SIZEOF_SHORT $ac_cv_sizeof_short
5545 # The cast to long int works around a bug in the HP C Compiler
5546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5548 # This bug is HP SR number 8606223364.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5550 $as_echo_n "checking size of int... " >&6; }
5551 if test "${ac_cv_sizeof_int+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5554 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5557 if test "$ac_cv_type_int" = yes; then
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 { as_fn_set_status
77
5561 as_fn_error
"cannot compute sizeof (int)
5562 See \`config.log' for more details." "$LINENO" 5; }; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5570 $as_echo "$ac_cv_sizeof_int" >&6; }
5574 cat >>confdefs.h
<<_ACEOF
5575 #define SIZEOF_INT $ac_cv_sizeof_int
5579 # The cast to long int works around a bug in the HP C Compiler
5580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5582 # This bug is HP SR number 8606223364.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5584 $as_echo_n "checking size of long... " >&6; }
5585 if test "${ac_cv_sizeof_long+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5588 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5591 if test "$ac_cv_type_long" = yes; then
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { as_fn_set_status
77
5595 as_fn_error
"cannot compute sizeof (long)
5596 See \`config.log' for more details." "$LINENO" 5; }; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5604 $as_echo "$ac_cv_sizeof_long" >&6; }
5608 cat >>confdefs.h
<<_ACEOF
5609 #define SIZEOF_LONG $ac_cv_sizeof_long
5613 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5614 if test "x$ac_cv_type_long_long" = x
""yes; then :
5616 cat >>confdefs.h
<<_ACEOF
5617 #define HAVE_LONG_LONG 1
5620 # The cast to long int works around a bug in the HP C Compiler
5621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5623 # This bug is HP SR number 8606223364.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5625 $as_echo_n "checking size of long long... " >&6; }
5626 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5629 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5632 if test "$ac_cv_type_long_long" = yes; then
5633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5635 { as_fn_set_status
77
5636 as_fn_error
"cannot compute sizeof (long long)
5637 See \`config.log' for more details." "$LINENO" 5; }; }
5639 ac_cv_sizeof_long_long
=0
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5649 cat >>confdefs.h
<<_ACEOF
5650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5656 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5657 if test "x$ac_cv_type___int64" = x
""yes; then :
5659 cat >>confdefs.h
<<_ACEOF
5660 #define HAVE___INT64 1
5663 # The cast to long int works around a bug in the HP C Compiler
5664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5666 # This bug is HP SR number 8606223364.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5668 $as_echo_n "checking size of __int64... " >&6; }
5669 if test "${ac_cv_sizeof___int64+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5672 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5675 if test "$ac_cv_type___int64" = yes; then
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 { as_fn_set_status
77
5679 as_fn_error
"cannot compute sizeof (__int64)
5680 See \`config.log' for more details." "$LINENO" 5; }; }
5682 ac_cv_sizeof___int64
=0
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5688 $as_echo "$ac_cv_sizeof___int64" >&6; }
5692 cat >>confdefs.h
<<_ACEOF
5693 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5699 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5700 case $ac_cv_c_int8_t in #(
5704 cat >>confdefs.h
<<_ACEOF
5705 #define int8_t $ac_cv_c_int8_t
5710 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5711 case $ac_cv_c_int16_t in #(
5715 cat >>confdefs.h
<<_ACEOF
5716 #define int16_t $ac_cv_c_int16_t
5721 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5722 case $ac_cv_c_int32_t in #(
5726 cat >>confdefs.h
<<_ACEOF
5727 #define int32_t $ac_cv_c_int32_t
5732 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5733 case $ac_cv_c_int64_t in #(
5737 cat >>confdefs.h
<<_ACEOF
5738 #define int64_t $ac_cv_c_int64_t
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5745 $as_echo_n "checking for long long int... " >&6; }
5746 if test "${ac_cv_type_long_long_int+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 /* For now, do not test the preprocessor; as of 2007 there are too many
5753 implementations with broken preprocessors. Perhaps this can
5754 be revisited in 2012. In the meantime, code should not expect
5755 #if to work with literals wider than 32 bits. */
5756 /* Test literals. */
5757 long long int ll = 9223372036854775807ll;
5758 long long int nll = -9223372036854775807LL;
5759 unsigned long long int ull = 18446744073709551615ULL;
5760 /* Test constant expressions. */
5761 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5763 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5769 /* Test availability of runtime routines for shift and division. */
5770 long long int llmax = 9223372036854775807ll;
5771 unsigned long long int ullmax = 18446744073709551615ull;
5772 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5773 | (llmax / ll) | (llmax % ll)
5774 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5775 | (ullmax / ull) | (ullmax % ull));
5781 if ac_fn_c_try_link
"$LINENO"; then :
5782 if test "$cross_compiling" = yes; then :
5783 ac_cv_type_long_long_int
=yes
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5790 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5791 # define LLONG_MAX (HALF - 1 + HALF)
5796 long long int n = 1;
5800 long long int m = n << i;
5803 if (LLONG_MAX / 2 < m)
5811 if ac_fn_c_try_run
"$LINENO"; then :
5812 ac_cv_type_long_long_int
=yes
5814 ac_cv_type_long_long_int
=no
5816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5821 ac_cv_type_long_long_int
=no
5823 rm -f core conftest.err conftest.
$ac_objext \
5824 conftest
$ac_exeext conftest.
$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5827 $as_echo "$ac_cv_type_long_long_int" >&6; }
5828 if test $ac_cv_type_long_long_int = yes; then
5830 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5836 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5837 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5839 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5842 test $ac_cv_type_long_long_int = yes \
5843 && ac_type
='long long int' \
5844 || ac_type
='long int'
5846 cat >>confdefs.h
<<_ACEOF
5847 #define intmax_t $ac_type
5854 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5855 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5857 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5860 for ac_type
in 'int' 'long int' 'long long int'; do
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5867 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5874 if ac_fn_c_try_compile
"$LINENO"; then :
5876 cat >>confdefs.h
<<_ACEOF
5877 #define intptr_t $ac_type
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 test -z "$ac_type" && break
5888 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5889 case $ac_cv_c_uint8_t in #(
5893 $as_echo "#define _UINT8_T 1" >>confdefs.h
5896 cat >>confdefs.h
<<_ACEOF
5897 #define uint8_t $ac_cv_c_uint8_t
5902 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5903 case $ac_cv_c_uint16_t in #(
5908 cat >>confdefs.h
<<_ACEOF
5909 #define uint16_t $ac_cv_c_uint16_t
5914 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5915 case $ac_cv_c_uint32_t in #(
5919 $as_echo "#define _UINT32_T 1" >>confdefs.h
5922 cat >>confdefs.h
<<_ACEOF
5923 #define uint32_t $ac_cv_c_uint32_t
5928 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5929 case $ac_cv_c_uint64_t in #(
5933 $as_echo "#define _UINT64_T 1" >>confdefs.h
5936 cat >>confdefs.h
<<_ACEOF
5937 #define uint64_t $ac_cv_c_uint64_t
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5944 $as_echo_n "checking for unsigned long long int... " >&6; }
5945 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* For now, do not test the preprocessor; as of 2007 there are too many
5952 implementations with broken preprocessors. Perhaps this can
5953 be revisited in 2012. In the meantime, code should not expect
5954 #if to work with literals wider than 32 bits. */
5955 /* Test literals. */
5956 long long int ll = 9223372036854775807ll;
5957 long long int nll = -9223372036854775807LL;
5958 unsigned long long int ull = 18446744073709551615ULL;
5959 /* Test constant expressions. */
5960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5968 /* Test availability of runtime routines for shift and division. */
5969 long long int llmax = 9223372036854775807ll;
5970 unsigned long long int ullmax = 18446744073709551615ull;
5971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5972 | (llmax / ll) | (llmax % ll)
5973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5974 | (ullmax / ull) | (ullmax % ull));
5980 if ac_fn_c_try_link
"$LINENO"; then :
5981 ac_cv_type_unsigned_long_long_int
=yes
5983 ac_cv_type_unsigned_long_long_int
=no
5985 rm -f core conftest.err conftest.
$ac_objext \
5986 conftest
$ac_exeext conftest.
$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5989 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5990 if test $ac_cv_type_unsigned_long_long_int = yes; then
5992 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5998 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6001 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6004 test $ac_cv_type_unsigned_long_long_int = yes \
6005 && ac_type
='unsigned long long int' \
6006 || ac_type
='unsigned long int'
6008 cat >>confdefs.h
<<_ACEOF
6009 #define uintmax_t $ac_type
6016 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6017 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6019 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6022 for ac_type
in 'unsigned int' 'unsigned long int' \
6023 'unsigned long long int'; do
6024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 $ac_includes_default
6030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6037 if ac_fn_c_try_compile
"$LINENO"; then :
6039 cat >>confdefs.h
<<_ACEOF
6040 #define uintptr_t $ac_type
6045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6046 test -z "$ac_type" && break
6064 # ---------------------
6065 # Warnings and checking
6066 # ---------------------
6068 # Check $CC warning features (if it's GCC).
6069 # We want to use -pedantic, but we don't want warnings about
6072 # * overlong strings
6073 # So, we only use -pedantic if we can disable those warnings.
6076 save_CFLAGS
="$CFLAGS"
6077 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6078 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6081 $as_echo_n "checking whether $CC supports $option... " >&6; }
6082 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6083 $as_echo_n "(cached) " >&6
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6097 if ac_fn_c_try_compile
"$LINENO"; then :
6098 eval "$as_acx_Woption=yes"
6100 eval "$as_acx_Woption=no"
6102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 eval ac_res
=\$
$as_acx_Woption
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6107 $as_echo "$ac_res" >&6; }
6108 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6109 loose_warn
="$loose_warn${loose_warn:+ }$option"
6112 CFLAGS
="$save_CFLAGS"
6115 save_CFLAGS
="$CFLAGS"
6116 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6117 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6120 $as_echo_n "checking whether $CC supports $option... " >&6; }
6121 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6122 $as_echo_n "(cached) " >&6
6125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6136 if ac_fn_c_try_compile
"$LINENO"; then :
6137 eval "$as_acx_Woption=yes"
6139 eval "$as_acx_Woption=no"
6141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 eval ac_res
=\$
$as_acx_Woption
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6148 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6151 CFLAGS
="$save_CFLAGS"
6154 save_CFLAGS
="$CFLAGS"
6155 for option
in -Wmissing-format-attribute; do
6156 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6159 $as_echo_n "checking whether $CC supports $option... " >&6; }
6160 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6161 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6175 if ac_fn_c_try_compile
"$LINENO"; then :
6176 eval "$as_acx_Woption=yes"
6178 eval "$as_acx_Woption=no"
6180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 eval ac_res
=\$
$as_acx_Woption
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6186 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6187 strict_warn
="$strict_warn${strict_warn:+ }$option"
6190 CFLAGS
="$save_CFLAGS"
6193 save_CFLAGS
="$CFLAGS"
6194 for option
in -Wold-style-definition -Wc++-compat; do
6195 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6198 $as_echo_n "checking whether $CC supports $option... " >&6; }
6199 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6200 $as_echo_n "(cached) " >&6
6203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6214 if ac_fn_c_try_compile
"$LINENO"; then :
6215 eval "$as_acx_Woption=yes"
6217 eval "$as_acx_Woption=no"
6219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6222 eval ac_res
=\$
$as_acx_Woption
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6224 $as_echo "$ac_res" >&6; }
6225 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6226 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6229 CFLAGS
="$save_CFLAGS"
6231 if test "$GCC" = yes; then :
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6233 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6234 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6237 save_CFLAGS
="$CFLAGS"
6238 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6250 if ac_fn_c_try_compile
"$LINENO"; then :
6251 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6253 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6256 CFLAGS
="$save_CFLAGS"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6259 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6260 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6261 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6266 # Check whether --enable-werror-always was given.
6267 if test "${enable_werror_always+set}" = set; then :
6268 enableval
=$enable_werror_always;
6270 enable_werror_always
=no
6273 if test $enable_werror_always = yes; then :
6274 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6279 # The above macros do nothing if the compiler is not GCC. However, the
6280 # Makefile has more goo to add other flags, so these variables are used
6281 # to enable warnings only for GCC.
6284 if test "x$GCC" = "xyes"; then
6285 warn_cflags
='$(GCC_WARN_CFLAGS)'
6286 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6291 # Enable expensive internal checks
6293 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6297 # Check whether --enable-checking was given.
6298 if test "${enable_checking+set}" = set; then :
6299 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6302 # Determine the default checks.
6303 if test x
$is_release = x
; then
6304 ac_checking_flags
=yes
6306 ac_checking_flags
=release
6310 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6311 for check
in release
$ac_checking_flags
6314 # these set all the flags to specific states
6315 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6316 ac_fold_checking
= ; ac_gc_checking
=1 ;
6317 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6318 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6319 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6320 ac_types_checking
=1 ;;
6321 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6322 ac_fold_checking
= ; ac_gc_checking
= ;
6323 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6324 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6325 ac_tree_checking
= ; ac_valgrind_checking
= ;
6326 ac_types_checking
= ;;
6327 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6328 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6329 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6330 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6331 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6332 ac_types_checking
=1 ;;
6333 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6334 ac_fold_checking
= ; ac_gc_checking
= ;
6335 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6336 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6337 ac_tree_checking
= ; ac_valgrind_checking
= ;
6338 ac_types_checking
= ;;
6339 # these enable particular checks
6340 assert
) ac_assert_checking
=1 ;;
6341 df
) ac_df_checking
=1 ;;
6342 fold) ac_fold_checking
=1 ;;
6343 gc
) ac_gc_checking
=1 ;;
6344 gcac
) ac_gc_always_collect
=1 ;;
6345 gimple
) ac_gimple_checking
=1 ;;
6346 misc
) ac_checking
=1 ;;
6347 rtl
) ac_rtl_checking
=1 ;;
6348 rtlflag
) ac_rtlflag_checking
=1 ;;
6349 runtime
) ac_runtime_checking
=1 ;;
6350 tree
) ac_tree_checking
=1 ;;
6351 types
) ac_types_checking
=1 ;;
6352 valgrind
) ac_valgrind_checking
=1 ;;
6353 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6359 if test x
$ac_checking != x
; then
6361 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6363 nocommon_flag
=-fno-common
6366 if test x
$ac_df_checking != x
; then
6368 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6371 if test x
$ac_assert_checking != x
; then
6373 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6376 if test x
$ac_gimple_checking != x
; then
6378 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6382 if test x
$ac_runtime_checking != x
; then
6384 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6387 if test x
$ac_tree_checking != x
; then
6389 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6391 TREEBROWSER
=tree-browser.o
6393 if test x
$ac_types_checking != x
; then
6395 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6399 if test x
$ac_rtl_checking != x
; then
6401 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6404 if test x
$ac_rtlflag_checking != x
; then
6406 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6409 if test x
$ac_gc_checking != x
; then
6411 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6414 if test x
$ac_gc_always_collect != x
; then
6416 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6419 if test x
$ac_fold_checking != x
; then
6421 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6424 valgrind_path_defines
=
6427 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6436 if test x
$ac_valgrind_checking != x
; then
6437 # It is certainly possible that there's valgrind but no valgrind.h.
6438 # GCC relies on making annotations so we must have both.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6440 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <valgrind/memcheck.h>
6444 #ifndef VALGRIND_DISCARD
6445 #error VALGRIND_DISCARD not defined
6448 if ac_fn_c_try_cpp
"$LINENO"; then :
6449 gcc_cv_header_valgrind_memcheck_h
=yes
6451 gcc_cv_header_valgrind_memcheck_h
=no
6453 rm -f conftest.err conftest.
$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6455 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6457 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <memcheck.h>
6461 #ifndef VALGRIND_DISCARD
6462 #error VALGRIND_DISCARD not defined
6465 if ac_fn_c_try_cpp
"$LINENO"; then :
6466 gcc_cv_header_memcheck_h
=yes
6468 gcc_cv_header_memcheck_h
=no
6470 rm -f conftest.err conftest.
$ac_ext
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6472 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6474 # Prepare PATH_SEPARATOR.
6475 # The user is always right.
6476 if test "${PATH_SEPARATOR+set}" != set; then
6477 echo "#! /bin/sh" >conf$$.sh
6478 echo "exit 0" >>conf$$.sh
6480 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6488 # Find out how to test for executable files. Don't use a zero-byte file,
6489 # as systems may use methods other than mode bits to determine executability.
6490 cat >conf$$.
file <<_ASEOF
6494 chmod +x conf$$.
file
6495 if test -x conf$$.
file >/dev
/null
2>&1; then
6496 ac_executable_p
="test -x"
6498 ac_executable_p
="test -f"
6502 # Extract the first word of "valgrind", so it can be a program name with args.
6503 set dummy valgrind
; ac_word
=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6509 case "$valgrind_path" in
6511 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6514 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6515 for ac_dir
in $PATH; do
6517 test -z "$ac_dir" && ac_dir
=.
6518 for ac_exec_ext
in '' $ac_executable_extensions; do
6519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6520 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6521 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6531 valgrind_path
="$ac_cv_path_valgrind_path"
6532 if test -n "$valgrind_path"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6534 $as_echo "$valgrind_path" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$valgrind_path" = "x" \
6541 ||
(test $have_valgrind_h = no \
6542 && test $gcc_cv_header_memcheck_h = no \
6543 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6544 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6546 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6547 valgrind_command
="$valgrind_path -q"
6549 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6551 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6553 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6556 if test $gcc_cv_header_memcheck_h = yes; then
6558 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6565 # Enable code coverage collection
6566 # Check whether --enable-coverage was given.
6567 if test "${enable_coverage+set}" = set; then :
6568 enableval
=$enable_coverage; case "${enableval}" in
6570 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6573 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6576 # a.k.a. --disable-coverage
6580 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6589 # Check whether --enable-gather-detailed-mem-stats was given.
6590 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6591 enableval
=$enable_gather_detailed_mem_stats;
6593 enable_gather_detailed_mem_stats
=no
6596 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6598 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6602 # -------------------------------
6603 # Miscenalleous configure options
6604 # -------------------------------
6606 # See if we are building gcc with C++.
6607 # Check whether --enable-build-with-cxx was given.
6608 if test "${enable_build_with_cxx+set}" = set; then :
6609 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6611 ENABLE_BUILD_WITH_CXX
=no
6618 # Check whether --with-stabs was given.
6619 if test "${with_stabs+set}" = set; then :
6620 withval
=$with_stabs; stabs
="$with_stabs"
6626 # Determine whether or not multilibs are enabled.
6627 # Check whether --enable-multilib was given.
6628 if test "${enable_multilib+set}" = set; then :
6629 enableval
=$enable_multilib;
6636 # Enable __cxa_atexit for C++.
6637 # Check whether --enable-__cxa_atexit was given.
6638 if test "${enable___cxa_atexit+set}" = set; then :
6639 enableval
=$enable___cxa_atexit;
6643 # Enable C extension for decimal float if target supports it.
6644 # Check whether --enable-decimal-float was given.
6645 if test "${enable_decimal_float+set}" = set; then :
6646 enableval
=$enable_decimal_float;
6647 case $enable_decimal_float in
6648 yes | no | bid | dpd
) ;;
6649 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6650 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6656 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6657 enable_decimal_float
=yes
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6661 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6662 enable_decimal_float
=no
6669 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6671 cat >>confdefs.h
<<_ACEOF
6672 #define ENABLE_DECIMAL_FLOAT $dfp
6676 # x86's use BID format instead of DPD
6677 case x
$enable_decimal_float in
6680 i?
86*-*-linux* | x86_64
*-*-linux*)
6681 enable_decimal_float
=bid
6684 enable_decimal_float
=dpd
6689 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6690 # dependency on libdecnumber.
6691 enable_decimal_float
=dpd
6696 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6698 cat >>confdefs.h
<<_ACEOF
6699 #define ENABLE_DECIMAL_BID_FORMAT $bid
6703 # Enable C extension for fixed-point arithmetic.
6704 # Check whether --enable-fixed-point was given.
6705 if test "${enable_fixed_point+set}" = set; then :
6706 enableval
=$enable_fixed_point;
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6715 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6716 enable_fixed_point
=no
6719 enable_fixed_point
=yes
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6725 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6726 enable_fixed_point
=no
6734 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6736 cat >>confdefs.h
<<_ACEOF
6737 #define ENABLE_FIXED_POINT $fixedpoint
6742 # Pass with no value to take the default
6743 # Pass with a value to specify a thread package
6744 # Check whether --enable-threads was given.
6745 if test "${enable_threads+set}" = set; then :
6746 enableval
=$enable_threads;
6752 # Check whether --enable-tls was given.
6753 if test "${enable_tls+set}" = set; then :
6754 enableval
=$enable_tls;
6757 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6758 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6766 # Check whether --enable-objc-gc was given.
6767 if test "${enable_objc_gc+set}" = set; then :
6768 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6779 # Check whether --with-dwarf2 was given.
6780 if test "${with_dwarf2+set}" = set; then :
6781 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6787 # Check whether --enable-shared was given.
6788 if test "${enable_shared+set}" = set; then :
6789 enableval
=$enable_shared;
6790 case $enable_shared in
6794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6795 for pkg
in $enableval; do
6796 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6811 # Check whether --with-build-sysroot was given.
6812 if test "${with_build_sysroot+set}" = set; then :
6813 withval
=$with_build_sysroot;
6818 # Check whether --with-sysroot was given.
6819 if test "${with_sysroot+set}" = set; then :
6820 withval
=$with_sysroot;
6821 case ${with_sysroot} in
6822 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6823 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6826 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6827 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6829 if test "x$prefix" = xNONE
; then
6830 test_prefix
=/usr
/local
6834 if test "x$exec_prefix" = xNONE
; then
6835 test_exec_prefix
=$test_prefix
6837 test_exec_prefix
=$exec_prefix
6839 case ${TARGET_SYSTEM_ROOT} in
6840 "${test_prefix}"|
"${test_prefix}/"*|\
6841 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6842 '${prefix}'|
'${prefix}/'*|\
6843 '${exec_prefix}'|
'${exec_prefix}/'*)
6844 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6845 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6852 TARGET_SYSTEM_ROOT_DEFINE
=
6853 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6862 # Check whether --with-specs was given.
6863 if test "${with_specs+set}" = set; then :
6864 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6872 # Build with intermodule optimisations
6873 # Check whether --enable-intermodule was given.
6874 if test "${enable_intermodule+set}" = set; then :
6875 enableval
=$enable_intermodule; case ${enable_intermodule} in
6876 yes) onestep
="-onestep";;
6887 # Check whether --with-pkgversion was given.
6888 if test "${with_pkgversion+set}" = set; then :
6889 withval
=$with_pkgversion; case "$withval" in
6890 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6892 *) PKGVERSION
="($withval) " ;;
6903 # Check whether --with-bugurl was given.
6904 if test "${with_bugurl+set}" = set; then :
6905 withval
=$with_bugurl; case "$withval" in
6906 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6909 *) BUGURL
="$withval"
6913 BUGURL
="http://gcc.gnu.org/bugs.html"
6923 REPORT_BUGS_TO
="<$BUGURL>"
6924 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages was given.
6934 if test "${enable_languages+set}" = set; then :
6935 enableval
=$enable_languages; case ,${enable_languages}, in
6937 # go safe -- we cannot be much sure without the toplevel
6939 # analysis of which target libs are present and usable
6943 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6948 enable_languages
=c
,${enable_languages}
6957 # Check whether --with-multilib-list was given.
6958 if test "${with_multilib_list+set}" = set; then :
6959 withval
=$with_multilib_list; :
6961 with_multilib_list
=default
6965 # -------------------------
6966 # Checks for other programs
6967 # -------------------------
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6972 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6973 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6976 cat >conftest.
make <<\_ACEOF
6979 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6984 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6986 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6990 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 SET_MAKE
="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog
in gawk mawk nawk
awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy
$ac_prog; ac_word
=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_AWK+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir
=.
7019 for ac_exec_ext
in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_AWK
="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7041 test -n "$AWK" && break
7044 # We need awk to create options.c and options.h.
7045 # Bail out if it's missing.
7047 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7051 $as_echo_n "checking whether ln -s works... " >&6; }
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7059 gcc_cv_prog_LN_S
="ln -s"
7061 if ln conftestdata_f conftestdata_t
2>/dev
/null
7065 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7067 gcc_cv_prog_LN_S
="cp -p"
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S
="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7083 $as_echo "no, using ln" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7091 $as_echo_n "checking whether ln works... " >&6; }
7092 if test "${acx_cv_prog_LN+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t
2>/dev
/null
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no
; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7109 $as_echo "no, using $LN" >&6; }
7111 LN
="$acx_cv_prog_LN"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir
=.
7132 for ac_exec_ext
in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 RANLIB
=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7147 $as_echo "$RANLIB" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB
=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib
; ac_word
=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir
=.
7172 for ac_exec_ext
in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7187 $as_echo "$ac_ct_RANLIB" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_RANLIB" = x
; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned
=yes ;;
7202 RANLIB
=$ac_ct_RANLIB
7205 RANLIB
="$ac_cv_prog_RANLIB"
7210 # By default, the Darwin ranlib will not treat common symbols as
7211 # definitions when building the archive table of contents. Other
7212 # ranlibs do that; pass an option to the Darwin ranlib that makes
7213 # it behave similarly.
7221 # Find a good install program. We prefer a C program (faster),
7222 # so one script is as good as another. But avoid the broken or
7223 # incompatible versions:
7224 # SysV /etc/install, /usr/sbin/install
7225 # SunOS /usr/etc/install
7226 # IRIX /sbin/install
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7232 $as_echo_n "checking for a BSD compatible install... " >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7237 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7238 for ac_dir
in $PATH; do
7239 # Account for people who put trailing slashes in PATH elements.
7241 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7243 # OSF1 and SCO ODT 3.0 have their own names for install.
7244 for ac_prog
in ginstall scoinst
install; do
7245 if test -f $ac_dir/$ac_prog; then
7246 if test $ac_prog = install &&
7247 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7248 # AIX install. It has an incompatible calling convention.
7249 # OSF/1 installbsd also uses dspmsg, but is usable.
7252 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7263 if test "${ac_cv_path_install+set}" = set; then
7264 INSTALL
="$ac_cv_path_install"
7266 # As a last resort, use the slow shell script. We don't cache a
7267 # path for INSTALL within a source directory, because that will
7268 # break other packages using the cache if that directory is
7269 # removed, or if the path is relative.
7270 INSTALL
="$ac_install_sh"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7274 $as_echo "$INSTALL" >&6; }
7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7277 # It thinks the first close brace ends the variable substitution.
7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7280 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7283 # See if cmp has --ignore-initial.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7285 $as_echo_n "checking for cmp's capabilities... " >&6; }
7286 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7291 gcc_cv_prog_cmp_skip
=slowcompare
7292 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7293 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7296 gcc_cv_prog_cmp_skip
=gnucompare
7299 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7300 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7301 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7304 gcc_cv_prog_cmp_skip
=fastcompare
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7312 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7313 make_compare_target
=$gcc_cv_prog_cmp_skip
7317 # See if we have the mktemp command.
7318 # Extract the first word of "mktemp", so it can be a program name with args.
7319 set dummy mktemp
; ac_word
=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$have_mktemp_command"; then
7326 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir
=.
7333 for ac_exec_ext
in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_have_mktemp_command
="yes"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7346 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7347 if test -n "$have_mktemp_command"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7349 $as_echo "$have_mktemp_command" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 # See if makeinfo has been installed and is modern enough
7358 # that we can use it.
7360 # Extract the first word of "makeinfo", so it can be a program name with args.
7361 set dummy makeinfo
; ac_word
=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -n "$MAKEINFO"; then
7368 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir
=.
7375 for ac_exec_ext
in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_MAKEINFO
="makeinfo"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 MAKEINFO
=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7390 $as_echo "$MAKEINFO" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 if test -n "$MAKEINFO"; then
7398 # Found it, now check the version.
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7400 $as_echo_n "checking for modern makeinfo... " >&6; }
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7407 case $ac_prog_version in
7408 '') gcc_cv_prog_makeinfo_modern
=no
;;
7409 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7410 *) gcc_cv_prog_makeinfo_modern
=no
;;
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7417 gcc_cv_prog_makeinfo_modern
=no
7419 if test $gcc_cv_prog_makeinfo_modern = no
; then
7420 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7423 if test $gcc_cv_prog_makeinfo_modern = no
; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7425 *** Makeinfo is missing or too old.
7426 *** Info documentation will not be built." >&5
7427 $as_echo "$as_me: WARNING:
7428 *** Makeinfo is missing or too old.
7429 *** Info documentation will not be built." >&2;}
7436 # Is pod2man recent enough to regenerate manpages?
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7438 $as_echo_n "checking for recent Pod::Man... " >&6; }
7439 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7442 GENERATED_MANPAGES
=generated-manpages
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7450 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy
$ac_prog; ac_word
=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if test "${ac_cv_prog_FLEX+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7462 if test -n "$FLEX"; then
7463 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir
=.
7470 for ac_exec_ext
in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_FLEX
="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 FLEX
=$ac_cv_prog_FLEX
7483 if test -n "$FLEX"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7485 $as_echo "$FLEX" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$FLEX" && break
7494 test -n "$FLEX" || FLEX
="$MISSING flex"
7498 for ac_prog
in bison
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy
$ac_prog; ac_word
=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_BISON+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$BISON"; then
7508 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir
=.
7515 for ac_exec_ext
in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_BISON
="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 BISON
=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7530 $as_echo "$BISON" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$BISON" && break
7539 test -n "$BISON" || BISON
="$MISSING bison"
7542 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7543 # check for build == host before using them.
7546 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7547 && test -d ..
/binutils
; then
7548 NM
='$(objdir)/../binutils/nm-new'
7550 # Extract the first word of "nm", so it can be a program name with args.
7551 set dummy nm
; ac_word
=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_NM+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7557 if test -n "$NM"; then
7558 ac_cv_prog_NM
="$NM" # Let the user override the test.
7560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir
=.
7565 for ac_exec_ext
in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7579 if test -n "$NM"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7581 $as_echo "$NM" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7591 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7592 && test -d ..
/binutils
; then
7593 AR
='$(objdir)/../binutils/ar'
7595 # Extract the first word of "ar", so it can be a program name with args.
7596 set dummy
ar; ac_word
=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_AR+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$AR"; then
7603 ac_cv_prog_AR
="$AR" # Let the user override the test.
7605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir
=.
7610 for ac_exec_ext
in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7624 if test -n "$AR"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7626 $as_echo "$AR" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7636 # --------------------
7637 # Checks for C headers
7638 # --------------------
7640 # Need to reject headers which give warnings, so that the -Werror bootstrap
7641 # works later. *sigh* This needs to come before all header checks.
7643 ac_c_preproc_warn_flag
=yes
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7646 $as_echo_n "checking for ANSI C header files... " >&6; }
7647 if test "${ac_cv_header_stdc+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7665 if ac_fn_c_try_compile
"$LINENO"; then :
7666 ac_cv_header_stdc
=yes
7668 ac_cv_header_stdc
=no
7670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7672 if test $ac_cv_header_stdc = yes; then
7673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7680 $EGREP "memchr" >/dev
/null
2>&1; then :
7683 ac_cv_header_stdc
=no
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "free" >/dev
/null
2>&1; then :
7700 ac_cv_header_stdc
=no
7706 if test $ac_cv_header_stdc = yes; then
7707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708 if test "$cross_compiling" = yes; then :
7711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7715 #if ((' ' & 0x0FF) == 0x020)
7716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7719 # define ISLOWER(c) \
7720 (('a' <= (c) && (c) <= 'i') \
7721 || ('j' <= (c) && (c) <= 'r') \
7722 || ('s' <= (c) && (c) <= 'z'))
7723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7731 for (i = 0; i < 256; i++)
7732 if (XOR (islower (i), ISLOWER (i))
7733 || toupper (i) != TOUPPER (i))
7738 if ac_fn_c_try_run
"$LINENO"; then :
7741 ac_cv_header_stdc
=no
7743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7750 $as_echo "$ac_cv_header_stdc" >&6; }
7751 if test $ac_cv_header_stdc = yes; then
7753 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7758 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7759 if test "${ac_cv_header_time+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <sys/time.h>
7771 if ((struct tm *) 0)
7777 if ac_fn_c_try_compile
"$LINENO"; then :
7778 ac_cv_header_time
=yes
7780 ac_cv_header_time
=no
7782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7785 $as_echo "$ac_cv_header_time" >&6; }
7786 if test $ac_cv_header_time = yes; then
7788 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7793 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7794 if test "${gcc_cv_header_string+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7800 #include <strings.h>
7809 if ac_fn_c_try_compile
"$LINENO"; then :
7810 gcc_cv_header_string
=yes
7812 gcc_cv_header_string
=no
7814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7817 $as_echo "$gcc_cv_header_string" >&6; }
7818 if test $gcc_cv_header_string = yes; then
7820 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7826 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <sys/wait.h>
7834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7850 if ac_fn_c_try_compile
"$LINENO"; then :
7851 ac_cv_header_sys_wait_h
=yes
7853 ac_cv_header_sys_wait_h
=no
7855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7859 if test $ac_cv_header_sys_wait_h = yes; then
7861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7865 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7866 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7867 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7868 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7870 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7872 eval as_val
=\$
$as_ac_Header
7873 if test "x$as_val" = x
""yes; then :
7874 cat >>confdefs.h
<<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7882 # Check for thread headers.
7883 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7884 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7890 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7891 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7898 # These tests can't be done till we know if we have limits.h.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7900 $as_echo_n "checking for CHAR_BIT... " >&6; }
7901 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef HAVE_LIMITS_H
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "found" >/dev
/null
2>&1; then :
7915 gcc_cv_decl_char_bit
=yes
7917 gcc_cv_decl_char_bit
=no
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7924 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7925 if test $gcc_cv_decl_char_bit = no
; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7927 $as_echo_n "checking number of bits in a byte... " >&6; }
7928 if test "${gcc_cv_c_nbby+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7933 while test $i -lt 65; do
7934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7941 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7942 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7948 if ac_fn_c_try_compile
"$LINENO"; then :
7949 gcc_cv_c_nbby
=$i; break
7951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7954 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7958 $as_echo "$gcc_cv_c_nbby" >&6; }
7959 if test $gcc_cv_c_nbby = failed
; then
7960 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7963 cat >>confdefs.h
<<_ACEOF
7964 #define CHAR_BIT $gcc_cv_c_nbby
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7971 if test "${ac_cv_c_bigendian+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7974 ac_cv_c_bigendian
=unknown
7975 # See if we're dealing with a universal compiler.
7976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #ifndef __APPLE_CC__
7979 not a universal capable compiler
7984 if ac_fn_c_try_compile
"$LINENO"; then :
7986 # Check for potential -arch flags. It is not universal unless
7987 # there are at least two -arch flags with different values.
7990 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7991 if test -n "$ac_prev"; then
7993 i?
86 | x86_64 | ppc | ppc64
)
7994 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7997 ac_cv_c_bigendian
=universal
8003 elif test "x$ac_word" = "x-arch"; then
8008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8009 if test $ac_cv_c_bigendian = unknown
; then
8010 # See if sys/param.h defines the BYTE_ORDER macro.
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <sys/types.h>
8014 #include <sys/param.h>
8019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8029 if ac_fn_c_try_compile
"$LINENO"; then :
8030 # It does; now see whether it defined to BIG_ENDIAN or not.
8031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <sys/types.h>
8034 #include <sys/param.h>
8039 #if BYTE_ORDER != BIG_ENDIAN
8047 if ac_fn_c_try_compile
"$LINENO"; then :
8048 ac_cv_c_bigendian
=yes
8050 ac_cv_c_bigendian
=no
8052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8056 if test $ac_cv_c_bigendian = unknown
; then
8057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8073 if ac_fn_c_try_compile
"$LINENO"; then :
8074 # It does; now see whether it defined to _BIG_ENDIAN or not.
8075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8090 if ac_fn_c_try_compile
"$LINENO"; then :
8091 ac_cv_c_bigendian
=yes
8093 ac_cv_c_bigendian
=no
8095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8099 if test $ac_cv_c_bigendian = unknown
; then
8100 # Compile a test program.
8101 if test "$cross_compiling" = yes; then :
8102 # Try to guess by grepping values from an object file.
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 short int ascii_mm[] =
8106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8107 short int ascii_ii[] =
8108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8109 int use_ascii (int i) {
8110 return ascii_mm[i] + ascii_ii[i];
8112 short int ebcdic_ii[] =
8113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8114 short int ebcdic_mm[] =
8115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8116 int use_ebcdic (int i) {
8117 return ebcdic_mm[i] + ebcdic_ii[i];
8124 return use_ascii (foo) == use_ebcdic (foo);
8129 if ac_fn_c_try_compile
"$LINENO"; then :
8130 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8131 ac_cv_c_bigendian
=yes
8133 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8134 if test "$ac_cv_c_bigendian" = unknown
; then
8135 ac_cv_c_bigendian
=no
8137 # finding both strings is unlikely to happen, but who knows?
8138 ac_cv_c_bigendian
=unknown
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 $ac_includes_default
8151 /* Are we little or big endian? From Harbison&Steele. */
8155 char c[sizeof (long int)];
8158 return u.c[sizeof (long int) - 1] == 1;
8164 if ac_fn_c_try_run
"$LINENO"; then :
8165 ac_cv_c_bigendian
=no
8167 ac_cv_c_bigendian
=yes
8169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8176 $as_echo "$ac_cv_c_bigendian" >&6; }
8177 case $ac_cv_c_bigendian in #(
8179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8189 as_fn_error
"unknown endianness
8190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8199 # These libraries may be used by collect2.
8200 # We may need a special search path to get them linked.
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8202 $as_echo_n "checking for collect2 libraries... " >&6; }
8203 if test "${gcc_cv_collect2_libs+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8207 for libs
in '' -lld -lmld \
8208 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8209 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8215 /* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8230 if ac_fn_c_try_link
"$LINENO"; then :
8231 gcc_cv_collect2_libs
="$libs"; break
8233 rm -f core conftest.err conftest.
$ac_objext \
8234 conftest
$ac_exeext conftest.
$ac_ext
8237 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8240 $as_echo "$gcc_cv_collect2_libs" >&6; }
8241 case $gcc_cv_collect2_libs in
8243 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8247 # When building Ada code on Alpha, we need exc_resume which is usually in
8248 # -lexc. So test for it.
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8252 $as_echo_n "checking for library containing exc_resume... " >&6; }
8253 if test "${ac_cv_search_exc_resume+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8256 ac_func_search_save_LIBS
=$LIBS
8257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8270 return exc_resume ();
8275 for ac_lib
in '' exc
; do
8276 if test -z "$ac_lib"; then
8277 ac_res
="none required"
8280 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8282 if ac_fn_c_try_link
"$LINENO"; then :
8283 ac_cv_search_exc_resume
=$ac_res
8285 rm -f core conftest.err conftest.
$ac_objext \
8287 if test "${ac_cv_search_exc_resume+set}" = set; then :
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8294 ac_cv_search_exc_resume
=no
8297 LIBS
=$ac_func_search_save_LIBS
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8300 $as_echo "$ac_cv_search_exc_resume" >&6; }
8301 ac_res
=$ac_cv_search_exc_resume
8302 if test "$ac_res" != no
; then :
8303 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8311 # Some systems put ldexp and frexp in libm instead of libc; assume
8312 # they're both in the same place. jcf-dump needs them.
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8316 $as_echo_n "checking for library containing ldexp... " >&6; }
8317 if test "${ac_cv_search_ldexp+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 ac_func_search_save_LIBS
=$LIBS
8321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8339 for ac_lib
in '' m
; do
8340 if test -z "$ac_lib"; then
8341 ac_res
="none required"
8344 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8346 if ac_fn_c_try_link
"$LINENO"; then :
8347 ac_cv_search_ldexp
=$ac_res
8349 rm -f core conftest.err conftest.
$ac_objext \
8351 if test "${ac_cv_search_ldexp+set}" = set; then :
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8358 ac_cv_search_ldexp
=no
8361 LIBS
=$ac_func_search_save_LIBS
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8364 $as_echo "$ac_cv_search_ldexp" >&6; }
8365 ac_res
=$ac_cv_search_ldexp
8366 if test "$ac_res" != no
; then :
8367 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8375 # Use <inttypes.h> only if it exists,
8376 # doesn't clash with <sys/types.h>, and declares intmax_t.
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8378 $as_echo_n "checking for inttypes.h... " >&6; }
8379 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <inttypes.h>
8394 if ac_fn_c_try_compile
"$LINENO"; then :
8395 gcc_cv_header_inttypes_h
=yes
8397 gcc_cv_header_inttypes_h
=no
8399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8403 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8404 if test $gcc_cv_header_inttypes_h = yes; then
8406 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8412 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8413 sysconf strsignal getrusage nl_langinfo \
8414 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8415 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
8417 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8418 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8419 eval as_val
=\$
$as_ac_var
8420 if test "x$as_val" = x
""yes; then :
8421 cat >>confdefs.h
<<_ACEOF
8422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8429 if test x
$ac_cv_func_mbstowcs = xyes
; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8431 $as_echo_n "checking whether mbstowcs works... " >&6; }
8432 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8435 if test "$cross_compiling" = yes; then :
8436 gcc_cv_func_mbstowcs_works
=yes
8438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8447 if ac_fn_c_try_run
"$LINENO"; then :
8448 gcc_cv_func_mbstowcs_works
=yes
8450 gcc_cv_func_mbstowcs_works
=no
8452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8458 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8459 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8461 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8466 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8467 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8471 cat >>confdefs.h
<<_ACEOF
8477 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8478 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8482 cat >>confdefs.h
<<_ACEOF
8483 #define caddr_t char *
8490 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8491 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8492 gcc_header_sys_mman_h
=yes
8494 gcc_header_sys_mman_h
=no
8497 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8498 if test "x$ac_cv_func_mmap" = x
""yes; then :
8504 if test "$gcc_header_sys_mman_h" != yes \
8505 ||
test "$gcc_func_mmap" != yes; then
8506 gcc_cv_func_mmap_file
=no
8507 gcc_cv_func_mmap_dev_zero
=no
8508 gcc_cv_func_mmap_anon
=no
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8511 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8512 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8515 # Add a system to this blacklist if
8516 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8517 # memory area containing the same data that you'd get if you applied
8518 # read() to the same fd. The only system known to have a problem here
8519 # is VMS, where text files have record structure.
8522 gcc_cv_func_mmap_file
=no
;;
8524 gcc_cv_func_mmap_file
=yes;;
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8528 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8530 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8531 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8532 $as_echo_n "(cached) " >&6
8534 # Add a system to this blacklist if it has mmap() but /dev/zero
8535 # does not exist, or if mmapping /dev/zero does not give anonymous
8536 # zeroed pages with both the following properties:
8537 # 1. If you map N consecutive pages in with one call, and then
8538 # unmap any subset of those pages, the pages that were not
8539 # explicitly unmapped remain accessible.
8540 # 2. If you map two adjacent blocks of memory and then unmap them
8541 # both at once, they must both go away.
8542 # Systems known to be in this category are Windows (all variants),
8545 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8546 gcc_cv_func_mmap_dev_zero
=no
;;
8548 gcc_cv_func_mmap_dev_zero
=yes;;
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8552 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8554 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8556 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8557 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 #include <sys/types.h>
8563 #include <sys/mman.h>
8566 #ifndef MAP_ANONYMOUS
8567 #define MAP_ANONYMOUS MAP_ANON
8573 int n = MAP_ANONYMOUS;
8578 if ac_fn_c_try_compile
"$LINENO"; then :
8579 gcc_cv_decl_map_anon
=yes
8581 gcc_cv_decl_map_anon
=no
8583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8586 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8588 if test $gcc_cv_decl_map_anon = no
; then
8589 gcc_cv_func_mmap_anon
=no
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8592 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8593 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8596 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8597 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8598 # doesn't give anonymous zeroed pages with the same properties listed
8599 # above for use of /dev/zero.
8600 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8602 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8603 gcc_cv_func_mmap_anon
=no
;;
8605 gcc_cv_func_mmap_anon
=yes;;
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8609 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8613 if test $gcc_cv_func_mmap_file = yes; then
8615 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8618 if test $gcc_cv_func_mmap_dev_zero = yes; then
8620 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8623 if test $gcc_cv_func_mmap_anon = yes; then
8625 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8632 # Under VMS, vfork works very differently than on Unix. The standard test
8633 # won't work, and it isn't easily adaptable. It makes more sense to
8635 ac_cv_func_vfork_works
=yes
8638 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8639 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8643 cat >>confdefs.h
<<_ACEOF
8649 for ac_header
in vfork.h
8651 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8652 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8653 cat >>confdefs.h
<<_ACEOF
8654 #define HAVE_VFORK_H 1
8660 for ac_func
in fork vfork
8662 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8663 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8664 eval as_val
=\$
$as_ac_var
8665 if test "x$as_val" = x
""yes; then :
8666 cat >>confdefs.h
<<_ACEOF
8667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8673 if test "x$ac_cv_func_fork" = xyes
; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8675 $as_echo_n "checking for working fork... " >&6; }
8676 if test "${ac_cv_func_fork_works+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8679 if test "$cross_compiling" = yes; then :
8680 ac_cv_func_fork_works
=cross
8682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 $ac_includes_default
8689 /* By Ruediger Kuhlmann. */
8696 if ac_fn_c_try_run
"$LINENO"; then :
8697 ac_cv_func_fork_works
=yes
8699 ac_cv_func_fork_works
=no
8701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8707 $as_echo "$ac_cv_func_fork_works" >&6; }
8710 ac_cv_func_fork_works
=$ac_cv_func_fork
8712 if test "x$ac_cv_func_fork_works" = xcross
; then
8714 *-*-amigaos* |
*-*-msdosdjgpp*)
8715 # Override, as these systems have only a dummy fork() stub
8716 ac_cv_func_fork_works
=no
8719 ac_cv_func_fork_works
=yes
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8723 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8725 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8726 if test "x$ac_cv_func_vfork" = xyes
; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8728 $as_echo_n "checking for working vfork... " >&6; }
8729 if test "${ac_cv_func_vfork_works+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 if test "$cross_compiling" = yes; then :
8733 ac_cv_func_vfork_works
=cross
8735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 /* Thanks to Paul Eggert for this test. */
8738 $ac_includes_default
8739 #include <sys/wait.h>
8743 /* On some sparc systems, changes by the child to local and incoming
8744 argument registers are propagated back to the parent. The compiler
8745 is told about this with #include <vfork.h>, but some compilers
8746 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8747 static variable whose address is put into a register that is
8748 clobbered by the vfork. */
8751 sparc_address_test (int arg)
8753 sparc_address_test (arg) int arg;
8774 pid_t parent = getpid ();
8777 sparc_address_test (0);
8782 /* Here is another test for sparc vfork register problems. This
8783 test uses lots of local variables, at least as many local
8784 variables as main has allocated so far including compiler
8785 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8786 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8787 reuse the register of parent for one of the local variables,
8788 since it will think that parent can't possibly be used any more
8789 in this routine. Assigning to the local variable will thus
8790 munge parent in the parent process. */
8792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8794 /* Convince the compiler that p..p7 are live; otherwise, it might
8795 use the same hardware register for all 8 local variables. */
8796 if (p != p1 || p != p2 || p != p3 || p != p4
8797 || p != p5 || p != p6 || p != p7)
8800 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8801 from child file descriptors. If the child closes a descriptor
8802 before it execs or exits, this munges the parent's descriptor
8803 as well. Test for this by closing stdout in the child. */
8804 _exit(close(fileno(stdout)) != 0);
8809 while (wait(&status) != child)
8812 /* Was there some problem with vforking? */
8815 /* Did the child fail? (This shouldn't happen.) */
8818 /* Did the vfork/compiler bug occur? */
8819 || parent != getpid()
8821 /* Did the file descriptor bug occur? */
8822 || fstat(fileno(stdout), &st) != 0
8827 if ac_fn_c_try_run
"$LINENO"; then :
8828 ac_cv_func_vfork_works
=yes
8830 ac_cv_func_vfork_works
=no
8832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8838 $as_echo "$ac_cv_func_vfork_works" >&6; }
8841 if test "x$ac_cv_func_fork_works" = xcross
; then
8842 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8844 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8847 if test "x$ac_cv_func_vfork_works" = xyes
; then
8849 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8853 $as_echo "#define vfork fork" >>confdefs.h
8856 if test "x$ac_cv_func_fork_works" = xyes
; then
8858 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8864 if test "X$prefix" = "XNONE"; then
8865 acl_final_prefix
="$ac_default_prefix"
8867 acl_final_prefix
="$prefix"
8869 if test "X$exec_prefix" = "XNONE"; then
8870 acl_final_exec_prefix
='${prefix}'
8872 acl_final_exec_prefix
="$exec_prefix"
8874 acl_save_prefix
="$prefix"
8875 prefix
="$acl_final_prefix"
8876 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8877 prefix
="$acl_save_prefix"
8880 # Check whether --with-gnu-ld was given.
8881 if test "${with_gnu_ld+set}" = set; then :
8882 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8887 # Prepare PATH_SEPARATOR.
8888 # The user is always right.
8889 if test "${PATH_SEPARATOR+set}" != set; then
8890 echo "#! /bin/sh" >conf$$.sh
8891 echo "exit 0" >>conf$$.sh
8893 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8901 if test "$GCC" = yes; then
8902 # Check if gcc -print-prog-name=ld gives a path.
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8904 $as_echo_n "checking for ld used by GCC... " >&6; }
8907 # gcc leaves a trailing carriage return which upsets mingw
8908 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8910 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8913 # Accept absolute paths.
8914 [\\/]* |
[A-Za-z
]:[\\/]*)
8915 re_direlt
='/[^/][^/]*/\.\./'
8916 # Canonicalize the path of ld
8917 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8918 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8919 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8921 test -z "$LD" && LD
="$ac_prog"
8924 # If it fails, then pretend we aren't using GCC.
8928 # If it is relative, then search for the first ld in PATH.
8932 elif test "$with_gnu_ld" = yes; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8934 $as_echo_n "checking for GNU ld... " >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8937 $as_echo_n "checking for non-GNU ld... " >&6; }
8939 if test "${acl_cv_path_LD+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8942 if test -z "$LD"; then
8943 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8944 for ac_dir
in $PATH; do
8945 test -z "$ac_dir" && ac_dir
=.
8946 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8947 acl_cv_path_LD
="$ac_dir/$ac_prog"
8948 # Check to see if the program is GNU ld. I'd rather use --version,
8949 # but apparently some GNU ld's only accept -v.
8950 # Break only if it was the GNU/non-GNU ld that we prefer.
8951 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8952 test "$with_gnu_ld" != no
&& break
8954 test "$with_gnu_ld" != yes && break
8960 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8964 LD
="$acl_cv_path_LD"
8965 if test -n "$LD"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8967 $as_echo "$LD" >&6; }
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8972 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8974 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8975 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8978 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8979 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8980 acl_cv_prog_gnu_ld
=yes
8982 acl_cv_prog_gnu_ld
=no
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8986 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8987 with_gnu_ld
=$acl_cv_prog_gnu_ld
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8992 $as_echo_n "checking for shared library run path origin... " >&6; }
8993 if test "${acl_cv_rpath+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8997 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8998 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9005 $as_echo "$acl_cv_rpath" >&6; }
9007 libext
="$acl_cv_libext"
9008 shlibext
="$acl_cv_shlibext"
9009 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9010 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9011 hardcode_direct
="$acl_cv_hardcode_direct"
9012 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9013 # Check whether --enable-rpath was given.
9014 if test "${enable_rpath+set}" = set; then :
9015 enableval
=$enable_rpath; :
9029 acl_save_prefix
="$prefix"
9030 prefix
="$acl_final_prefix"
9031 acl_save_exec_prefix
="$exec_prefix"
9032 exec_prefix
="$acl_final_exec_prefix"
9034 eval additional_includedir
=\"$includedir\"
9035 eval additional_libdir
=\"$libdir\"
9037 exec_prefix
="$acl_save_exec_prefix"
9038 prefix
="$acl_save_prefix"
9041 # Check whether --with-libiconv-prefix was given.
9042 if test "${with_libiconv_prefix+set}" = set; then :
9043 withval
=$with_libiconv_prefix;
9044 if test "X$withval" = "Xno"; then
9047 if test "X$withval" = "X"; then
9049 acl_save_prefix
="$prefix"
9050 prefix
="$acl_final_prefix"
9051 acl_save_exec_prefix
="$exec_prefix"
9052 exec_prefix
="$acl_final_exec_prefix"
9054 eval additional_includedir
=\"$includedir\"
9055 eval additional_libdir
=\"$libdir\"
9057 exec_prefix
="$acl_save_exec_prefix"
9058 prefix
="$acl_save_prefix"
9061 additional_includedir
="$withval/include"
9062 additional_libdir
="$withval/lib"
9073 names_already_handled
=
9074 names_next_round
='iconv '
9075 while test -n "$names_next_round"; do
9076 names_this_round
="$names_next_round"
9078 for name
in $names_this_round; do
9080 for n
in $names_already_handled; do
9081 if test "$n" = "$name"; then
9086 if test -z "$already_handled"; then
9087 names_already_handled
="$names_already_handled $name"
9088 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9089 eval value
=\"\
$HAVE_LIB$uppername\"
9090 if test -n "$value"; then
9091 if test "$value" = yes; then
9092 eval value
=\"\
$LIB$uppername\"
9093 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9094 eval value
=\"\
$LTLIB$uppername\"
9095 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9104 if test $use_additional = yes; then
9105 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9106 found_dir
="$additional_libdir"
9107 found_so
="$additional_libdir/lib$name.$shlibext"
9108 if test -f "$additional_libdir/lib$name.la"; then
9109 found_la
="$additional_libdir/lib$name.la"
9112 if test -f "$additional_libdir/lib$name.$libext"; then
9113 found_dir
="$additional_libdir"
9114 found_a
="$additional_libdir/lib$name.$libext"
9115 if test -f "$additional_libdir/lib$name.la"; then
9116 found_la
="$additional_libdir/lib$name.la"
9121 if test "X$found_dir" = "X"; then
9122 for x
in $LDFLAGS $LTLIBICONV; do
9124 acl_save_prefix
="$prefix"
9125 prefix
="$acl_final_prefix"
9126 acl_save_exec_prefix
="$exec_prefix"
9127 exec_prefix
="$acl_final_exec_prefix"
9129 exec_prefix
="$acl_save_exec_prefix"
9130 prefix
="$acl_save_prefix"
9134 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9135 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9137 found_so
="$dir/lib$name.$shlibext"
9138 if test -f "$dir/lib$name.la"; then
9139 found_la
="$dir/lib$name.la"
9142 if test -f "$dir/lib$name.$libext"; then
9144 found_a
="$dir/lib$name.$libext"
9145 if test -f "$dir/lib$name.la"; then
9146 found_la
="$dir/lib$name.la"
9152 if test "X$found_dir" != "X"; then
9157 if test "X$found_dir" != "X"; then
9158 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9159 if test "X$found_so" != "X"; then
9160 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9161 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9164 for x
in $ltrpathdirs; do
9165 if test "X$x" = "X$found_dir"; then
9170 if test -z "$haveit"; then
9171 ltrpathdirs
="$ltrpathdirs $found_dir"
9173 if test "$hardcode_direct" = yes; then
9174 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9176 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9177 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9179 for x
in $rpathdirs; do
9180 if test "X$x" = "X$found_dir"; then
9185 if test -z "$haveit"; then
9186 rpathdirs
="$rpathdirs $found_dir"
9190 for x
in $LDFLAGS $LIBICONV; do
9192 acl_save_prefix
="$prefix"
9193 prefix
="$acl_final_prefix"
9194 acl_save_exec_prefix
="$exec_prefix"
9195 exec_prefix
="$acl_final_exec_prefix"
9197 exec_prefix
="$acl_save_exec_prefix"
9198 prefix
="$acl_save_prefix"
9200 if test "X$x" = "X-L$found_dir"; then
9205 if test -z "$haveit"; then
9206 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9208 if test "$hardcode_minus_L" != no
; then
9209 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9211 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9217 if test "X$found_a" != "X"; then
9218 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9220 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9223 additional_includedir
=
9224 case "$found_dir" in
9226 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9227 additional_includedir
="$basedir/include"
9230 if test "X$additional_includedir" != "X"; then
9231 if test "X$additional_includedir" != "X/usr/include"; then
9233 if test "X$additional_includedir" = "X/usr/local/include"; then
9234 if test -n "$GCC"; then
9236 linux
*) haveit
=yes;;
9240 if test -z "$haveit"; then
9241 for x
in $CPPFLAGS $INCICONV; do
9243 acl_save_prefix
="$prefix"
9244 prefix
="$acl_final_prefix"
9245 acl_save_exec_prefix
="$exec_prefix"
9246 exec_prefix
="$acl_final_exec_prefix"
9248 exec_prefix
="$acl_save_exec_prefix"
9249 prefix
="$acl_save_prefix"
9251 if test "X$x" = "X-I$additional_includedir"; then
9256 if test -z "$haveit"; then
9257 if test -d "$additional_includedir"; then
9258 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9264 if test -n "$found_la"; then
9265 save_libdir
="$libdir"
9267 */* |
*\\*) .
"$found_la" ;;
9268 *) .
"./$found_la" ;;
9270 libdir
="$save_libdir"
9271 for dep
in $dependency_libs; do
9274 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9275 if test "X$additional_libdir" != "X/usr/lib"; then
9277 if test "X$additional_libdir" = "X/usr/local/lib"; then
9278 if test -n "$GCC"; then
9280 linux
*) haveit
=yes;;
9284 if test -z "$haveit"; then
9286 for x
in $LDFLAGS $LIBICONV; do
9288 acl_save_prefix
="$prefix"
9289 prefix
="$acl_final_prefix"
9290 acl_save_exec_prefix
="$exec_prefix"
9291 exec_prefix
="$acl_final_exec_prefix"
9293 exec_prefix
="$acl_save_exec_prefix"
9294 prefix
="$acl_save_prefix"
9296 if test "X$x" = "X-L$additional_libdir"; then
9301 if test -z "$haveit"; then
9302 if test -d "$additional_libdir"; then
9303 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9307 for x
in $LDFLAGS $LTLIBICONV; do
9309 acl_save_prefix
="$prefix"
9310 prefix
="$acl_final_prefix"
9311 acl_save_exec_prefix
="$exec_prefix"
9312 exec_prefix
="$acl_final_exec_prefix"
9314 exec_prefix
="$acl_save_exec_prefix"
9315 prefix
="$acl_save_prefix"
9317 if test "X$x" = "X-L$additional_libdir"; then
9322 if test -z "$haveit"; then
9323 if test -d "$additional_libdir"; then
9324 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9331 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9332 if test "$enable_rpath" != no
; then
9334 for x
in $rpathdirs; do
9335 if test "X$x" = "X$dir"; then
9340 if test -z "$haveit"; then
9341 rpathdirs
="$rpathdirs $dir"
9344 for x
in $ltrpathdirs; do
9345 if test "X$x" = "X$dir"; then
9350 if test -z "$haveit"; then
9351 ltrpathdirs
="$ltrpathdirs $dir"
9356 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9359 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9362 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9363 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9369 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9370 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9376 if test "X$rpathdirs" != "X"; then
9377 if test -n "$hardcode_libdir_separator"; then
9379 for found_dir
in $rpathdirs; do
9380 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9382 acl_save_libdir
="$libdir"
9384 eval flag
=\"$hardcode_libdir_flag_spec\"
9385 libdir
="$acl_save_libdir"
9386 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9388 for found_dir
in $rpathdirs; do
9389 acl_save_libdir
="$libdir"
9391 eval flag
=\"$hardcode_libdir_flag_spec\"
9392 libdir
="$acl_save_libdir"
9393 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9397 if test "X$ltrpathdirs" != "X"; then
9398 for found_dir
in $ltrpathdirs; do
9399 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9409 am_save_CPPFLAGS
="$CPPFLAGS"
9411 for element
in $INCICONV; do
9413 for x
in $CPPFLAGS; do
9415 acl_save_prefix
="$prefix"
9416 prefix
="$acl_final_prefix"
9417 acl_save_exec_prefix
="$exec_prefix"
9418 exec_prefix
="$acl_final_exec_prefix"
9420 exec_prefix
="$acl_save_exec_prefix"
9421 prefix
="$acl_save_prefix"
9423 if test "X$x" = "X$element"; then
9428 if test -z "$haveit"; then
9429 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9435 $as_echo_n "checking for iconv... " >&6; }
9436 if test "${am_cv_func_iconv+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9440 am_cv_func_iconv
="no, consider installing GNU libiconv"
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9449 iconv_t cd = iconv_open("","");
9450 iconv(cd,NULL,NULL,NULL,NULL);
9456 if ac_fn_c_try_link
"$LINENO"; then :
9457 am_cv_func_iconv
=yes
9459 rm -f core conftest.err conftest.
$ac_objext \
9460 conftest
$ac_exeext conftest.
$ac_ext
9461 if test "$am_cv_func_iconv" != yes; then
9462 am_save_LIBS
="$LIBS"
9463 LIBS
="$LIBS $LIBICONV"
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9471 iconv_t cd = iconv_open("","");
9472 iconv(cd,NULL,NULL,NULL,NULL);
9478 if ac_fn_c_try_link
"$LINENO"; then :
9480 am_cv_func_iconv
=yes
9482 rm -f core conftest.err conftest.
$ac_objext \
9483 conftest
$ac_exeext conftest.
$ac_ext
9484 LIBS
="$am_save_LIBS"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9489 $as_echo "$am_cv_func_iconv" >&6; }
9490 if test "$am_cv_func_iconv" = yes; then
9492 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9495 if test "$am_cv_lib_iconv" = yes; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9497 $as_echo_n "checking how to link with libiconv... " >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9499 $as_echo "$LIBICONV" >&6; }
9501 CPPFLAGS
="$am_save_CPPFLAGS"
9508 if test "$am_cv_func_iconv" = yes; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9510 $as_echo_n "checking for iconv declaration... " >&6; }
9511 if test "${am_cv_proto_iconv+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9524 #if defined(__STDC__) || defined(__cplusplus)
9525 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9538 if ac_fn_c_try_compile
"$LINENO"; then :
9539 am_cv_proto_iconv_arg1
=""
9541 am_cv_proto_iconv_arg1
="const"
9543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9544 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);"
9547 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9549 }$am_cv_proto_iconv" >&5
9551 }$am_cv_proto_iconv" >&6; }
9553 cat >>confdefs.h
<<_ACEOF
9554 #define ICONV_CONST $am_cv_proto_iconv_arg1
9559 # Until we have in-tree GNU iconv:
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9565 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9566 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9580 if ac_fn_c_try_link
"$LINENO"; then :
9581 am_cv_val_LC_MESSAGES
=yes
9583 am_cv_val_LC_MESSAGES
=no
9585 rm -f core conftest.err conftest.
$ac_objext \
9586 conftest
$ac_exeext conftest.
$ac_ext
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9589 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9590 if test $am_cv_val_LC_MESSAGES = yes; then
9592 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9599 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9600 if test "${am_cv_langinfo_codeset+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 #include <langinfo.h>
9609 char* cs = nl_langinfo(CODESET);
9614 if ac_fn_c_try_link
"$LINENO"; then :
9615 am_cv_langinfo_codeset
=yes
9617 am_cv_langinfo_codeset
=no
9619 rm -f core conftest.err conftest.
$ac_objext \
9620 conftest
$ac_exeext conftest.
$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9624 $as_echo "$am_cv_langinfo_codeset" >&6; }
9625 if test $am_cv_langinfo_codeset = yes; then
9627 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9632 # We will need to find libiberty.h and ansidecl.h
9633 saved_CFLAGS
="$CFLAGS"
9634 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9635 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9636 strsignal strstr strverscmp \
9637 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9638 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
9640 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9642 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9643 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9644 $as_echo_n "(cached) " >&6
9646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9649 #define $ac_tr_decl 1
9651 #include "ansidecl.h"
9658 char *(*pfn) = (char *(*)) $ac_func ;
9664 if ac_fn_c_try_compile
"$LINENO"; then :
9665 eval "gcc_cv_have_decl_$ac_func=yes"
9667 eval "gcc_cv_have_decl_$ac_func=no"
9669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9674 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9675 #define $ac_tr_decl 1
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9681 #define $ac_tr_decl 0
9689 for ac_func
in getrlimit setrlimit getrusage
9691 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9693 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9694 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9695 $as_echo_n "(cached) " >&6
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9700 #define $ac_tr_decl 1
9702 #include "ansidecl.h"
9704 #ifdef HAVE_SYS_RESOURCE_H
9705 #include <sys/resource.h>
9713 char *(*pfn) = (char *(*)) $ac_func ;
9719 if ac_fn_c_try_compile
"$LINENO"; then :
9720 eval "gcc_cv_have_decl_$ac_func=yes"
9722 eval "gcc_cv_have_decl_$ac_func=no"
9724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9727 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9729 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9730 #define $ac_tr_decl 1
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9736 #define $ac_tr_decl 0
9744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9747 #include "ansidecl.h"
9749 #ifdef HAVE_SYS_RESOURCE_H
9750 #include <sys/resource.h>
9761 if ac_fn_c_try_compile
"$LINENO"; then :
9765 $as_echo "#define rlim_t long" >>confdefs.h
9768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9770 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9771 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9772 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9773 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9774 for ac_func
in ldgetname
9776 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9778 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9779 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9780 $as_echo_n "(cached) " >&6
9782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9785 #define $ac_tr_decl 1
9787 #include "ansidecl.h"
9800 char *(*pfn) = (char *(*)) $ac_func ;
9806 if ac_fn_c_try_compile
"$LINENO"; then :
9807 eval "gcc_cv_have_decl_$ac_func=yes"
9809 eval "gcc_cv_have_decl_$ac_func=no"
9811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9814 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9816 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9817 #define $ac_tr_decl 1
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9823 #define $ac_tr_decl 0
9831 for ac_func
in times
9833 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9836 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9837 $as_echo_n "(cached) " >&6
9839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9842 #define $ac_tr_decl 1
9844 #include "ansidecl.h"
9846 #ifdef HAVE_SYS_TIMES_H
9847 #include <sys/times.h>
9855 char *(*pfn) = (char *(*)) $ac_func ;
9861 if ac_fn_c_try_compile
"$LINENO"; then :
9862 eval "gcc_cv_have_decl_$ac_func=yes"
9864 eval "gcc_cv_have_decl_$ac_func=no"
9866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9869 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9872 #define $ac_tr_decl 1
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9878 #define $ac_tr_decl 0
9886 for ac_func
in sigaltstack
9888 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9890 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9891 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9892 $as_echo_n "(cached) " >&6
9894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9897 #define $ac_tr_decl 1
9899 #include "ansidecl.h"
9908 char *(*pfn) = (char *(*)) $ac_func ;
9914 if ac_fn_c_try_compile
"$LINENO"; then :
9915 eval "gcc_cv_have_decl_$ac_func=yes"
9917 eval "gcc_cv_have_decl_$ac_func=no"
9919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9925 #define $ac_tr_decl 1
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9931 #define $ac_tr_decl 0
9939 # More time-related stuff.
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9941 $as_echo_n "checking for struct tms... " >&6; }
9942 if test "${ac_cv_struct_tms+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 #include "ansidecl.h"
9951 #ifdef HAVE_SYS_TIMES_H
9952 #include <sys/times.h>
9963 if ac_fn_c_try_compile
"$LINENO"; then :
9964 ac_cv_struct_tms
=yes
9968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9971 $as_echo "$ac_cv_struct_tms" >&6; }
9972 if test $ac_cv_struct_tms = yes; then
9974 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9978 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9979 # revisit after autoconf 2.50.
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9981 $as_echo_n "checking for clock_t... " >&6; }
9982 if test "${gcc_cv_type_clock_t+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 #include "ansidecl.h"
10000 if ac_fn_c_try_compile
"$LINENO"; then :
10001 gcc_cv_type_clock_t
=yes
10003 gcc_cv_type_clock_t
=no
10005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10008 $as_echo "$gcc_cv_type_clock_t" >&6; }
10009 if test $gcc_cv_type_clock_t = yes; then
10011 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10015 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10016 CFLAGS
="$saved_CFLAGS"
10018 # Check whether --enable-initfini-array was given.
10019 if test "${enable_initfini_array+set}" = set; then :
10020 enableval
=$enable_initfini_array;
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10024 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10025 if test "${gcc_cv_initfini_array+set}" = set; then :
10026 $as_echo_n "(cached) " >&6
10028 if test "$cross_compiling" = yes; then :
10029 gcc_cv_initfini_array
=no
10031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10035 int main (void) { return x; }
10036 int foo (void) { x = 0; }
10037 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10039 if ac_fn_c_try_run
"$LINENO"; then :
10040 gcc_cv_initfini_array
=yes
10042 gcc_cv_initfini_array
=no
10044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10050 $as_echo "$gcc_cv_initfini_array" >&6; }
10051 enable_initfini_array
=$gcc_cv_initfini_array
10055 if test $enable_initfini_array = yes; then
10057 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10061 # mkdir takes a single argument on some systems.
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10063 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10064 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 #include <sys/types.h>
10071 #ifdef HAVE_SYS_STAT_H
10072 # include <sys/stat.h>
10074 #ifdef HAVE_UNISTD_H
10075 # include <unistd.h>
10077 #ifdef HAVE_DIRECT_H
10078 # include <direct.h>
10088 if ac_fn_c_try_compile
"$LINENO"; then :
10089 gcc_cv_mkdir_takes_one_arg
=no
10091 gcc_cv_mkdir_takes_one_arg
=yes
10093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10096 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10097 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10099 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10110 # With Setjmp/Longjmp based exception handling.
10111 # Check whether --enable-sjlj-exceptions was given.
10112 if test "${enable_sjlj_exceptions+set}" = set; then :
10113 enableval
=$enable_sjlj_exceptions; case $target in
10115 if test $enableval != yes; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10117 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10122 force_sjlj_exceptions
=yes
10126 force_sjlj_exceptions
=yes
10130 force_sjlj_exceptions
=no
10135 if test $force_sjlj_exceptions = yes; then
10136 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10138 cat >>confdefs.h
<<_ACEOF
10139 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10144 # For platforms with the unwind ABI which includes an unwind library,
10145 # libunwind, we can choose to use the system libunwind.
10146 # config.gcc also contains tests of with_system_libunwind.
10149 # Check whether --with-system-libunwind was given.
10150 if test "${with_system_libunwind+set}" = set; then :
10151 withval
=$with_system_libunwind;
10154 # If system-libunwind was not specifically set, pick a default setting.
10155 if test x
$with_system_libunwind = x
; then
10157 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10158 *) with_system_libunwind
=no
;;
10161 # Based on system-libunwind and target, do we have ipinfo?
10162 if test x
$with_system_libunwind = xyes
; then
10164 ia64-
*-*) have_unwind_getipinfo
=no
;;
10165 *) have_unwind_getipinfo
=yes ;;
10168 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10171 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10172 *) have_unwind_getipinfo
=yes ;;
10177 if test x
$have_unwind_getipinfo = xyes
; then
10179 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10184 # --------------------------------------------------------
10185 # Build, host, and target specific configuration fragments
10186 # --------------------------------------------------------
10188 # Collect build-machine-specific information.
10189 .
${srcdir}/config.build
10191 # Collect host-machine-specific information.
10192 .
${srcdir}/config.
host
10196 # Collect target-machine-specific information.
10197 .
${srcdir}/config.gcc
10199 extra_objs
="${host_extra_objs} ${extra_objs}"
10200 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10202 # Default the target-machine variables that were not explicitly set.
10203 if test x
"$tm_file" = x
10204 then tm_file
=$cpu_type/$cpu_type.h
; fi
10206 if test x
"$extra_headers" = x
10207 then extra_headers
=; fi
10209 if test x
$md_file = x
10210 then md_file
=$cpu_type/$cpu_type.md
; fi
10212 if test x
$out_file = x
10213 then out_file
=$cpu_type/$cpu_type.c
; fi
10215 if test x
"$tmake_file" = x
10216 then tmake_file
=$cpu_type/t-
$cpu_type
10219 if test x
"$dwarf2" = xyes
10220 then tm_file
="$tm_file tm-dwarf2.h"
10223 # Say what files are being used for the output code and MD file.
10224 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10225 echo "Using \`$srcdir/config/$md_file' as machine description file."
10227 # If any of the xm_file variables contain nonexistent files, warn
10228 # about them and drop them.
10231 for x
in $build_xm_file; do
10232 if test -f $srcdir/config
/$x
10234 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10235 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10238 build_xm_file
="$bx"
10241 for x
in $host_xm_file; do
10242 if test -f $srcdir/config
/$x
10244 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10251 for x
in $xm_file; do
10252 if test -f $srcdir/config
/$x
10254 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10261 for f
in $tm_file; do
10264 if test $count = ax
; then
10265 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10267 echo "Using the following target machine macro files:"
10268 for f
in $tm_file; do
10269 echo " $srcdir/config/$f"
10273 if test x
$need_64bit_hwint = xyes
; then
10275 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10279 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10281 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10286 for f
in $host_xm_file; do
10289 if test $count = a
; then
10291 elif test $count = ax
; then
10292 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10294 echo "Using the following host machine macro files:"
10295 for f
in $host_xm_file; do
10296 echo " $srcdir/config/$f"
10299 echo "Using ${out_host_hook_obj} for host machine hooks."
10301 if test "$host_xm_file" != "$build_xm_file"; then
10303 for f
in $build_xm_file; do
10306 if test $count = a
; then
10308 elif test $count = ax
; then
10309 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10311 echo "Using the following build machine macro files:"
10312 for f
in $build_xm_file; do
10313 echo " $srcdir/config/$f"
10319 powerpc
*-*-darwin*)
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10321 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10322 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10328 #include <sys/cdefs.h>
10329 #include <sys/signal.h>
10330 #include <ucontext.h>
10331 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10334 if ac_fn_c_try_compile
"$LINENO"; then :
10335 gcc_cv_mcontext_underscores
=no
10337 gcc_cv_mcontext_underscores
=yes
10339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10342 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10343 if test $gcc_cv_mcontext_underscores = yes; then
10345 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10355 # Check if a valid thread package
10356 case ${enable_threads} in
10359 target_thread_file
='single'
10363 target_thread_file
='single'
10365 aix | dce | gnat | irix | posix | posix95 | rtems | \
10366 single | solaris | vxworks | win32 | mipssde
)
10367 target_thread_file
=${enable_threads}
10370 echo "${enable_threads} is an unknown thread package" 1>&2
10375 if test x
${thread_file} = x
; then
10376 # No thread file set by target-specific clauses in config.gcc,
10377 # so use file chosen by default logic above
10378 thread_file
=${target_thread_file}
10381 # Make gthr-default.h if we have a thread file.
10383 if test $thread_file != single
; then
10384 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10385 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10386 rm -f gthr-default.h-t
10388 mv -f gthr-default.h-t gthr-default.h
10390 gthread_flags
=-DHAVE_GTHR_DEFAULT
10399 if test x
$enable___cxa_atexit = xyes || \
10400 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10401 if test x
$host = x
$target; then
10403 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10404 # keyed to flag_use_cxa_atexit
10409 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10410 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10413 echo "__cxa_atexit can't be enabled on this target"
10419 # We can't check for __cxa_atexit when building a cross, so assume
10423 if test x
$use_cxa_atexit = xyes
; then
10425 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10430 # Look for a file containing extra machine modes.
10431 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10432 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10435 cat >>confdefs.h
<<_ACEOF
10436 #define EXTRA_MODES_FILE "config/$extra_modes"
10441 # Convert extra_options into a form suitable for Makefile use.
10443 for f
in $extra_options; do
10444 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10448 # auto-host.h is the file containing items generated by autoconf and is
10449 # the first file included by config.h.
10450 # If host=build, it is correct to have bconfig include auto-host.h
10451 # as well. If host!=build, we are in error and need to do more
10452 # work to find out the build config parameters.
10453 if test x
$host = x
$build
10455 build_auto
=auto-host.h
10457 # We create a subdir, then run autoconf in the subdir.
10458 # To prevent recursion we set host and build for the new
10459 # invocation of configure to the build for this invocation
10466 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10467 *) realsrcdir
=..
/${srcdir};;
10469 saved_CFLAGS
="${CFLAGS}"
10470 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10471 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10472 ${realsrcdir}/configure \
10473 --enable-languages=${enable_languages-all} \
10474 --target=$target_alias --host=$build_alias --build=$build_alias
10475 CFLAGS
="${saved_CFLAGS}"
10477 # We just finished tests for the build machine, so rename
10478 # the file auto-build.h in the gcc directory.
10479 mv auto-host.h ..
/auto-build.h
10482 build_auto
=auto-build.h
10486 tm_file
="${tm_file} defaults.h"
10487 tm_p_file
="${tm_p_file} tm-preds.h"
10488 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10489 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10490 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10491 # put this back in temporarily.
10492 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10498 # Compile in configure arguments.
10499 if test -f configargs.h
; then
10500 # Being re-configured.
10501 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10502 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10504 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10507 # Double all backslashes and backslash all quotes to turn
10508 # gcc_config_arguments into a C string.
10509 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10510 $gcc_config_arguments
10512 gcc_config_arguments_str
=`cat conftest.out`
10515 cat > configargs.h
<<EOF
10516 /* Generated automatically. */
10517 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10518 static const char thread_model[] = "$thread_file";
10520 static const struct {
10521 const char *name, *value;
10522 } configure_default_options[] = $configure_default_options;
10525 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10526 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10527 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10528 if test -f $srcdir/REVISION
; then
10529 gcc_REVISION
=`cat $srcdir/REVISION`
10533 cat > plugin-version.h
<<EOF
10534 #include "configargs.h"
10536 static char basever[] = "$gcc_BASEVER";
10537 static char datestamp[] = "$gcc_DATESTAMP";
10538 static char devphase[] = "$gcc_DEVPHASE";
10539 static char revision[] = "$gcc_REVISION";
10541 /* FIXME plugins: We should make the version information more precise.
10542 One way to do is to add a checksum. */
10544 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10545 devphase, revision,
10546 configuration_arguments};
10549 # Internationalization
10550 # If we haven't got the data from the intl directory,
10551 # assume NLS is disabled.
10560 if test -f ..
/intl
/config.intl
; then
10561 . ..
/intl
/config.intl
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10564 $as_echo_n "checking whether NLS is requested... " >&6; }
10565 if test x
"$USE_NLS" != xyes
; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570 $as_echo "yes" >&6; }
10572 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10576 $as_echo_n "checking for catalogs to be installed... " >&6; }
10577 # Look for .po and .gmo files in the source directory.
10580 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10581 # If there aren't any .gmo files the shell will give us the
10582 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10584 case "$cat" in *\
**)
10587 # The quadruple backslash is collapsed to a double backslash
10588 # by the backticks, then collapsed again by the double quotes,
10589 # leaving us with one backslash in the sed expression (right
10590 # before the dot that mustn't act as a wildcard).
10591 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10592 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10593 # The user is allowed to set LINGUAS to a list of languages to
10594 # install catalogs for. If it's empty that means "all of them."
10595 if test "x$LINGUAS" = x
; then
10596 CATALOGS
="$CATALOGS $cat"
10597 XLINGUAS
="$XLINGUAS $lang"
10599 case "$LINGUAS" in *$lang*)
10600 CATALOGS
="$CATALOGS $cat"
10601 XLINGUAS
="$XLINGUAS $lang"
10606 LINGUAS
="$XLINGUAS"
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10608 $as_echo "$LINGUAS" >&6; }
10621 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10622 # -liconv on the link line twice.
10623 case "$LIBINTL" in *$LIBICONV*)
10627 # Check whether --enable-secureplt was given.
10628 if test "${enable_secureplt+set}" = set; then :
10629 enableval
=$enable_secureplt;
10633 # Check whether --enable-cld was given.
10634 if test "${enable_cld+set}" = set; then :
10635 enableval
=$enable_cld;
10641 # Windows32 Registry support for specifying GCC installation paths.
10642 # Check whether --enable-win32-registry was given.
10643 if test "${enable_win32_registry+set}" = set; then :
10644 enableval
=$enable_win32_registry;
10649 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10650 if test "x$enable_win32_registry" != xno
; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10652 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10653 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10656 ac_func_search_save_LIBS
=$LIBS
10657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10666 char RegOpenKeyExA ();
10670 return RegOpenKeyExA ();
10675 for ac_lib
in '' advapi32
; do
10676 if test -z "$ac_lib"; then
10677 ac_res
="none required"
10680 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10682 if ac_fn_c_try_link
"$LINENO"; then :
10683 ac_cv_search_RegOpenKeyExA
=$ac_res
10685 rm -f core conftest.err conftest.
$ac_objext \
10687 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10691 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10694 ac_cv_search_RegOpenKeyExA
=no
10696 rm conftest.
$ac_ext
10697 LIBS
=$ac_func_search_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10700 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10701 ac_res
=$ac_cv_search_RegOpenKeyExA
10702 if test "$ac_res" != no
; then :
10703 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10706 enable_win32_registry
=no
10711 if test "x$enable_win32_registry" != xno
; then
10713 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10716 if test "x$enable_win32_registry" != xyes \
10717 && test "x$enable_win32_registry" != x
; then
10719 cat >>confdefs.h
<<_ACEOF
10720 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10728 # Get an absolute path to the GCC top-level source directory
10729 holddir
=`${PWDCMD-pwd}`
10731 topdir
=`${PWDCMD-pwd}`
10734 # Conditionalize the makefile for this host machine.
10736 for f
in ${host_xmake_file}
10738 if test -f ${srcdir}/config
/$f
10740 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10744 # Conditionalize the makefile for this target machine.
10746 for f
in ${tmake_file}
10748 if test -f ${srcdir}/config
/$f
10750 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10753 tmake_file
="${tmake_file_}"
10755 out_object_file
=`basename $out_file .c`.o
10757 tm_file_list
="options.h"
10758 tm_include_list
="options.h"
10759 for f
in $tm_file; do
10762 f
=`echo $f | sed 's/^..//'`
10763 tm_file_list
="${tm_file_list} $f"
10764 tm_include_list
="${tm_include_list} $f"
10767 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10768 tm_include_list
="${tm_include_list} $f"
10771 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10772 tm_include_list
="${tm_include_list} config/$f"
10779 for f
in $tm_p_file; do
10782 tm_p_file_list
="${tm_p_file_list} $f"
10783 tm_p_include_list
="${tm_p_include_list} $f"
10786 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10787 tm_p_include_list
="${tm_p_include_list} config/$f"
10793 for f
in $xm_file; do
10796 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10797 xm_include_list
="${xm_include_list} $f"
10800 xm_file_list
="${xm_file_list} $f"
10801 xm_include_list
="${xm_include_list} $f"
10804 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10805 xm_include_list
="${xm_include_list} config/$f"
10811 host_xm_include_list
=
10812 for f
in $host_xm_file; do
10815 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10816 host_xm_include_list
="${host_xm_include_list} $f"
10819 host_xm_file_list
="${host_xm_file_list} $f"
10820 host_xm_include_list
="${host_xm_include_list} $f"
10823 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10824 host_xm_include_list
="${host_xm_include_list} config/$f"
10829 build_xm_file_list
=
10830 for f
in $build_xm_file; do
10833 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10834 build_xm_include_list
="${build_xm_include_list} $f"
10836 auto-build.h | auto-host.h
)
10837 build_xm_file_list
="${build_xm_file_list} $f"
10838 build_xm_include_list
="${build_xm_include_list} $f"
10841 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10842 build_xm_include_list
="${build_xm_include_list} config/$f"
10847 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10848 # cross-compiler which does not use the native headers and libraries.
10849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10852 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10854 if test "x$with_build_sysroot" != x
; then
10855 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10857 # This value is used, even on a native system, because
10858 # CROSS_SYSTEM_HEADER_DIR is just
10859 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10860 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10863 if test x
$host != x
$target
10865 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10867 SYSTEM_HEADER_DIR
=$build_system_header_dir
10868 case "$host","$target" in
10869 # Darwin crosses can use the host system's libraries and headers,
10870 # because of the fat library support. Of course, it must be the
10871 # same version of Darwin on both sides. Allow the user to
10872 # just say --target=foo-darwin without a version number to mean
10873 # "the version on this system".
10874 *-*-darwin*,*-*-darwin*)
10875 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10876 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10877 if test $hostos = $targetos -o $targetos = darwin
; then
10879 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10884 i?
86-*-*,x86_64-
*-* \
10885 | powerpc
*-*-*,powerpc64
*-*-*)
10886 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10888 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10889 SYSTEM_HEADER_DIR
=$build_system_header_dir
10892 # If this is a cross-compiler that does not
10893 # have its own set of headers then define
10896 # If this is using newlib, without having the headers available now,
10897 # then define inhibit_libc in LIBGCC2_CFLAGS.
10898 # This prevents libgcc2 from containing any code which requires libc
10900 : ${inhibit_libc=false}
10901 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10902 test x
$with_newlib = xyes
; } &&
10903 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10908 # When building gcc with a cross-compiler, we need to adjust things so
10909 # that the generator programs are still built with the native compiler.
10910 # Also, we cannot run fixincludes.
10912 # These are the normal (build=host) settings:
10913 CC_FOR_BUILD
='$(CC)'
10914 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10915 BUILD_LDFLAGS
='$(LDFLAGS)'
10916 STMP_FIXINC
=stmp-fixinc
10918 # And these apply if build != host, or we are generating coverage data
10919 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10921 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10922 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
10925 # Expand extra_headers to include complete path.
10926 # This substitutes for lots of t-* files.
10927 extra_headers_list
=
10928 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10929 for file in ${extra_headers} ; do
10930 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10933 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10934 if test x
"$use_gcc_tgmath" = xyes
10935 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10938 # Define collect2 in Makefile.
10939 case $host_can_use_collect2 in
10941 *) collect2
='collect2$(exeext)' ;;
10945 # Add a definition of USE_COLLECT2 if system wants one.
10946 case $use_collect2 in
10947 no
) use_collect2
= ;;
10950 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
10951 xm_defines
="${xm_defines} USE_COLLECT2"
10952 case $host_can_use_collect2 in
10954 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
10960 # ---------------------------
10961 # Assembler & linker features
10962 # ---------------------------
10964 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10965 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10966 # However when ld-new is first executed from the build tree, libtool will
10967 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10968 # to the build tree. While doing this we need to use the previous-stage
10969 # linker, or we have an infinite loop. The presence of a shell script as
10970 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10971 # the gcc/collect-ld script. So we need to know how libtool works, or
10972 # exec-tool will fail.
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10978 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10983 macro_version
='2.2.7a'
10984 macro_revision
='1.3134'
10998 ltmain
="$ac_aux_dir/ltmain.sh"
11000 # Backslashify metacharacters that are still active within
11001 # double-quoted strings.
11002 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11004 # Same as above, but do not quote variable references.
11005 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11007 # Sed substitution to delay expansion of an escaped shell variable in a
11008 # double_quote_subst'ed string.
11009 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11011 # Sed substitution to delay expansion of an escaped single quote.
11012 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11014 # Sed substitution to avoid accidental globbing in evaled expressions
11015 no_glob_subst
='s/\*/\\\*/g'
11017 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11022 $as_echo_n "checking how to print strings... " >&6; }
11023 # Test print first, because it will be a builtin if present.
11024 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11030 # Use this function as a fallback that always works.
11031 func_fallback_echo ()
11033 eval 'cat <<_LTECHO_EOF
11037 ECHO='func_fallback_echo
'
11040 # func_echo_all arg...
11041 # Invoke $ECHO with all args, space-separated.
11048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11049 $as_echo "printf" >&6; } ;;
11050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11051 $as_echo "print -r" >&6; } ;;
11052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11053 $as_echo "cat" >&6; } ;;
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11071 if test "${ac_cv_path_SED+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11075 for ac_i in 1 2 3 4 5 6 7; do
11076 ac_script="$ac_script$as_nl$ac_script"
11078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11079 { ac_script=; unset ac_script;}
11080 if test -z "$SED"; then
11081 ac_path_SED_found=false
11082 # Loop through the user's path and
test for each of PROGNAME-LIST
11083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11084 for as_dir
in $PATH
11087 test -z "$as_dir" && as_dir
=.
11088 for ac_prog
in sed gsed
; do
11089 for ac_exec_ext
in '' $ac_executable_extensions; do
11090 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11091 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11092 # Check for GNU ac_path_SED and select it if it is found.
11093 # Check for GNU $ac_path_SED
11094 case `"$ac_path_SED" --version 2>&1` in
11096 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11099 $as_echo_n 0123456789 >"conftest.in"
11102 cat "conftest.in" "conftest.in" >"conftest.tmp"
11103 mv "conftest.tmp" "conftest.in"
11104 cp "conftest.in" "conftest.nl"
11105 $as_echo '' >> "conftest.nl"
11106 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11107 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11108 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11109 if test $ac_count -gt ${ac_path_SED_max-0}; then
11110 # Best one so far, save it but keep looking for a better one
11111 ac_cv_path_SED
="$ac_path_SED"
11112 ac_path_SED_max
=$ac_count
11114 # 10*(2^10) chars as input seems more than enough
11115 test $ac_count -gt 10 && break
11117 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11120 $ac_path_SED_found && break 3
11125 if test -z "$ac_cv_path_SED"; then
11126 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11129 ac_cv_path_SED
=$SED
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11134 $as_echo "$ac_cv_path_SED" >&6; }
11135 SED
="$ac_cv_path_SED"
11138 test -z "$SED" && SED
=sed
11139 Xsed
="$SED -e 1s/^X//"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11152 $as_echo_n "checking for fgrep... " >&6; }
11153 if test "${ac_cv_path_FGREP+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11156 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11157 then ac_cv_path_FGREP
="$GREP -F"
11159 if test -z "$FGREP"; then
11160 ac_path_FGREP_found
=false
11161 # Loop through the user's path and test for each of PROGNAME-LIST
11162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11163 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11166 test -z "$as_dir" && as_dir
=.
11167 for ac_prog
in fgrep
; do
11168 for ac_exec_ext
in '' $ac_executable_extensions; do
11169 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11170 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11171 # Check for GNU ac_path_FGREP and select it if it is found.
11172 # Check for GNU $ac_path_FGREP
11173 case `"$ac_path_FGREP" --version 2>&1` in
11175 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11178 $as_echo_n 0123456789 >"conftest.in"
11181 cat "conftest.in" "conftest.in" >"conftest.tmp"
11182 mv "conftest.tmp" "conftest.in"
11183 cp "conftest.in" "conftest.nl"
11184 $as_echo 'FGREP' >> "conftest.nl"
11185 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11186 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11187 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11188 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11189 # Best one so far, save it but keep looking for a better one
11190 ac_cv_path_FGREP
="$ac_path_FGREP"
11191 ac_path_FGREP_max
=$ac_count
11193 # 10*(2^10) chars as input seems more than enough
11194 test $ac_count -gt 10 && break
11196 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11199 $ac_path_FGREP_found && break 3
11204 if test -z "$ac_cv_path_FGREP"; then
11205 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11208 ac_cv_path_FGREP
=$FGREP
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11214 $as_echo "$ac_cv_path_FGREP" >&6; }
11215 FGREP
="$ac_cv_path_FGREP"
11218 test -z "$GREP" && GREP
=grep
11238 # Check whether --with-gnu-ld was given.
11239 if test "${with_gnu_ld+set}" = set; then :
11240 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11246 if test "$GCC" = yes; then
11247 # Check if gcc -print-prog-name=ld gives a path.
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11249 $as_echo_n "checking for ld used by $CC... " >&6; }
11252 # gcc leaves a trailing carriage return which upsets mingw
11253 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11255 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11258 # Accept absolute paths.
11260 re_direlt
='/[^/][^/]*/\.\./'
11261 # Canonicalize the pathname of ld
11262 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11263 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11264 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11266 test -z "$LD" && LD
="$ac_prog"
11269 # If it fails, then pretend we aren't using GCC.
11273 # If it is relative, then search for the first ld in PATH.
11274 with_gnu_ld
=unknown
11277 elif test "$with_gnu_ld" = yes; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11279 $as_echo_n "checking for GNU ld... " >&6; }
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11282 $as_echo_n "checking for non-GNU ld... " >&6; }
11284 if test "${lt_cv_path_LD+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11287 if test -z "$LD"; then
11288 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11289 for ac_dir
in $PATH; do
11291 test -z "$ac_dir" && ac_dir
=.
11292 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11293 lt_cv_path_LD
="$ac_dir/$ac_prog"
11294 # Check to see if the program is GNU ld. I'd rather use --version,
11295 # but apparently some variants of GNU ld only accept -v.
11296 # Break only if it was the GNU/non-GNU ld that we prefer.
11297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11298 *GNU
* |
*'with BFD'*)
11299 test "$with_gnu_ld" != no
&& break
11302 test "$with_gnu_ld" != yes && break
11309 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11313 LD
="$lt_cv_path_LD"
11314 if test -n "$LD"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11316 $as_echo "$LD" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11321 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11328 case `$LD -v 2>&1 </dev/null` in
11329 *GNU
* |
*'with BFD'*)
11330 lt_cv_prog_gnu_ld
=yes
11333 lt_cv_prog_gnu_ld
=no
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11339 with_gnu_ld
=$lt_cv_prog_gnu_ld
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11351 if test "${lt_cv_path_NM+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11354 if test -n "$NM"; then
11355 # Let the user override the test.
11356 lt_cv_path_NM
="$NM"
11358 lt_nm_to_check
="${ac_tool_prefix}nm"
11359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11360 lt_nm_to_check
="$lt_nm_to_check nm"
11362 for lt_tmp_nm
in $lt_nm_to_check; do
11363 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11364 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11366 test -z "$ac_dir" && ac_dir
=.
11367 tmp_nm
="$ac_dir/$lt_tmp_nm"
11368 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11369 # Check to see if the nm accepts a BSD-compat flag.
11370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11371 # nm: unknown option "B" ignored
11372 # Tru64's nm complains that /dev/null is an invalid object file
11373 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11374 */dev
/null
* |
*'Invalid file or object type'*)
11375 lt_cv_path_NM
="$tmp_nm -B"
11379 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11381 lt_cv_path_NM
="$tmp_nm -p"
11385 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11386 continue # so that we can try to find one that supports BSD flags
11395 : ${lt_cv_path_NM=no}
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11399 $as_echo "$lt_cv_path_NM" >&6; }
11400 if test "$lt_cv_path_NM" != "no"; then
11401 NM
="$lt_cv_path_NM"
11403 # Didn't find any BSD compatible name lister, look for dumpbin.
11404 if test -n "$DUMPBIN"; then :
11405 # Let the user override the test.
11407 if test -n "$ac_tool_prefix"; then
11408 for ac_prog
in dumpbin
"link -dump"
11410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11411 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11417 if test -n "$DUMPBIN"; then
11418 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11421 for as_dir
in $PATH
11424 test -z "$as_dir" && as_dir
=.
11425 for ac_exec_ext
in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 DUMPBIN
=$ac_cv_prog_DUMPBIN
11438 if test -n "$DUMPBIN"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11440 $as_echo "$DUMPBIN" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 test -n "$DUMPBIN" && break
11450 if test -z "$DUMPBIN"; then
11451 ac_ct_DUMPBIN
=$DUMPBIN
11452 for ac_prog
in dumpbin
"link -dump"
11454 # Extract the first word of "$ac_prog", so it can be a program name with args.
11455 set dummy
$ac_prog; ac_word
=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11461 if test -n "$ac_ct_DUMPBIN"; then
11462 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11465 for as_dir
in $PATH
11468 test -z "$as_dir" && as_dir
=.
11469 for ac_exec_ext
in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11482 if test -n "$ac_ct_DUMPBIN"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11484 $as_echo "$ac_ct_DUMPBIN" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11491 test -n "$ac_ct_DUMPBIN" && break
11494 if test "x$ac_ct_DUMPBIN" = x
; then
11497 case $cross_compiling:$ac_tool_warned in
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11501 ac_tool_warned
=yes ;;
11503 DUMPBIN
=$ac_ct_DUMPBIN
11507 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11509 DUMPBIN
="$DUMPBIN -symbols"
11517 if test "$DUMPBIN" != ":"; then
11521 test -z "$NM" && NM
=nm
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11529 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11530 if test "${lt_cv_nm_interface+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11533 lt_cv_nm_interface
="BSD nm"
11534 echo "int some_variable = 0;" > conftest.
$ac_ext
11535 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11536 (eval "$ac_compile" 2>conftest.err
)
11537 cat conftest.err
>&5
11538 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11539 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11540 cat conftest.err
>&5
11541 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11542 cat conftest.out
>&5
11543 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11544 lt_cv_nm_interface
="MS dumpbin"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11549 $as_echo "$lt_cv_nm_interface" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11552 $as_echo_n "checking whether ln -s works... " >&6; }
11554 if test "$LN_S" = "ln -s"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11559 $as_echo "no, using $LN_S" >&6; }
11562 # find the maximum length of command line arguments
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11564 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11565 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11573 # On DJGPP, this test can blow up pretty badly due to problems in libc
11574 # (any single argument exceeding 2000 bytes causes a buffer overrun
11575 # during glob expansion). Even if it were fixed, the result of this
11576 # check would be larger than it should be.
11577 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11581 # Under GNU Hurd, this test is not required because there is
11582 # no limit to the length of command line arguments.
11583 # Libtool will interpret -1 as no limit whatsoever
11584 lt_cv_sys_max_cmd_len
=-1;
11587 cygwin
* | mingw
* | cegcc
*)
11588 # On Win9x/ME, this test blows up -- it succeeds, but takes
11589 # about 5 minutes as the teststring grows exponentially.
11590 # Worse, since 9x/ME are not pre-emptively multitasking,
11591 # you end up with a "frozen" computer, even though with patience
11592 # the test eventually succeeds (with a max line length of 256k).
11593 # Instead, let's just punt: use the minimum linelength reported by
11594 # all of the supported platforms: 8192 (on NT/2K/XP).
11595 lt_cv_sys_max_cmd_len
=8192;
11599 # On MiNT this can take a long time and run out of memory.
11600 lt_cv_sys_max_cmd_len
=8192;
11604 # On AmigaOS with pdksh, this test takes hours, literally.
11605 # So we just punt and use a minimum line length of 8192.
11606 lt_cv_sys_max_cmd_len
=8192;
11609 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11610 # This has been around since 386BSD, at least. Likely further.
11611 if test -x /sbin
/sysctl
; then
11612 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11613 elif test -x /usr
/sbin
/sysctl
; then
11614 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11616 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11618 # And add a safety zone
11619 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11620 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11624 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11625 lt_cv_sys_max_cmd_len
=196608
11629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11631 # nice to cause kernel panics so lets avoid the loop below.
11632 # First set a reasonable default.
11633 lt_cv_sys_max_cmd_len
=16384
11635 if test -x /sbin
/sysconfig
; then
11636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11637 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11642 lt_cv_sys_max_cmd_len
=102400
11644 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11645 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11646 if test -n "$kargmax"; then
11647 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11649 lt_cv_sys_max_cmd_len
=32768
11653 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11654 if test -n "$lt_cv_sys_max_cmd_len"; then
11655 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11656 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11658 # Make teststring a little bigger before we do anything with it.
11659 # a 1K string should be a reasonable start.
11660 for i
in 1 2 3 4 5 6 7 8 ; do
11661 teststring
=$teststring$teststring
11663 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11664 # If test is not a shell built-in, we'll probably end up computing a
11665 # maximum length that is only half of the actual maximum length, but
11667 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11668 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11669 test $i != 17 # 1/2 MB should be enough
11672 teststring
=$teststring$teststring
11674 # Only check the string length outside the loop.
11675 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11677 # Add a significant safety factor because C++ compilers can tack on
11678 # massive amounts of additional arguments before passing them to the
11679 # linker. It appears as though 1/2 is a usable value.
11680 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11687 if test -n $lt_cv_sys_max_cmd_len ; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11692 $as_echo "none" >&6; }
11694 max_cmd_len
=$lt_cv_sys_max_cmd_len
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11707 # Try some XSI features
11709 ( _lt_dummy
="a/b/c"
11710 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11712 && eval 'test $(( 1 + 1 )) -eq 2 \
11713 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11716 $as_echo "$xsi_shell" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11720 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11722 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11724 && lt_shell_append=yes
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11726 $as_echo "$lt_shell_append" >&6; }
11729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11739 # test EBCDIC or ASCII
11740 case `echo X|tr X '\101'` in
11741 A) # ASCII based system
11742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11743 lt_SP2NL='tr \040 \012'
11744 lt_NL2SP='tr \015\012 \040\040'
11746 *) # EBCDIC based system
11747 lt_SP2NL='tr \100 \n'
11748 lt_NL2SP='tr \r\n \100\100'
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11761 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11762 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11763 $as_echo_n "(cached
) " >&6
11765 lt_cv_ld_reload_flag='-r'
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11768 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11769 reload_flag=$lt_cv_ld_reload_flag
11770 case $reload_flag in
11772 *) reload_flag=" $reload_flag" ;;
11774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11777 if test "$GCC" = yes; then
11778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11797 $as_echo_n "checking
for $ac_word...
" >&6; }
11798 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11799 $as_echo_n "(cached
) " >&6
11801 if test -n "$OBJDUMP"; then
11802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11821 OBJDUMP=$ac_cv_prog_OBJDUMP
11822 if test -n "$OBJDUMP"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11824 $as_echo "$OBJDUMP" >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11827 $as_echo "no
" >&6; }
11832 if test -z "$ac_cv_prog_OBJDUMP"; then
11833 ac_ct_OBJDUMP=$OBJDUMP
11834 # Extract the first word of "objdump
", so it can be a program name with args.
11835 set dummy objdump; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11837 $as_echo_n "checking
for $ac_word...
" >&6; }
11838 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11839 $as_echo_n "(cached
) " >&6
11841 if test -n "$ac_ct_OBJDUMP"; then
11842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11862 if test -n "$ac_ct_OBJDUMP"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11864 $as_echo "$ac_ct_OBJDUMP" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11867 $as_echo "no
" >&6; }
11870 if test "x
$ac_ct_OBJDUMP" = x; then
11873 case $cross_compiling:$ac_tool_warned in
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11876 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11877 ac_tool_warned=yes ;;
11879 OBJDUMP=$ac_ct_OBJDUMP
11882 OBJDUMP="$ac_cv_prog_OBJDUMP"
11885 test -z "$OBJDUMP" && OBJDUMP=objdump
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11896 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11897 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11898 $as_echo_n "(cached
) " >&6
11900 lt_cv_file_magic_cmd='$MAGIC_CMD'
11901 lt_cv_file_magic_test_file=
11902 lt_cv_deplibs_check_method='unknown'
11903 # Need to set the preceding variable on all platforms that support
11904 # interlibrary dependencies.
11905 # 'none' -- dependencies not supported.
11906 # `unknown' -- same as none, but documents that we really don't know.
11907 # 'pass_all' -- all dependencies passed with no checks.
11908 # 'test_compile' -- check by making test program.
11909 # 'file_magic [[regex]]' -- check by looking for files in library path
11910 # which responds to the $file_magic_cmd with a given extended regex.
11911 # If you have `file' or equivalent on your system and you're not sure
11912 # whether `pass_all' will *always* work, you probably want this one.
11916 lt_cv_deplibs_check_method=pass_all
11920 lt_cv_deplibs_check_method=pass_all
11924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11925 lt_cv_file_magic_cmd='/usr/bin/file -L'
11926 lt_cv_file_magic_test_file=/shlib/libc.so
11930 # func_win32_libid is a shell function defined in ltmain.sh
11931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11932 lt_cv_file_magic_cmd='func_win32_libid'
11936 # Base MSYS/MinGW do not provide the 'file' command needed by
11937 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11938 # unless we find 'file', for example because we are cross-compiling.
11939 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11940 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
11941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11942 lt_cv_file_magic_cmd='func_win32_libid'
11944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11945 lt_cv_file_magic_cmd='$OBJDUMP -f'
11950 # use the weaker test based on 'objdump'. See mingw*.
11951 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11952 lt_cv_file_magic_cmd='$OBJDUMP -f'
11955 darwin* | rhapsody*)
11956 lt_cv_deplibs_check_method=pass_all
11959 freebsd* | dragonfly*)
11960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11963 # Not sure whether the presence of OpenBSD here was a mistake.
11964 # Let's accept both of them until this is cleared up.
11965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11966 lt_cv_file_magic_cmd=/usr/bin/file
11967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11971 lt_cv_deplibs_check_method=pass_all
11976 lt_cv_deplibs_check_method=pass_all
11980 lt_cv_deplibs_check_method=pass_all
11983 hpux10.20* | hpux11*)
11984 lt_cv_file_magic_cmd=/usr/bin/file
11987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11991 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]'
11992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12006 irix5* | irix6* | nonstopux*)
12008 *-32|*"-32 ") libmagic=32-bit;;
12009 *-n32|*"-n32 ") libmagic=N32;;
12010 *-64|*"-64 ") libmagic=64-bit;;
12011 *) libmagic=never-match;;
12013 lt_cv_deplibs_check_method=pass_all
12016 # This must be Linux ELF.
12017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12018 lt_cv_deplibs_check_method=pass_all
12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12031 lt_cv_file_magic_cmd=/usr/bin/file
12032 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12036 lt_cv_deplibs_check_method=pass_all
12040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12047 osf3* | osf4* | osf5*)
12048 lt_cv_deplibs_check_method=pass_all
12052 lt_cv_deplibs_check_method=pass_all
12056 lt_cv_deplibs_check_method=pass_all
12059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12060 lt_cv_deplibs_check_method=pass_all
12064 case $host_vendor in
12066 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]'
12067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12070 lt_cv_deplibs_check_method=pass_all
12073 lt_cv_file_magic_cmd='/bin/file'
12074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12077 lt_cv_file_magic_cmd='/bin/file'
12078 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12079 lt_cv_file_magic_test_file=/lib/libc.so
12082 lt_cv_deplibs_check_method=pass_all
12085 lt_cv_deplibs_check_method=pass_all
12091 lt_cv_deplibs_check_method=pass_all
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12097 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12098 file_magic_cmd=$lt_cv_file_magic_cmd
12099 deplibs_check_method=$lt_cv_deplibs_check_method
12100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12113 if test -n "$ac_tool_prefix"; then
12114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12115 set dummy ${ac_tool_prefix}ar; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12117 $as_echo_n "checking
for $ac_word...
" >&6; }
12118 if test "${ac_cv_prog_AR+set}" = set; then :
12119 $as_echo_n "(cached
) " >&6
12121 if test -n "$AR"; then
12122 ac_cv_prog_AR="$AR" # Let the user override the test.
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_prog_AR="${ac_tool_prefix}ar"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12142 if test -n "$AR"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12144 $as_echo "$AR" >&6; }
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12147 $as_echo "no
" >&6; }
12152 if test -z "$ac_cv_prog_AR"; then
12154 # Extract the first word of "ar", so it can be a program name with args.
12155 set dummy ar; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12157 $as_echo_n "checking
for $ac_word...
" >&6; }
12158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12159 $as_echo_n "(cached
) " >&6
12161 if test -n "$ac_ct_AR"; then
12162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12171 ac_cv_prog_ac_ct_AR="ar"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12182 if test -n "$ac_ct_AR"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12184 $as_echo "$ac_ct_AR" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12187 $as_echo "no
" >&6; }
12190 if test "x
$ac_ct_AR" = x; then
12193 case $cross_compiling:$ac_tool_warned in
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12196 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12197 ac_tool_warned=yes ;;
12202 AR="$ac_cv_prog_AR"
12205 test -z "$AR" && AR=ar
12206 test -z "$AR_FLAGS" && AR_FLAGS=cru
12218 if test -n "$ac_tool_prefix"; then
12219 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12220 set dummy ${ac_tool_prefix}strip; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12222 $as_echo_n "checking
for $ac_word...
" >&6; }
12223 if test "${ac_cv_prog_STRIP+set}" = set; then :
12224 $as_echo_n "(cached
) " >&6
12226 if test -n "$STRIP"; then
12227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12246 STRIP=$ac_cv_prog_STRIP
12247 if test -n "$STRIP"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12249 $as_echo "$STRIP" >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12252 $as_echo "no
" >&6; }
12257 if test -z "$ac_cv_prog_STRIP"; then
12259 # Extract the first word of "strip
", so it can be a program name with args.
12260 set dummy strip; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12262 $as_echo_n "checking
for $ac_word...
" >&6; }
12263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12264 $as_echo_n "(cached
) " >&6
12266 if test -n "$ac_ct_STRIP"; then
12267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_ac_ct_STRIP="strip
"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12287 if test -n "$ac_ct_STRIP"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12289 $as_echo "$ac_ct_STRIP" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12292 $as_echo "no
" >&6; }
12295 if test "x
$ac_ct_STRIP" = x; then
12298 case $cross_compiling:$ac_tool_warned in
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12301 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12302 ac_tool_warned=yes ;;
12307 STRIP="$ac_cv_prog_STRIP"
12310 test -z "$STRIP" && STRIP=:
12317 if test -n "$ac_tool_prefix"; then
12318 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12321 $as_echo_n "checking
for $ac_word...
" >&6; }
12322 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12323 $as_echo_n "(cached
) " >&6
12325 if test -n "$RANLIB"; then
12326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12345 RANLIB=$ac_cv_prog_RANLIB
12346 if test -n "$RANLIB"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12348 $as_echo "$RANLIB" >&6; }
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12351 $as_echo "no
" >&6; }
12356 if test -z "$ac_cv_prog_RANLIB"; then
12357 ac_ct_RANLIB=$RANLIB
12358 # Extract the first word of "ranlib
", so it can be a program name with args.
12359 set dummy ranlib; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12361 $as_echo_n "checking
for $ac_word...
" >&6; }
12362 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12363 $as_echo_n "(cached
) " >&6
12365 if test -n "$ac_ct_RANLIB"; then
12366 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12385 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12386 if test -n "$ac_ct_RANLIB"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12388 $as_echo "$ac_ct_RANLIB" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12391 $as_echo "no
" >&6; }
12394 if test "x
$ac_ct_RANLIB" = x; then
12397 case $cross_compiling:$ac_tool_warned in
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12400 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12401 ac_tool_warned=yes ;;
12403 RANLIB=$ac_ct_RANLIB
12406 RANLIB="$ac_cv_prog_RANLIB"
12409 test -z "$RANLIB" && RANLIB=:
12416 # Determine commands to create old-style static archives.
12417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12418 old_postinstall_cmds='chmod 644 $oldlib'
12419 old_postuninstall_cmds=
12421 if test -n "$RANLIB"; then
12424 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12427 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12430 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12435 lock_old_archive_extraction=yes ;;
12437 lock_old_archive_extraction=no ;;
12478 # If no C compiler was specified, use CC.
12481 # If no C compiler flags were specified, use CFLAGS.
12482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12484 # Allow CC to be a program name with arguments.
12488 # Check for command to grab the raw symbol name followed by C symbol from nm.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12490 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12491 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12492 $as_echo_n "(cached
) " >&6
12495 # These are sane defaults that work on at least a few old systems.
12496 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12498 # Character class describing NM global symbol codes.
12499 symcode='[BCDEGRST]'
12501 # Regexp to match symbols that can be accessed directly from C.
12502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12504 # Define system-specific variables.
12509 cygwin* | mingw* | pw32* | cegcc*)
12510 symcode='[ABCDGISTW]'
12513 if test "$host_cpu" = ia64; then
12514 symcode='[ABCDEGRST]'
12517 irix* | nonstopux*)
12518 symcode='[BCDEGRST]'
12521 symcode='[BCDEGQRST]'
12532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12540 # If we're using GNU nm, then use its standard symbol codes.
12541 case `$NM -V 2>&1` in
12542 *GNU* | *'with BFD'*)
12543 symcode='[ABCDGIRSTW]' ;;
12546 # Transform an extracted symbol line into a proper C declaration.
12547 # Some systems (esp. on ia64) link data and code symbols differently,
12548 # so use this general approach.
12549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12551 # Transform an extracted symbol line into symbol name and symbol address
12552 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12553 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'"
12555 # Handle CRLF in mingw tool chain
12559 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12563 # Try without a prefix underscore, then with it.
12564 for ac_symprfx in "" "_
"; do
12566 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12567 symxfrm="\\1 $ac_symprfx\\2 \\2"
12569 # Write the raw and C identifiers.
12570 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12571 # Fake it for dumpbin and say T for any non-static function
12572 # and D for any global variable.
12573 # Also find C++ and __fastcall symbols from MSVC++,
12574 # which start with @ or ?.
12575 lt_cv_sys_global_symbol_pipe="$AWK '"\
12576 " {last_section=section; section=\$ 3};"\
12577 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12578 " \$ 0!~/External *\|/{next};"\
12579 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12580 " {if(hide[section]) next};"\
12581 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12582 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12583 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12584 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12585 " ' prfx
=^
$ac_symprfx"
12587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12590 # Check to see that the pipe works correctly.
12594 cat > conftest.$ac_ext <<_LT_EOF
12599 void nm_test_func(void);
12600 void nm_test_func(void){}
12604 int main(){nm_test_var='a';nm_test_func();return(0);}
12607 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12608 (eval $ac_compile) 2>&5
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12611 test $ac_status = 0; }; then
12612 # Now try to grab the symbols.
12614 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12615 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12617 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12618 test $ac_status = 0; } && test -s "$nlist"; then
12619 # Try sorting and uniquifying the output.
12620 if sort "$nlist" | uniq > "$nlist"T; then
12621 mv -f "$nlist"T "$nlist"
12626 # Make sure that we snagged all the symbols we need.
12627 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12628 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12629 cat <<_LT_EOF > conftest.$ac_ext
12635 # Now generate the symbol file.
12636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12638 cat <<_LT_EOF >> conftest.$ac_ext
12640 /* The mapping between symbol names and symbols. */
12645 lt__PROGRAM__LTX_preloaded_symbols[] =
12647 { "@PROGRAM@
", (void *) 0 },
12649 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12650 cat <<\_LT_EOF >> conftest.$ac_ext
12654 /* This works around a problem in FreeBSD linker */
12655 #ifdef FREEBSD_WORKAROUND
12656 static const void *lt_preloaded_setup() {
12657 return lt__PROGRAM__LTX_preloaded_symbols;
12665 # Now try linking the two files.
12666 mv conftest.$ac_objext conftstm.$ac_objext
12667 lt_save_LIBS="$LIBS"
12668 lt_save_CFLAGS="$CFLAGS"
12669 LIBS="conftstm.
$ac_objext"
12670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12671 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12672 (eval $ac_link) 2>&5
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12675 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12678 LIBS="$lt_save_LIBS"
12679 CFLAGS="$lt_save_CFLAGS"
12681 echo "cannot
find nm_test_func
in $nlist" >&5
12684 echo "cannot
find nm_test_var
in $nlist" >&5
12687 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12690 echo "$progname: failed program was
:" >&5
12691 cat conftest.$ac_ext >&5
12693 rm -rf conftest* conftst*
12695 # Do not use the global_symbol_pipe unless it works.
12696 if test "$pipe_works" = yes; then
12699 lt_cv_sys_global_symbol_pipe=
12705 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12706 lt_cv_sys_global_symbol_to_cdecl=
12708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12710 $as_echo "failed
" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12713 $as_echo "ok
" >&6; }
12737 # Check whether --enable-libtool-lock was given.
12738 if test "${enable_libtool_lock+set}" = set; then :
12739 enableval=$enable_libtool_lock;
12742 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12744 # Some flags need to be propagated to the compiler or linker for good
12748 # Find out which ABI we are using.
12749 echo 'int i;' > conftest.$ac_ext
12750 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12751 (eval $ac_compile) 2>&5
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12754 test $ac_status = 0; }; then
12755 case `/usr/bin/file conftest.$ac_objext` in
12757 HPUX_IA64_MODE="32"
12760 HPUX_IA64_MODE="64"
12767 # Find out which ABI we are using.
12768 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12769 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12770 (eval $ac_compile) 2>&5
12772 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12773 test $ac_status = 0; }; then
12774 if test "$lt_cv_prog_gnu_ld" = yes; then
12775 case `/usr/bin/file conftest.$ac_objext` in
12777 LD="${LD-ld} -melf32bsmip"
12780 LD="${LD-ld} -melf32bmipn32"
12783 LD="${LD-ld} -melf64bmip"
12787 case `/usr/bin/file conftest.$ac_objext` in
12803 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12804 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12805 # Find out which ABI we are using.
12806 echo 'int i;' > conftest.$ac_ext
12807 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12808 (eval $ac_compile) 2>&5
12810 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12811 test $ac_status = 0; }; then
12812 case `/usr/bin/file conftest.o` in
12815 x86_64-*kfreebsd*-gnu)
12816 LD="${LD-ld} -m elf_i386_fbsd
"
12819 LD="${LD-ld} -m elf_i386
"
12821 ppc64-*linux*|powerpc64-*linux*)
12822 LD="${LD-ld} -m elf32ppclinux
"
12825 LD="${LD-ld} -m elf_s390
"
12828 LD="${LD-ld} -m elf32_sparc
"
12834 x86_64-*kfreebsd*-gnu)
12835 LD="${LD-ld} -m elf_x86_64_fbsd
"
12838 LD="${LD-ld} -m elf_x86_64
"
12840 ppc*-*linux*|powerpc*-*linux*)
12841 LD="${LD-ld} -m elf64ppc
"
12843 s390*-*linux*|s390*-*tpf*)
12844 LD="${LD-ld} -m elf64_s390
"
12847 LD="${LD-ld} -m elf64_sparc
"
12857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858 SAVE_CFLAGS="$CFLAGS"
12859 CFLAGS="$CFLAGS -belf"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12861 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12862 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12863 $as_echo_n "(cached
) " >&6
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 lt_cv_cc_needs_belf=yes
12885 lt_cv_cc_needs_belf=no
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12890 ac_cpp='$CPP $CPPFLAGS'
12891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12897 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12900 CFLAGS="$SAVE_CFLAGS"
12904 # Find out which ABI we are using.
12905 echo 'int i;' > conftest.$ac_ext
12906 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12907 (eval $ac_compile) 2>&5
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12910 test $ac_status = 0; }; then
12911 case `/usr/bin/file conftest.o` in
12913 case $lt_cv_prog_gnu_ld in
12914 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12928 need_locks="$enable_libtool_lock"
12932 rhapsody* | darwin*)
12933 if test -n "$ac_tool_prefix"; then
12934 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
12935 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12937 $as_echo_n "checking
for $ac_word...
" >&6; }
12938 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12939 $as_echo_n "(cached
) " >&6
12941 if test -n "$DSYMUTIL"; then
12942 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12961 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12962 if test -n "$DSYMUTIL"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12964 $as_echo "$DSYMUTIL" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12967 $as_echo "no
" >&6; }
12972 if test -z "$ac_cv_prog_DSYMUTIL"; then
12973 ac_ct_DSYMUTIL=$DSYMUTIL
12974 # Extract the first word of "dsymutil
", so it can be a program name with args.
12975 set dummy dsymutil; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12977 $as_echo_n "checking
for $ac_word...
" >&6; }
12978 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12979 $as_echo_n "(cached
) " >&6
12981 if test -n "$ac_ct_DSYMUTIL"; then
12982 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13001 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13002 if test -n "$ac_ct_DSYMUTIL"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13004 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13007 $as_echo "no
" >&6; }
13010 if test "x
$ac_ct_DSYMUTIL" = x; then
13013 case $cross_compiling:$ac_tool_warned in
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13016 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13017 ac_tool_warned=yes ;;
13019 DSYMUTIL=$ac_ct_DSYMUTIL
13022 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13025 if test -n "$ac_tool_prefix"; then
13026 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13027 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13029 $as_echo_n "checking
for $ac_word...
" >&6; }
13030 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13031 $as_echo_n "(cached
) " >&6
13033 if test -n "$NMEDIT"; then
13034 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13053 NMEDIT=$ac_cv_prog_NMEDIT
13054 if test -n "$NMEDIT"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13056 $as_echo "$NMEDIT" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13059 $as_echo "no
" >&6; }
13064 if test -z "$ac_cv_prog_NMEDIT"; then
13065 ac_ct_NMEDIT=$NMEDIT
13066 # Extract the first word of "nmedit
", so it can be a program name with args.
13067 set dummy nmedit; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13069 $as_echo_n "checking
for $ac_word...
" >&6; }
13070 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13071 $as_echo_n "(cached
) " >&6
13073 if test -n "$ac_ct_NMEDIT"; then
13074 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13083 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13093 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13094 if test -n "$ac_ct_NMEDIT"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13096 $as_echo "$ac_ct_NMEDIT" >&6; }
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13099 $as_echo "no
" >&6; }
13102 if test "x
$ac_ct_NMEDIT" = x; then
13105 case $cross_compiling:$ac_tool_warned in
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13108 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13109 ac_tool_warned=yes ;;
13111 NMEDIT=$ac_ct_NMEDIT
13114 NMEDIT="$ac_cv_prog_NMEDIT"
13117 if test -n "$ac_tool_prefix"; then
13118 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13119 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13121 $as_echo_n "checking
for $ac_word...
" >&6; }
13122 if test "${ac_cv_prog_LIPO+set}" = set; then :
13123 $as_echo_n "(cached
) " >&6
13125 if test -n "$LIPO"; then
13126 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13145 LIPO=$ac_cv_prog_LIPO
13146 if test -n "$LIPO"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13148 $as_echo "$LIPO" >&6; }
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13151 $as_echo "no
" >&6; }
13156 if test -z "$ac_cv_prog_LIPO"; then
13158 # Extract the first word of "lipo
", so it can be a program name with args.
13159 set dummy lipo; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13161 $as_echo_n "checking
for $ac_word...
" >&6; }
13162 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13163 $as_echo_n "(cached
) " >&6
13165 if test -n "$ac_ct_LIPO"; then
13166 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175 ac_cv_prog_ac_ct_LIPO="lipo
"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13185 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13186 if test -n "$ac_ct_LIPO"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13188 $as_echo "$ac_ct_LIPO" >&6; }
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13191 $as_echo "no
" >&6; }
13194 if test "x
$ac_ct_LIPO" = x; then
13197 case $cross_compiling:$ac_tool_warned in
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13200 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13201 ac_tool_warned=yes ;;
13206 LIPO="$ac_cv_prog_LIPO"
13209 if test -n "$ac_tool_prefix"; then
13210 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13211 set dummy ${ac_tool_prefix}otool; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13213 $as_echo_n "checking
for $ac_word...
" >&6; }
13214 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13215 $as_echo_n "(cached
) " >&6
13217 if test -n "$OTOOL"; then
13218 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13237 OTOOL=$ac_cv_prog_OTOOL
13238 if test -n "$OTOOL"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13240 $as_echo "$OTOOL" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13243 $as_echo "no
" >&6; }
13248 if test -z "$ac_cv_prog_OTOOL"; then
13250 # Extract the first word of "otool
", so it can be a program name with args.
13251 set dummy otool; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13253 $as_echo_n "checking
for $ac_word...
" >&6; }
13254 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13255 $as_echo_n "(cached
) " >&6
13257 if test -n "$ac_ct_OTOOL"; then
13258 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_ac_ct_OTOOL="otool
"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13278 if test -n "$ac_ct_OTOOL"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13280 $as_echo "$ac_ct_OTOOL" >&6; }
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13283 $as_echo "no
" >&6; }
13286 if test "x
$ac_ct_OTOOL" = x; then
13289 case $cross_compiling:$ac_tool_warned in
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13292 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13293 ac_tool_warned=yes ;;
13298 OTOOL="$ac_cv_prog_OTOOL"
13301 if test -n "$ac_tool_prefix"; then
13302 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13303 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13305 $as_echo_n "checking
for $ac_word...
" >&6; }
13306 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13307 $as_echo_n "(cached
) " >&6
13309 if test -n "$OTOOL64"; then
13310 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13329 OTOOL64=$ac_cv_prog_OTOOL64
13330 if test -n "$OTOOL64"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13332 $as_echo "$OTOOL64" >&6; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13335 $as_echo "no
" >&6; }
13340 if test -z "$ac_cv_prog_OTOOL64"; then
13341 ac_ct_OTOOL64=$OTOOL64
13342 # Extract the first word of "otool64
", so it can be a program name with args.
13343 set dummy otool64; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13345 $as_echo_n "checking
for $ac_word...
" >&6; }
13346 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13347 $as_echo_n "(cached
) " >&6
13349 if test -n "$ac_ct_OTOOL64"; then
13350 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13369 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13370 if test -n "$ac_ct_OTOOL64"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13372 $as_echo "$ac_ct_OTOOL64" >&6; }
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13375 $as_echo "no
" >&6; }
13378 if test "x
$ac_ct_OTOOL64" = x; then
13381 case $cross_compiling:$ac_tool_warned in
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13384 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13385 ac_tool_warned=yes ;;
13387 OTOOL64=$ac_ct_OTOOL64
13390 OTOOL64="$ac_cv_prog_OTOOL64"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13420 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13421 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13422 $as_echo_n "(cached
) " >&6
13424 lt_cv_apple_cc_single_mod=no
13425 if test -z "${LT_MULTI_MODULE}"; then
13426 # By default we will add the -single_module flag. You can override
13427 # by either setting the environment variable LT_MULTI_MODULE
13428 # non-empty at configure time, or by adding -multi_module to the
13430 rm -rf libconftest.dylib*
13431 echo "int foo
(void
){return 1;}" > conftest.c
13432 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13433 -dynamiclib -Wl,-single_module conftest.c
" >&5
13434 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13435 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13437 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13438 lt_cv_apple_cc_single_mod=yes
13440 cat conftest.err >&5
13442 rm -rf libconftest.dylib*
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13449 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13450 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13451 $as_echo_n "(cached
) " >&6
13453 lt_cv_ld_exported_symbols_list=no
13454 save_LDFLAGS=$LDFLAGS
13455 echo "_main
" > conftest.sym
13456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 lt_cv_ld_exported_symbols_list=yes
13471 lt_cv_ld_exported_symbols_list=no
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 LDFLAGS="$save_LDFLAGS"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13479 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13481 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13482 if test "${lt_cv_ld_force_load+set}" = set; then :
13483 $as_echo_n "(cached
) " >&6
13485 lt_cv_ld_force_load=no
13486 cat > conftest.c << _LT_EOF
13487 int forced_loaded() { return 2;}
13489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13491 echo "$AR cru libconftest.a conftest.o
" >&5
13492 $AR cru libconftest.a conftest.o 2>&5
13493 cat > conftest.c << _LT_EOF
13494 int main() { return 0;}
13496 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13497 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13499 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13500 lt_cv_ld_force_load=yes
13502 cat conftest.err >&5
13504 rm -f conftest.err libconftest.a conftest conftest.c
13505 rm -rf conftest.dSYM
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13509 $as_echo "$lt_cv_ld_force_load" >&6; }
13511 rhapsody* | darwin1.[012])
13512 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13515 darwin*) # darwin 5.x on
13516 # if running on 10.5 or later, the deployment target defaults
13517 # to the OS version, if on x86, and 10.4, the deployment
13518 # target defaults to 10.4. Don't you love it?
13519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13523 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13529 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13530 _lt_dar_single_mod='$single_module'
13532 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13533 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13537 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13538 _lt_dsymutil='~$DSYMUTIL $lib || :'
13545 for ac_header in dlfcn.h
13547 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13548 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_DLFCN_H 1
13568 enable_win32_dll=no
13571 # Check whether --enable-shared was given.
13572 if test "${enable_shared+set}" = set; then :
13573 enableval=$enable_shared; p=${PACKAGE-default}
13575 yes) enable_shared=yes ;;
13576 no) enable_shared=no ;;
13579 # Look at the argument we got. We use all the common list separators.
13580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13581 for pkg in $enableval; do
13583 if test "X
$pkg" = "X
$p"; then
13602 # Check whether --enable-static was given.
13603 if test "${enable_static+set}" = set; then :
13604 enableval=$enable_static; p=${PACKAGE-default}
13606 yes) enable_static=yes ;;
13607 no) enable_static=no ;;
13610 # Look at the argument we got. We use all the common list separators.
13611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13612 for pkg in $enableval; do
13614 if test "X
$pkg" = "X
$p"; then
13634 # Check whether --with-pic was given.
13635 if test "${with_pic+set}" = set; then :
13636 withval=$with_pic; pic_mode="$withval"
13642 test -z "$pic_mode" && pic_mode=default
13650 # Check whether --enable-fast-install was given.
13651 if test "${enable_fast_install+set}" = set; then :
13652 enableval=$enable_fast_install; p=${PACKAGE-default}
13654 yes) enable_fast_install=yes ;;
13655 no) enable_fast_install=no ;;
13657 enable_fast_install=no
13658 # Look at the argument we got. We use all the common list separators.
13659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13660 for pkg in $enableval; do
13662 if test "X
$pkg" = "X
$p"; then
13663 enable_fast_install=yes
13670 enable_fast_install=yes
13683 # This can be used to rebuild libtool when needed
13684 LIBTOOL_DEPS="$ltmain"
13686 # Always use our own libtool.
13687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13714 test -z "$LN_S" && LN_S="ln -s"
13729 if test -n "${ZSH_VERSION+set}" ; then
13730 setopt NO_GLOB_SUBST
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13734 $as_echo_n "checking
for objdir...
" >&6; }
13735 if test "${lt_cv_objdir+set}" = set; then :
13736 $as_echo_n "(cached
) " >&6
13738 rm -f .libs 2>/dev/null
13739 mkdir .libs 2>/dev/null
13740 if test -d .libs; then
13743 # MS-DOS does not allow filenames that begin with a dot.
13746 rmdir .libs 2>/dev/null
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13749 $as_echo "$lt_cv_objdir" >&6; }
13750 objdir=$lt_cv_objdir
13756 cat >>confdefs.h <<_ACEOF
13757 #define LT_OBJDIR "$lt_cv_objdir/"
13765 # AIX sometimes has problems with the GCC collect2 program. For some
13766 # reason, if we set the COLLECT_NAMES environment variable, the problems
13767 # vanish in a puff of smoke.
13768 if test "X
${COLLECT_NAMES+set}" != Xset; then
13770 export COLLECT_NAMES
13775 # Global variables:
13777 can_build_shared=yes
13779 # All known linkers require a `.a' archive for static linking (except MSVC,
13780 # which needs '.lib').
13783 with_gnu_ld="$lt_cv_prog_gnu_ld"
13786 old_CFLAGS="$CFLAGS"
13788 # Set sane defaults for various variables
13789 test -z "$CC" && CC=cc
13790 test -z "$LTCC" && LTCC=$CC
13791 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13792 test -z "$LD" && LD=ld
13793 test -z "$ac_objext" && ac_objext=o
13795 for cc_temp in $compiler""; do
13797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13803 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13806 # Only perform the check for file, if the check method requires it
13807 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13808 case $deplibs_check_method in
13810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13812 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13814 $as_echo_n "(cached
) " >&6
13818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13821 lt_save_MAGIC_CMD="$MAGIC_CMD"
13822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13823 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13824 for ac_dir in $ac_dummy; do
13826 test -z "$ac_dir" && ac_dir=.
13827 if test -f $ac_dir/${ac_tool_prefix}file; then
13828 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13829 if test -n "$file_magic_test_file"; then
13830 case $deplibs_check_method in
13832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13835 $EGREP "$file_magic_regex" > /dev/null; then
13840 *** Warning: the command libtool uses to detect shared libraries,
13841 *** $file_magic_cmd, produces output that libtool cannot recognize.
13842 *** The result is that libtool may fail to recognize shared libraries
13843 *** as such. This will affect the creation of libtool libraries that
13844 *** depend on shared libraries, but programs linked with such libtool
13845 *** libraries will work regardless of this problem. Nevertheless, you
13846 *** may want to report the problem to your system manager and/or to
13847 *** bug-libtool@gnu.org
13857 MAGIC_CMD="$lt_save_MAGIC_CMD"
13862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13863 if test -n "$MAGIC_CMD"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13865 $as_echo "$MAGIC_CMD" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13868 $as_echo "no
" >&6; }
13875 if test -z "$lt_cv_path_MAGIC_CMD"; then
13876 if test -n "$ac_tool_prefix"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13878 $as_echo_n "checking
for file...
" >&6; }
13879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13880 $as_echo_n "(cached
) " >&6
13884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13887 lt_save_MAGIC_CMD="$MAGIC_CMD"
13888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13889 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13890 for ac_dir in $ac_dummy; do
13892 test -z "$ac_dir" && ac_dir=.
13893 if test -f $ac_dir/file; then
13894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13895 if test -n "$file_magic_test_file"; then
13896 case $deplibs_check_method in
13898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13901 $EGREP "$file_magic_regex" > /dev/null; then
13906 *** Warning: the command libtool uses to detect shared libraries,
13907 *** $file_magic_cmd, produces output that libtool cannot recognize.
13908 *** The result is that libtool may fail to recognize shared libraries
13909 *** as such. This will affect the creation of libtool libraries that
13910 *** depend on shared libraries, but programs linked with such libtool
13911 *** libraries will work regardless of this problem. Nevertheless, you
13912 *** may want to report the problem to your system manager and/or to
13913 *** bug-libtool@gnu.org
13923 MAGIC_CMD="$lt_save_MAGIC_CMD"
13928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13929 if test -n "$MAGIC_CMD"; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13931 $as_echo "$MAGIC_CMD" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13934 $as_echo "no
" >&6; }
13947 # Use C for the default configuration in the libtool script
13951 ac_cpp='$CPP $CPPFLAGS'
13952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957 # Source file extension for C test sources.
13960 # Object file extension for compiled C test sources.
13964 # Code to be used in simple compile tests
13965 lt_simple_compile_test_code="int some_variable
= 0;"
13967 # Code to be used in simple link tests
13968 lt_simple_link_test_code='int main(){return(0);}'
13976 # If no C compiler was specified, use CC.
13979 # If no C compiler flags were specified, use CFLAGS.
13980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13982 # Allow CC to be a program name with arguments.
13985 # Save the default compiler, since it gets overwritten when the other
13986 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13987 compiler_DEFAULT=$CC
13989 # save warnings/boilerplate of simple test code
13990 ac_outfile=conftest.$ac_objext
13991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13993 _lt_compiler_boilerplate=`cat conftest.err`
13996 ac_outfile=conftest.$ac_objext
13997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13999 _lt_linker_boilerplate=`cat conftest.err`
14004 ## There is no encapsulation within the following macros, do not change
14005 ## the running order or otherwise move them around unless you know exactly
14006 ## what you are doing...
14007 if test -n "$compiler"; then
14009 lt_prog_compiler_no_builtin_flag=
14011 if test "$GCC" = yes; then
14012 case $cc_basename in
14014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14020 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14021 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14022 $as_echo_n "(cached
) " >&6
14024 lt_cv_prog_compiler_rtti_exceptions=no
14025 ac_outfile=conftest.$ac_objext
14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 lt_compiler_flag="-fno-rtti -fno-exceptions"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.
", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 # The option is referenced via a variable to avoid confusing sed.
14033 lt_compile=`echo "$ac_compile" | $SED \
14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036 -e 's:$: $lt_compiler_flag:'`
14037 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14038 (eval "$lt_compile" 2>conftest.err)
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14042 if (exit $ac_status) && test -s "$ac_outfile"; then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings other than the usual output.
14045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_rtti_exceptions=yes
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14055 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14057 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14070 lt_prog_compiler_wl=
14071 lt_prog_compiler_pic=
14072 lt_prog_compiler_static=
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14075 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14077 if test "$GCC" = yes; then
14078 lt_prog_compiler_wl='-Wl,'
14079 lt_prog_compiler_static='-static'
14083 # All AIX code is PIC.
14084 if test "$host_cpu" = ia64; then
14085 # AIX 5 now supports IA64 processor
14086 lt_prog_compiler_static='-Bstatic'
14093 # see comment about AmigaOS4 .so support
14094 lt_prog_compiler_pic='-fPIC'
14097 # FIXME: we need at least 68020 code to build shared libraries, but
14098 # adding the `-m68020' flag to GCC prevents building anything better,
14100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14106 # PIC is the default for these OSes.
14109 mingw* | cygwin* | pw32* | os2* | cegcc*)
14110 # This hack is so that the source file can tell whether it is being
14111 # built for inclusion in a dll (and should export symbols for example).
14112 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14113 # (--disable-auto-import) libraries
14114 lt_prog_compiler_pic='-DDLL_EXPORT'
14117 darwin* | rhapsody*)
14118 # PIC is the default on this platform
14119 # Common symbols not allowed in MH_DYLIB files
14120 lt_prog_compiler_pic='-fno-common'
14124 # PIC is the default for Haiku.
14125 # The "-static" flag exists, but is broken.
14126 lt_prog_compiler_static=
14130 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14131 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14132 # sets the default TLS model and affects inlining.
14138 lt_prog_compiler_pic='-fPIC'
14144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14145 # Instead, we relocate shared libraries at runtime.
14149 # Just because we use GCC doesn't mean we suddenly get shared libraries
14150 # on systems that don't support them.
14151 lt_prog_compiler_can_build_shared=no
14156 # QNX uses GNU C++, but need to define -shared option too, otherwise
14157 # it will coredump.
14158 lt_prog_compiler_pic='-fPIC -shared'
14162 if test -d /usr/nec; then
14163 lt_prog_compiler_pic=-Kconform_pic
14168 lt_prog_compiler_pic='-fPIC'
14172 case $cc_basename in
14173 nvcc*) # Cuda Compiler Driver 2.2
14174 lt_prog_compiler_wl='-Xlinker '
14175 lt_prog_compiler_pic='-Xcompiler -fPIC'
14179 # PORTME Check for flag to pass linker flags through the system compiler.
14182 lt_prog_compiler_wl='-Wl,'
14183 if test "$host_cpu" = ia64; then
14184 # AIX 5 now supports IA64 processor
14185 lt_prog_compiler_static='-Bstatic'
14187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14191 mingw* | cygwin* | pw32* | os2* | cegcc*)
14192 # This hack is so that the source file can tell whether it is being
14193 # built for inclusion in a dll (and should export symbols for example).
14194 lt_prog_compiler_pic='-DDLL_EXPORT'
14197 hpux9* | hpux10* | hpux11*)
14198 lt_prog_compiler_wl='-Wl,'
14199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14200 # not for PA HP-UX.
14206 lt_prog_compiler_pic='+Z'
14209 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14210 lt_prog_compiler_static='${wl}-a ${wl}archive'
14213 irix5* | irix6* | nonstopux*)
14214 lt_prog_compiler_wl='-Wl,'
14215 # PIC (with -KPIC) is the default.
14216 lt_prog_compiler_static='-non_shared'
14219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14220 case $cc_basename in
14221 # old Intel for x86_64 which still supported -KPIC.
14223 lt_prog_compiler_wl='-Wl,'
14224 lt_prog_compiler_pic='-KPIC'
14225 lt_prog_compiler_static='-static'
14227 # icc used to be incompatible with GCC.
14228 # ICC 10 doesn't accept -KPIC any more.
14230 lt_prog_compiler_wl='-Wl,'
14231 lt_prog_compiler_pic='-fPIC'
14232 lt_prog_compiler_static='-static'
14234 # Lahey Fortran 8.1.
14236 lt_prog_compiler_wl='-Wl,'
14237 lt_prog_compiler_pic='--shared'
14238 lt_prog_compiler_static='--static'
14240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14241 # Portland Group compilers (*not* the Pentium gcc compiler,
14242 # which looks to be a dead project)
14243 lt_prog_compiler_wl='-Wl,'
14244 lt_prog_compiler_pic='-fpic'
14245 lt_prog_compiler_static='-Bstatic'
14248 lt_prog_compiler_wl='-Wl,'
14249 # All Alpha code is PIC.
14250 lt_prog_compiler_static='-non_shared'
14252 xl* | bgxl* | bgf* | mpixl*)
14253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14254 lt_prog_compiler_wl='-Wl,'
14255 lt_prog_compiler_pic='-qpic'
14256 lt_prog_compiler_static='-qstaticlink'
14259 case `$CC -V 2>&1 | sed 5q` in
14260 *Sun\ F* | *Sun*Fortran*)
14261 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14262 lt_prog_compiler_pic='-KPIC'
14263 lt_prog_compiler_static='-Bstatic'
14264 lt_prog_compiler_wl=''
14268 lt_prog_compiler_pic='-KPIC'
14269 lt_prog_compiler_static='-Bstatic'
14270 lt_prog_compiler_wl='-Wl,'
14278 lt_prog_compiler_pic='-KPIC'
14279 lt_prog_compiler_static='-Bstatic'
14283 # QNX uses GNU C++, but need to define -shared option too, otherwise
14284 # it will coredump.
14285 lt_prog_compiler_pic='-fPIC -shared'
14288 osf3* | osf4* | osf5*)
14289 lt_prog_compiler_wl='-Wl,'
14290 # All OSF/1 code is PIC.
14291 lt_prog_compiler_static='-non_shared'
14295 lt_prog_compiler_static='-non_shared'
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-Bstatic'
14301 case $cc_basename in
14302 f77* | f90* | f95*)
14303 lt_prog_compiler_wl='-Qoption ld ';;
14305 lt_prog_compiler_wl='-Wl,';;
14310 lt_prog_compiler_wl='-Qoption ld '
14311 lt_prog_compiler_pic='-PIC'
14312 lt_prog_compiler_static='-Bstatic'
14315 sysv4 | sysv4.2uw2* | sysv4.3*)
14316 lt_prog_compiler_wl='-Wl,'
14317 lt_prog_compiler_pic='-KPIC'
14318 lt_prog_compiler_static='-Bstatic'
14322 if test -d /usr/nec ;then
14323 lt_prog_compiler_pic='-Kconform_pic'
14324 lt_prog_compiler_static='-Bstatic'
14328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14329 lt_prog_compiler_wl='-Wl,'
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_can_build_shared=no
14340 lt_prog_compiler_pic='-pic'
14341 lt_prog_compiler_static='-Bstatic'
14345 lt_prog_compiler_can_build_shared=no
14351 # For platforms which do not support PIC, -DPIC is meaningless:
14353 lt_prog_compiler_pic=
14356 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14360 $as_echo "$lt_prog_compiler_pic" >&6; }
14368 # Check to make sure the PIC flag actually works.
14370 if test -n "$lt_prog_compiler_pic"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14372 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14373 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14374 $as_echo_n "(cached
) " >&6
14376 lt_cv_prog_compiler_pic_works=no
14377 ac_outfile=conftest.$ac_objext
14378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14379 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14380 # Insert the option either (1) after the last *FLAGS variable, or
14381 # (2) before a word containing "conftest.
", or (3) at the end.
14382 # Note that $ac_compile itself does not contain backslashes and begins
14383 # with a dollar sign (not a hyphen), so the echo should work correctly.
14384 # The option is referenced via a variable to avoid confusing sed.
14385 lt_compile=`echo "$ac_compile" | $SED \
14386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14388 -e 's:$: $lt_compiler_flag:'`
14389 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14390 (eval "$lt_compile" 2>conftest.err)
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14394 if (exit $ac_status) && test -s "$ac_outfile"; then
14395 # The compiler can only warn and ignore the option if not recognized
14396 # So say no if there are warnings other than the usual output.
14397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14400 lt_cv_prog_compiler_pic_works=yes
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14407 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14409 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14410 case $lt_prog_compiler_pic in
14412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14415 lt_prog_compiler_pic=
14416 lt_prog_compiler_can_build_shared=no
14427 # Check to make sure the static flag actually works.
14429 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14431 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14432 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14433 $as_echo_n "(cached
) " >&6
14435 lt_cv_prog_compiler_static_works=no
14436 save_LDFLAGS="$LDFLAGS"
14437 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14440 # The linker can only warn and ignore the option if not recognized
14441 # So say no if there are warnings
14442 if test -s conftest.err; then
14443 # Append any errors to the config.log.
14444 cat conftest.err 1>&5
14445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14447 if diff conftest.exp conftest.er2 >/dev/null; then
14448 lt_cv_prog_compiler_static_works=yes
14451 lt_cv_prog_compiler_static_works=yes
14455 LDFLAGS="$save_LDFLAGS"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14459 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14461 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14464 lt_prog_compiler_static=
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14474 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14475 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14476 $as_echo_n "(cached
) " >&6
14478 lt_cv_prog_compiler_c_o=no
14479 $RM -r conftest 2>/dev/null
14483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14485 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14486 # Insert the option either (1) after the last *FLAGS variable, or
14487 # (2) before a word containing "conftest.
", or (3) at the end.
14488 # Note that $ac_compile itself does not contain backslashes and begins
14489 # with a dollar sign (not a hyphen), so the echo should work correctly.
14490 lt_compile=`echo "$ac_compile" | $SED \
14491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
14494 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14495 (eval "$lt_compile" 2>out/conftest.err)
14497 cat out/conftest.err >&5
14498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14501 # The compiler can only warn and ignore the option if not recognized
14502 # So say no if there are warnings
14503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14506 lt_cv_prog_compiler_c_o=yes
14511 # SGI C++ compiler will create directory out/ii_files/ for
14512 # template instantiation
14513 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14514 $RM out/* && rmdir out
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14521 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14529 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14530 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14531 $as_echo_n "(cached
) " >&6
14533 lt_cv_prog_compiler_c_o=no
14534 $RM -r conftest 2>/dev/null
14538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14541 # Insert the option either (1) after the last *FLAGS variable, or
14542 # (2) before a word containing "conftest.
", or (3) at the end.
14543 # Note that $ac_compile itself does not contain backslashes and begins
14544 # with a dollar sign (not a hyphen), so the echo should work correctly.
14545 lt_compile=`echo "$ac_compile" | $SED \
14546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14548 -e 's:$: $lt_compiler_flag:'`
14549 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14550 (eval "$lt_compile" 2>out/conftest.err)
14552 cat out/conftest.err >&5
14553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14556 # The compiler can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14561 lt_cv_prog_compiler_c_o=yes
14566 # SGI C++ compiler will create directory out/ii_files/ for
14567 # template instantiation
14568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14569 $RM out/* && rmdir out
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14576 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14581 hard_links="nottested
"
14582 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14583 # do not overwrite the value of need_locks provided by the user
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14585 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14590 ln conftest.a conftest.b 2>&5 || hard_links=no
14591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14593 $as_echo "$hard_links" >&6; }
14594 if test "$hard_links" = no; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14596 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14609 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14612 allow_undefined_flag=
14613 always_export_symbols=no
14615 archive_expsym_cmds=
14616 compiler_needs_object=no
14617 enable_shared_with_static_runtimes=no
14618 export_dynamic_flag_spec=
14619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14620 hardcode_automatic=no
14622 hardcode_direct_absolute=no
14623 hardcode_libdir_flag_spec=
14624 hardcode_libdir_flag_spec_ld=
14625 hardcode_libdir_separator=
14626 hardcode_minus_L=no
14627 hardcode_shlibpath_var=unsupported
14629 link_all_deplibs=unknown
14631 module_expsym_cmds=
14632 old_archive_from_new_cmds=
14633 old_archive_from_expsyms_cmds=
14634 thread_safe_flag_spec=
14635 whole_archive_flag_spec=
14636 # include_expsyms should be a list of space-separated symbols to be *always*
14637 # included in the symbol list
14639 # exclude_expsyms can be an extended regexp of symbols to exclude
14640 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14641 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14642 # as well as any symbol that contains `d'.
14643 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14644 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14645 # platforms (ab)use it in PIC code, but their linkers get confused if
14646 # the symbol is explicitly referenced. Since portable code cannot
14647 # rely on this symbol name, it's probably fine to never include it in
14648 # preloaded symbol tables.
14649 # Exclude shared library initialization/finalization symbols.
14650 extract_expsyms_cmds=
14653 cygwin* | mingw* | pw32* | cegcc*)
14654 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14655 # When not using gcc, we currently assume that we are using
14656 # Microsoft Visual C++.
14657 if test "$GCC" != yes; then
14662 # we just hope/assume this is gcc and not c89 (= MSVC++)
14672 # On some targets, GNU ld is compatible enough with the native linker
14673 # that we're better off using the native interface for both.
14674 lt_use_gnu_ld_interface=no
14675 if test "$with_gnu_ld" = yes; then
14678 # The AIX port of GNU ld has always aspired to compatibility
14679 # with the native linker. However, as the warning in the GNU ld
14680 # block says, versions before 2.19.5* couldn't really create working
14681 # shared libraries, regardless of the interface used.
14682 case `$LD -v 2>&1` in
14683 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14684 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14685 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14687 lt_use_gnu_ld_interface=yes
14692 lt_use_gnu_ld_interface=yes
14697 if test "$lt_use_gnu_ld_interface" = yes; then
14698 # If archive_cmds runs LD, not CC, wlarc should be empty
14701 # Set some defaults for GNU ld with shared library support. These
14702 # are reset later if shared libraries are not supported. Putting them
14703 # here allows them to be overridden if necessary.
14704 runpath_var=LD_RUN_PATH
14705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14706 export_dynamic_flag_spec='${wl}--export-dynamic'
14707 # ancient GNU ld didn't support --whole-archive et. al.
14708 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14709 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14711 whole_archive_flag_spec=
14713 supports_anon_versioning=no
14714 case `$LD -v 2>&1` in
14715 *GNU\ gold*) supports_anon_versioning=yes ;;
14716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719 *\ 2.11.*) ;; # other 2.11 versions
14720 *) supports_anon_versioning=yes ;;
14723 # See if GNU ld supports shared libraries.
14726 # On AIX/PPC, the GNU linker is very broken
14727 if test "$host_cpu" != ia64; then
14731 *** Warning: the GNU linker, at least up to release 2.19, is reported
14732 *** to be unable to reliably create shared libraries on AIX.
14733 *** Therefore, libtool is disabling shared libraries support. If you
14734 *** really care for shared libraries, you may want to install binutils
14735 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14736 *** You will then need to restart the configuration process.
14745 # see comment about AmigaOS4 .so support
14746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747 archive_expsym_cmds=''
14750 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)'
14751 hardcode_libdir_flag_spec
='-L$libdir'
14752 hardcode_minus_L
=yes
14758 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14759 allow_undefined_flag
=unsupported
14760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14761 # support --undefined. This deserves some investigation. FIXME
14762 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14768 cygwin
* | mingw
* | pw32
* | cegcc
*)
14769 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14770 # as there is no search path for DLLs.
14771 hardcode_libdir_flag_spec
='-L$libdir'
14772 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14773 allow_undefined_flag
=unsupported
14774 always_export_symbols
=no
14775 enable_shared_with_static_runtimes
=yes
14776 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14778 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14779 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780 # If the export-symbols file already is a .def file (1st line
14781 # is EXPORTS), use it as is; otherwise, prepend...
14782 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14783 cp $export_symbols $output_objdir/$soname.def;
14785 echo EXPORTS > $output_objdir/$soname.def;
14786 cat $export_symbols >> $output_objdir/$soname.def;
14788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14795 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796 link_all_deplibs
=yes
14801 hardcode_shlibpath_var
=no
14802 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14803 export_dynamic_flag_spec
='${wl}-E'
14804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14805 # Instead, shared libraries are loaded at an image base (0x10000000 by
14806 # default) and relocated if they conflict, which is a slow very memory
14807 # consuming and fragmenting process. To avoid this, we pick a random,
14808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14810 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14811 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'
14814 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14816 if test "$host_os" = linux-dietlibc
; then
14817 case $cc_basename in
14818 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14821 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14822 && test "$tmp_diet" = no
14825 tmp_sharedflag
='-shared'
14826 case $cc_basename,$host_cpu in
14827 pgcc
*) # Portland Group C compiler
14828 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'
14829 tmp_addflag
=' $pic_flag'
14831 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14832 # Portland Group f77 and f90 compilers
14833 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'
14834 tmp_addflag
=' $pic_flag -Mnomain' ;;
14835 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14836 tmp_addflag
=' -i_dynamic' ;;
14837 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14838 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14839 ifc
* | ifort
*) # Intel Fortran compiler
14840 tmp_addflag
=' -nofor_main' ;;
14841 lf95
*) # Lahey Fortran 8.1
14842 whole_archive_flag_spec
=
14843 tmp_sharedflag
='--shared' ;;
14844 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14845 tmp_sharedflag
='-qmkshrobj'
14847 nvcc
*) # Cuda Compiler Driver 2.2
14848 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'
14849 compiler_needs_object
=yes
14852 case `$CC -V 2>&1 | sed 5q` in
14853 *Sun\ C
*) # Sun C 5.9
14854 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'
14855 compiler_needs_object
=yes
14856 tmp_sharedflag
='-G' ;;
14857 *Sun\ F
*) # Sun Fortran 8.3
14858 tmp_sharedflag
='-G' ;;
14860 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 if test "x$supports_anon_versioning" = xyes
; then
14863 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14865 echo "local: *; };" >> $output_objdir/$libname.ver~
14866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14869 case $cc_basename in
14870 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14872 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14873 hardcode_libdir_flag_spec
=
14874 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14875 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14876 if test "x$supports_anon_versioning" = xyes
; then
14877 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14879 echo "local: *; };" >> $output_objdir/$libname.ver~
14880 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14890 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14891 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14894 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14895 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14900 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14904 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14905 *** create shared libraries on Solaris systems. Therefore, libtool
14906 *** is disabling shared libraries support. We urge you to upgrade GNU
14907 *** binutils to release 2.9.1 or newer. Another option is to modify
14908 *** your PATH or compiler configuration so that the native linker is
14909 *** used, and then restart.
14912 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14913 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14914 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14920 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14921 case `$LD -v 2>&1` in
14922 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14926 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14927 *** reliably create shared libraries on SCO systems. Therefore, libtool
14928 *** is disabling shared libraries support. We urge you to upgrade GNU
14929 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14930 *** your PATH or compiler configuration so that the native linker is
14931 *** used, and then restart.
14936 # For security reasons, it is highly recommended that you always
14937 # use absolute paths for naming shared libraries, and exclude the
14938 # DT_RUNPATH tag from executables and libraries. But doing so
14939 # requires that you compile everything twice, which is a pain.
14940 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14941 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14942 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14954 hardcode_direct
=yes
14955 hardcode_shlibpath_var
=no
14959 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14960 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14968 if test "$ld_shlibs" = no
; then
14970 hardcode_libdir_flag_spec
=
14971 export_dynamic_flag_spec
=
14972 whole_archive_flag_spec
=
14975 # PORTME fill in a description of your system's linker (not GNU ld)
14978 allow_undefined_flag
=unsupported
14979 always_export_symbols
=yes
14980 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'
14981 # Note: this linker hardcodes the directories in LIBPATH if there
14982 # are no directories specified by -L.
14983 hardcode_minus_L
=yes
14984 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14985 # Neither direct hardcoding nor static linking is supported with a
14987 hardcode_direct
=unsupported
14992 if test "$host_cpu" = ia64
; then
14993 # On IA64, the linker does run time linking by default, so we don't
14994 # have to do anything special.
14995 aix_use_runtimelinking
=no
14996 exp_sym_flag
='-Bexport'
14999 # If we're using GNU nm, then we don't want the "-C" option.
15000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15001 # Also, AIX nm treats weak defined symbols like other global
15002 # defined symbols, whereas GNU nm marks them as "W".
15003 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15004 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'
15006 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'
15008 aix_use_runtimelinking
=no
15010 # Test if we are trying to use run time linking or normal
15011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15012 # need to do runtime linking.
15013 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15014 for ld_flag
in $LDFLAGS; do
15015 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15016 aix_use_runtimelinking
=yes
15023 exp_sym_flag
='-bexport'
15024 no_entry_flag
='-bnoentry'
15027 # When large executables or shared objects are built, AIX ld can
15028 # have problems creating the table of contents. If linking a library
15029 # or program results in "error TOC overflow" add -mminimal-toc to
15030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15034 hardcode_direct
=yes
15035 hardcode_direct_absolute
=yes
15036 hardcode_libdir_separator
=':'
15037 link_all_deplibs
=yes
15038 file_list_spec
='${wl}-f,'
15040 if test "$GCC" = yes; then
15041 case $host_os in aix4.
[012]|aix4.
[012].
*)
15042 # We only want to do this on AIX 4.2 and lower, the check
15043 # below for broken collect2 doesn't work under 4.3+
15044 collect2name
=`${CC} -print-prog-name=collect2`
15045 if test -f "$collect2name" &&
15046 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15048 # We have reworked collect2
15051 # We have old collect2
15052 hardcode_direct
=unsupported
15053 # It fails to find uninstalled libraries when the uninstalled
15054 # path is not listed in the libpath. Setting hardcode_minus_L
15055 # to unsupported forces relinking
15056 hardcode_minus_L
=yes
15057 hardcode_libdir_flag_spec
='-L$libdir'
15058 hardcode_libdir_separator
=
15062 shared_flag
='-shared'
15063 if test "$aix_use_runtimelinking" = yes; then
15064 shared_flag
="$shared_flag "'${wl}-G'
15068 if test "$host_cpu" = ia64
; then
15069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15070 # chokes on -Wl,-G. The following line is correct:
15073 if test "$aix_use_runtimelinking" = yes; then
15074 shared_flag
='${wl}-G'
15076 shared_flag
='${wl}-bM:SRE'
15081 export_dynamic_flag_spec
='${wl}-bexpall'
15082 # It seems that -bexpall does not export symbols beginning with
15083 # underscore (_), so it is better to generate a list of symbols to export.
15084 always_export_symbols
=yes
15085 if test "$aix_use_runtimelinking" = yes; then
15086 # Warning - without using the other runtime loading flags (-brtl),
15087 # -berok will link without error, but may produce a broken library.
15088 allow_undefined_flag
='-berok'
15089 # Determine the default libpath from the value encoded in an
15090 # empty executable.
15091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15102 if ac_fn_c_try_link
"$LINENO"; then :
15104 lt_aix_libpath_sed
='
15105 /Import File Strings/,/^$/ {
15111 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15112 # Check for a 64-bit object if we didn't find anything.
15113 if test -z "$aix_libpath"; then
15114 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15117 rm -f core conftest.err conftest.
$ac_objext \
15118 conftest
$ac_exeext conftest.
$ac_ext
15119 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15121 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15122 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"
15124 if test "$host_cpu" = ia64
; then
15125 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag
="-z nodefs"
15127 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"
15129 # Determine the default libpath from the value encoded in an
15130 # empty executable.
15131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15142 if ac_fn_c_try_link
"$LINENO"; then :
15144 lt_aix_libpath_sed
='
15145 /Import File Strings/,/^$/ {
15151 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15152 # Check for a 64-bit object if we didn't find anything.
15153 if test -z "$aix_libpath"; then
15154 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15157 rm -f core conftest.err conftest.
$ac_objext \
15158 conftest
$ac_exeext conftest.
$ac_ext
15159 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15161 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15162 # Warning - without using the other run time loading flags,
15163 # -berok will link without error, but may produce a broken library.
15164 no_undefined_flag
=' ${wl}-bernotok'
15165 allow_undefined_flag
=' ${wl}-berok'
15166 if test "$with_gnu_ld" = yes; then
15167 # We only use this code for GNU lds that support --whole-archive.
15168 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15170 # Exported symbols can be pulled into shared objects from archives
15171 whole_archive_flag_spec
='$convenience'
15173 archive_cmds_need_lc
=yes
15174 # This is similar to how AIX traditionally builds its shared libraries.
15175 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'
15183 # see comment about AmigaOS4 .so support
15184 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds
=''
15188 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)'
15189 hardcode_libdir_flag_spec
='-L$libdir'
15190 hardcode_minus_L
=yes
15196 export_dynamic_flag_spec
=-rdynamic
15199 cygwin
* | mingw
* | pw32
* | cegcc
*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
15204 hardcode_libdir_flag_spec
=' '
15205 allow_undefined_flag
=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15208 # Tell ltmain to make .dll files, not .so files.
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_from_new_cmds
='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15216 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15217 enable_shared_with_static_runtimes
=yes
15220 darwin
* | rhapsody
*)
15223 archive_cmds_need_lc
=no
15225 hardcode_automatic
=yes
15226 hardcode_shlibpath_var
=unsupported
15227 if test "$lt_cv_ld_force_load" = "yes"; then
15228 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\"`'
15230 whole_archive_flag_spec
=''
15232 link_all_deplibs
=yes
15233 allow_undefined_flag
="$_lt_dar_allow_undefined"
15234 case $cc_basename in
15235 ifort
*) _lt_dar_can_shared
=yes ;;
15236 *) _lt_dar_can_shared
=$GCC ;;
15238 if test "$_lt_dar_can_shared" = "yes"; then
15239 output_verbose_link_cmd
=func_echo_all
15240 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15241 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15242 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}"
15243 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}"
15252 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15253 hardcode_libdir_flag_spec
='-L$libdir'
15254 hardcode_shlibpath_var
=no
15261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15262 # support. Future versions do this automatically, but an explicit c++rt0.o
15263 # does not break anything, and helps significantly (at the cost of a little
15266 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15267 hardcode_libdir_flag_spec
='-R$libdir'
15268 hardcode_direct
=yes
15269 hardcode_shlibpath_var
=no
15272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15274 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_direct
=yes
15276 hardcode_minus_L
=yes
15277 hardcode_shlibpath_var
=no
15280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15281 freebsd
* | dragonfly
*)
15282 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15283 hardcode_libdir_flag_spec
='-R$libdir'
15284 hardcode_direct
=yes
15285 hardcode_shlibpath_var
=no
15289 if test "$GCC" = yes; then
15290 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'
15292 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'
15294 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15295 hardcode_libdir_separator
=:
15296 hardcode_direct
=yes
15298 # hardcode_minus_L: Not really in the search PATH,
15299 # but as the default location of the library.
15300 hardcode_minus_L
=yes
15301 export_dynamic_flag_spec
='${wl}-E'
15305 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15306 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15308 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15310 if test "$with_gnu_ld" = no
; then
15311 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15312 hardcode_libdir_flag_spec_ld
='+b $libdir'
15313 hardcode_libdir_separator
=:
15314 hardcode_direct
=yes
15315 hardcode_direct_absolute
=yes
15316 export_dynamic_flag_spec
='${wl}-E'
15317 # hardcode_minus_L: Not really in the search PATH,
15318 # but as the default location of the library.
15319 hardcode_minus_L
=yes
15324 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15327 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15339 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15342 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15346 # Older versions of the 11.00 compiler do not understand -b yet
15347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15349 $as_echo_n "checking if $CC understands -b... " >&6; }
15350 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15353 lt_cv_prog_compiler__b
=no
15354 save_LDFLAGS
="$LDFLAGS"
15355 LDFLAGS
="$LDFLAGS -b"
15356 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15357 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15358 # The linker can only warn and ignore the option if not recognized
15359 # So say no if there are warnings
15360 if test -s conftest.err
; then
15361 # Append any errors to the config.log.
15362 cat conftest.err
1>&5
15363 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15364 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15365 if diff conftest.exp conftest.er2
>/dev
/null
; then
15366 lt_cv_prog_compiler__b
=yes
15369 lt_cv_prog_compiler__b
=yes
15373 LDFLAGS
="$save_LDFLAGS"
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15377 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15379 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15380 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15382 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15388 if test "$with_gnu_ld" = no
; then
15389 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15390 hardcode_libdir_separator
=:
15395 hardcode_shlibpath_var
=no
15398 hardcode_direct
=yes
15399 hardcode_direct_absolute
=yes
15400 export_dynamic_flag_spec
='${wl}-E'
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L
=yes
15410 irix5
* | irix6
* | nonstopux
*)
15411 if test "$GCC" = yes; then
15412 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'
15413 # Try to use the -exported_symbol ld option, if it does not
15414 # work, assume that -exports_file does not work either and
15415 # implicitly export all symbols.
15416 save_LDFLAGS
="$LDFLAGS"
15417 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15422 if ac_fn_c_try_link
"$LINENO"; then :
15423 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'
15426 rm -f core conftest.err conftest.
$ac_objext \
15427 conftest
$ac_exeext conftest.
$ac_ext
15428 LDFLAGS
="$save_LDFLAGS"
15430 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'
15431 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'
15433 archive_cmds_need_lc
='no'
15434 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15435 hardcode_libdir_separator
=:
15437 link_all_deplibs
=yes
15441 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15442 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15444 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15446 hardcode_libdir_flag_spec
='-R$libdir'
15447 hardcode_direct
=yes
15448 hardcode_shlibpath_var
=no
15452 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_direct
=yes
15454 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15455 hardcode_libdir_separator
=:
15456 hardcode_shlibpath_var
=no
15463 if test -f /usr
/libexec
/ld.so
; then
15464 hardcode_direct
=yes
15465 hardcode_shlibpath_var
=no
15466 hardcode_direct_absolute
=yes
15467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15468 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15470 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15471 export_dynamic_flag_spec
='${wl}-E'
15474 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15475 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec
='-R$libdir'
15479 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15480 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15490 hardcode_libdir_flag_spec
='-L$libdir'
15491 hardcode_minus_L
=yes
15492 allow_undefined_flag
=unsupported
15493 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'
15494 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15498 if test "$GCC" = yes; then
15499 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15500 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'
15502 allow_undefined_flag
=' -expect_unresolved \*'
15503 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'
15505 archive_cmds_need_lc
='no'
15506 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15507 hardcode_libdir_separator
=:
15510 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15511 if test "$GCC" = yes; then
15512 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15513 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'
15514 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15516 allow_undefined_flag
=' -expect_unresolved \*'
15517 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'
15518 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~
15519 $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'
15521 # Both c and cxx compiler support -rpath directly
15522 hardcode_libdir_flag_spec
='-rpath $libdir'
15524 archive_cmds_need_lc
='no'
15525 hardcode_libdir_separator
=:
15529 no_undefined_flag
=' -z defs'
15530 if test "$GCC" = yes; then
15532 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15534 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15536 case `$CC -V 2>&1` in
15539 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15545 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15551 hardcode_libdir_flag_spec
='-R$libdir'
15552 hardcode_shlibpath_var
=no
15554 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15556 # The compiler driver will combine and reorder linker options,
15557 # but understands `-z linker_flag'. GCC discards it without `$wl',
15558 # but is careful enough not to reorder.
15559 # Supported since Solaris 2.6 (maybe 2.5.1?)
15560 if test "$GCC" = yes; then
15561 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15563 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15567 link_all_deplibs
=yes
15571 if test "x$host_vendor" = xsequent
; then
15572 # Use $CC to link under sequent, because it throws in some extra .o
15573 # files that make .init and .fini sections work.
15574 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15576 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_libdir_flag_spec
='-L$libdir'
15579 hardcode_direct
=yes
15580 hardcode_minus_L
=yes
15581 hardcode_shlibpath_var
=no
15585 case $host_vendor in
15587 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_direct
=yes # is this really true???
15591 ## LD is ld it makes a PLAMLIB
15592 ## CC just makes a GrossModule.
15593 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15594 reload_cmds
='$CC -r -o $output$reload_objs'
15598 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15602 runpath_var
='LD_RUN_PATH'
15603 hardcode_shlibpath_var
=no
15607 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_shlibpath_var
=no
15609 export_dynamic_flag_spec
='-Bexport'
15613 if test -d /usr
/nec
; then
15614 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_shlibpath_var
=no
15616 runpath_var
=LD_RUN_PATH
15617 hardcode_runpath_var
=yes
15622 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15623 no_undefined_flag
='${wl}-z,text'
15624 archive_cmds_need_lc
=no
15625 hardcode_shlibpath_var
=no
15626 runpath_var
='LD_RUN_PATH'
15628 if test "$GCC" = yes; then
15629 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 sysv5
* | sco3.2v5
* | sco5v6
*)
15638 # Note: We can NOT use -z defs as we might desire, because we do not
15639 # link with -lc, and that would cause any symbols used from libc to
15640 # always be unresolved, which means just about no library would
15641 # ever link correctly. If we're not using GNU ld we use -z text
15642 # though, which does catch some bad symbols but isn't as heavy-handed
15644 no_undefined_flag
='${wl}-z,text'
15645 allow_undefined_flag
='${wl}-z,nodefs'
15646 archive_cmds_need_lc
=no
15647 hardcode_shlibpath_var
=no
15648 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15649 hardcode_libdir_separator
=':'
15650 link_all_deplibs
=yes
15651 export_dynamic_flag_spec
='${wl}-Bexport'
15652 runpath_var
='LD_RUN_PATH'
15654 if test "$GCC" = yes; then
15655 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15656 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15658 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_libdir_flag_spec
='-L$libdir'
15666 hardcode_shlibpath_var
=no
15674 if test x
$host_vendor = xsni
; then
15676 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15677 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15684 $as_echo "$ld_shlibs" >&6; }
15685 test "$ld_shlibs" = no
&& can_build_shared
=no
15687 with_gnu_ld
=$with_gnu_ld
15704 # Do we need to explicitly link libc?
15706 case "x$archive_cmds_need_lc" in
15708 # Assume -lc should be added
15709 archive_cmds_need_lc
=yes
15711 if test "$enable_shared" = yes && test "$GCC" = yes; then
15712 case $archive_cmds in
15714 # FIXME: we may have to deal with multi-command sequences.
15717 # Test whether the compiler implicitly links with -lc since on some
15718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15719 # to ld, don't add -lc before -lgcc.
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15722 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15726 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15729 (eval $ac_compile) 2>&5
15731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732 test $ac_status = 0; } 2>conftest.err
; then
15735 libobjs
=conftest.
$ac_objext
15737 wl
=$lt_prog_compiler_wl
15738 pic_flag
=$lt_prog_compiler_pic
15744 lt_save_allow_undefined_flag
=$allow_undefined_flag
15745 allow_undefined_flag
=
15746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15747 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15750 test $ac_status = 0; }
15752 lt_cv_archive_cmds_need_lc
=no
15754 lt_cv_archive_cmds_need_lc
=yes
15756 allow_undefined_flag
=$lt_save_allow_undefined_flag
15758 cat conftest.err
1>&5
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15764 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15765 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15931 if test "$GCC" = yes; then
15933 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
15934 *) lt_awk_arg
="/^libraries:/" ;;
15937 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
15938 *) lt_sed_strip_eq
="s,=/,/,g" ;;
15940 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15941 case $lt_search_path_spec in
15943 # if the path contains ";" then we assume it to be the separator
15944 # otherwise default to the standard path separator (i.e. ":") - it is
15945 # assumed that no part of a normal pathname contains ";" but that should
15946 # okay in the real world where ";" in dirpaths is itself problematic.
15947 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15950 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15953 # Ok, now we have the path, separated by spaces, we can step through it
15954 # and add multilib dir if necessary.
15955 lt_tmp_lt_search_path_spec
=
15956 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15957 for lt_sys_path
in $lt_search_path_spec; do
15958 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15959 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15961 test -d "$lt_sys_path" && \
15962 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
15965 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15966 BEGIN {RS=" "; FS="/|\n";} {
15969 for (lt_i = NF; lt_i > 0; lt_i--) {
15970 if ($lt_i != "" && $lt_i != ".") {
15971 if ($lt_i == "..") {
15974 if (lt_count == 0) {
15975 lt_foo="/" $lt_i lt_foo;
15982 if (lt_foo != "") { lt_freq[lt_foo]++; }
15983 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15985 # AWK program above erroneously prepends '/' to C:/dos/paths
15988 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
15989 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15991 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15993 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15995 library_names_spec
=
15996 libname_spec
='lib$name'
16000 postuninstall_cmds
=
16004 shlibpath_overrides_runpath
=unknown
16006 dynamic_linker
="$host_os ld.so"
16007 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16008 need_lib_prefix
=unknown
16009 hardcode_into_libs
=no
16011 # when you set need_version to no, make sure it does not cause -set_version
16012 # flags to be left without arguments
16013 need_version
=unknown
16018 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16019 shlibpath_var
=LIBPATH
16021 # AIX 3 has no versioning support, so we append a major version to the name.
16022 soname_spec
='${libname}${release}${shared_ext}$major'
16029 hardcode_into_libs
=yes
16030 if test "$host_cpu" = ia64
; then
16031 # AIX 5 supports IA64
16032 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16033 shlibpath_var
=LD_LIBRARY_PATH
16035 # With GCC up to 2.95.x, collect2 would create an import file
16036 # for dependence libraries. The import file would start with
16037 # the line `#! .'. This would cause the generated library to
16038 # depend on `.', always an invalid library. This was fixed in
16039 # development snapshots of GCC prior to 3.0.
16041 aix4 | aix4.
[01] | aix4.
[01].
*)
16042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16044 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16047 can_build_shared
=no
16051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16052 # soname into executable. Probably we can add versioning support to
16053 # collect2, so additional links can be useful in future.
16054 if test "$aix_use_runtimelinking" = yes; then
16055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16056 # instead of lib<name>.a to let people know that these are not
16057 # typical AIX shared libraries.
16058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 # We preserve .a as extension for shared libraries through AIX4.2
16061 # and later when we are not doing run time linking.
16062 library_names_spec
='${libname}${release}.a $libname.a'
16063 soname_spec
='${libname}${release}${shared_ext}$major'
16065 shlibpath_var
=LIBPATH
16072 # Since July 2007 AmigaOS4 officially supports .so libraries.
16073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 library_names_spec
='$libname.ixlibrary $libname.a'
16078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16079 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'
16085 library_names_spec
='${libname}${shared_ext}'
16086 dynamic_linker
="$host_os ld.so"
16087 shlibpath_var
=LIBRARY_PATH
16093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec
='${libname}${release}${shared_ext}$major'
16095 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16096 shlibpath_var
=LD_LIBRARY_PATH
16097 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16098 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16099 # the default ld.so.conf also contains /usr/contrib/lib and
16100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16101 # libtool to hard-code these into programs
16104 cygwin
* | mingw
* | pw32
* | cegcc
*)
16105 version_type
=windows
16110 case $GCC,$host_os in
16111 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16112 library_names_spec
='$libname.dll.a'
16113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16114 postinstall_cmds
='base_file=`basename \${file}`~
16115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16116 dldir=$destdir/`dirname \$dlpath`~
16117 test -d \$dldir || mkdir -p \$dldir~
16118 $install_prog $dir/$dlname \$dldir/$dlname~
16119 chmod a+x \$dldir/$dlname~
16120 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16121 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16123 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16124 dlpath=$dir/\$dldll~
16126 shlibpath_overrides_runpath
=yes
16130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16131 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16133 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16136 # MinGW DLLs use traditional 'lib' prefix
16137 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16140 # pw32 DLLs use 'pw' prefix rather than 'lib'
16141 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16147 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16150 dynamic_linker
='Win32 ld.exe'
16151 # FIXME: first we should search . and the directory the executable is in
16155 darwin
* | rhapsody
*)
16156 dynamic_linker
="$host_os dyld"
16157 version_type
=darwin
16160 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16161 soname_spec
='${libname}${release}${major}$shared_ext'
16162 shlibpath_overrides_runpath
=yes
16163 shlibpath_var
=DYLD_LIBRARY_PATH
16164 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16166 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16167 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16175 soname_spec
='${libname}${release}${shared_ext}$major'
16176 shlibpath_var
=LD_LIBRARY_PATH
16183 freebsd
* | dragonfly
*)
16184 # DragonFly does not have aout. When/if they implement a new
16185 # versioning mechanism, adjust this.
16186 if test -x /usr
/bin
/objformat
; then
16187 objformat
=`/usr/bin/objformat`
16190 freebsd
[123]*) objformat
=aout
;;
16191 *) objformat
=elf
;;
16194 version_type
=freebsd-
$objformat
16195 case $version_type in
16197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16202 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16206 shlibpath_var
=LD_LIBRARY_PATH
16209 shlibpath_overrides_runpath
=yes
16211 freebsd3.
[01]* | freebsdelf3.
[01]*)
16212 shlibpath_overrides_runpath
=yes
16213 hardcode_into_libs
=yes
16215 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16216 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16217 shlibpath_overrides_runpath
=no
16218 hardcode_into_libs
=yes
16220 *) # from 4.6 on, and DragonFly
16221 shlibpath_overrides_runpath
=yes
16222 hardcode_into_libs
=yes
16231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16232 soname_spec
='${libname}${release}${shared_ext}$major'
16233 shlibpath_var
=LD_LIBRARY_PATH
16234 hardcode_into_libs
=yes
16241 dynamic_linker
="$host_os runtime_loader"
16242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec
='${libname}${release}${shared_ext}$major'
16244 shlibpath_var
=LIBRARY_PATH
16245 shlibpath_overrides_runpath
=yes
16246 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16247 hardcode_into_libs
=yes
16250 hpux9
* | hpux10
* | hpux11
*)
16251 # Give a soname corresponding to the major version so that dld.sl refuses to
16252 # link against other versions.
16259 hardcode_into_libs
=yes
16260 dynamic_linker
="$host_os dld.so"
16261 shlibpath_var
=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec
='${libname}${release}${shared_ext}$major'
16265 if test "X$HPUX_IA64_MODE" = X32
; then
16266 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16268 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16270 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16274 hardcode_into_libs
=yes
16275 dynamic_linker
="$host_os dld.sl"
16276 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16277 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec
='${libname}${release}${shared_ext}$major'
16280 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16281 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16285 dynamic_linker
="$host_os dld.sl"
16286 shlibpath_var
=SHLIB_PATH
16287 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec
='${libname}${release}${shared_ext}$major'
16292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16293 postinstall_cmds
='chmod 555 $lib'
16294 # or fails outright, so override atomically:
16295 install_override_mode
=555
16302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16303 soname_spec
='${libname}${release}${shared_ext}$major'
16304 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16305 shlibpath_var
=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath
=no
16307 hardcode_into_libs
=yes
16310 irix5
* | irix6
* | nonstopux
*)
16312 nonstopux
*) version_type
=nonstopux
;;
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16322 soname_spec
='${libname}${release}${shared_ext}$major'
16323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16325 irix5
* | nonstopux
*)
16326 libsuff
= shlibsuff
=
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16331 libsuff
= shlibsuff
= libmagic
=32-bit;;
16332 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16333 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16334 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16335 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16336 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16340 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16341 shlibpath_overrides_runpath
=no
16342 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs
=yes
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16352 # This must be Linux ELF.
16353 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec
='${libname}${release}${shared_ext}$major'
16359 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var
=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath
=no
16363 # Some binutils ld are patched to set DT_RUNPATH
16364 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16365 $as_echo_n "(cached) " >&6
16367 lt_cv_shlibpath_overrides_runpath
=no
16368 save_LDFLAGS
=$LDFLAGS
16369 save_libdir
=$libdir
16370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16383 if ac_fn_c_try_link
"$LINENO"; then :
16384 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16385 lt_cv_shlibpath_overrides_runpath
=yes
16388 rm -f core conftest.err conftest.
$ac_objext \
16389 conftest
$ac_exeext conftest.
$ac_ext
16390 LDFLAGS
=$save_LDFLAGS
16391 libdir
=$save_libdir
16395 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16397 # This implies no fast_install, which is unacceptable.
16398 # Some rework will be needed to allow for fast_install
16399 # before this can be enabled.
16400 hardcode_into_libs
=yes
16402 # Append ld.so.conf contents to the search path
16403 if test -f /etc
/ld.so.conf
; then
16404 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' ' '`
16405 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16408 # We used to test for /lib/ld.so.1 and disable shared libraries on
16409 # powerpc, because MkLinux only supported shared libraries with the
16410 # GNU dynamic linker. Since this was broken with cross compilers,
16411 # most powerpc-linux boxes support dynamic linking these days and
16412 # people can always --disable-shared, the test was removed, and we
16413 # assume the GNU/Linux dynamic linker is in use.
16414 dynamic_linker
='GNU/Linux ld.so'
16421 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16423 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16424 dynamic_linker
='NetBSD (a.out) ld.so'
16426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16427 soname_spec
='${libname}${release}${shared_ext}$major'
16428 dynamic_linker
='NetBSD ld.elf_so'
16430 shlibpath_var
=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath
=yes
16432 hardcode_into_libs
=yes
16437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438 shlibpath_var
=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath
=yes
16446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec
='${libname}${release}${shared_ext}$major'
16448 shlibpath_var
=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath
=no
16450 hardcode_into_libs
=yes
16451 dynamic_linker
='ldqnx.so'
16456 sys_lib_dlsearch_path_spec
="/usr/lib"
16458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16460 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16461 *) need_version
=no
;;
16463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16465 shlibpath_var
=LD_LIBRARY_PATH
16466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16468 openbsd2.
[89] | openbsd2.
[89].
*)
16469 shlibpath_overrides_runpath
=no
16472 shlibpath_overrides_runpath
=yes
16476 shlibpath_overrides_runpath
=yes
16481 libname_spec
='$name'
16484 library_names_spec
='$libname${shared_ext} $libname.a'
16485 dynamic_linker
='OS/2 ld.exe'
16486 shlibpath_var
=LIBPATH
16489 osf3
* | osf4
* | osf5
*)
16493 soname_spec
='${libname}${release}${shared_ext}$major'
16494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 shlibpath_var
=LD_LIBRARY_PATH
16496 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16497 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec
='${libname}${release}${shared_ext}$major'
16510 shlibpath_var
=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath
=yes
16512 hardcode_into_libs
=yes
16513 # ldd complains unless libraries are executable
16514 postinstall_cmds
='chmod +x $lib'
16519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16520 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16521 shlibpath_var
=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath
=yes
16523 if test "$with_gnu_ld" = yes; then
16531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532 soname_spec
='${libname}${release}${shared_ext}$major'
16533 shlibpath_var
=LD_LIBRARY_PATH
16534 case $host_vendor in
16536 shlibpath_overrides_runpath
=no
16538 runpath_var
=LD_RUN_PATH
16546 shlibpath_overrides_runpath
=no
16547 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16553 if test -d /usr
/nec
;then
16555 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16556 soname_spec
='$libname${shared_ext}.$major'
16557 shlibpath_var
=LD_LIBRARY_PATH
16561 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16562 version_type
=freebsd-elf
16565 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16566 soname_spec
='${libname}${release}${shared_ext}$major'
16567 shlibpath_var
=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath
=yes
16569 hardcode_into_libs
=yes
16570 if test "$with_gnu_ld" = yes; then
16571 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16573 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16576 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16580 sys_lib_dlsearch_path_spec
='/usr/lib'
16584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 shlibpath_var
=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath
=no
16591 hardcode_into_libs
=yes
16596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec
='${libname}${release}${shared_ext}$major'
16598 shlibpath_var
=LD_LIBRARY_PATH
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16606 $as_echo "$dynamic_linker" >&6; }
16607 test "$dynamic_linker" = no
&& can_build_shared
=no
16609 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16610 if test "$GCC" = yes; then
16611 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16615 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16617 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16618 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16715 if test -n "$hardcode_libdir_flag_spec" ||
16716 test -n "$runpath_var" ||
16717 test "X$hardcode_automatic" = "Xyes" ; then
16719 # We can hardcode non-existent directories.
16720 if test "$hardcode_direct" != no
&&
16721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16722 # have to relink, otherwise we might link with an installed library
16723 # when we should be linking with a yet-to-be-installed one
16724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16725 test "$hardcode_minus_L" != no
; then
16726 # Linking always hardcodes the temporary library directory.
16727 hardcode_action
=relink
16729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16730 hardcode_action
=immediate
16733 # We cannot hardcode anything, or else we can only hardcode existing
16735 hardcode_action
=unsupported
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16738 $as_echo "$hardcode_action" >&6; }
16740 if test "$hardcode_action" = relink ||
16741 test "$inherit_rpath" = yes; then
16742 # Fast installation is not supported
16743 enable_fast_install
=no
16744 elif test "$shlibpath_overrides_runpath" = yes ||
16745 test "$enable_shared" = no
; then
16746 # Fast installation is not necessary
16747 enable_fast_install
=needless
16755 if test "x$enable_dlopen" != xyes
; then
16756 enable_dlopen
=unknown
16757 enable_dlopen_self
=unknown
16758 enable_dlopen_self_static
=unknown
16765 lt_cv_dlopen
="load_add_on"
16767 lt_cv_dlopen_self
=yes
16770 mingw
* | pw32
* | cegcc
*)
16771 lt_cv_dlopen
="LoadLibrary"
16776 lt_cv_dlopen
="dlopen"
16781 # if libdl is installed we need to link against it
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16787 ac_check_lib_save_LIBS
=$LIBS
16789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16792 /* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
16807 if ac_fn_c_try_link
"$LINENO"; then :
16808 ac_cv_lib_dl_dlopen
=yes
16810 ac_cv_lib_dl_dlopen
=no
16812 rm -f core conftest.err conftest.
$ac_objext \
16813 conftest
$ac_exeext conftest.
$ac_ext
16814 LIBS
=$ac_check_lib_save_LIBS
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16818 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16819 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16822 lt_cv_dlopen
="dyld"
16824 lt_cv_dlopen_self
=yes
16831 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16832 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16833 lt_cv_dlopen
="shl_load"
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16840 ac_check_lib_save_LIBS
=$LIBS
16842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16855 return shl_load ();
16860 if ac_fn_c_try_link
"$LINENO"; then :
16861 ac_cv_lib_dld_shl_load
=yes
16863 ac_cv_lib_dld_shl_load
=no
16865 rm -f core conftest.err conftest.
$ac_objext \
16866 conftest
$ac_exeext conftest.
$ac_ext
16867 LIBS
=$ac_check_lib_save_LIBS
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16871 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16872 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16874 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16875 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16876 lt_cv_dlopen
="dlopen"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16881 $as_echo_n "(cached) " >&6
16883 ac_check_lib_save_LIBS
=$LIBS
16885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16888 /* Override any GCC internal prototype to avoid an error.
16889 Use char because int might match the return type of a GCC
16890 builtin and then its argument prototype would still apply. */
16903 if ac_fn_c_try_link
"$LINENO"; then :
16904 ac_cv_lib_dl_dlopen
=yes
16906 ac_cv_lib_dl_dlopen
=no
16908 rm -f core conftest.err conftest.
$ac_objext \
16909 conftest
$ac_exeext conftest.
$ac_ext
16910 LIBS
=$ac_check_lib_save_LIBS
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16914 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16915 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16919 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16922 ac_check_lib_save_LIBS
=$LIBS
16923 LIBS
="-lsvld $LIBS"
16924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16942 if ac_fn_c_try_link
"$LINENO"; then :
16943 ac_cv_lib_svld_dlopen
=yes
16945 ac_cv_lib_svld_dlopen
=no
16947 rm -f core conftest.err conftest.
$ac_objext \
16948 conftest
$ac_exeext conftest.
$ac_ext
16949 LIBS
=$ac_check_lib_save_LIBS
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16953 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
16954 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16958 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16961 ac_check_lib_save_LIBS
=$LIBS
16963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16976 return dld_link ();
16981 if ac_fn_c_try_link
"$LINENO"; then :
16982 ac_cv_lib_dld_dld_link
=yes
16984 ac_cv_lib_dld_dld_link
=no
16986 rm -f core conftest.err conftest.
$ac_objext \
16987 conftest
$ac_exeext conftest.
$ac_ext
16988 LIBS
=$ac_check_lib_save_LIBS
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16992 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
16993 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17014 if test "x$lt_cv_dlopen" != xno
; then
17020 case $lt_cv_dlopen in
17022 save_CPPFLAGS
="$CPPFLAGS"
17023 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17025 save_LDFLAGS
="$LDFLAGS"
17026 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17029 LIBS
="$lt_cv_dlopen_libs $LIBS"
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17033 if test "${lt_cv_dlopen_self+set}" = set; then :
17034 $as_echo_n "(cached) " >&6
17036 if test "$cross_compiling" = yes; then :
17037 lt_cv_dlopen_self
=cross
17039 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17040 lt_status
=$lt_dlunknown
17041 cat > conftest.
$ac_ext <<_LT_EOF
17042 #line 17042 "configure"
17043 #include "confdefs.h"
17052 # define LT_DLGLOBAL RTLD_GLOBAL
17055 # define LT_DLGLOBAL DL_GLOBAL
17057 # define LT_DLGLOBAL 0
17061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17062 find out it does not work in some platform. */
17063 #ifndef LT_DLLAZY_OR_NOW
17065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17068 # define LT_DLLAZY_OR_NOW DL_LAZY
17071 # define LT_DLLAZY_OR_NOW RTLD_NOW
17074 # define LT_DLLAZY_OR_NOW DL_NOW
17076 # define LT_DLLAZY_OR_NOW 0
17083 /* When -fvisbility=hidden is used, assume the code has been annotated
17084 correspondingly for the symbols needed. */
17085 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17086 void fnord () __attribute__((visibility("default")));
17089 void fnord () { int i=42; }
17092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17093 int status = $lt_dlunknown;
17097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17101 else puts (dlerror ());
17103 /* dlclose (self); */
17111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17112 (eval $ac_link) 2>&5
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17116 (.
/conftest
; exit; ) >&5 2>/dev
/null
17118 case x
$lt_status in
17119 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17120 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17121 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17124 # compilation failed
17125 lt_cv_dlopen_self
=no
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17133 $as_echo "$lt_cv_dlopen_self" >&6; }
17135 if test "x$lt_cv_dlopen_self" = xyes
; then
17136 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17139 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17140 $as_echo_n "(cached) " >&6
17142 if test "$cross_compiling" = yes; then :
17143 lt_cv_dlopen_self_static
=cross
17145 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17146 lt_status
=$lt_dlunknown
17147 cat > conftest.
$ac_ext <<_LT_EOF
17148 #line 17148 "configure"
17149 #include "confdefs.h"
17158 # define LT_DLGLOBAL RTLD_GLOBAL
17161 # define LT_DLGLOBAL DL_GLOBAL
17163 # define LT_DLGLOBAL 0
17167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17168 find out it does not work in some platform. */
17169 #ifndef LT_DLLAZY_OR_NOW
17171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17174 # define LT_DLLAZY_OR_NOW DL_LAZY
17177 # define LT_DLLAZY_OR_NOW RTLD_NOW
17180 # define LT_DLLAZY_OR_NOW DL_NOW
17182 # define LT_DLLAZY_OR_NOW 0
17189 /* When -fvisbility=hidden is used, assume the code has been annotated
17190 correspondingly for the symbols needed. */
17191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17192 void fnord () __attribute__((visibility("default")));
17195 void fnord () { int i=42; }
17198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17199 int status = $lt_dlunknown;
17203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17207 else puts (dlerror ());
17209 /* dlclose (self); */
17217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17218 (eval $ac_link) 2>&5
17220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17222 (.
/conftest
; exit; ) >&5 2>/dev
/null
17224 case x
$lt_status in
17225 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17226 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17227 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17230 # compilation failed
17231 lt_cv_dlopen_self_static
=no
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17242 CPPFLAGS
="$save_CPPFLAGS"
17243 LDFLAGS
="$save_LDFLAGS"
17248 case $lt_cv_dlopen_self in
17249 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17250 *) enable_dlopen_self
=unknown
;;
17253 case $lt_cv_dlopen_self_static in
17254 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17255 *) enable_dlopen_self_static
=unknown
;;
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17279 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17280 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17281 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17283 $as_echo "yes" >&6; }
17285 # FIXME - insert some real tests, host_os isn't really good enough
17288 if test -n "$STRIP" ; then
17289 striplib
="$STRIP -x"
17290 old_striplib
="$STRIP -S"
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17292 $as_echo "yes" >&6; }
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17316 # Report which library types will actually be built
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17320 $as_echo "$can_build_shared" >&6; }
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17323 $as_echo_n "checking whether to build shared libraries... " >&6; }
17324 test "$can_build_shared" = "no" && enable_shared
=no
17326 # On AIX, shared libraries and static libraries use the same namespace, and
17327 # are all built from PIC.
17330 test "$enable_shared" = yes && enable_static
=no
17331 if test -n "$RANLIB"; then
17332 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17333 postinstall_cmds
='$RANLIB $lib'
17338 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17339 test "$enable_shared" = yes && enable_static
=no
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17344 $as_echo "$enable_shared" >&6; }
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17347 $as_echo_n "checking whether to build static libraries... " >&6; }
17348 # Make sure either enable_shared or enable_static is yes.
17349 test "$enable_shared" = yes || enable_static
=yes
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17351 $as_echo "$enable_static" >&6; }
17358 ac_cpp
='$CPP $CPPFLAGS'
17359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17365 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17367 (test "X$CXX" != "Xg++"))) ; then
17369 ac_cpp
='$CXXCPP $CPPFLAGS'
17370 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17371 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17372 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17374 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17375 if test -z "$CXXCPP"; then
17376 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17379 # Double quotes because CXXCPP needs to be expanded
17380 for CXXCPP
in "$CXX -E" "/lib/cpp"
17382 ac_preproc_ok
=false
17383 for ac_cxx_preproc_warn_flag
in '' yes
17385 # Use a header file that comes with gcc, so configuring glibc
17386 # with a fresh cross-compiler works.
17387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 # <limits.h> exists even on freestanding compilers.
17389 # On the NeXT, cc -E runs the code through the compiler's parser,
17390 # not just through cpp. "Syntax error" is here to catch this case.
17391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17394 # include <limits.h>
17396 # include <assert.h>
17400 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17403 # Broken: fails on valid input.
17406 rm -f conftest.err conftest.
$ac_ext
17408 # OK, works on sane cases. Now check whether nonexistent headers
17409 # can be detected and how.
17410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17412 #include <ac_nonexistent.h>
17414 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17415 # Broken: success on invalid input.
17418 # Passes both tests.
17422 rm -f conftest.err conftest.
$ac_ext
17425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17426 rm -f conftest.err conftest.
$ac_ext
17427 if $ac_preproc_ok; then :
17432 ac_cv_prog_CXXCPP
=$CXXCPP
17435 CXXCPP
=$ac_cv_prog_CXXCPP
17437 ac_cv_prog_CXXCPP
=$CXXCPP
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17440 $as_echo "$CXXCPP" >&6; }
17441 ac_preproc_ok
=false
17442 for ac_cxx_preproc_warn_flag
in '' yes
17444 # Use a header file that comes with gcc, so configuring glibc
17445 # with a fresh cross-compiler works.
17446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447 # <limits.h> exists even on freestanding compilers.
17448 # On the NeXT, cc -E runs the code through the compiler's parser,
17449 # not just through cpp. "Syntax error" is here to catch this case.
17450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17453 # include <limits.h>
17455 # include <assert.h>
17459 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17462 # Broken: fails on valid input.
17465 rm -f conftest.err conftest.
$ac_ext
17467 # OK, works on sane cases. Now check whether nonexistent headers
17468 # can be detected and how.
17469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <ac_nonexistent.h>
17473 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17474 # Broken: success on invalid input.
17477 # Passes both tests.
17481 rm -f conftest.err conftest.
$ac_ext
17484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17485 rm -f conftest.err conftest.
$ac_ext
17486 if $ac_preproc_ok; then :
17489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17491 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17492 See \`config.log' for more details." "$LINENO" 5; }
17496 ac_cpp
='$CPP $CPPFLAGS'
17497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17502 _lt_caught_CXX_error
=yes
17506 ac_cpp
='$CXXCPP $CPPFLAGS'
17507 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17511 archive_cmds_need_lc_CXX
=no
17512 allow_undefined_flag_CXX
=
17513 always_export_symbols_CXX
=no
17514 archive_expsym_cmds_CXX
=
17515 compiler_needs_object_CXX
=no
17516 export_dynamic_flag_spec_CXX
=
17517 hardcode_direct_CXX
=no
17518 hardcode_direct_absolute_CXX
=no
17519 hardcode_libdir_flag_spec_CXX
=
17520 hardcode_libdir_flag_spec_ld_CXX
=
17521 hardcode_libdir_separator_CXX
=
17522 hardcode_minus_L_CXX
=no
17523 hardcode_shlibpath_var_CXX
=unsupported
17524 hardcode_automatic_CXX
=no
17525 inherit_rpath_CXX
=no
17527 module_expsym_cmds_CXX
=
17528 link_all_deplibs_CXX
=unknown
17529 old_archive_cmds_CXX
=$old_archive_cmds
17530 reload_flag_CXX
=$reload_flag
17531 reload_cmds_CXX
=$reload_cmds
17532 no_undefined_flag_CXX
=
17533 whole_archive_flag_spec_CXX
=
17534 enable_shared_with_static_runtimes_CXX
=no
17536 # Source file extension for C++ test sources.
17539 # Object file extension for compiled C++ test sources.
17543 # No sense in running all these tests if we already determined that
17544 # the CXX compiler isn't working. Some variables (like enable_shared)
17545 # are currently assumed to apply to all compilers on this platform,
17546 # and will be corrupted by setting them based on a non-working compiler.
17547 if test "$_lt_caught_CXX_error" != yes; then
17548 # Code to be used in simple compile tests
17549 lt_simple_compile_test_code
="int some_variable = 0;"
17551 # Code to be used in simple link tests
17552 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17561 # If no C compiler was specified, use CC.
17564 # If no C compiler flags were specified, use CFLAGS.
17565 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17567 # Allow CC to be a program name with arguments.
17571 # save warnings/boilerplate of simple test code
17572 ac_outfile
=conftest.
$ac_objext
17573 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17574 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17575 _lt_compiler_boilerplate
=`cat conftest.err`
17578 ac_outfile
=conftest.
$ac_objext
17579 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17580 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17581 _lt_linker_boilerplate
=`cat conftest.err`
17585 # Allow CC to be a program name with arguments.
17590 lt_save_with_gnu_ld
=$with_gnu_ld
17591 lt_save_path_LD
=$lt_cv_path_LD
17592 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17593 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17595 $as_unset lt_cv_prog_gnu_ld
17597 if test -n "${lt_cv_path_LDCXX+set}"; then
17598 lt_cv_path_LD
=$lt_cv_path_LDCXX
17600 $as_unset lt_cv_path_LD
17602 test -z "${LDCXX+set}" || LD
=$LDCXX
17606 for cc_temp
in $compiler""; do
17608 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17609 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17614 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17617 if test -n "$compiler"; then
17618 # We don't want -fno-exception when compiling C++ code, so set the
17619 # no_builtin_flag separately
17620 if test "$GXX" = yes; then
17621 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17623 lt_prog_compiler_no_builtin_flag_CXX
=
17626 if test "$GXX" = yes; then
17627 # Set up default GNU C++ configuration
17631 # Check whether --with-gnu-ld was given.
17632 if test "${with_gnu_ld+set}" = set; then :
17633 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17639 if test "$GCC" = yes; then
17640 # Check if gcc -print-prog-name=ld gives a path.
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17642 $as_echo_n "checking for ld used by $CC... " >&6; }
17645 # gcc leaves a trailing carriage return which upsets mingw
17646 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17648 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17651 # Accept absolute paths.
17653 re_direlt
='/[^/][^/]*/\.\./'
17654 # Canonicalize the pathname of ld
17655 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17656 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17657 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17659 test -z "$LD" && LD
="$ac_prog"
17662 # If it fails, then pretend we aren't using GCC.
17666 # If it is relative, then search for the first ld in PATH.
17667 with_gnu_ld
=unknown
17670 elif test "$with_gnu_ld" = yes; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17672 $as_echo_n "checking for GNU ld... " >&6; }
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17675 $as_echo_n "checking for non-GNU ld... " >&6; }
17677 if test "${lt_cv_path_LD+set}" = set; then :
17678 $as_echo_n "(cached) " >&6
17680 if test -z "$LD"; then
17681 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17682 for ac_dir
in $PATH; do
17684 test -z "$ac_dir" && ac_dir
=.
17685 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17686 lt_cv_path_LD
="$ac_dir/$ac_prog"
17687 # Check to see if the program is GNU ld. I'd rather use --version,
17688 # but apparently some variants of GNU ld only accept -v.
17689 # Break only if it was the GNU/non-GNU ld that we prefer.
17690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17691 *GNU
* |
*'with BFD'*)
17692 test "$with_gnu_ld" != no
&& break
17695 test "$with_gnu_ld" != yes && break
17702 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17706 LD
="$lt_cv_path_LD"
17707 if test -n "$LD"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17709 $as_echo "$LD" >&6; }
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17712 $as_echo "no" >&6; }
17714 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17716 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17717 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17721 case `$LD -v 2>&1 </dev/null` in
17722 *GNU
* |
*'with BFD'*)
17723 lt_cv_prog_gnu_ld
=yes
17726 lt_cv_prog_gnu_ld
=no
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17731 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17732 with_gnu_ld
=$lt_cv_prog_gnu_ld
17740 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17741 # archiving commands below assume that GNU ld is being used.
17742 if test "$with_gnu_ld" = yes; then
17743 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17744 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'
17746 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17747 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17749 # If archive_cmds runs LD, not CC, wlarc should be empty
17750 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17751 # investigate it a little bit more. (MM)
17754 # ancient GNU ld didn't support --whole-archive et. al.
17755 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17756 $GREP 'no-whole-archive' > /dev
/null
; then
17757 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17759 whole_archive_flag_spec_CXX
=
17765 # A generic and very simple default shared library creation
17766 # command for GNU C++ for the case where it uses the native
17767 # linker, instead of GNU ld. If possible, this setting should
17768 # overridden to take advantage of the native linker features on
17769 # the platform it is being used on.
17770 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17773 # Commands to make compiler produce verbose output that lists
17774 # what "hidden" libraries, object files and flags are used when
17775 # linking a shared library.
17776 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17784 # PORTME: fill in a description of your system's C++ link characteristics
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17786 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17790 # FIXME: insert proper C++ library support
17794 if test "$host_cpu" = ia64
; then
17795 # On IA64, the linker does run time linking by default, so we don't
17796 # have to do anything special.
17797 aix_use_runtimelinking
=no
17798 exp_sym_flag
='-Bexport'
17801 aix_use_runtimelinking
=no
17803 # Test if we are trying to use run time linking or normal
17804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17805 # need to do runtime linking.
17806 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17807 for ld_flag
in $LDFLAGS; do
17810 aix_use_runtimelinking
=yes
17818 exp_sym_flag
='-bexport'
17819 no_entry_flag
='-bnoentry'
17822 # When large executables or shared objects are built, AIX ld can
17823 # have problems creating the table of contents. If linking a library
17824 # or program results in "error TOC overflow" add -mminimal-toc to
17825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17828 archive_cmds_CXX
=''
17829 hardcode_direct_CXX
=yes
17830 hardcode_direct_absolute_CXX
=yes
17831 hardcode_libdir_separator_CXX
=':'
17832 link_all_deplibs_CXX
=yes
17833 file_list_spec_CXX
='${wl}-f,'
17835 if test "$GXX" = yes; then
17836 case $host_os in aix4.
[012]|aix4.
[012].
*)
17837 # We only want to do this on AIX 4.2 and lower, the check
17838 # below for broken collect2 doesn't work under 4.3+
17839 collect2name
=`${CC} -print-prog-name=collect2`
17840 if test -f "$collect2name" &&
17841 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17843 # We have reworked collect2
17846 # We have old collect2
17847 hardcode_direct_CXX
=unsupported
17848 # It fails to find uninstalled libraries when the uninstalled
17849 # path is not listed in the libpath. Setting hardcode_minus_L
17850 # to unsupported forces relinking
17851 hardcode_minus_L_CXX
=yes
17852 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17853 hardcode_libdir_separator_CXX
=
17856 shared_flag
='-shared'
17857 if test "$aix_use_runtimelinking" = yes; then
17858 shared_flag
="$shared_flag "'${wl}-G'
17862 if test "$host_cpu" = ia64
; then
17863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17864 # chokes on -Wl,-G. The following line is correct:
17867 if test "$aix_use_runtimelinking" = yes; then
17868 shared_flag
='${wl}-G'
17870 shared_flag
='${wl}-bM:SRE'
17875 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17876 # It seems that -bexpall does not export symbols beginning with
17877 # underscore (_), so it is better to generate a list of symbols to
17879 always_export_symbols_CXX
=yes
17880 if test "$aix_use_runtimelinking" = yes; then
17881 # Warning - without using the other runtime loading flags (-brtl),
17882 # -berok will link without error, but may produce a broken library.
17883 allow_undefined_flag_CXX
='-berok'
17884 # Determine the default libpath from the value encoded in an empty
17886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17897 if ac_fn_cxx_try_link
"$LINENO"; then :
17899 lt_aix_libpath_sed
='
17900 /Import File Strings/,/^$/ {
17906 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17907 # Check for a 64-bit object if we didn't find anything.
17908 if test -z "$aix_libpath"; then
17909 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17912 rm -f core conftest.err conftest.
$ac_objext \
17913 conftest
$ac_exeext conftest.
$ac_ext
17914 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17916 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17918 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"
17920 if test "$host_cpu" = ia64
; then
17921 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17922 allow_undefined_flag_CXX
="-z nodefs"
17923 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"
17925 # Determine the default libpath from the value encoded in an
17926 # empty executable.
17927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17938 if ac_fn_cxx_try_link
"$LINENO"; then :
17940 lt_aix_libpath_sed
='
17941 /Import File Strings/,/^$/ {
17947 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 # Check for a 64-bit object if we didn't find anything.
17949 if test -z "$aix_libpath"; then
17950 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 rm -f core conftest.err conftest.
$ac_objext \
17954 conftest
$ac_exeext conftest.
$ac_ext
17955 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17957 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17958 # Warning - without using the other run time loading flags,
17959 # -berok will link without error, but may produce a broken library.
17960 no_undefined_flag_CXX
=' ${wl}-bernotok'
17961 allow_undefined_flag_CXX
=' ${wl}-berok'
17962 if test "$with_gnu_ld" = yes; then
17963 # We only use this code for GNU lds that support --whole-archive.
17964 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17966 # Exported symbols can be pulled into shared objects from archives
17967 whole_archive_flag_spec_CXX
='$convenience'
17969 archive_cmds_need_lc_CXX
=yes
17970 # This is similar to how AIX traditionally builds its shared
17972 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'
17978 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17979 allow_undefined_flag_CXX
=unsupported
17980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17981 # support --undefined. This deserves some investigation. FIXME
17982 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17989 case $cc_basename in
17991 # FIXME: insert proper C++ library support
17997 cygwin
* | mingw
* | pw32
* | cegcc
*)
17998 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17999 # as there is no search path for DLLs.
18000 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18001 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18002 allow_undefined_flag_CXX
=unsupported
18003 always_export_symbols_CXX
=no
18004 enable_shared_with_static_runtimes_CXX
=yes
18006 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18007 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'
18008 # If the export-symbols file already is a .def file (1st line
18009 # is EXPORTS), use it as is; otherwise, prepend...
18010 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18011 cp $export_symbols $output_objdir/$soname.def;
18013 echo EXPORTS > $output_objdir/$soname.def;
18014 cat $export_symbols >> $output_objdir/$soname.def;
18016 $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'
18021 darwin
* | rhapsody
*)
18024 archive_cmds_need_lc_CXX
=no
18025 hardcode_direct_CXX
=no
18026 hardcode_automatic_CXX
=yes
18027 hardcode_shlibpath_var_CXX
=unsupported
18028 if test "$lt_cv_ld_force_load" = "yes"; then
18029 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\"`'
18031 whole_archive_flag_spec_CXX
=''
18033 link_all_deplibs_CXX
=yes
18034 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18035 case $cc_basename in
18036 ifort
*) _lt_dar_can_shared
=yes ;;
18037 *) _lt_dar_can_shared
=$GCC ;;
18039 if test "$_lt_dar_can_shared" = "yes"; then
18040 output_verbose_link_cmd
=func_echo_all
18041 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}"
18042 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18043 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}"
18044 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}"
18045 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18046 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}"
18047 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}"
18057 case $cc_basename in
18059 # FIXME: insert proper C++ library support
18063 # Green Hills C++ Compiler
18064 # FIXME: insert proper C++ library support
18068 # FIXME: insert proper C++ library support
18075 # C++ shared libraries reported to be fairly broken before
18081 archive_cmds_need_lc_CXX
=no
18084 freebsd
* | dragonfly
*)
18085 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18094 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18095 link_all_deplibs_CXX
=yes
18099 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18100 hardcode_libdir_separator_CXX
=:
18101 export_dynamic_flag_spec_CXX
='${wl}-E'
18102 hardcode_direct_CXX
=yes
18103 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18104 # but as the default
18105 # location of the library.
18107 case $cc_basename in
18109 # FIXME: insert proper C++ library support
18113 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'
18114 # Commands to make compiler produce verbose output that lists
18115 # what "hidden" libraries, object files and flags are used when
18116 # linking a shared library.
18118 # There doesn't appear to be a way to prevent this compiler from
18119 # explicitly linking system object files so we need to strip them
18120 # from the output so that they don't get included in the library
18122 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"'
18125 if test "$GXX" = yes; then
18126 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'
18128 # FIXME: insert proper C++ library support
18136 if test $with_gnu_ld = no
; then
18137 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18138 hardcode_libdir_separator_CXX
=:
18144 export_dynamic_flag_spec_CXX
='${wl}-E'
18150 hardcode_direct_CXX
=no
18151 hardcode_shlibpath_var_CXX
=no
18154 hardcode_direct_CXX
=yes
18155 hardcode_direct_absolute_CXX
=yes
18156 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18157 # but as the default
18158 # location of the library.
18162 case $cc_basename in
18164 # FIXME: insert proper C++ library support
18170 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18173 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18176 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18179 # Commands to make compiler produce verbose output that lists
18180 # what "hidden" libraries, object files and flags are used when
18181 # linking a shared library.
18183 # There doesn't appear to be a way to prevent this compiler from
18184 # explicitly linking system object files so we need to strip them
18185 # from the output so that they don't get included in the library
18187 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"'
18190 if test "$GXX" = yes; then
18191 if test $with_gnu_ld = no
; then
18194 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18197 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18200 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'
18205 # FIXME: insert proper C++ library support
18213 hardcode_direct_CXX
=no
18214 hardcode_shlibpath_var_CXX
=no
18215 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18216 export_dynamic_flag_spec_CXX
='${wl}-E'
18217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18218 # Instead, shared libraries are loaded at an image base (0x10000000 by
18219 # default) and relocated if they conflict, which is a slow very memory
18220 # consuming and fragmenting process. To avoid this, we pick a random,
18221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18223 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'
18224 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'
18227 case $cc_basename in
18230 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'
18232 # Archives containing C++ object files must be created using
18233 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18234 # necessary to make sure instantiated templates are included
18236 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18239 if test "$GXX" = yes; then
18240 if test "$with_gnu_ld" = no
; then
18241 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'
18243 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'
18246 link_all_deplibs_CXX
=yes
18249 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18250 hardcode_libdir_separator_CXX
=:
18251 inherit_rpath_CXX
=yes
18254 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18255 case $cc_basename in
18257 # Kuck and Associates, Inc. (KAI) C++ Compiler
18259 # KCC will only create a shared library if the output file
18260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18261 # to its proper name (with version) after linking.
18262 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'
18263 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'
18264 # Commands to make compiler produce verbose output that lists
18265 # what "hidden" libraries, object files and flags are used when
18266 # linking a shared library.
18268 # There doesn't appear to be a way to prevent this compiler from
18269 # explicitly linking system object files so we need to strip them
18270 # from the output so that they don't get included in the library
18272 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"'
18274 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18275 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18277 # Archives containing C++ object files must be created using
18278 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18279 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18284 # version 8.0 and above of icpc choke on multiply defined symbols
18285 # if we add $predep_objects and $postdep_objects, however 7.1 and
18286 # earlier do not add the objects themselves.
18287 case `$CC -V 2>&1` in
18289 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18290 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'
18292 *) # Version 8.0 or newer
18295 ia64
*) tmp_idyn
=' -i_dynamic';;
18297 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18298 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'
18301 archive_cmds_need_lc_CXX
=no
18302 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18303 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18304 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18307 # Portland Group C++ compiler
18309 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18310 prelink_cmds_CXX
='tpldir=Template.dir~
18312 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18313 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18314 old_archive_cmds_CXX
='tpldir=Template.dir~
18316 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18317 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18319 archive_cmds_CXX
='tpldir=Template.dir~
18321 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18322 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18323 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18325 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18326 $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'
18328 *) # Version 6 and above use weak symbols
18329 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18330 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'
18334 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18335 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18336 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'
18340 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 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'
18343 runpath_var
=LD_RUN_PATH
18344 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18345 hardcode_libdir_separator_CXX
=:
18347 # Commands to make compiler produce verbose output that lists
18348 # what "hidden" libraries, object files and flags are used when
18349 # linking a shared library.
18351 # There doesn't appear to be a way to prevent this compiler from
18352 # explicitly linking system object files so we need to strip them
18353 # from the output so that they don't get included in the library
18355 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'
18357 xl
* | mpixl
* | bgxl
*)
18358 # IBM XL 8.0 on PPC, with GNU ld
18359 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18360 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18361 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18362 if test "x$supports_anon_versioning" = xyes
; then
18363 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18365 echo "local: *; };" >> $output_objdir/$libname.ver~
18366 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18370 case `$CC -V 2>&1 | sed 5q` in
18373 no_undefined_flag_CXX
=' -zdefs'
18374 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18375 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'
18376 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18377 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'
18378 compiler_needs_object_CXX
=yes
18380 # Not sure whether something based on
18381 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18383 output_verbose_link_cmd
='func_echo_all'
18385 # Archives containing C++ object files must be created using
18386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18387 # necessary to make sure instantiated templates are included
18389 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18397 # FIXME: insert proper C++ library support
18402 # FIXME: insert proper C++ library support
18407 case $cc_basename in
18409 # FIXME: insert proper C++ library support
18413 # FIXME: insert proper C++ library support
18420 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18421 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18423 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18424 hardcode_direct_CXX
=yes
18425 hardcode_shlibpath_var_CXX
=no
18427 # Workaround some broken pre-1.5 toolchains
18428 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18436 # C++ shared libraries are fairly broken
18441 if test -f /usr
/libexec
/ld.so
; then
18442 hardcode_direct_CXX
=yes
18443 hardcode_shlibpath_var_CXX
=no
18444 hardcode_direct_absolute_CXX
=yes
18445 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18446 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18448 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18449 export_dynamic_flag_spec_CXX
='${wl}-E'
18450 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18452 output_verbose_link_cmd
=func_echo_all
18458 osf3
* | osf4
* | osf5
*)
18459 case $cc_basename in
18461 # Kuck and Associates, Inc. (KAI) C++ Compiler
18463 # KCC will only create a shared library if the output file
18464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18465 # to its proper name (with version) after linking.
18466 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'
18468 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18469 hardcode_libdir_separator_CXX
=:
18471 # Archives containing C++ object files must be created using
18472 # the KAI C++ compiler.
18474 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18475 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18479 # Rational C++ 2.4.1
18480 # FIXME: insert proper C++ library support
18486 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18487 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'
18488 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18491 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18492 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'
18493 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18494 echo "-hidden">> $lib.exp~
18495 $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~
18497 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18501 hardcode_libdir_separator_CXX
=:
18503 # Commands to make compiler produce verbose output that lists
18504 # what "hidden" libraries, object files and flags are used when
18505 # linking a shared library.
18507 # There doesn't appear to be a way to prevent this compiler from
18508 # explicitly linking system object files so we need to strip them
18509 # from the output so that they don't get included in the library
18511 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"'
18514 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18515 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18518 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'
18521 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'
18525 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18526 hardcode_libdir_separator_CXX
=:
18528 # Commands to make compiler produce verbose output that lists
18529 # what "hidden" libraries, object files and flags are used when
18530 # linking a shared library.
18531 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18534 # FIXME: insert proper C++ library support
18542 # FIXME: insert proper C++ library support
18547 case $cc_basename in
18550 # FIXME: insert proper C++ library support
18555 # FIXME: insert proper C++ library support
18559 # FIXME: insert proper C++ library support
18566 case $cc_basename in
18568 # Sun C++ 4.2, 5.x and Centerline C++
18569 archive_cmds_need_lc_CXX
=yes
18570 no_undefined_flag_CXX
=' -zdefs'
18571 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18572 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18573 $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'
18575 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18576 hardcode_shlibpath_var_CXX
=no
18578 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18580 # The compiler driver will combine and reorder linker options,
18581 # but understands `-z linker_flag'.
18582 # Supported since Solaris 2.6 (maybe 2.5.1?)
18583 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18586 link_all_deplibs_CXX
=yes
18588 output_verbose_link_cmd
='func_echo_all'
18590 # Archives containing C++ object files must be created using
18591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18592 # necessary to make sure instantiated templates are included
18594 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18597 # Green Hills C++ Compiler
18598 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18600 # The C++ compiler must be used to create the archive.
18601 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18604 # GNU C++ compiler with Solaris linker
18605 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18606 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18607 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18608 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18609 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18612 # Commands to make compiler produce verbose output that lists
18613 # what "hidden" libraries, object files and flags are used when
18614 # linking a shared library.
18615 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18619 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18620 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18623 # Commands to make compiler produce verbose output that lists
18624 # what "hidden" libraries, object files and flags are used when
18625 # linking a shared library.
18626 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18629 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18631 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18633 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18641 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18642 no_undefined_flag_CXX
='${wl}-z,text'
18643 archive_cmds_need_lc_CXX
=no
18644 hardcode_shlibpath_var_CXX
=no
18645 runpath_var
='LD_RUN_PATH'
18647 case $cc_basename in
18649 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18650 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18653 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18654 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18659 sysv5
* | sco3.2v5
* | sco5v6
*)
18660 # Note: We can NOT use -z defs as we might desire, because we do not
18661 # link with -lc, and that would cause any symbols used from libc to
18662 # always be unresolved, which means just about no library would
18663 # ever link correctly. If we're not using GNU ld we use -z text
18664 # though, which does catch some bad symbols but isn't as heavy-handed
18666 no_undefined_flag_CXX
='${wl}-z,text'
18667 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18668 archive_cmds_need_lc_CXX
=no
18669 hardcode_shlibpath_var_CXX
=no
18670 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18671 hardcode_libdir_separator_CXX
=':'
18672 link_all_deplibs_CXX
=yes
18673 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18674 runpath_var
='LD_RUN_PATH'
18676 case $cc_basename in
18678 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18679 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18681 '"$old_archive_cmds_CXX"
18682 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18683 '"$reload_cmds_CXX"
18686 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18693 case $cc_basename in
18695 # NonStop-UX NCC 3.20
18696 # FIXME: insert proper C++ library support
18700 # FIXME: insert proper C++ library support
18707 # FIXME: insert proper C++ library support
18712 # FIXME: insert proper C++ library support
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18718 $as_echo "$ld_shlibs_CXX" >&6; }
18719 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18725 ## There is no encapsulation within the following macros, do not change
18726 ## the running order or otherwise move them around unless you know exactly
18727 ## what you are doing...
18728 # Dependencies to place before and after the object being linked:
18729 predep_objects_CXX
=
18730 postdep_objects_CXX
=
18733 compiler_lib_search_path_CXX
=
18735 cat > conftest.
$ac_ext <<_LT_EOF
18739 Foo (void) { a = 0; }
18745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18746 (eval $ac_compile) 2>&5
18748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749 test $ac_status = 0; }; then
18750 # Parse the compiler output and extract the necessary
18751 # objects, libraries and library flags.
18753 # Sentinel used to keep track of whether or not we are before
18754 # the conftest object file.
18755 pre_test_object_deps_done
=no
18757 for p
in `eval "$output_verbose_link_cmd"`; do
18761 # Some compilers place space between "-{L,R}" and the path.
18762 # Remove the space.
18763 if test $p = "-L" ||
18764 test $p = "-R"; then
18771 if test "$pre_test_object_deps_done" = no
; then
18774 # Internal compiler library paths should come after those
18775 # provided the user. The postdeps already come after the
18776 # user supplied libs so there is no need to process them.
18777 if test -z "$compiler_lib_search_path_CXX"; then
18778 compiler_lib_search_path_CXX
="${prev}${p}"
18780 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18783 # The "-l" case would never come before the object being
18784 # linked, so don't bother handling this case.
18787 if test -z "$postdeps_CXX"; then
18788 postdeps_CXX
="${prev}${p}"
18790 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18796 # This assumes that the test object file only shows up
18797 # once in the compiler output.
18798 if test "$p" = "conftest.$objext"; then
18799 pre_test_object_deps_done
=yes
18803 if test "$pre_test_object_deps_done" = no
; then
18804 if test -z "$predep_objects_CXX"; then
18805 predep_objects_CXX
="$p"
18807 predep_objects_CXX
="$predep_objects_CXX $p"
18810 if test -z "$postdep_objects_CXX"; then
18811 postdep_objects_CXX
="$p"
18813 postdep_objects_CXX
="$postdep_objects_CXX $p"
18818 *) ;; # Ignore the rest.
18826 echo "libtool.m4: error: problem compiling CXX test program"
18829 $RM -f confest.
$objext
18831 # PORTME: override above test on systems where it is broken
18834 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18835 # hack all around it, let's just trust "g++" to DTRT.
18836 predep_objects_CXX
=
18837 postdep_objects_CXX
=
18842 case `$CC -V 2>&1 | sed 5q` in
18846 # The more standards-conforming stlport4 library is
18847 # incompatible with the Cstd library. Avoid specifying
18848 # it if it's in CXXFLAGS. Ignore libCrun as
18849 # -library=stlport4 depends on it.
18850 case " $CXX $CXXFLAGS " in
18851 *" -library=stlport4 "*)
18852 solaris_use_stlport4
=yes
18856 if test "$solaris_use_stlport4" != yes; then
18857 postdeps_CXX
='-library=Cstd -library=Crun'
18864 case $cc_basename in
18866 # The more standards-conforming stlport4 library is
18867 # incompatible with the Cstd library. Avoid specifying
18868 # it if it's in CXXFLAGS. Ignore libCrun as
18869 # -library=stlport4 depends on it.
18870 case " $CXX $CXXFLAGS " in
18871 *" -library=stlport4 "*)
18872 solaris_use_stlport4
=yes
18876 # Adding this requires a known-good setup of shared libraries for
18877 # Sun compiler versions before 5.6, else PIC objects from an old
18878 # archive will be linked into the output, leading to subtle bugs.
18879 if test "$solaris_use_stlport4" != yes; then
18880 postdeps_CXX
='-library=Cstd -library=Crun'
18888 case " $postdeps_CXX " in
18889 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18891 compiler_lib_search_dirs_CXX
=
18892 if test -n "${compiler_lib_search_path_CXX}"; then
18893 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18926 lt_prog_compiler_wl_CXX
=
18927 lt_prog_compiler_pic_CXX
=
18928 lt_prog_compiler_static_CXX
=
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18931 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18933 # C++ specific cases for pic, static, wl, etc.
18934 if test "$GXX" = yes; then
18935 lt_prog_compiler_wl_CXX
='-Wl,'
18936 lt_prog_compiler_static_CXX
='-static'
18940 # All AIX code is PIC.
18941 if test "$host_cpu" = ia64
; then
18942 # AIX 5 now supports IA64 processor
18943 lt_prog_compiler_static_CXX
='-Bstatic'
18950 # see comment about AmigaOS4 .so support
18951 lt_prog_compiler_pic_CXX
='-fPIC'
18954 # FIXME: we need at least 68020 code to build shared libraries, but
18955 # adding the `-m68020' flag to GCC prevents building anything better,
18957 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
18962 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18963 # PIC is the default for these OSes.
18965 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
18966 # This hack is so that the source file can tell whether it is being
18967 # built for inclusion in a dll (and should export symbols for example).
18968 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18969 # (--disable-auto-import) libraries
18970 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
18972 darwin
* | rhapsody
*)
18973 # PIC is the default on this platform
18974 # Common symbols not allowed in MH_DYLIB files
18975 lt_prog_compiler_pic_CXX
='-fno-common'
18978 # DJGPP does not support shared libraries at all
18979 lt_prog_compiler_pic_CXX
=
18982 # PIC is the default for Haiku.
18983 # The "-static" flag exists, but is broken.
18984 lt_prog_compiler_static_CXX
=
18987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18988 # Instead, we relocate shared libraries at runtime.
18991 if test -d /usr
/nec
; then
18992 lt_prog_compiler_pic_CXX
=-Kconform_pic
18996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18998 # sets the default TLS model and affects inlining.
19003 lt_prog_compiler_pic_CXX
='-fPIC'
19008 # QNX uses GNU C++, but need to define -shared option too, otherwise
19009 # it will coredump.
19010 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19013 lt_prog_compiler_pic_CXX
='-fPIC'
19019 # All AIX code is PIC.
19020 if test "$host_cpu" = ia64
; then
19021 # AIX 5 now supports IA64 processor
19022 lt_prog_compiler_static_CXX
='-Bstatic'
19024 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19028 case $cc_basename in
19030 # Green Hills C++ Compiler
19031 # _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"
19036 case $cc_basename in
19038 lt_prog_compiler_pic_CXX
='-KPIC'
19041 # Green Hills C++ Compiler
19042 lt_prog_compiler_pic_CXX
='-pic'
19048 freebsd
* | dragonfly
*)
19049 # FreeBSD uses GNU C++
19051 hpux9
* | hpux10
* | hpux11
*)
19052 case $cc_basename in
19054 lt_prog_compiler_wl_CXX
='-Wl,'
19055 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19056 if test "$host_cpu" != ia64
; then
19057 lt_prog_compiler_pic_CXX
='+Z'
19061 lt_prog_compiler_wl_CXX
='-Wl,'
19062 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19068 lt_prog_compiler_pic_CXX
='+Z'
19077 # This is c89, which is MS Visual C++ (no shared libs)
19078 # Anyone wants to do a port?
19080 irix5
* | irix6
* | nonstopux
*)
19081 case $cc_basename in
19083 lt_prog_compiler_wl_CXX
='-Wl,'
19084 lt_prog_compiler_static_CXX
='-non_shared'
19085 # CC pic flag -KPIC is the default.
19091 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19092 case $cc_basename in
19095 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19096 lt_prog_compiler_pic_CXX
='-fPIC'
19099 # old Intel C++ for x86_64 which still supported -KPIC.
19100 lt_prog_compiler_wl_CXX
='-Wl,'
19101 lt_prog_compiler_pic_CXX
='-KPIC'
19102 lt_prog_compiler_static_CXX
='-static'
19105 # Intel C++, used to be incompatible with GCC.
19106 # ICC 10 doesn't accept -KPIC any more.
19107 lt_prog_compiler_wl_CXX
='-Wl,'
19108 lt_prog_compiler_pic_CXX
='-fPIC'
19109 lt_prog_compiler_static_CXX
='-static'
19112 # Portland Group C++ compiler
19113 lt_prog_compiler_wl_CXX
='-Wl,'
19114 lt_prog_compiler_pic_CXX
='-fpic'
19115 lt_prog_compiler_static_CXX
='-Bstatic'
19119 # Make sure the PIC flag is empty. It appears that all Alpha
19120 # Linux and Compaq Tru64 Unix objects are PIC.
19121 lt_prog_compiler_pic_CXX
=
19122 lt_prog_compiler_static_CXX
='-non_shared'
19124 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19125 # IBM XL 8.0, 9.0 on PPC and BlueGene
19126 lt_prog_compiler_wl_CXX
='-Wl,'
19127 lt_prog_compiler_pic_CXX
='-qpic'
19128 lt_prog_compiler_static_CXX
='-qstaticlink'
19131 case `$CC -V 2>&1 | sed 5q` in
19134 lt_prog_compiler_pic_CXX
='-KPIC'
19135 lt_prog_compiler_static_CXX
='-Bstatic'
19136 lt_prog_compiler_wl_CXX
='-Qoption ld '
19147 case $cc_basename in
19149 lt_prog_compiler_pic_CXX
='-W c,exportall'
19158 # QNX uses GNU C++, but need to define -shared option too, otherwise
19159 # it will coredump.
19160 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19162 osf3
* | osf4
* | osf5
*)
19163 case $cc_basename in
19165 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19168 # Rational C++ 2.4.1
19169 lt_prog_compiler_pic_CXX
='-pic'
19172 # Digital/Compaq C++
19173 lt_prog_compiler_wl_CXX
='-Wl,'
19174 # Make sure the PIC flag is empty. It appears that all Alpha
19175 # Linux and Compaq Tru64 Unix objects are PIC.
19176 lt_prog_compiler_pic_CXX
=
19177 lt_prog_compiler_static_CXX
='-non_shared'
19186 case $cc_basename in
19188 # Sun C++ 4.2, 5.x and Centerline C++
19189 lt_prog_compiler_pic_CXX
='-KPIC'
19190 lt_prog_compiler_static_CXX
='-Bstatic'
19191 lt_prog_compiler_wl_CXX
='-Qoption ld '
19194 # Green Hills C++ Compiler
19195 lt_prog_compiler_pic_CXX
='-PIC'
19202 case $cc_basename in
19205 lt_prog_compiler_pic_CXX
='-pic'
19206 lt_prog_compiler_static_CXX
='-Bstatic'
19210 lt_prog_compiler_pic_CXX
='-pic'
19216 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19217 case $cc_basename in
19219 lt_prog_compiler_wl_CXX
='-Wl,'
19220 lt_prog_compiler_pic_CXX
='-KPIC'
19221 lt_prog_compiler_static_CXX
='-Bstatic'
19226 case $cc_basename in
19228 # NonStop-UX NCC 3.20
19229 lt_prog_compiler_pic_CXX
='-KPIC'
19238 lt_prog_compiler_can_build_shared_CXX
=no
19244 # For platforms which do not support PIC, -DPIC is meaningless:
19246 lt_prog_compiler_pic_CXX
=
19249 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19253 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19258 # Check to make sure the PIC flag actually works.
19260 if test -n "$lt_prog_compiler_pic_CXX"; then
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19263 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19264 $as_echo_n "(cached) " >&6
19266 lt_cv_prog_compiler_pic_works_CXX
=no
19267 ac_outfile
=conftest.
$ac_objext
19268 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19269 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19270 # Insert the option either (1) after the last *FLAGS variable, or
19271 # (2) before a word containing "conftest.", or (3) at the end.
19272 # Note that $ac_compile itself does not contain backslashes and begins
19273 # with a dollar sign (not a hyphen), so the echo should work correctly.
19274 # The option is referenced via a variable to avoid confusing sed.
19275 lt_compile
=`echo "$ac_compile" | $SED \
19276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19278 -e 's:$: $lt_compiler_flag:'`
19279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19280 (eval "$lt_compile" 2>conftest.err
)
19282 cat conftest.err
>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 if (exit $ac_status) && test -s "$ac_outfile"; then
19285 # The compiler can only warn and ignore the option if not recognized
19286 # So say no if there are warnings other than the usual output.
19287 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19288 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19289 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19290 lt_cv_prog_compiler_pic_works_CXX
=yes
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19297 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19299 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19300 case $lt_prog_compiler_pic_CXX in
19302 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19305 lt_prog_compiler_pic_CXX
=
19306 lt_prog_compiler_can_build_shared_CXX
=no
19314 # Check to make sure the static flag actually works.
19316 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19319 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19320 $as_echo_n "(cached) " >&6
19322 lt_cv_prog_compiler_static_works_CXX
=no
19323 save_LDFLAGS
="$LDFLAGS"
19324 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19325 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19326 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19327 # The linker can only warn and ignore the option if not recognized
19328 # So say no if there are warnings
19329 if test -s conftest.err
; then
19330 # Append any errors to the config.log.
19331 cat conftest.err
1>&5
19332 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19333 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19334 if diff conftest.exp conftest.er2
>/dev
/null
; then
19335 lt_cv_prog_compiler_static_works_CXX
=yes
19338 lt_cv_prog_compiler_static_works_CXX
=yes
19342 LDFLAGS
="$save_LDFLAGS"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19346 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19348 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19351 lt_prog_compiler_static_CXX
=
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19359 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19360 $as_echo_n "(cached) " >&6
19362 lt_cv_prog_compiler_c_o_CXX
=no
19363 $RM -r conftest
2>/dev
/null
19367 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19369 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19370 # Insert the option either (1) after the last *FLAGS variable, or
19371 # (2) before a word containing "conftest.", or (3) at the end.
19372 # Note that $ac_compile itself does not contain backslashes and begins
19373 # with a dollar sign (not a hyphen), so the echo should work correctly.
19374 lt_compile
=`echo "$ac_compile" | $SED \
19375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19377 -e 's:$: $lt_compiler_flag:'`
19378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19379 (eval "$lt_compile" 2>out
/conftest.err
)
19381 cat out
/conftest.err
>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19385 # The compiler can only warn and ignore the option if not recognized
19386 # So say no if there are warnings
19387 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19388 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19389 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19390 lt_cv_prog_compiler_c_o_CXX
=yes
19395 # SGI C++ compiler will create directory out/ii_files/ for
19396 # template instantiation
19397 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19398 $RM out
/* && rmdir out
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19405 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19412 $as_echo_n "(cached) " >&6
19414 lt_cv_prog_compiler_c_o_CXX
=no
19415 $RM -r conftest
2>/dev
/null
19419 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19421 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19422 # Insert the option either (1) after the last *FLAGS variable, or
19423 # (2) before a word containing "conftest.", or (3) at the end.
19424 # Note that $ac_compile itself does not contain backslashes and begins
19425 # with a dollar sign (not a hyphen), so the echo should work correctly.
19426 lt_compile
=`echo "$ac_compile" | $SED \
19427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19429 -e 's:$: $lt_compiler_flag:'`
19430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19431 (eval "$lt_compile" 2>out
/conftest.err
)
19433 cat out
/conftest.err
>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19437 # The compiler can only warn and ignore the option if not recognized
19438 # So say no if there are warnings
19439 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19440 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19441 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19442 lt_cv_prog_compiler_c_o_CXX
=yes
19447 # SGI C++ compiler will create directory out/ii_files/ for
19448 # template instantiation
19449 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19450 $RM out
/* && rmdir out
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19462 hard_links
="nottested"
19463 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19464 # do not overwrite the value of need_locks provided by the user
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19466 $as_echo_n "checking if we can lock with hard links... " >&6; }
19469 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19471 ln conftest.a conftest.b
2>&5 || hard_links
=no
19472 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19474 $as_echo "$hard_links" >&6; }
19475 if test "$hard_links" = no
; then
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19489 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19492 # If we're using GNU nm, then we don't want the "-C" option.
19493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19494 # Also, AIX nm treats weak defined symbols like other global defined
19495 # symbols, whereas GNU nm marks them as "W".
19496 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19497 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'
19499 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'
19503 export_symbols_cmds_CXX
="$ltdll_cmds"
19505 cygwin
* | mingw
* | cegcc
*)
19506 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'
19509 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19512 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19515 $as_echo "$ld_shlibs_CXX" >&6; }
19516 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19518 with_gnu_ld_CXX
=$with_gnu_ld
19526 # Do we need to explicitly link libc?
19528 case "x$archive_cmds_need_lc_CXX" in
19530 # Assume -lc should be added
19531 archive_cmds_need_lc_CXX
=yes
19533 if test "$enable_shared" = yes && test "$GCC" = yes; then
19534 case $archive_cmds_CXX in
19536 # FIXME: we may have to deal with multi-command sequences.
19539 # Test whether the compiler implicitly links with -lc since on some
19540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19541 # to ld, don't add -lc before -lgcc.
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19543 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19544 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19545 $as_echo_n "(cached) " >&6
19548 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19551 (eval $ac_compile) 2>&5
19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; } 2>conftest.err
; then
19557 libobjs
=conftest.
$ac_objext
19559 wl
=$lt_prog_compiler_wl_CXX
19560 pic_flag
=$lt_prog_compiler_pic_CXX
19566 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19567 allow_undefined_flag_CXX
=
19568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19569 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19572 test $ac_status = 0; }
19574 lt_cv_archive_cmds_need_lc_CXX
=no
19576 lt_cv_archive_cmds_need_lc_CXX
=yes
19578 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19580 cat conftest.err
1>&5
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19586 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19587 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19660 library_names_spec
=
19661 libname_spec
='lib$name'
19665 postuninstall_cmds
=
19669 shlibpath_overrides_runpath
=unknown
19671 dynamic_linker
="$host_os ld.so"
19672 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19673 need_lib_prefix
=unknown
19674 hardcode_into_libs
=no
19676 # when you set need_version to no, make sure it does not cause -set_version
19677 # flags to be left without arguments
19678 need_version
=unknown
19683 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19684 shlibpath_var
=LIBPATH
19686 # AIX 3 has no versioning support, so we append a major version to the name.
19687 soname_spec
='${libname}${release}${shared_ext}$major'
19694 hardcode_into_libs
=yes
19695 if test "$host_cpu" = ia64
; then
19696 # AIX 5 supports IA64
19697 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19698 shlibpath_var
=LD_LIBRARY_PATH
19700 # With GCC up to 2.95.x, collect2 would create an import file
19701 # for dependence libraries. The import file would start with
19702 # the line `#! .'. This would cause the generated library to
19703 # depend on `.', always an invalid library. This was fixed in
19704 # development snapshots of GCC prior to 3.0.
19706 aix4 | aix4.
[01] | aix4.
[01].
*)
19707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19709 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19712 can_build_shared
=no
19716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19717 # soname into executable. Probably we can add versioning support to
19718 # collect2, so additional links can be useful in future.
19719 if test "$aix_use_runtimelinking" = yes; then
19720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19721 # instead of lib<name>.a to let people know that these are not
19722 # typical AIX shared libraries.
19723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19725 # We preserve .a as extension for shared libraries through AIX4.2
19726 # and later when we are not doing run time linking.
19727 library_names_spec
='${libname}${release}.a $libname.a'
19728 soname_spec
='${libname}${release}${shared_ext}$major'
19730 shlibpath_var
=LIBPATH
19737 # Since July 2007 AmigaOS4 officially supports .so libraries.
19738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19742 library_names_spec
='$libname.ixlibrary $libname.a'
19743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19744 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'
19750 library_names_spec
='${libname}${shared_ext}'
19751 dynamic_linker
="$host_os ld.so"
19752 shlibpath_var
=LIBRARY_PATH
19758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19759 soname_spec
='${libname}${release}${shared_ext}$major'
19760 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19761 shlibpath_var
=LD_LIBRARY_PATH
19762 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19763 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19764 # the default ld.so.conf also contains /usr/contrib/lib and
19765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19766 # libtool to hard-code these into programs
19769 cygwin
* | mingw
* | pw32
* | cegcc
*)
19770 version_type
=windows
19775 case $GCC,$host_os in
19776 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19777 library_names_spec
='$libname.dll.a'
19778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19779 postinstall_cmds
='base_file=`basename \${file}`~
19780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19781 dldir=$destdir/`dirname \$dlpath`~
19782 test -d \$dldir || mkdir -p \$dldir~
19783 $install_prog $dir/$dlname \$dldir/$dlname~
19784 chmod a+x \$dldir/$dlname~
19785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19788 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19789 dlpath=$dir/\$dldll~
19791 shlibpath_overrides_runpath
=yes
19795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19796 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19800 # MinGW DLLs use traditional 'lib' prefix
19801 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19804 # pw32 DLLs use 'pw' prefix rather than 'lib'
19805 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19811 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19814 dynamic_linker
='Win32 ld.exe'
19815 # FIXME: first we should search . and the directory the executable is in
19819 darwin
* | rhapsody
*)
19820 dynamic_linker
="$host_os dyld"
19821 version_type
=darwin
19824 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19825 soname_spec
='${libname}${release}${major}$shared_ext'
19826 shlibpath_overrides_runpath
=yes
19827 shlibpath_var
=DYLD_LIBRARY_PATH
19828 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19830 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19838 soname_spec
='${libname}${release}${shared_ext}$major'
19839 shlibpath_var
=LD_LIBRARY_PATH
19846 freebsd
* | dragonfly
*)
19847 # DragonFly does not have aout. When/if they implement a new
19848 # versioning mechanism, adjust this.
19849 if test -x /usr
/bin
/objformat
; then
19850 objformat
=`/usr/bin/objformat`
19853 freebsd
[123]*) objformat
=aout
;;
19854 *) objformat
=elf
;;
19857 version_type
=freebsd-
$objformat
19858 case $version_type in
19860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19865 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19869 shlibpath_var
=LD_LIBRARY_PATH
19872 shlibpath_overrides_runpath
=yes
19874 freebsd3.
[01]* | freebsdelf3.
[01]*)
19875 shlibpath_overrides_runpath
=yes
19876 hardcode_into_libs
=yes
19878 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19879 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19880 shlibpath_overrides_runpath
=no
19881 hardcode_into_libs
=yes
19883 *) # from 4.6 on, and DragonFly
19884 shlibpath_overrides_runpath
=yes
19885 hardcode_into_libs
=yes
19894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19895 soname_spec
='${libname}${release}${shared_ext}$major'
19896 shlibpath_var
=LD_LIBRARY_PATH
19897 hardcode_into_libs
=yes
19904 dynamic_linker
="$host_os runtime_loader"
19905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19906 soname_spec
='${libname}${release}${shared_ext}$major'
19907 shlibpath_var
=LIBRARY_PATH
19908 shlibpath_overrides_runpath
=yes
19909 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19910 hardcode_into_libs
=yes
19913 hpux9
* | hpux10
* | hpux11
*)
19914 # Give a soname corresponding to the major version so that dld.sl refuses to
19915 # link against other versions.
19922 hardcode_into_libs
=yes
19923 dynamic_linker
="$host_os dld.so"
19924 shlibpath_var
=LD_LIBRARY_PATH
19925 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927 soname_spec
='${libname}${release}${shared_ext}$major'
19928 if test "X$HPUX_IA64_MODE" = X32
; then
19929 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19931 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19933 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19937 hardcode_into_libs
=yes
19938 dynamic_linker
="$host_os dld.sl"
19939 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19940 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19942 soname_spec
='${libname}${release}${shared_ext}$major'
19943 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19944 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19948 dynamic_linker
="$host_os dld.sl"
19949 shlibpath_var
=SHLIB_PATH
19950 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19952 soname_spec
='${libname}${release}${shared_ext}$major'
19955 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19956 postinstall_cmds
='chmod 555 $lib'
19957 # or fails outright, so override atomically:
19958 install_override_mode
=555
19965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19966 soname_spec
='${libname}${release}${shared_ext}$major'
19967 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19968 shlibpath_var
=LD_LIBRARY_PATH
19969 shlibpath_overrides_runpath
=no
19970 hardcode_into_libs
=yes
19973 irix5
* | irix6
* | nonstopux
*)
19975 nonstopux
*) version_type
=nonstopux
;;
19977 if test "$lt_cv_prog_gnu_ld" = yes; then
19985 soname_spec
='${libname}${release}${shared_ext}$major'
19986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19988 irix5
* | nonstopux
*)
19989 libsuff
= shlibsuff
=
19992 case $LD in # libtool.m4 will add one of these switches to LD
19993 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19994 libsuff
= shlibsuff
= libmagic
=32-bit;;
19995 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19996 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19997 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19998 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19999 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20003 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20004 shlibpath_overrides_runpath
=no
20005 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20006 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20007 hardcode_into_libs
=yes
20010 # No shared lib support for Linux oldld, aout, or coff.
20011 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20015 # This must be Linux ELF.
20016 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20021 soname_spec
='${libname}${release}${shared_ext}$major'
20022 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20023 shlibpath_var
=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath
=no
20026 # Some binutils ld are patched to set DT_RUNPATH
20027 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20028 $as_echo_n "(cached) " >&6
20030 lt_cv_shlibpath_overrides_runpath
=no
20031 save_LDFLAGS
=$LDFLAGS
20032 save_libdir
=$libdir
20033 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20034 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20046 if ac_fn_cxx_try_link
"$LINENO"; then :
20047 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20048 lt_cv_shlibpath_overrides_runpath
=yes
20051 rm -f core conftest.err conftest.
$ac_objext \
20052 conftest
$ac_exeext conftest.
$ac_ext
20053 LDFLAGS
=$save_LDFLAGS
20054 libdir
=$save_libdir
20058 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20060 # This implies no fast_install, which is unacceptable.
20061 # Some rework will be needed to allow for fast_install
20062 # before this can be enabled.
20063 hardcode_into_libs
=yes
20065 # Append ld.so.conf contents to the search path
20066 if test -f /etc
/ld.so.conf
; then
20067 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' ' '`
20068 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20071 # We used to test for /lib/ld.so.1 and disable shared libraries on
20072 # powerpc, because MkLinux only supported shared libraries with the
20073 # GNU dynamic linker. Since this was broken with cross compilers,
20074 # most powerpc-linux boxes support dynamic linking these days and
20075 # people can always --disable-shared, the test was removed, and we
20076 # assume the GNU/Linux dynamic linker is in use.
20077 dynamic_linker
='GNU/Linux ld.so'
20084 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20086 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20087 dynamic_linker
='NetBSD (a.out) ld.so'
20089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20090 soname_spec
='${libname}${release}${shared_ext}$major'
20091 dynamic_linker
='NetBSD ld.elf_so'
20093 shlibpath_var
=LD_LIBRARY_PATH
20094 shlibpath_overrides_runpath
=yes
20095 hardcode_into_libs
=yes
20100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20101 shlibpath_var
=LD_LIBRARY_PATH
20102 shlibpath_overrides_runpath
=yes
20109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 soname_spec
='${libname}${release}${shared_ext}$major'
20111 shlibpath_var
=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath
=no
20113 hardcode_into_libs
=yes
20114 dynamic_linker
='ldqnx.so'
20119 sys_lib_dlsearch_path_spec
="/usr/lib"
20121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20123 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20124 *) need_version
=no
;;
20126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20127 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20128 shlibpath_var
=LD_LIBRARY_PATH
20129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20131 openbsd2.
[89] | openbsd2.
[89].
*)
20132 shlibpath_overrides_runpath
=no
20135 shlibpath_overrides_runpath
=yes
20139 shlibpath_overrides_runpath
=yes
20144 libname_spec
='$name'
20147 library_names_spec
='$libname${shared_ext} $libname.a'
20148 dynamic_linker
='OS/2 ld.exe'
20149 shlibpath_var
=LIBPATH
20152 osf3
* | osf4
* | osf5
*)
20156 soname_spec
='${libname}${release}${shared_ext}$major'
20157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 shlibpath_var
=LD_LIBRARY_PATH
20159 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20160 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20172 soname_spec
='${libname}${release}${shared_ext}$major'
20173 shlibpath_var
=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath
=yes
20175 hardcode_into_libs
=yes
20176 # ldd complains unless libraries are executable
20177 postinstall_cmds
='chmod +x $lib'
20182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20183 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20184 shlibpath_var
=LD_LIBRARY_PATH
20185 shlibpath_overrides_runpath
=yes
20186 if test "$with_gnu_ld" = yes; then
20194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec
='${libname}${release}${shared_ext}$major'
20196 shlibpath_var
=LD_LIBRARY_PATH
20197 case $host_vendor in
20199 shlibpath_overrides_runpath
=no
20201 runpath_var
=LD_RUN_PATH
20209 shlibpath_overrides_runpath
=no
20210 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20216 if test -d /usr
/nec
;then
20218 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20219 soname_spec
='$libname${shared_ext}.$major'
20220 shlibpath_var
=LD_LIBRARY_PATH
20224 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20225 version_type
=freebsd-elf
20228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20229 soname_spec
='${libname}${release}${shared_ext}$major'
20230 shlibpath_var
=LD_LIBRARY_PATH
20231 shlibpath_overrides_runpath
=yes
20232 hardcode_into_libs
=yes
20233 if test "$with_gnu_ld" = yes; then
20234 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20236 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20239 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20243 sys_lib_dlsearch_path_spec
='/usr/lib'
20247 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 shlibpath_var
=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath
=no
20254 hardcode_into_libs
=yes
20259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec
='${libname}${release}${shared_ext}$major'
20261 shlibpath_var
=LD_LIBRARY_PATH
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20269 $as_echo "$dynamic_linker" >&6; }
20270 test "$dynamic_linker" = no
&& can_build_shared
=no
20272 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20273 if test "$GCC" = yes; then
20274 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20277 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20278 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20280 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20281 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20322 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20323 hardcode_action_CXX
=
20324 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20325 test -n "$runpath_var_CXX" ||
20326 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20328 # We can hardcode non-existent directories.
20329 if test "$hardcode_direct_CXX" != no
&&
20330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20331 # have to relink, otherwise we might link with an installed library
20332 # when we should be linking with a yet-to-be-installed one
20333 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20334 test "$hardcode_minus_L_CXX" != no
; then
20335 # Linking always hardcodes the temporary library directory.
20336 hardcode_action_CXX
=relink
20338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20339 hardcode_action_CXX
=immediate
20342 # We cannot hardcode anything, or else we can only hardcode existing
20344 hardcode_action_CXX
=unsupported
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20347 $as_echo "$hardcode_action_CXX" >&6; }
20349 if test "$hardcode_action_CXX" = relink ||
20350 test "$inherit_rpath_CXX" = yes; then
20351 # Fast installation is not supported
20352 enable_fast_install
=no
20353 elif test "$shlibpath_overrides_runpath" = yes ||
20354 test "$enable_shared" = no
; then
20355 # Fast installation is not necessary
20356 enable_fast_install
=needless
20365 fi # test -n "$compiler"
20371 with_gnu_ld
=$lt_save_with_gnu_ld
20372 lt_cv_path_LDCXX
=$lt_cv_path_LD
20373 lt_cv_path_LD
=$lt_save_path_LD
20374 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20375 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20376 fi # test "$_lt_caught_CXX_error" != yes
20379 ac_cpp
='$CPP $CPPFLAGS'
20380 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20399 # Only expand once:
20405 # Identify the assembler which will work hand-in-glove with the newly
20406 # built GCC, so that we can examine its features. This is the assembler
20407 # which will be driven by the driver program.
20409 # If build != host, and we aren't building gas in-tree, we identify a
20410 # build->target assembler and hope that it will have the same features
20411 # as the host->target assembler we'll be using.
20412 gcc_cv_gas_major_version
=
20413 gcc_cv_gas_minor_version
=
20414 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20416 if test "${gcc_cv_as+set}" = set; then :
20420 if test -x "$DEFAULT_ASSEMBLER"; then
20421 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20422 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20423 && test -f ..
/gas
/Makefile \
20424 && test x
$build = x
$host; then
20425 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20426 elif test -x as
$build_exeext; then
20427 # Build using assembler in the current directory.
20428 gcc_cv_as
=.
/as
$build_exeext
20429 elif test -x $AS_FOR_TARGET; then
20430 gcc_cv_as
="$AS_FOR_TARGET"
20432 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20433 set dummy
$AS_FOR_TARGET; ac_word
=$2
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20435 $as_echo_n "checking for $ac_word... " >&6; }
20436 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20437 $as_echo_n "(cached) " >&6
20441 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20445 for as_dir
in $PATH
20448 test -z "$as_dir" && as_dir
=.
20449 for ac_exec_ext
in '' $ac_executable_extensions; do
20450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20451 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20462 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20463 if test -n "$gcc_cv_as"; then
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20465 $as_echo "$gcc_cv_as" >&6; }
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20475 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20477 case "$ORIGINAL_AS_FOR_TARGET" in
20478 .
/as | .
/as
$build_exeext) ;;
20479 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20484 $as_echo_n "checking what assembler to use... " >&6; }
20485 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20486 # Single tree build which includes gas. We want to prefer it
20487 # over whatever linker top-level may have detected, since
20488 # we'll use what we're building after installation anyway.
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20490 $as_echo "newly built gas" >&6; }
20492 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20493 for f
in $gcc_cv_as_bfd_srcdir/configure \
20494 $gcc_cv_as_gas_srcdir/configure \
20495 $gcc_cv_as_gas_srcdir/configure.
in \
20496 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20497 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20498 if test x
$gcc_cv_gas_version != x
; then
20502 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20503 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20504 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20505 case $gcc_cv_gas_patch_version in
20506 "") gcc_cv_gas_patch_version
="0" ;;
20508 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20509 + $gcc_cv_gas_minor_version \) \* 1000 \
20510 + $gcc_cv_gas_patch_version`
20512 in_tree_gas_is_elf
=no
20513 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20514 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20515 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20517 in_tree_gas_is_elf
=yes
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20521 $as_echo "$gcc_cv_as" >&6; }
20525 # Identify the linker which will work hand-in-glove with the newly
20526 # built GCC, so that we can examine its features. This is the linker
20527 # which will be driven by the driver program.
20529 # If build != host, and we aren't building gas in-tree, we identify a
20530 # build->target linker and hope that it will have the same features
20531 # as the host->target linker we'll be using.
20532 gcc_cv_gld_major_version
=
20533 gcc_cv_gld_minor_version
=
20534 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20535 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20537 if test "${gcc_cv_ld+set}" = set; then :
20541 if test -x "$DEFAULT_LINKER"; then
20542 gcc_cv_ld
="$DEFAULT_LINKER"
20543 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20544 && test -f ..
/ld
/Makefile \
20545 && test x
$build = x
$host; then
20546 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20547 elif test -x collect-ld
$build_exeext; then
20548 # Build using linker in the current directory.
20549 gcc_cv_ld
=.
/collect-ld
$build_exeext
20550 elif test -x $LD_FOR_TARGET; then
20551 gcc_cv_ld
="$LD_FOR_TARGET"
20553 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20554 set dummy
$LD_FOR_TARGET; ac_word
=$2
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20556 $as_echo_n "checking for $ac_word... " >&6; }
20557 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20558 $as_echo_n "(cached) " >&6
20562 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20566 for as_dir
in $PATH
20569 test -z "$as_dir" && as_dir
=.
20570 for ac_exec_ext
in '' $ac_executable_extensions; do
20571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20572 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20583 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20584 if test -n "$gcc_cv_ld"; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20586 $as_echo "$gcc_cv_ld" >&6; }
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20589 $as_echo "no" >&6; }
20596 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20597 PLUGIN_LD
=`basename $gcc_cv_ld`
20599 # Check whether --with-plugin-ld was given.
20600 if test "${with_plugin_ld+set}" = set; then :
20601 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20602 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20603 PLUGIN_LD
="$withval"
20609 cat >>confdefs.h
<<_ACEOF
20610 #define PLUGIN_LD "$PLUGIN_LD"
20614 # Check to see if we are using gold instead of ld
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20616 $as_echo_n "checking whether we are using gold... " >&6; }
20618 if test x
$gcc_cv_ld != x
; then
20619 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20620 |
grep "GNU gold" > /dev
/null
; then
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20625 $as_echo "$ld_is_gold" >&6; }
20627 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20629 case "$ORIGINAL_LD_FOR_TARGET" in
20630 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20631 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20636 $as_echo_n "checking what linker to use... " >&6; }
20637 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20638 # Single tree build which includes ld. We want to prefer it
20639 # over whatever linker top-level may have detected, since
20640 # we'll use what we're building after installation anyway.
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20642 $as_echo "newly built ld" >&6; }
20644 in_tree_ld_is_elf
=no
20645 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20646 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20647 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20648 in_tree_ld_is_elf
=yes
20650 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
20652 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20653 if test x
$gcc_cv_gld_version != x
; then
20657 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20658 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20661 $as_echo "$gcc_cv_ld" >&6; }
20665 # Figure out what nm we will be using.
20666 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20667 if test "${gcc_cv_nm+set}" = set; then :
20671 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20672 && test -f ..
/binutils
/Makefile \
20673 && test x
$build = x
$host; then
20674 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20675 elif test -x nm
$build_exeext; then
20676 gcc_cv_nm
=.
/nm
$build_exeext
20677 elif test -x $NM_FOR_TARGET; then
20678 gcc_cv_nm
="$NM_FOR_TARGET"
20680 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20681 set dummy
$NM_FOR_TARGET; ac_word
=$2
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20683 $as_echo_n "checking for $ac_word... " >&6; }
20684 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20685 $as_echo_n "(cached) " >&6
20689 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20693 for as_dir
in $PATH
20696 test -z "$as_dir" && as_dir
=.
20697 for ac_exec_ext
in '' $ac_executable_extensions; do
20698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20699 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20710 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20711 if test -n "$gcc_cv_nm"; then
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20713 $as_echo "$gcc_cv_nm" >&6; }
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20716 $as_echo "no" >&6; }
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20724 $as_echo_n "checking what nm to use... " >&6; }
20725 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20726 # Single tree build which includes binutils.
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20728 $as_echo "newly built nm" >&6; }
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20732 $as_echo "$gcc_cv_nm" >&6; }
20736 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20738 case "$ORIGINAL_NM_FOR_TARGET" in
20739 .
/nm | .
/nm
$build_exeext) ;;
20740 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20745 # Figure out what objdump we will be using.
20746 if test "${gcc_cv_objdump+set}" = set; then :
20750 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20751 && test -f ..
/binutils
/Makefile \
20752 && test x
$build = x
$host; then
20753 # Single tree build which includes binutils.
20754 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20755 elif test -x objdump
$build_exeext; then
20756 gcc_cv_objdump
=.
/objdump
$build_exeext
20757 elif test -x $OBJDUMP_FOR_TARGET; then
20758 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20760 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20761 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20763 $as_echo_n "checking for $ac_word... " >&6; }
20764 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20765 $as_echo_n "(cached) " >&6
20767 case $gcc_cv_objdump in
20769 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20773 for as_dir
in $PATH
20776 test -z "$as_dir" && as_dir
=.
20777 for ac_exec_ext
in '' $ac_executable_extensions; do
20778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20779 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20790 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20791 if test -n "$gcc_cv_objdump"; then
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20793 $as_echo "$gcc_cv_objdump" >&6; }
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20804 $as_echo_n "checking what objdump to use... " >&6; }
20805 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20806 # Single tree build which includes binutils.
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20808 $as_echo "newly built objdump" >&6; }
20809 elif test x
$gcc_cv_objdump = x
; then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20811 $as_echo "not found" >&6; }
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20814 $as_echo "$gcc_cv_objdump" >&6; }
20817 # Figure out what readelf we will be using.
20818 if test "${gcc_cv_readelf+set}" = set; then :
20822 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20823 && test -f ..
/binutils
/Makefile \
20824 && test x
$build = x
$host; then
20825 # Single tree build which includes binutils.
20826 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20827 elif test -x readelf
$build_exeext; then
20828 gcc_cv_readelf
=.
/readelf
$build_exeext
20830 # Extract the first word of "readelf", so it can be a program name with args.
20831 set dummy readelf
; ac_word
=$2
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20833 $as_echo_n "checking for $ac_word... " >&6; }
20834 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20837 case $gcc_cv_readelf in
20839 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20843 for as_dir
in $PATH
20846 test -z "$as_dir" && as_dir
=.
20847 for ac_exec_ext
in '' $ac_executable_extensions; do
20848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20849 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20860 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20861 if test -n "$gcc_cv_readelf"; then
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20863 $as_echo "$gcc_cv_readelf" >&6; }
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20866 $as_echo "no" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20874 $as_echo_n "checking what readelf to use... " >&6; }
20875 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20876 # Single tree build which includes binutils.
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20878 $as_echo "newly built readelf" >&6; }
20879 elif test x
$gcc_cv_readelf = x
; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20881 $as_echo "not found" >&6; }
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20884 $as_echo "$gcc_cv_readelf" >&6; }
20887 # Figure out what assembler alignment features are present.
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20889 $as_echo_n "checking assembler flags... " >&6; }
20890 if test "${gcc_cv_as_flags+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20894 i
[34567]86-*-linux*)
20895 gcc_cv_as_flags
="--32"
20898 gcc_cv_as_flags
=" "
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20903 $as_echo "$gcc_cv_as_flags" >&6; }
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20906 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20907 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20908 $as_echo_n "(cached) " >&6
20910 gcc_cv_as_balign_and_p2align
=no
20911 if test $in_tree_gas = yes; then
20912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20913 then gcc_cv_as_balign_and_p2align
=yes
20915 elif test x
$gcc_cv_as != x
; then
20917 .p2align 2' > conftest.s
20918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20920 (eval $ac_try) 2>&5
20922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20923 test $ac_status = 0; }; }
20925 gcc_cv_as_balign_and_p2align
=yes
20927 echo "configure: failed program was" >&5
20930 rm -f conftest.o conftest.s
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20934 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20935 if test $gcc_cv_as_balign_and_p2align = yes; then
20937 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20942 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20943 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20944 $as_echo_n "(cached) " >&6
20946 gcc_cv_as_max_skip_p2align
=no
20947 if test $in_tree_gas = yes; then
20948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20949 then gcc_cv_as_max_skip_p2align
=yes
20951 elif test x
$gcc_cv_as != x
; then
20952 echo '.p2align 4,,7' > conftest.s
20953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20955 (eval $ac_try) 2>&5
20957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20958 test $ac_status = 0; }; }
20960 gcc_cv_as_max_skip_p2align
=yes
20962 echo "configure: failed program was" >&5
20965 rm -f conftest.o conftest.s
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20969 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20970 if test $gcc_cv_as_max_skip_p2align = yes; then
20972 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20977 $as_echo_n "checking assembler for .literal16... " >&6; }
20978 if test "${gcc_cv_as_literal16+set}" = set; then :
20979 $as_echo_n "(cached) " >&6
20981 gcc_cv_as_literal16
=no
20982 if test $in_tree_gas = yes; then
20983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20984 then gcc_cv_as_literal16
=yes
20986 elif test x
$gcc_cv_as != x
; then
20987 echo '.literal16' > conftest.s
20988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20990 (eval $ac_try) 2>&5
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }; }
20995 gcc_cv_as_literal16
=yes
20997 echo "configure: failed program was" >&5
21000 rm -f conftest.o conftest.s
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21004 $as_echo "$gcc_cv_as_literal16" >&6; }
21005 if test $gcc_cv_as_literal16 = yes; then
21007 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21012 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21013 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21016 gcc_cv_as_subsection_m1
=no
21017 if test $in_tree_gas = yes; then
21018 if test $in_tree_gas_is_elf = yes \
21019 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21020 then gcc_cv_as_subsection_m1
=yes
21022 elif test x
$gcc_cv_as != x
; then
21023 echo 'conftest_label1: .word 0
21025 conftest_label2: .word 0
21026 .previous' > conftest.s
21027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21029 (eval $ac_try) 2>&5
21031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21032 test $ac_status = 0; }; }
21034 if test x
$gcc_cv_nm != x
; then
21035 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21036 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21037 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21039 else gcc_cv_as_subsection_m1
=yes
21041 rm -f conftest.nm1 conftest.nm2
21044 echo "configure: failed program was" >&5
21047 rm -f conftest.o conftest.s
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21051 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21052 if test $gcc_cv_as_subsection_m1 = yes; then
21054 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21059 $as_echo_n "checking assembler for .weak... " >&6; }
21060 if test "${gcc_cv_as_weak+set}" = set; then :
21061 $as_echo_n "(cached) " >&6
21064 if test $in_tree_gas = yes; then
21065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21066 then gcc_cv_as_weak
=yes
21068 elif test x
$gcc_cv_as != x
; then
21069 echo ' .weak foobar' > conftest.s
21070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21072 (eval $ac_try) 2>&5
21074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21075 test $ac_status = 0; }; }
21079 echo "configure: failed program was" >&5
21082 rm -f conftest.o conftest.s
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21086 $as_echo "$gcc_cv_as_weak" >&6; }
21087 if test $gcc_cv_as_weak = yes; then
21089 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21094 $as_echo_n "checking assembler for .weakref... " >&6; }
21095 if test "${gcc_cv_as_weakref+set}" = set; then :
21096 $as_echo_n "(cached) " >&6
21098 gcc_cv_as_weakref
=no
21099 if test $in_tree_gas = yes; then
21100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21101 then gcc_cv_as_weakref
=yes
21103 elif test x
$gcc_cv_as != x
; then
21104 echo ' .weakref foobar, barfnot' > conftest.s
21105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21107 (eval $ac_try) 2>&5
21109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21110 test $ac_status = 0; }; }
21112 gcc_cv_as_weakref
=yes
21114 echo "configure: failed program was" >&5
21117 rm -f conftest.o conftest.s
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21121 $as_echo "$gcc_cv_as_weakref" >&6; }
21122 if test $gcc_cv_as_weakref = yes; then
21124 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21129 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21130 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21131 $as_echo_n "(cached) " >&6
21133 gcc_cv_as_nsubspa_comdat
=no
21134 if test $in_tree_gas = yes; then
21135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21136 then gcc_cv_as_nsubspa_comdat
=yes
21138 elif test x
$gcc_cv_as != x
; then
21139 echo ' .SPACE $TEXT$
21140 .NSUBSPA $CODE$,COMDAT' > conftest.s
21141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21143 (eval $ac_try) 2>&5
21145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21146 test $ac_status = 0; }; }
21148 gcc_cv_as_nsubspa_comdat
=yes
21150 echo "configure: failed program was" >&5
21153 rm -f conftest.o conftest.s
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21157 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21158 if test $gcc_cv_as_nsubspa_comdat = yes; then
21160 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21164 # .hidden needs to be supported in both the assembler and the linker,
21165 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21166 # This is irritatingly difficult to feature test for; we have to check the
21167 # date string after the version number. If we've got an in-tree
21168 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21170 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21172 $as_echo_n "checking assembler for .hidden... " >&6; }
21173 if test "${gcc_cv_as_hidden+set}" = set; then :
21174 $as_echo_n "(cached) " >&6
21176 gcc_cv_as_hidden
=no
21177 if test $in_tree_gas = yes; then
21178 if test $in_tree_gas_is_elf = yes \
21179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21180 then gcc_cv_as_hidden
=yes
21182 elif test x
$gcc_cv_as != x
; then
21183 echo ' .hidden foobar
21184 foobar:' > conftest.s
21185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21187 (eval $ac_try) 2>&5
21189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21190 test $ac_status = 0; }; }
21192 gcc_cv_as_hidden
=yes
21194 echo "configure: failed program was" >&5
21197 rm -f conftest.o conftest.s
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21201 $as_echo "$gcc_cv_as_hidden" >&6; }
21204 if test $in_tree_ld != yes ; then
21205 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21206 if test x
"$ld_is_gold" = xyes
; then
21207 gcc_cv_ld_hidden
=yes
21208 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21209 ld_vers
=`echo $ld_ver | sed -n \
21210 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21211 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'`
21212 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21213 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21214 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21216 case "${target}" in
21219 # Solaris 2 ld -V output looks like this for a regular version:
21221 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21223 # but test versions add stuff at the end:
21225 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21227 ld_ver
=`$gcc_cv_ld -V 2>&1`
21228 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21229 ld_vers
=`echo $ld_ver | sed -n \
21230 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21231 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21232 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21240 $as_echo_n "checking linker for .hidden support... " >&6; }
21241 if test "${gcc_cv_ld_hidden+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21244 if test $in_tree_ld = yes ; then
21245 gcc_cv_ld_hidden
=no
21246 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 \
21247 && test $in_tree_ld_is_elf = yes; then
21248 gcc_cv_ld_hidden
=yes
21251 gcc_cv_ld_hidden
=yes
21252 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21253 if test 0"$ld_date" -lt 20020404; then
21254 if test -n "$ld_date"; then
21255 # If there was date string, but was earlier than 2002-04-04, fail
21256 gcc_cv_ld_hidden
=no
21257 elif test -z "$ld_vers"; then
21258 # If there was no date string nor ld version number, something is wrong
21259 gcc_cv_ld_hidden
=no
21261 test -z "$ld_vers_patch" && ld_vers_patch
=0
21262 if test "$ld_vers_major" -lt 2; then
21263 gcc_cv_ld_hidden
=no
21264 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21265 gcc_cv_ld_hidden
="no"
21266 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21267 gcc_cv_ld_hidden
=no
21272 case "${target}" in
21273 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21274 gcc_cv_ld_hidden
=yes
21276 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21277 gcc_cv_ld_hidden
=yes
21280 gcc_cv_ld_hidden
=no
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21287 $as_echo "$gcc_cv_ld_hidden" >&6; }
21288 libgcc_visibility
=no
21291 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21292 libgcc_visibility
=yes
21294 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21299 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21300 gcc_cv_ld_ro_rw_mix
=unknown
21301 if test $in_tree_ld = yes ; then
21302 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 \
21303 && test $in_tree_ld_is_elf = yes; then
21304 gcc_cv_ld_ro_rw_mix
=read-write
21306 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21307 echo '.section myfoosect, "a"' > conftest1.s
21308 echo '.section myfoosect, "aw"' > conftest2.s
21309 echo '.byte 1' >> conftest2.s
21310 echo '.section myfoosect, "a"' > conftest3.s
21311 echo '.byte 0' >> conftest3.s
21312 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21313 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21314 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21315 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21316 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21317 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21318 | sed -e '/myfoosect/!d' -e N`
21319 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21320 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21321 gcc_cv_ld_ro_rw_mix
=read-only
21323 gcc_cv_ld_ro_rw_mix
=read-write
21327 rm -f conftest.
* conftest
[123].
*
21329 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21331 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21335 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21337 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21339 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21340 if test "${gcc_cv_as_leb128+set}" = set; then :
21341 $as_echo_n "(cached) " >&6
21343 gcc_cv_as_leb128
=no
21344 if test $in_tree_gas = yes; then
21345 if test $in_tree_gas_is_elf = yes \
21346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21347 then gcc_cv_as_leb128
=yes
21349 elif test x
$gcc_cv_as != x
; then
21356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21358 (eval $ac_try) 2>&5
21360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21361 test $ac_status = 0; }; }
21363 # GAS versions before 2.11 do not support uleb128,
21364 # despite appearing to.
21365 # ??? There exists an elf-specific test that will crash
21366 # the assembler. Perhaps it's better to figure out whether
21367 # arbitrary sections are supported and try the test.
21368 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21369 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21370 as_vers
=`echo $as_ver | sed -n \
21371 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21372 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21373 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21374 if test $as_major -eq 2 && test $as_minor -lt 11
21376 else gcc_cv_as_leb128
=yes
21380 echo "configure: failed program was" >&5
21383 rm -f conftest.o conftest.s
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21387 $as_echo "$gcc_cv_as_leb128" >&6; }
21388 if test $gcc_cv_as_leb128 = yes; then
21390 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21394 # Check if we have assembler support for unwind directives.
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21396 $as_echo_n "checking assembler for cfi directives... " >&6; }
21397 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21398 $as_echo_n "(cached) " >&6
21400 gcc_cv_as_cfi_directive
=no
21401 if test x
$gcc_cv_as != x
; then
21407 .cfi_escape 1, 2, 3, 4, 5
21408 .cfi_endproc' > conftest.s
21409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21411 (eval $ac_try) 2>&5
21413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21414 test $ac_status = 0; }; }
21418 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21419 # read-only and read-write sections, we need to make sure that the
21420 # assembler used emits read-write .eh_frame sections.
21421 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21422 if test "x$gcc_cv_objdump" != x
; then
21423 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21424 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21425 gcc_cv_as_cfi_directive
=no
21428 i?
86-*-solaris2.1
[0-9]*)
21429 # On Solaris/x86, make sure that GCC and gas agree on using
21430 # read-only .eh_frame sections for 64-bit.
21431 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21432 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21433 sed -e /.eh_frame
/!d
-e N | \
21434 grep READONLY
> /dev
/null
; then
21435 gcc_cv_as_cfi_directive
=yes
21437 gcc_cv_as_cfi_directive
=no
21441 gcc_cv_as_cfi_directive
=yes
21446 # no objdump, err on the side of caution
21447 gcc_cv_as_cfi_directive
=no
21450 gcc_cv_as_cfi_directive
=yes
21454 gcc_cv_as_cfi_directive
=yes
21458 echo "configure: failed program was" >&5
21461 rm -f conftest.o conftest.s
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21465 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21467 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21469 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21470 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21471 $as_echo_n "(cached) " >&6
21473 gcc_cv_as_cfi_advance_working
=no
21474 if test x
$gcc_cv_as != x
; then
21477 .cfi_adjust_cfa_offset 64
21479 .cfi_adjust_cfa_offset 128
21480 .cfi_endproc' > conftest.s
21481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21483 (eval $ac_try) 2>&5
21485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486 test $ac_status = 0; }; }
21489 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21490 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21491 gcc_cv_as_cfi_advance_working
=yes
21495 echo "configure: failed program was" >&5
21498 rm -f conftest.o conftest.s
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21502 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21505 # no readelf, err on the side of caution
21506 gcc_cv_as_cfi_advance_working
=no
21509 cat >>confdefs.h
<<_ACEOF
21510 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21511 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21516 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21517 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21518 $as_echo_n "(cached) " >&6
21520 gcc_cv_as_cfi_personality_directive
=no
21521 if test x
$gcc_cv_as != x
; then
21524 .cfi_personality 0, symbol
21525 .cfi_endproc' > conftest.s
21526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21528 (eval $ac_try) 2>&5
21530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21531 test $ac_status = 0; }; }
21533 gcc_cv_as_cfi_personality_directive
=yes
21535 echo "configure: failed program was" >&5
21538 rm -f conftest.o conftest.s
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21542 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21545 cat >>confdefs.h
<<_ACEOF
21546 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21547 then echo 1; else echo 0; fi`
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21552 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21553 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21556 gcc_cv_as_cfi_sections_directive
=no
21557 if test x
$gcc_cv_as != x
; then
21559 .cfi_sections .debug_frame, .eh_frame
21561 .cfi_endproc' > conftest.s
21562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21564 (eval $ac_try) 2>&5
21566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21567 test $ac_status = 0; }; }
21569 gcc_cv_as_cfi_sections_directive
=yes
21571 echo "configure: failed program was" >&5
21574 rm -f conftest.o conftest.s
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21578 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21581 cat >>confdefs.h
<<_ACEOF
21582 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21583 then echo 1; else echo 0; fi`
21587 # GAS versions up to and including 2.11.0 may mis-optimize
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21590 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21591 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21594 gcc_cv_as_eh_frame
=no
21595 if test $in_tree_gas = yes; then
21596 if test $in_tree_gas_is_elf = yes \
21597 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21598 then gcc_cv_as_eh_frame
=yes
21600 elif test x
$gcc_cv_as != x
; then
21607 .section .eh_frame,"aw",@progbits
21609 .4byte .LECIE1-.LSCIE1
21623 .4byte .LEFDE1-.LASFDE1
21625 .4byte .LASFDE1-__FRAME_BEGIN__
21632 .LEFDE1:' > conftest.s
21633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21635 (eval $ac_try) 2>&5
21637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21638 test $ac_status = 0; }; }
21640 cat > conftest.lit
<<EOF
21641 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21642 0010 01000000 12000000 18000000 00000000 ................
21643 0020 08000000 04080000 0044 .........D
21645 cat > conftest.big
<<EOF
21646 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21647 0010 00000001 00000012 00000018 00000000 ................
21648 0020 00000008 04000000 0844 .........D
21650 # If the assembler didn't choke, and we can objdump,
21651 # and we got the correct data, then succeed.
21652 # The text in the here-document typically retains its unix-style line
21653 # endings, while the output of objdump will use host line endings.
21654 # Therefore, use diff -b for the comparisons.
21655 if test x
$gcc_cv_objdump != x \
21656 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21657 |
tail -3 > conftest.got \
21658 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21659 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21661 gcc_cv_as_eh_frame
=yes
21662 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664 (eval $ac_try) 2>&5
21666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667 test $ac_status = 0; }; }; then
21668 gcc_cv_as_eh_frame
=buggy
21670 # Uh oh, what do we do now?
21671 gcc_cv_as_eh_frame
=no
21674 echo "configure: failed program was" >&5
21677 rm -f conftest.o conftest.s
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21681 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21684 if test $gcc_cv_as_eh_frame = buggy
; then
21686 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21691 $as_echo_n "checking assembler for section merging support... " >&6; }
21692 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21695 gcc_cv_as_shf_merge
=no
21696 if test $in_tree_gas = yes; then
21697 if test $in_tree_gas_is_elf = yes \
21698 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21699 then gcc_cv_as_shf_merge
=yes
21701 elif test x
$gcc_cv_as != x
; then
21702 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21705 (eval $ac_try) 2>&5
21707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21708 test $ac_status = 0; }; }
21710 gcc_cv_as_shf_merge
=yes
21712 echo "configure: failed program was" >&5
21715 rm -f conftest.o conftest.s
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21719 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21721 if test $gcc_cv_as_shf_merge = no
; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21723 $as_echo_n "checking assembler for section merging support... " >&6; }
21724 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21727 gcc_cv_as_shf_merge
=no
21728 if test $in_tree_gas = yes; then
21729 if test $in_tree_gas_is_elf = yes \
21730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21731 then gcc_cv_as_shf_merge
=yes
21733 elif test x
$gcc_cv_as != x
; then
21734 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21737 (eval $ac_try) 2>&5
21739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21740 test $ac_status = 0; }; }
21742 gcc_cv_as_shf_merge
=yes
21744 echo "configure: failed program was" >&5
21747 rm -f conftest.o conftest.s
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21751 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21755 cat >>confdefs.h
<<_ACEOF
21756 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21761 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21762 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21763 $as_echo_n "(cached) " >&6
21765 gcc_cv_as_comdat_group
=no
21766 if test $in_tree_gas = yes; then
21767 if test $in_tree_gas_is_elf = yes \
21768 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21769 then gcc_cv_as_comdat_group
=yes
21771 elif test x
$gcc_cv_as != x
; then
21772 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21775 (eval $ac_try) 2>&5
21777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21778 test $ac_status = 0; }; }
21780 gcc_cv_as_comdat_group
=yes
21782 echo "configure: failed program was" >&5
21785 rm -f conftest.o conftest.s
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21789 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21791 if test $gcc_cv_as_comdat_group = yes; then
21792 gcc_cv_as_comdat_group_percent
=no
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21795 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21796 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21797 $as_echo_n "(cached) " >&6
21799 gcc_cv_as_comdat_group_percent
=no
21800 if test $in_tree_gas = yes; then
21801 if test $in_tree_gas_is_elf = yes \
21802 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21803 then gcc_cv_as_comdat_group_percent
=yes
21805 elif test x
$gcc_cv_as != x
; then
21806 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21809 (eval $ac_try) 2>&5
21811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21812 test $ac_status = 0; }; }
21814 gcc_cv_as_comdat_group_percent
=yes
21816 echo "configure: failed program was" >&5
21819 rm -f conftest.o conftest.s
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21823 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21826 if test x
"$ld_is_gold" = xyes
; then
21828 elif test $in_tree_ld = yes ; then
21830 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 \
21831 && test $in_tree_ld_is_elf = yes; then
21834 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21836 if test 0"$ld_date" -lt 20050308; then
21837 if test -n "$ld_date"; then
21838 # If there was date string, but was earlier than 2005-03-08, fail
21840 elif test "$ld_vers_major" -lt 2; then
21842 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21847 case "${target}" in
21848 *-*-solaris2.1
[1-9]*)
21849 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21850 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21853 # FIXME: Maybe need to refine later when COMDAT group support with
21854 # Sun as is implemented.
21855 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
21862 # Assume linkers other than GNU ld don't support COMDAT group.
21867 # Allow overriding the automatic COMDAT group tests above.
21868 # Check whether --enable-comdat was given.
21869 if test "${enable_comdat+set}" = set; then :
21870 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
21873 if test $comdat_group = no
; then
21874 gcc_cv_as_comdat_group
=no
21875 gcc_cv_as_comdat_group_percent
=no
21878 cat >>confdefs.h
<<_ACEOF
21879 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21884 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21885 if test "${gcc_cv_as_discriminator+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21888 gcc_cv_as_discriminator
=no
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21891 then gcc_cv_as_discriminator
=yes
21893 elif test x
$gcc_cv_as != x
; then
21896 .loc 1 1 0 discriminator 1' > conftest.s
21897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21899 (eval $ac_try) 2>&5
21901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21902 test $ac_status = 0; }; }
21904 gcc_cv_as_discriminator
=yes
21906 echo "configure: failed program was" >&5
21909 rm -f conftest.o conftest.s
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21913 $as_echo "$gcc_cv_as_discriminator" >&6; }
21914 if test $gcc_cv_as_discriminator = yes; then
21916 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21920 # Thread-local storage - the check is heavily parameterized.
21928 .section ".tdata","awT",@progbits
21931 ldq $27,__tls_get_addr($29) !literal!1
21932 lda $16,foo($29) !tlsgd!1
21933 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21934 ldq $27,__tls_get_addr($29) !literal!2
21935 lda $16,foo($29) !tlsldm!2
21936 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21937 ldq $1,foo($29) !gotdtprel
21938 ldah $2,foo($29) !dtprelhi
21939 lda $3,foo($2) !dtprello
21940 lda $4,foo($29) !dtprel
21941 ldq $1,foo($29) !gottprel
21942 ldah $2,foo($29) !tprelhi
21943 lda $3,foo($2) !tprello
21944 lda $4,foo($29) !tprel'
21947 tls_as_opt
=--fatal-warnings
21949 cris-
*-*|crisv32-
*-*)
21951 .section ".tdata","awT",@progbits
21958 tls_as_opt
=--fatal-warnings
21962 .section ".tdata","awT",@progbits
21965 call #gettlsoff(x)'
21974 .section ".tdata","awT",@progbits
21978 addil LT%foo-$tls_gdidx$,gp
21979 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21982 addil LT%foo-$tls_ldidx$,gp
21984 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21985 addil LR%foo-$tls_dtpoff$,%ret0
21986 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21988 addil LT%foo-$tls_ieoff$,gp
21989 ldw RT%foo-$tls_ieoff$(%r1),%t2
21992 addil LR%foo-$tls_leoff$,%t1
21993 ldo RR%foo-$tls_leoff$(%r1),%t2'
21996 tls_as_opt
=--fatal-warnings
22000 .section ".tdata","awT",%progbits
22003 .word foo(gottpoff)
22013 i
[34567]86-*-solaris2.
[56789]*)
22014 # TLS was introduced in the Solaris 9 4/04 release but
22015 # we do not enable it by default on Solaris 9 either.
22016 if test "x$enable_tls" = xyes
; then
22022 i
[34567]86-*-solaris2.
*)
22029 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22031 .section .tdata,"awt",@progbits'
22035 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22039 .section ".tdata","awT",@progbits'
22042 tls_as_opt
="--fatal-warnings"
22044 conftest_s
="$conftest_s
22048 leal foo@tlsgd(,%ebx,1), %eax
22049 leal foo@tlsldm(%ebx), %eax
22050 leal foo@dtpoff(%eax), %edx
22051 movl foo@gottpoff(%ebx), %eax
22052 subl foo@gottpoff(%ebx), %eax
22053 addl foo@gotntpoff(%ebx), %eax
22054 movl foo@indntpoff, %eax
22055 movl \$foo@tpoff, %eax
22056 subl \$foo@tpoff, %eax
22057 leal foo@ntpoff(%ecx), %eax"
22061 .section ".tdata","awT",@progbits
22065 leaq foo@TLSGD(%rip), %rdi
22066 leaq foo@TLSLD(%rip), %rdi
22067 leaq foo@DTPOFF(%rax), %rdx
22068 movq foo@GOTTPOFF(%rip), %rax
22069 movq $foo@TPOFF, %rax'
22072 tls_as_opt
=--fatal-warnings
22076 .section ".tdata","awT",@progbits
22079 addl r16 = @ltoff(@dtpmod(foo#)), gp
22080 addl r17 = @ltoff(@dtprel(foo#)), gp
22081 addl r18 = @ltoff(@tprel(foo#)), gp
22082 addl r19 = @dtprel(foo#), gp
22083 adds r21 = @dtprel(foo#), r13
22084 movl r23 = @dtprel(foo#)
22085 addl r20 = @tprel(foo#), gp
22086 adds r22 = @tprel(foo#), r13
22087 movl r24 = @tprel(foo#)'
22090 tls_as_opt
=--fatal-warnings
22094 .section .tdata,"awT",@progbits
22098 addiu $4, $28, %tlsgd(x)
22099 addiu $4, $28, %tlsldm(x)
22100 lui $4, %dtprel_hi(x)
22101 addiu $4, $4, %dtprel_lo(x)
22102 lw $4, %gottprel(x)($28)
22103 lui $4, %tprel_hi(x)
22104 addiu $4, $4, %tprel_lo(x)'
22107 tls_as_opt
='-32 --fatal-warnings'
22111 .section .tdata,"awT",@progbits
22116 move.l x@TLSGD(%a5),%a0
22117 move.l x@TLSLDM(%a5),%a0
22118 move.l x@TLSLDO(%a5),%a0
22119 move.l x@TLSIE(%a5),%a0
22120 move.l x@TLSLE(%a5),%a0'
22123 tls_as_opt
='--fatal-warnings'
22127 .section ".tdata","awT",@progbits
22135 addi 3,31,ld0@got@tlsgd
22137 addi 3,31,x1@got@tlsld
22140 addis 9,3,x2@dtprel@ha
22141 addi 9,9,x2@dtprel@l
22142 lwz 9,x3@got@tprel(31)
22145 addis 9,2,x2@tprel@ha
22146 addi 9,9,x2@tprel@l'
22149 tls_as_opt
="-a32 --fatal-warnings"
22153 .section ".tdata","awT",@progbits
22161 addi 3,2,ld0@got@tlsgd
22167 addi 3,2,x1@got@tlsld
22173 addis 9,3,x2@dtprel@ha
22174 addi 9,9,x2@dtprel@l
22177 ld 9,x3@got@dtprel(2)
22183 tls_as_opt
="-a64 --fatal-warnings"
22187 .section ".tdata","awT",@progbits
22194 .long foo@GOTNTPOFF
22195 .long foo@INDNTPOFF
22196 l %r1,foo@GOTNTPOFF(%r12)
22197 l %r1,0(%r1):tls_load:foo
22198 bas %r14,0(%r1,%r13):tls_gdcall:foo
22199 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22202 tls_as_opt
="-m31 --fatal-warnings"
22206 .section ".tdata","awT",@progbits
22213 .quad foo@GOTNTPOFF
22214 lg %r1,foo@GOTNTPOFF(%r12)
22215 larl %r1,foo@INDNTPOFF
22216 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22217 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22220 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22222 sh-
*-* | sh
[34]-*-*)
22224 .section ".tdata","awT",@progbits
22234 tls_as_opt
=--fatal-warnings
22238 sparc
*-sun-solaris2.
[56789]*)
22239 # TLS was introduced in the Solaris 9 4/04 release but
22240 # we do not enable it by default on Solaris 9 either.
22241 if test "x$enable_tls" = xyes
; then
22247 sparc
*-sun-solaris2.
*)
22254 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22256 .section ".tdata",#alloc,#write,#tls
22259 sethi %tgd_hi22(foo), %o0
22260 add %o0, %tgd_lo10(foo), %o1
22261 add %l7, %o1, %o0, %tgd_add(foo)
22262 call __tls_get_addr, %tgd_call(foo)
22263 sethi %tldm_hi22(foo), %l1
22264 add %l1, %tldm_lo10(foo), %l2
22265 add %l7, %l2, %o0, %tldm_add(foo)
22266 call __tls_get_addr, %tldm_call(foo)
22267 sethi %tldo_hix22(foo), %l3
22268 xor %l3, %tldo_lox10(foo), %l4
22269 add %o0, %l4, %l5, %tldo_add(foo)
22270 sethi %tie_hi22(foo), %o3
22271 add %o3, %tie_lo10(foo), %o3
22272 ld [%l7 + %o3], %o2, %tie_ld(foo)
22273 add %g7, %o2, %o4, %tie_add(foo)
22274 sethi %tle_hix22(foo), %l1
22275 xor %l1, %tle_lox10(foo), %o5
22276 ld [%g7 + %o5], %o1'
22281 .section ".tdata","awT",@progbits
22284 sethi %tgd_hi22(foo), %o0
22285 add %o0, %tgd_lo10(foo), %o1
22286 add %l7, %o1, %o0, %tgd_add(foo)
22287 call __tls_get_addr, %tgd_call(foo)
22288 sethi %tldm_hi22(foo), %l1
22289 add %l1, %tldm_lo10(foo), %l2
22290 add %l7, %l2, %o0, %tldm_add(foo)
22291 call __tls_get_addr, %tldm_call(foo)
22292 sethi %tldo_hix22(foo), %l3
22293 xor %l3, %tldo_lox10(foo), %l4
22294 add %o0, %l4, %l5, %tldo_add(foo)
22295 sethi %tie_hi22(foo), %o3
22296 add %o3, %tie_lo10(foo), %o3
22297 ld [%l7 + %o3], %o2, %tie_ld(foo)
22298 add %g7, %o2, %o4, %tie_add(foo)
22299 sethi %tle_hix22(foo), %l1
22300 xor %l1, %tle_lox10(foo), %o5
22301 ld [%g7 + %o5], %o1'
22304 tls_as_opt
="-32 --fatal-warnings"
22309 .section ".tdata","awT",@progbits
22312 movi a8, foo@TLSFUNC
22313 movi a10, foo@TLSARG
22314 callx8.tls a8, foo@TLSCALL'
22320 if test "x$enable_tls" = xno
; then
22321 : # TLS explicitly disabled.
22322 elif test "x$enable_tls" = xyes
; then
22323 set_have_as_tls
=yes # TLS explicitly enabled.
22324 elif test -z "$tls_first_major"; then
22325 : # If we don't have a check, assume no support.
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22328 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22329 if test "${gcc_cv_as_tls+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22333 if test $in_tree_gas = yes; then
22334 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22335 then gcc_cv_as_tls
=yes
22337 elif test x
$gcc_cv_as != x
; then
22338 echo "$conftest_s" > conftest.s
22339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22341 (eval $ac_try) 2>&5
22343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22344 test $ac_status = 0; }; }
22348 echo "configure: failed program was" >&5
22351 rm -f conftest.o conftest.s
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22355 $as_echo "$gcc_cv_as_tls" >&6; }
22356 if test $gcc_cv_as_tls = yes; then
22357 set_have_as_tls
=yes
22360 if test $set_have_as_tls = yes ; then
22362 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22366 # Target-specific assembler checks.
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22369 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22370 gcc_cv_ld_static_dynamic
=no
22371 if test $in_tree_ld = yes ; then
22372 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
22373 gcc_cv_ld_static_dynamic
=yes
22375 elif test x
$gcc_cv_ld != x
; then
22376 # Check if linker supports -Bstatic/-Bdynamic option
22377 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22378 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22379 gcc_cv_ld_static_dynamic
=yes
22382 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22384 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22388 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22390 if test x
"$demangler_in_ld" = xyes
; then
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22392 $as_echo_n "checking linker --demangle support... " >&6; }
22393 gcc_cv_ld_demangle
=no
22394 if test $in_tree_ld = yes; then
22395 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 \
22396 gcc_cv_ld_demangle
=yes
22398 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22399 # Check if the GNU linker supports --demangle option
22400 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22401 gcc_cv_ld_demangle
=yes
22404 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22406 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22410 $as_echo "$gcc_cv_ld_demangle" >&6; }
22414 # All TARGET_ABI_OSF targets.
22415 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22417 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22418 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22421 gcc_cv_as_alpha_explicit_relocs
=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22424 then gcc_cv_as_alpha_explicit_relocs
=yes
22426 elif test x
$gcc_cv_as != x
; then
22427 echo ' .set nomacro
22429 extbl $3, $2, $3 !lituse_bytoff!1
22430 ldq $2, a($29) !literal!1
22431 ldq $4, b($29) !literal!2
22432 ldq_u $3, 0($2) !lituse_base!1
22433 ldq $27, f($29) !literal!5
22434 jsr $26, ($27), f !lituse_jsr!5
22435 ldah $29, 0($26) !gpdisp!3
22436 lda $0, c($29) !gprel
22437 ldah $1, d($29) !gprelhigh
22438 lda $1, d($1) !gprellow
22439 lda $29, 0($29) !gpdisp!3' > conftest.s
22440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22442 (eval $ac_try) 2>&5
22444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22445 test $ac_status = 0; }; }
22447 gcc_cv_as_alpha_explicit_relocs
=yes
22449 echo "configure: failed program was" >&5
22452 rm -f conftest.o conftest.s
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22456 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22457 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22459 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22463 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22464 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22467 gcc_cv_as_alpha_jsrdirect_relocs
=no
22468 if test $in_tree_gas = yes; then
22469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22470 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22472 elif test x
$gcc_cv_as != x
; then
22473 echo ' .set nomacro
22475 ldq $27, a($29) !literal!1
22476 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479 (eval $ac_try) 2>&5
22481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482 test $ac_status = 0; }; }
22484 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22486 echo "configure: failed program was" >&5
22489 rm -f conftest.o conftest.s
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22493 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22494 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22496 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22503 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22504 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22507 gcc_cv_as_cris_no_mul_bug
=no
22508 if test $in_tree_gas = yes; then
22509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22510 then gcc_cv_as_cris_no_mul_bug
=yes
22512 elif test x
$gcc_cv_as != x
; then
22513 echo '.text' > conftest.s
22514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -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; }; }
22521 gcc_cv_as_cris_no_mul_bug
=yes
22523 echo "configure: failed program was" >&5
22526 rm -f conftest.o conftest.s
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22530 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22531 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22533 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22540 $as_echo_n "checking assembler for .register... " >&6; }
22541 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22544 gcc_cv_as_sparc_register_op
=no
22545 if test x
$gcc_cv_as != x
; then
22546 echo '.register %g2, #scratch' > conftest.s
22547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22554 gcc_cv_as_sparc_register_op
=yes
22556 echo "configure: failed program was" >&5
22559 rm -f conftest.o conftest.s
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22563 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22564 if test $gcc_cv_as_sparc_register_op = yes; then
22566 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22571 $as_echo_n "checking assembler for -relax option... " >&6; }
22572 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22575 gcc_cv_as_sparc_relax
=no
22576 if test x
$gcc_cv_as != x
; then
22577 echo '.text' > conftest.s
22578 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22580 (eval $ac_try) 2>&5
22582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22583 test $ac_status = 0; }; }
22585 gcc_cv_as_sparc_relax
=yes
22587 echo "configure: failed program was" >&5
22590 rm -f conftest.o conftest.s
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22594 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22595 if test $gcc_cv_as_sparc_relax = yes; then
22597 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22602 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22603 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22606 gcc_cv_as_sparc_gotdata_op
=no
22607 if test x
$gcc_cv_as != x
; then
22612 sethi %gdop_hix22(foo), %g1
22613 xor %g1, %gdop_lox10(foo), %g1
22614 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22617 (eval $ac_try) 2>&5
22619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22620 test $ac_status = 0; }; }
22622 if test x
$gcc_cv_ld != x \
22623 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22624 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22625 if test x
$gcc_cv_objdump != x
; then
22626 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22627 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22628 gcc_cv_as_sparc_gotdata_op
=no
22630 gcc_cv_as_sparc_gotdata_op
=yes
22634 gcc_cv_as_sparc_gotdata_op
=yes
22639 echo "configure: failed program was" >&5
22642 rm -f conftest.o conftest.s
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22646 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22647 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22649 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22654 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22655 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22658 gcc_cv_as_sparc_ua_pcrel
=no
22659 if test x
$gcc_cv_as != x
; then
22666 .uaword %r_disp32(foo)' > conftest.s
22667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22669 (eval $ac_try) 2>&5
22671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22672 test $ac_status = 0; }; }
22674 if test x
$gcc_cv_ld != x \
22675 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22676 gcc_cv_as_sparc_ua_pcrel
=yes
22680 echo "configure: failed program was" >&5
22683 rm -f conftest.o conftest.s
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22687 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22688 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22690 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22694 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22695 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22696 $as_echo_n "(cached) " >&6
22698 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22699 if test x
$gcc_cv_as != x
; then
22703 .uaword %r_disp32(foo)
22704 .byte 0x32, 0x33, 0x34
22708 .skip 4' > conftest.s
22709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22711 (eval $ac_try) 2>&5
22713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22714 test $ac_status = 0; }; }
22716 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22717 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22718 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22719 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22720 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22721 |
grep 'DISP32' > /dev
/null
2>&1; then
22724 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22729 echo "configure: failed program was" >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22736 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22737 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22739 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22743 fi # unaligned pcrel relocs
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22746 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22747 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22750 gcc_cv_as_sparc_offsetable_lo10
=no
22751 if test x
$gcc_cv_as != x
; then
22753 or %g1, %lo(ab) + 12, %g1
22754 or %g1, %lo(ab + 12), %g1' > conftest.s
22755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22757 (eval $ac_try) 2>&5
22759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22760 test $ac_status = 0; }; }
22762 if test x
$gcc_cv_objdump != x \
22763 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22764 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22765 gcc_cv_as_sparc_offsetable_lo10
=yes
22768 echo "configure: failed program was" >&5
22771 rm -f conftest.o conftest.s
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22775 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22776 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22778 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22783 i
[34567]86-*-* | x86_64-
*-*)
22786 # Full C++ conformance when using a shared libstdc++-v3 requires some
22787 # support from the Cygwin DLL, which in more recent versions exports
22788 # wrappers to aid in interposing and redirecting operators new, delete,
22789 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22790 # are configuring for a version of Cygwin that exports the wrappers.
22791 if test x
$host = x
$target; then
22792 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22793 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
22794 gcc_ac_cygwin_dll_wrappers
=yes
22796 gcc_ac_cygwin_dll_wrappers
=no
22800 # Can't check presence of libc functions during cross-compile, so
22801 # we just have to assume we're building for an up-to-date target.
22802 gcc_ac_cygwin_dll_wrappers
=yes
22805 cat >>confdefs.h
<<_ACEOF
22806 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22811 cygwin
* | pe | mingw32
*)
22812 # Recent binutils allows the three-operand form of ".comm" on PE. This
22813 # definition is used unconditionally to initialise the default state of
22814 # the target option variable that governs usage of the feature.
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22816 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22817 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22818 $as_echo_n "(cached) " >&6
22820 gcc_cv_as_comm_has_align
=no
22821 if test $in_tree_gas = yes; then
22822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22823 then gcc_cv_as_comm_has_align
=yes
22825 elif test x
$gcc_cv_as != x
; then
22826 echo '.comm foo,1,32' > conftest.s
22827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22829 (eval $ac_try) 2>&5
22831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22832 test $ac_status = 0; }; }
22834 gcc_cv_as_comm_has_align
=yes
22836 echo "configure: failed program was" >&5
22839 rm -f conftest.o conftest.s
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22843 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22846 cat >>confdefs.h
<<_ACEOF
22847 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22850 # Used for DWARF 2 in PE
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22852 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22853 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22856 gcc_cv_as_ix86_pe_secrel32
=no
22857 if test $in_tree_gas = yes; then
22858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22859 then gcc_cv_as_ix86_pe_secrel32
=yes
22861 elif test x
$gcc_cv_as != x
; then
22865 .secrel32 foo' > conftest.s
22866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22873 if test x
$gcc_cv_ld != x \
22874 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22875 gcc_cv_as_ix86_pe_secrel32
=yes
22879 echo "configure: failed program was" >&5
22882 rm -f conftest.o conftest.s
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22886 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22887 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22889 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22896 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22897 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22898 $as_echo_n "(cached) " >&6
22900 gcc_cv_as_ix86_filds
=no
22901 if test x
$gcc_cv_as != x
; then
22902 echo 'filds mem; fists mem' > conftest.s
22903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22905 (eval $ac_try) 2>&5
22907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22908 test $ac_status = 0; }; }
22910 gcc_cv_as_ix86_filds
=yes
22912 echo "configure: failed program was" >&5
22915 rm -f conftest.o conftest.s
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22919 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22920 if test $gcc_cv_as_ix86_filds = yes; then
22922 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22927 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22928 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22929 $as_echo_n "(cached) " >&6
22931 gcc_cv_as_ix86_fildq
=no
22932 if test x
$gcc_cv_as != x
; then
22933 echo 'fildq mem; fistpq mem' > conftest.s
22934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22941 gcc_cv_as_ix86_fildq
=yes
22943 echo "configure: failed program was" >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22950 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22951 if test $gcc_cv_as_ix86_fildq = yes; then
22953 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22958 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22959 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22960 $as_echo_n "(cached) " >&6
22962 gcc_cv_as_ix86_cmov_sun_syntax
=no
22963 if test x
$gcc_cv_as != x
; then
22964 echo 'cmovl.l %edx, %eax' > conftest.s
22965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22967 (eval $ac_try) 2>&5
22969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22970 test $ac_status = 0; }; }
22972 gcc_cv_as_ix86_cmov_sun_syntax
=yes
22974 echo "configure: failed program was" >&5
22977 rm -f conftest.o conftest.s
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22981 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22982 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22984 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22989 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22990 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22993 gcc_cv_as_ix86_ffreep
=no
22994 if test x
$gcc_cv_as != x
; then
22995 echo 'ffreep %st(1)' > conftest.s
22996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22998 (eval $ac_try) 2>&5
23000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23001 test $ac_status = 0; }; }
23003 gcc_cv_as_ix86_ffreep
=yes
23005 echo "configure: failed program was" >&5
23008 rm -f conftest.o conftest.s
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23012 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23013 if test $gcc_cv_as_ix86_ffreep = yes; then
23015 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23020 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23021 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23022 $as_echo_n "(cached) " >&6
23024 gcc_cv_as_ix86_sahf
=no
23025 if test x
$gcc_cv_as != x
; then
23026 echo 'sahf' > conftest.s
23027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23029 (eval $ac_try) 2>&5
23031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23032 test $ac_status = 0; }; }
23034 gcc_cv_as_ix86_sahf
=yes
23036 echo "configure: failed program was" >&5
23039 rm -f conftest.o conftest.s
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23043 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23044 if test $gcc_cv_as_ix86_sahf = yes; then
23046 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23051 $as_echo_n "checking assembler for swap suffix... " >&6; }
23052 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23053 $as_echo_n "(cached) " >&6
23055 gcc_cv_as_ix86_swap
=no
23056 if test x
$gcc_cv_as != x
; then
23057 echo 'movl.s %esp, %ebp' > conftest.s
23058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23065 gcc_cv_as_ix86_swap
=yes
23067 echo "configure: failed program was" >&5
23070 rm -f conftest.o conftest.s
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23074 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23075 if test $gcc_cv_as_ix86_swap = yes; then
23077 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23082 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23083 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23086 gcc_cv_as_ix86_diff_sect_delta
=no
23087 if test x
$gcc_cv_as != x
; then
23088 echo '.section .rodata
23094 .L2: nop' > conftest.s
23095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23102 gcc_cv_as_ix86_diff_sect_delta
=yes
23104 echo "configure: failed program was" >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23111 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23112 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23114 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23118 # This one is used unconditionally by i386.[ch]; it is to be defined
23119 # to 1 if the feature is present, 0 otherwise.
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23121 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23122 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23125 gcc_cv_as_ix86_gotoff_in_data
=no
23126 if test $in_tree_gas = yes; then
23127 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23128 then gcc_cv_as_ix86_gotoff_in_data
=yes
23130 elif test x
$gcc_cv_as != x
; then
23135 .long .L0@GOTOFF' > conftest.s
23136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23143 gcc_cv_as_ix86_gotoff_in_data
=yes
23145 echo "configure: failed program was" >&5
23148 rm -f conftest.o conftest.s
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23152 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23155 cat >>confdefs.h
<<_ACEOF
23156 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23163 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23164 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23165 $as_echo_n "(cached) " >&6
23167 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23168 if test $in_tree_gas = yes; then
23169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23170 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23172 elif test x
$gcc_cv_as != x
; then
23174 addl r15 = @ltoffx(x#), gp
23176 ld8.mov r16 = [r15], x#' > conftest.s
23177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23179 (eval $ac_try) 2>&5
23181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23182 test $ac_status = 0; }; }
23184 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23186 echo "configure: failed program was" >&5
23189 rm -f conftest.o conftest.s
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23193 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23194 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23196 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23204 *-*-aix*) conftest_s
=' .machine "pwr5"
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23209 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23210 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23211 $as_echo_n "(cached) " >&6
23213 gcc_cv_as_machine_directive
=no
23214 if test x
$gcc_cv_as != x
; then
23215 echo ' .machine ppc7400' > conftest.s
23216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }
23223 gcc_cv_as_machine_directive
=yes
23225 echo "configure: failed program was" >&5
23228 rm -f conftest.o conftest.s
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23232 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23234 if test x
$gcc_cv_as_machine_directive != xyes
; then
23235 echo "*** This target requires an assembler supporting \".machine\"" >&2
23236 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23237 test x
$build = x
$target && exit 1
23241 *) conftest_s
=' .machine power4
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23247 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23248 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23249 $as_echo_n "(cached) " >&6
23251 gcc_cv_as_powerpc_mfcrf
=no
23252 if test $in_tree_gas = yes; then
23253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23254 then gcc_cv_as_powerpc_mfcrf
=yes
23256 elif test x
$gcc_cv_as != x
; then
23257 echo "$conftest_s" > conftest.s
23258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23260 (eval $ac_try) 2>&5
23262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23263 test $ac_status = 0; }; }
23265 gcc_cv_as_powerpc_mfcrf
=yes
23267 echo "configure: failed program was" >&5
23270 rm -f conftest.o conftest.s
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23274 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23275 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23277 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23282 *-*-aix*) conftest_s
=' .machine "pwr5"
23285 *) conftest_s
=' .machine power5
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23291 $as_echo_n "checking assembler for popcntb support... " >&6; }
23292 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23295 gcc_cv_as_powerpc_popcntb
=no
23296 if test $in_tree_gas = yes; then
23297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23298 then gcc_cv_as_powerpc_popcntb
=yes
23300 elif test x
$gcc_cv_as != x
; then
23301 echo "$conftest_s" > conftest.s
23302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304 (eval $ac_try) 2>&5
23306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307 test $ac_status = 0; }; }
23309 gcc_cv_as_powerpc_popcntb
=yes
23311 echo "configure: failed program was" >&5
23314 rm -f conftest.o conftest.s
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23318 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23319 if test $gcc_cv_as_powerpc_popcntb = yes; then
23321 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23326 *-*-aix*) conftest_s
=' .machine "pwr5x"
23329 *) conftest_s
=' .machine power5
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23335 $as_echo_n "checking assembler for fp round support... " >&6; }
23336 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
23339 gcc_cv_as_powerpc_fprnd
=no
23340 if test $in_tree_gas = yes; then
23341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23342 then gcc_cv_as_powerpc_fprnd
=yes
23344 elif test x
$gcc_cv_as != x
; then
23345 echo "$conftest_s" > conftest.s
23346 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23348 (eval $ac_try) 2>&5
23350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23351 test $ac_status = 0; }; }
23353 gcc_cv_as_powerpc_fprnd
=yes
23355 echo "configure: failed program was" >&5
23358 rm -f conftest.o conftest.s
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23362 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23363 if test $gcc_cv_as_powerpc_fprnd = yes; then
23365 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23370 *-*-aix*) conftest_s
=' .machine "pwr6"
23373 *) conftest_s
=' .machine power6
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23379 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23380 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23381 $as_echo_n "(cached) " >&6
23383 gcc_cv_as_powerpc_mfpgpr
=no
23384 if test $in_tree_gas = yes; then
23385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23386 then gcc_cv_as_powerpc_mfpgpr
=yes
23388 elif test x
$gcc_cv_as != x
; then
23389 echo "$conftest_s" > conftest.s
23390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23392 (eval $ac_try) 2>&5
23394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23395 test $ac_status = 0; }; }
23397 gcc_cv_as_powerpc_mfpgpr
=yes
23399 echo "configure: failed program was" >&5
23402 rm -f conftest.o conftest.s
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23406 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23407 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23409 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23414 *-*-aix*) conftest_s
=' .csect .text[PR]
23416 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23420 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23421 *) conftest_s
=' .text
23423 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23427 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23428 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23429 $as_echo_n "(cached) " >&6
23431 gcc_cv_as_powerpc_rel16
=no
23432 if test $in_tree_gas = yes; then
23433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23434 then gcc_cv_as_powerpc_rel16
=yes
23436 elif test x
$gcc_cv_as != x
; then
23437 echo "$conftest_s" > conftest.s
23438 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23440 (eval $ac_try) 2>&5
23442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23443 test $ac_status = 0; }; }
23445 gcc_cv_as_powerpc_rel16
=yes
23447 echo "configure: failed program was" >&5
23450 rm -f conftest.o conftest.s
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23454 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23455 if test $gcc_cv_as_powerpc_rel16 = yes; then
23457 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23462 *-*-aix*) conftest_s
=' .machine "pwr6"
23465 *) conftest_s
=' .machine power6
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23471 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23472 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23473 $as_echo_n "(cached) " >&6
23475 gcc_cv_as_powerpc_cmpb
=no
23476 if test $in_tree_gas = yes; then
23477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23478 then gcc_cv_as_powerpc_cmpb
=yes
23480 elif test x
$gcc_cv_as != x
; then
23481 echo "$conftest_s" > conftest.s
23482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23484 (eval $ac_try) 2>&5
23486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23487 test $ac_status = 0; }; }
23489 gcc_cv_as_powerpc_cmpb
=yes
23491 echo "configure: failed program was" >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23498 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23499 if test $gcc_cv_as_powerpc_cmpb = yes; then
23501 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23506 *-*-aix*) conftest_s
=' .machine "pwr6"
23509 *) conftest_s
=' .machine power6
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23515 $as_echo_n "checking assembler for decimal float support... " >&6; }
23516 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23519 gcc_cv_as_powerpc_dfp
=no
23520 if test $in_tree_gas = yes; then
23521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23522 then gcc_cv_as_powerpc_dfp
=yes
23524 elif test x
$gcc_cv_as != x
; then
23525 echo "$conftest_s" > conftest.s
23526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23528 (eval $ac_try) 2>&5
23530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23531 test $ac_status = 0; }; }
23533 gcc_cv_as_powerpc_dfp
=yes
23535 echo "configure: failed program was" >&5
23538 rm -f conftest.o conftest.s
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23542 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23543 if test $gcc_cv_as_powerpc_dfp = yes; then
23545 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23550 *-*-aix*) conftest_s
=' .machine "pwr7"
23553 *) conftest_s
=' .machine power7
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23559 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23560 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23561 $as_echo_n "(cached) " >&6
23563 gcc_cv_as_powerpc_vsx
=no
23564 if test $in_tree_gas = yes; then
23565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23566 then gcc_cv_as_powerpc_vsx
=yes
23568 elif test x
$gcc_cv_as != x
; then
23569 echo "$conftest_s" > conftest.s
23570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23577 gcc_cv_as_powerpc_vsx
=yes
23579 echo "configure: failed program was" >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23586 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23587 if test $gcc_cv_as_powerpc_vsx = yes; then
23589 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23594 *-*-aix*) conftest_s
=' .machine "pwr7"
23597 *) conftest_s
=' .machine power7
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23603 $as_echo_n "checking assembler for popcntd support... " >&6; }
23604 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23605 $as_echo_n "(cached) " >&6
23607 gcc_cv_as_powerpc_popcntd
=no
23608 if test $in_tree_gas = yes; then
23609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23610 then gcc_cv_as_powerpc_popcntd
=yes
23612 elif test x
$gcc_cv_as != x
; then
23613 echo "$conftest_s" > conftest.s
23614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23621 gcc_cv_as_powerpc_popcntd
=yes
23623 echo "configure: failed program was" >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23630 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23631 if test $gcc_cv_as_powerpc_popcntd = yes; then
23633 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23638 *-*-aix*) conftest_s
=' .csect .text[PR]
23640 *) conftest_s
=' .text
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23645 $as_echo_n "checking assembler for lwsync support... " >&6; }
23646 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23647 $as_echo_n "(cached) " >&6
23649 gcc_cv_as_powerpc_lwsync
=no
23650 if test $in_tree_gas = yes; then
23651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23652 then gcc_cv_as_powerpc_lwsync
=yes
23654 elif test x
$gcc_cv_as != x
; then
23655 echo "$conftest_s" > conftest.s
23656 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23658 (eval $ac_try) 2>&5
23660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23661 test $ac_status = 0; }; }
23663 gcc_cv_as_powerpc_lwsync
=yes
23665 echo "configure: failed program was" >&5
23668 rm -f conftest.o conftest.s
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23672 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23673 if test $gcc_cv_as_powerpc_lwsync = yes; then
23675 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23680 *-*-aix*) conftest_s
=' .machine "476"
23683 *) conftest_s
=' .machine "476"
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23689 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23690 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23691 $as_echo_n "(cached) " >&6
23693 gcc_cv_as_powerpc_dci
=no
23694 if test $in_tree_gas = yes; then
23695 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23696 then gcc_cv_as_powerpc_dci
=yes
23698 elif test x
$gcc_cv_as != x
; then
23699 echo "$conftest_s" > conftest.s
23700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702 (eval $ac_try) 2>&5
23704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705 test $ac_status = 0; }; }
23707 gcc_cv_as_powerpc_dci
=yes
23709 echo "configure: failed program was" >&5
23712 rm -f conftest.o conftest.s
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23716 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23717 if test $gcc_cv_as_powerpc_dci = yes; then
23719 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23724 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23725 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23726 $as_echo_n "(cached) " >&6
23728 gcc_cv_as_powerpc_gnu_attribute
=no
23729 if test $in_tree_gas = yes; then
23730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23731 then gcc_cv_as_powerpc_gnu_attribute
=yes
23733 elif test x
$gcc_cv_as != x
; then
23734 echo '.gnu_attribute 4,1' > conftest.s
23735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23742 gcc_cv_as_powerpc_gnu_attribute
=yes
23744 echo "configure: failed program was" >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23751 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23752 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23754 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23759 $as_echo_n "checking assembler for tls marker support... " >&6; }
23760 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23763 gcc_cv_as_powerpc_tls_markers
=no
23764 if test $in_tree_gas = yes; then
23765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23766 then gcc_cv_as_powerpc_tls_markers
=yes
23768 elif test x
$gcc_cv_as != x
; then
23769 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23777 gcc_cv_as_powerpc_tls_markers
=yes
23779 echo "configure: failed program was" >&5
23782 rm -f conftest.o conftest.s
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23786 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23787 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23789 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23796 $as_echo_n "checking assembler for .ref support... " >&6; }
23797 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23800 gcc_cv_as_aix_ref
=no
23801 if test $in_tree_gas = yes; then
23802 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23805 elif test x
$gcc_cv_as != x
; then
23806 echo ' .csect stuff[rw]
23812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23819 gcc_cv_as_aix_ref
=yes
23821 echo "configure: failed program was" >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23828 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23829 if test $gcc_cv_as_aix_ref = yes; then
23831 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23840 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23841 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23842 $as_echo_n "(cached) " >&6
23844 gcc_cv_as_mips_explicit_relocs
=no
23845 if test $in_tree_gas = yes; then
23846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23847 then gcc_cv_as_mips_explicit_relocs
=yes
23849 elif test x
$gcc_cv_as != x
; then
23850 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23851 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23853 (eval $ac_try) 2>&5
23855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23856 test $ac_status = 0; }; }
23858 gcc_cv_as_mips_explicit_relocs
=yes
23860 echo "configure: failed program was" >&5
23863 rm -f conftest.o conftest.s
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23867 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23868 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23869 if test x
$target_cpu_default = x
23870 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23871 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23875 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23876 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23877 $as_echo_n "(cached) " >&6
23879 gcc_cv_as_mips_no_shared
=no
23880 if test $in_tree_gas = yes; then
23881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23882 then gcc_cv_as_mips_no_shared
=yes
23884 elif test x
$gcc_cv_as != x
; then
23885 echo 'nop' > conftest.s
23886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23888 (eval $ac_try) 2>&5
23890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23891 test $ac_status = 0; }; }
23893 gcc_cv_as_mips_no_shared
=yes
23895 echo "configure: failed program was" >&5
23898 rm -f conftest.o conftest.s
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23902 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23903 if test $gcc_cv_as_mips_no_shared = yes; then
23905 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23910 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23911 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23914 gcc_cv_as_mips_gnu_attribute
=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23917 then gcc_cv_as_mips_gnu_attribute
=yes
23919 elif test x
$gcc_cv_as != x
; then
23920 echo '.gnu_attribute 4,1' > conftest.s
23921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23928 gcc_cv_as_mips_gnu_attribute
=yes
23930 echo "configure: failed program was" >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23937 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23938 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23940 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23945 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23946 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23947 $as_echo_n "(cached) " >&6
23949 gcc_cv_as_mips_dtprelword
=no
23950 if test $in_tree_gas = yes; then
23951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23952 then gcc_cv_as_mips_dtprelword
=yes
23954 elif test x
$gcc_cv_as != x
; then
23955 echo '.section .tdata,"awT",@progbits
23959 .dtprelword x+0x8000' > conftest.s
23960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23967 gcc_cv_as_mips_dtprelword
=yes
23969 echo "configure: failed program was" >&5
23972 rm -f conftest.o conftest.s
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23976 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23977 if test $gcc_cv_as_mips_dtprelword = yes; then
23979 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23984 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23985 gcc_cv_as_ld_jalr_reloc
=no
23986 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23987 if test $in_tree_ld = yes ; then
23988 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 \
23989 && test $in_tree_ld_is_elf = yes; then
23990 gcc_cv_as_ld_jalr_reloc
=yes
23992 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23993 echo ' .ent x' > conftest.s
23994 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23995 echo ' ld $25,%call16(y)($28)' >> conftest.s
23996 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23997 echo '1: jalr $25' >> conftest.s
23998 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23999 echo '1: jalr $25' >> conftest.s
24000 echo ' .end x' >> conftest.s
24001 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24002 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24003 if $gcc_cv_objdump -d conftest.so |
grep -q jalr \
24004 && $gcc_cv_objdump -d conftest.so |
grep -q "bal.*<x>"; then
24005 gcc_cv_as_ld_jalr_reloc
=yes
24011 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24012 if test x
$target_cpu_default = x
; then
24013 target_cpu_default
=MASK_RELAX_PIC_CALLS
24015 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24019 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24022 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24023 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24024 $as_echo_n "(cached) " >&6
24026 gcc_cv_ld_mips_personality_relaxation
=no
24027 if test $in_tree_ld = yes ; then
24028 if test "$gcc_cv_gld_major_version" -eq 2 \
24029 -a "$gcc_cv_gld_minor_version" -ge 21 \
24030 -o "$gcc_cv_gld_major_version" -gt 2; then
24031 gcc_cv_ld_mips_personality_relaxation
=yes
24033 elif test x
$gcc_cv_as != x \
24034 -a x
$gcc_cv_ld != x \
24035 -a x
$gcc_cv_readelf != x
; then
24036 cat > conftest.s
<<EOF
24038 .cfi_personality 0x80,indirect_ptr
24045 .section .data,"aw",@progbits
24049 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24050 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24051 if $gcc_cv_readelf -d conftest
2>&1 \
24052 |
grep TEXTREL
> /dev
/null
2>&1; then
24054 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24055 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24058 gcc_cv_ld_mips_personality_relaxation
=yes
24062 rm -f conftest.s conftest.o conftest
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24065 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24066 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24068 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24074 # Mips and HP-UX need the GNU assembler.
24075 # Linux on IA64 might be able to use the Intel assembler.
24078 mips
*-*-* |
*-*-hpux* )
24079 if test x
$gas_flag = xyes \
24080 ||
test x
"$host" != x
"$build" \
24081 ||
test ! -x "$gcc_cv_as" \
24082 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24085 echo "*** This configuration requires the GNU assembler" >&2
24091 # ??? Not all targets support dwarf2 debug_line, even within a version
24092 # of gas. Moreover, we need to emit a valid instruction to trigger any
24093 # info to the output file. So, as supported targets are added to gas 2.11,
24094 # add some instruction here to (also) show we expect this might work.
24095 # ??? Once 2.11 is released, probably need to add first known working
24096 # version to the per-target configury.
24098 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24099 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24100 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24101 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24104 ia64
*-*-* | s390
*-*-*)
24111 if test x
"$insn" != x
; then
24113 .file 1 \"conftest.s\"
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24117 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24118 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24121 gcc_cv_as_dwarf2_debug_line
=no
24122 if test $in_tree_gas = yes; then
24123 if test $in_tree_gas_is_elf = yes \
24124 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24125 then gcc_cv_as_dwarf2_debug_line
=yes
24127 elif test x
$gcc_cv_as != x
; then
24128 echo "$conftest_s" > conftest.s
24129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }
24136 if test x
$gcc_cv_objdump != x \
24137 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24138 |
grep debug_line
> /dev
/null
2>&1; then
24139 gcc_cv_as_dwarf2_debug_line
=yes
24142 echo "configure: failed program was" >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24149 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24152 # The .debug_line file table must be in the exact order that
24153 # we specified the files, since these indices are also used
24154 # by DW_AT_decl_file. Approximate this test by testing if
24155 # the assembler bitches if the same index is assigned twice.
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24157 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24158 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24159 $as_echo_n "(cached) " >&6
24161 gcc_cv_as_dwarf2_file_buggy
=no
24162 if test x
$gcc_cv_as != x
; then
24163 echo ' .file 1 "foo.s"
24164 .file 1 "bar.s"' > conftest.s
24165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24172 gcc_cv_as_dwarf2_file_buggy
=yes
24174 echo "configure: failed program was" >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24181 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24184 if test $gcc_cv_as_dwarf2_debug_line = yes \
24185 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24187 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24192 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24193 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24196 gcc_cv_as_gdwarf2_flag
=no
24197 if test $in_tree_gas = yes; then
24198 if test $in_tree_gas_is_elf = yes \
24199 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24200 then gcc_cv_as_gdwarf2_flag
=yes
24202 elif test x
$gcc_cv_as != x
; then
24203 echo "$insn" > conftest.s
24204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206 (eval $ac_try) 2>&5
24208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; }; }
24211 gcc_cv_as_gdwarf2_flag
=yes
24213 echo "configure: failed program was" >&5
24216 rm -f conftest.o conftest.s
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24220 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24221 if test $gcc_cv_as_gdwarf2_flag = yes; then
24223 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24228 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24229 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24232 gcc_cv_as_gstabs_flag
=no
24233 if test $in_tree_gas = yes; then
24234 if test $in_tree_gas_is_elf = yes \
24235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24236 then gcc_cv_as_gstabs_flag
=yes
24238 elif test x
$gcc_cv_as != x
; then
24239 echo "$insn" > conftest.s
24240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24247 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24248 # and warns about it, but still exits successfully. So check for
24250 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24252 (eval $ac_try) 2>&5
24254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24255 test $ac_status = 0; }; }
24257 else gcc_cv_as_gstabs_flag
=yes
24260 echo "configure: failed program was" >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24267 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24268 if test $gcc_cv_as_gstabs_flag = yes; then
24270 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24275 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24276 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24279 gcc_cv_as_debug_prefix_map_flag
=no
24280 if test $in_tree_gas = yes; then
24281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24282 then gcc_cv_as_debug_prefix_map_flag
=yes
24284 elif test x
$gcc_cv_as != x
; then
24285 echo "$insn" > conftest.s
24286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288 (eval $ac_try) 2>&5
24290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291 test $ac_status = 0; }; }
24293 gcc_cv_as_debug_prefix_map_flag
=yes
24295 echo "configure: failed program was" >&5
24298 rm -f conftest.o conftest.s
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24302 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24303 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24305 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24311 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24312 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24313 $as_echo_n "(cached) " >&6
24315 gcc_cv_as_lcomm_with_alignment
=no
24316 if test x
$gcc_cv_as != x
; then
24317 echo '.lcomm bar,4,16' > conftest.s
24318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; }
24325 gcc_cv_as_lcomm_with_alignment
=yes
24327 echo "configure: failed program was" >&5
24330 rm -f conftest.o conftest.s
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24334 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24335 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24337 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24341 # Check whether --enable-gnu-unique-object was given.
24342 if test "${enable_gnu_unique_object+set}" = set; then :
24343 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24345 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24346 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24350 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24351 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24352 $as_echo_n "(cached) " >&6
24354 gcc_cv_as_gnu_unique_object
=no
24355 if test $in_tree_gas = yes; then
24356 if test $in_tree_gas_is_elf = yes \
24357 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24358 then gcc_cv_as_gnu_unique_object
=yes
24360 elif test x
$gcc_cv_as != x
; then
24361 echo '.type foo, @gnu_unique_object' > conftest.s
24362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364 (eval $ac_try) 2>&5
24366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367 test $ac_status = 0; }; }
24369 gcc_cv_as_gnu_unique_object
=yes
24371 echo "configure: failed program was" >&5
24374 rm -f conftest.o conftest.s
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24378 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24379 if test $gcc_cv_as_gnu_unique_object = yes; then
24380 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24381 if test x
$host = x
$build -a x
$host = x
$target &&
24382 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24383 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24384 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24385 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24386 if test "$glibcnum" -ge 2011 ; then
24387 enable_gnu_unique_object
=yes
24393 if test x
$enable_gnu_unique_object = xyes
; then
24395 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24400 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24401 if test "${gcc_cv_as_line_zero+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24404 gcc_cv_as_line_zero
=no
24405 if test $in_tree_gas = yes; then
24406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24407 then gcc_cv_as_line_zero
=yes
24409 elif test "x$gcc_cv_as" != x
; then
24410 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24411 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413 (eval $ac_try) 2>&5
24415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416 test $ac_status = 0; }; } &&
24417 test "x`cat conftest.out`" = x
24419 gcc_cv_as_line_zero
=yes
24421 echo "configure: failed program was" >&5
24423 echo "configure: error output was" >&5
24424 cat conftest.out
>&5
24426 rm -f conftest.o conftest.s conftest.out
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24430 $as_echo "$gcc_cv_as_line_zero" >&6; }
24431 if test "x$gcc_cv_as_line_zero" = xyes
; then
24433 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24438 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24439 gcc_cv_ld_eh_frame_hdr
=no
24440 if test $in_tree_ld = yes ; then
24441 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 \
24442 && test $in_tree_ld_is_elf = yes; then
24443 gcc_cv_ld_eh_frame_hdr
=yes
24445 elif test x
$gcc_cv_ld != x
; then
24446 # Check if linker supports --eh-frame-hdr option
24447 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24448 gcc_cv_ld_eh_frame_hdr
=yes
24452 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24454 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24458 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24461 $as_echo_n "checking linker position independent executable support... " >&6; }
24463 if test $in_tree_ld = yes ; then
24464 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 \
24465 && test $in_tree_ld_is_elf = yes; then
24468 elif test x
$gcc_cv_ld != x
; then
24469 # Check if linker supports -pie option
24470 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24474 if test x
"$gcc_cv_ld_pie" = xyes
; then
24476 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24480 $as_echo "$gcc_cv_ld_pie" >&6; }
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24483 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24484 gcc_cv_ld_eh_gc_sections
=no
24485 if test $in_tree_ld = yes ; then
24486 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 \
24487 && test $in_tree_ld_is_elf = yes; then
24488 gcc_cv_ld_eh_gc_sections
=yes
24490 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24491 cat > conftest.s
<<EOF
24494 .type _start, @function
24497 .size _start, .-_start
24498 .section .text.foo,"ax",@progbits
24499 .type foo, @function
24503 .section .gcc_except_table.foo,"a",@progbits
24506 .section .eh_frame,"a",@progbits
24509 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24510 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24511 |
grep "gc-sections option ignored" > /dev
/null
; then
24512 gcc_cv_ld_eh_gc_sections
=no
24513 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24514 gcc_cv_ld_eh_gc_sections
=yes
24515 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24516 if test x
$gcc_cv_as_comdat_group != xyes
; then
24517 gcc_cv_ld_eh_gc_sections
=no
24518 cat > conftest.s
<<EOF
24521 .type _start, @function
24524 .size _start, .-_start
24525 .section .gnu.linkonce.t.foo,"ax",@progbits
24526 .type foo, @function
24530 .section .gcc_except_table.foo,"a",@progbits
24533 .section .eh_frame,"a",@progbits
24536 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24537 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24538 |
grep "gc-sections option ignored" > /dev
/null
; then
24539 gcc_cv_ld_eh_gc_sections
=no
24540 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24541 gcc_cv_ld_eh_gc_sections
=yes
24547 rm -f conftest.s conftest.o conftest
24551 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24552 gcc_cv_ld_eh_gc_sections
=no
24555 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24557 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24561 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24568 $as_echo_n "checking linker --as-needed support... " >&6; }
24569 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24570 $as_echo_n "(cached) " >&6
24572 gcc_cv_ld_as_needed
=no
24573 if test $in_tree_ld = yes ; then
24574 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 \
24575 && test $in_tree_ld_is_elf = yes; then
24576 gcc_cv_ld_as_needed
=yes
24578 elif test x
$gcc_cv_ld != x
; then
24579 # Check if linker supports --as-needed and --no-as-needed options
24580 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24581 gcc_cv_ld_as_needed
=yes
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24587 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24588 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24590 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24594 case "$target:$tm_file" in
24595 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24597 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24598 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_ld_no_dot_syms
=no
24602 if test $in_tree_ld = yes ; then
24603 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
24604 gcc_cv_ld_no_dot_syms
=yes
24606 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24607 cat > conftest1.s
<<EOF
24611 cat > conftest2.s
<<EOF
24612 .section ".opd","aw"
24615 .type foo,@function
24617 .quad .LEfoo,.TOC.@tocbase,0
24623 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24624 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24625 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24626 gcc_cv_ld_no_dot_syms
=yes
24628 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24633 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24634 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24636 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24643 $as_echo_n "checking linker --build-id support... " >&6; }
24644 if test "${gcc_cv_ld_buildid+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24647 gcc_cv_ld_buildid
=no
24648 if test $in_tree_ld = yes ; then
24649 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24650 "$gcc_cv_gld_minor_version" -ge 18 -o \
24651 "$gcc_cv_gld_major_version" -gt 2 \
24652 && test $in_tree_ld_is_elf = yes; then
24653 gcc_cv_ld_buildid
=yes
24655 elif test x
$gcc_cv_ld != x
; then
24656 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
24657 gcc_cv_ld_buildid
=yes
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24662 $as_echo "$gcc_cv_ld_buildid" >&6; }
24663 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24665 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24669 # Check whether --enable-linker-build-id was given.
24670 if test "${enable_linker_build_id+set}" = set; then :
24671 enableval
=$enable_linker_build_id;
24673 enable_linker_build_id
=no
24677 if test x
"$enable_linker_build_id" = xyes
; then
24678 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24680 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24684 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24689 $as_echo_n "checking linker --sysroot support... " >&6; }
24690 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24691 $as_echo_n "(cached) " >&6
24693 gcc_cv_ld_sysroot
=no
24694 if test $in_tree_ld = yes ; then
24695 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
24696 gcc_cv_ld_sysroot
=yes
24698 elif test x
$gcc_cv_ld != x
; then
24699 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24700 gcc_cv_ld_sysroot
=yes
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24705 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24706 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24708 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24712 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24713 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24714 && test "$prefix" != "NONE"; then
24716 cat >>confdefs.h
<<_ACEOF
24717 #define PREFIX_INCLUDE_DIR "$prefix/include"
24722 # Test for stack protector support in target C library.
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24724 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24725 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24726 $as_echo_n "(cached) " >&6
24728 gcc_cv_libc_provides_ssp
=no
24730 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24731 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24732 if test "x$with_headers" != x
; then
24733 glibc_header_dir
=$with_headers
24734 elif test "x$with_sysroot" = x
; then
24735 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24736 elif test "x$with_build_sysroot" != "x"; then
24737 glibc_header_dir
="${with_build_sysroot}/usr/include"
24738 elif test "x$with_sysroot" = xyes
; then
24739 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24741 glibc_header_dir
="${with_sysroot}/usr/include"
24744 glibc_header_dir
=/usr
/include
24746 # glibc 2.4 and later provides __stack_chk_fail and
24747 # either __stack_chk_guard, or TLS access to stack guard canary.
24748 if test -f $glibc_header_dir/features.h \
24749 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24750 $glibc_header_dir/features.h
> /dev
/null
; then
24751 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24752 $glibc_header_dir/features.h
> /dev
/null
; then
24753 gcc_cv_libc_provides_ssp
=yes
24754 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24755 $glibc_header_dir/features.h
> /dev
/null \
24756 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24757 $glibc_header_dir/features.h
> /dev
/null
; then
24758 gcc_cv_libc_provides_ssp
=yes
24759 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24760 $glibc_header_dir/features.h
> /dev
/null
&& \
24761 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24762 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24763 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24764 gcc_cv_libc_provides_ssp
=yes
24769 # Avoid complicated tests (see
24770 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24771 # simply assert that glibc does provide this, which is true for all
24772 # realistically usable GNU/Hurd configurations.
24773 gcc_cv_libc_provides_ssp
=yes;;
24774 *-*-darwin* |
*-*-freebsd*)
24775 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24776 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
24777 gcc_cv_libc_provides_ssp
=yes
24779 echo "no __stack_chk_fail on this target"
24783 *) gcc_cv_libc_provides_ssp
=no
;;
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24787 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24789 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24791 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24795 # Check if TFmode long double should be used by default or not.
24796 # Some glibc targets used DFmode long double, but with glibc 2.4
24797 # and later they can use TFmode.
24799 powerpc
*-*-linux* | \
24800 powerpc
*-*-gnu* | \
24801 sparc
*-*-linux* | \
24805 # Check whether --with-long-double-128 was given.
24806 if test "${with_long_double_128+set}" = set; then :
24807 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
24809 gcc_cv_target_ldbl128
=no
24810 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24811 if test "x$with_sysroot" = x
; then
24812 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24813 elif test "x$with_build_sysroot" != "x"; then
24814 glibc_header_dir
="${with_build_sysroot}/usr/include"
24815 elif test "x$with_sysroot" = xyes
; then
24816 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24818 glibc_header_dir
="${with_sysroot}/usr/include"
24821 glibc_header_dir
=/usr
/include
24823 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24824 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
24825 && gcc_cv_target_ldbl128
=yes
24831 if test x
$gcc_cv_target_ldbl128 = xyes
; then
24833 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24837 # Find out what GC implementation we want, or may, use.
24839 # Check whether --with-gc was given.
24840 if test "${with_gc+set}" = set; then :
24841 withval
=$with_gc; case "$withval" in
24848 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24852 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
24860 echo "Using $GGC for garbage collection."
24862 # Libraries to use on the host. This will normally be set by the top
24863 # level Makefile. Here we simply capture the value for our Makefile.
24864 if test -z "${HOST_LIBS+set}"; then
24869 # Use the system's zlib library.
24871 zlibinc
="-I\$(srcdir)/../zlib"
24873 # Check whether --with-system-zlib was given.
24874 if test "${with_system_zlib+set}" = set; then :
24875 withval
=$with_system_zlib; zlibdir
=
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24885 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24886 # Check whether --enable-maintainer-mode was given.
24887 if test "${enable_maintainer_mode+set}" = set; then :
24888 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24895 $as_echo "$maintainer_mode" >&6; }
24897 if test "$maintainer_mode" = "yes"; then
24907 # Make empty files to contain the specs and options for each language.
24908 # Then add #include lines to for a compiler that has specs and/or options.
24914 # These (without "all_") are set in each config-lang.in.
24915 # `language' must be a single word so is spelled singularly.
24918 all_outputs
='Makefile gccbug'
24919 # List of language makefile fragments.
24920 all_lang_makefrags
=
24921 # List of language subdirectory makefiles. Deprecated.
24922 all_lang_makefiles
=
24923 # Additional files for gengtype
24924 all_gtfiles
="$target_gtfiles"
24926 # These are the languages that are set in --enable-languages,
24927 # and are available in the GCC tree.
24928 all_selected_languages
=
24930 # Add the language fragments.
24931 # Languages are added via two mechanisms. Some information must be
24932 # recorded in makefile variables, these are defined in config-lang.in.
24933 # We accumulate them and plug them into the main Makefile.
24934 # The other mechanism is a set of hooks for each of the main targets
24935 # like `clean', `install', etc.
24937 language_hooks
="Make-hooks"
24939 for lang
in ${srcdir}/*/config-lang.
in
24941 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24943 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24944 if test "x$lang_alias" = x
24946 echo "$lang doesn't set \$language." 1>&2
24949 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24950 subdirs
="$subdirs $subdir"
24952 # $gcc_subdir is where the gcc integration files are to be found
24953 # for a language, both for internal compiler purposes (compiler
24954 # sources implementing front-end to GCC tree converters), and for
24955 # build infrastructure purposes (Make-lang.in, etc.)
24957 # This will be <subdir> (relative to $srcdir) if a line like
24958 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24959 # is found in <langdir>/config-lang.in, and will remain <langdir>
24962 # Except for the language alias (fetched above), the regular
24963 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24964 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24965 # only this and the language alias.
24967 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24968 if [ "$gcc_subdir" = "" ]; then
24969 gcc_subdir
="$subdir"
24972 case ",$enable_languages," in
24974 all_selected_languages
="$all_selected_languages $lang_alias"
24975 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
24976 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24987 .
${srcdir}/$gcc_subdir/config-lang.
in
24988 if test "x$language" = x
24990 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24995 case ",$enable_languages," in
24996 *,$lang_alias,*) ;;
24998 for i
in $subdir_requires; do
24999 test -f "${srcdir}/$i/config-lang.in" && continue
25007 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25008 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25009 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25011 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25012 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25014 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
25015 then all_lang_makefiles
="$gcc_subdir/Makefile"
25017 all_languages
="$all_languages $language"
25018 all_compilers
="$all_compilers $compilers"
25019 all_outputs
="$all_outputs $outputs"
25020 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25021 case ",$enable_languages," in
25024 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25033 # Pick up gtfiles for c
25035 .
${srcdir}/c-config-lang.
in
25036 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25039 for language
in $all_selected_languages
25041 check_languages
="$check_languages check-$language"
25044 # We link each language in with a set of hooks, reached indirectly via
25045 # lang.${target}. Only do so for selected languages.
25049 target_list
="all.cross start.encap rest.encap tags \
25050 install-common install-man install-info install-pdf install-html dvi \
25051 pdf html uninstall info man srcextra srcman srcinfo \
25052 mostlyclean clean distclean maintainer-clean install-plugin"
25054 for t
in $target_list
25057 for lang
in $all_selected_languages
25061 echo "lang.$t: $x" >> Make-hooks
25070 echo "dir ." > .gdbinit
25071 echo "dir ${srcdir}" >> .gdbinit
25072 if test x
$gdb_needs_out_file_path = xyes
25074 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25076 if test "x$subdirs" != x
; then
25079 echo "dir ${srcdir}/$s" >> .gdbinit
25082 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25084 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25088 # Find a directory in which to install a shared libgcc.
25090 # Check whether --enable-version-specific-runtime-libs was given.
25091 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25092 enableval
=$enable_version_specific_runtime_libs;
25097 # Check whether --with-slibdir was given.
25098 if test "${with_slibdir+set}" = set; then :
25099 withval
=$with_slibdir; slibdir
="$with_slibdir"
25101 if test "${enable_version_specific_runtime_libs+set}" = set; then
25102 slibdir
='$(libsubdir)'
25103 elif test "$host" != "$target"; then
25104 slibdir
='$(build_tooldir)/lib'
25106 slibdir
='$(libdir)'
25112 # Substitute configuration variables
25175 if test x
${build} = x
${host} ; then
25176 if test x
${host} = x
${target} ; then
25177 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25179 echo "Links are now set up to build a cross-compiler" 1>&2
25180 echo " from ${host} to ${target}." 1>&2
25183 if test x
${host} = x
${target} ; then
25184 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25185 echo " for ${target}." 1>&2
25187 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25188 echo " from ${host} to ${target}." 1>&2
25200 if test "x${CLOOGLIBS}" != "x" ; then
25202 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25208 if test "x${LIBELFLIBS}" != "x" ; then
25210 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25214 # Check for plugin support
25215 # Check whether --enable-plugin was given.
25216 if test "${enable_plugin+set}" = set; then :
25217 enableval
=$enable_plugin; enable_plugin
=$enableval
25219 enable_plugin
=yes; default_plugin
=yes
25224 if test x
"$enable_plugin" = x
"yes"; then
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25227 $as_echo_n "checking for exported symbols... " >&6; }
25228 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25229 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25230 if $gcc_cv_objdump -T conftest |
grep foobar
> /dev
/null
; then
25231 : # No need to use a flag
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25234 $as_echo_n "checking for -rdynamic... " >&6; }
25235 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25236 if $gcc_cv_objdump -T conftest |
grep foobar
> /dev
/null
; then
25237 plugin_rdynamic
=yes
25238 pluginlibs
="-rdynamic"
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25244 $as_echo "$plugin_rdynamic" >&6; }
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25250 $as_echo_n "checking for library containing dlopen... " >&6; }
25251 if test "${ac_cv_search_dlopen+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25254 ac_func_search_save_LIBS
=$LIBS
25255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h. */
25258 /* Override any GCC internal prototype to avoid an error.
25259 Use char because int might match the return type of a GCC
25260 builtin and then its argument prototype would still apply. */
25273 for ac_lib
in '' dl
; do
25274 if test -z "$ac_lib"; then
25275 ac_res
="none required"
25278 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25280 if ac_fn_c_try_link
"$LINENO"; then :
25281 ac_cv_search_dlopen
=$ac_res
25283 rm -f core conftest.err conftest.
$ac_objext \
25285 if test "${ac_cv_search_dlopen+set}" = set; then :
25289 if test "${ac_cv_search_dlopen+set}" = set; then :
25292 ac_cv_search_dlopen
=no
25294 rm conftest.
$ac_ext
25295 LIBS
=$ac_func_search_save_LIBS
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25298 $as_echo "$ac_cv_search_dlopen" >&6; }
25299 ac_res
=$ac_cv_search_dlopen
25300 if test "$ac_res" != no
; then :
25301 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25305 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25306 pluginlibs
="$pluginlibs -ldl"
25310 # Check that we can build shared objects with -fPIC -shared
25311 saved_LDFLAGS
="$LDFLAGS"
25312 LDFLAGS
="$LDFLAGS -fPIC -shared"
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25314 $as_echo_n "checking for -fPIC -shared... " >&6; }
25315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25326 if ac_fn_c_try_link
"$LINENO"; then :
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25328 $as_echo "yes" >&6; }; have_pic_shared
=yes
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25331 $as_echo "no" >&6; }; have_pic_shared
=no
25333 rm -f core conftest.err conftest.
$ac_objext \
25334 conftest
$ac_exeext conftest.
$ac_ext
25335 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25339 LDFLAGS
="$saved_LDFLAGS"
25341 # If plugin support had been requested but not available, fail.
25342 if test x
"$enable_plugin" = x
"no" ; then
25343 if test x
"$default_plugin" != x
"yes"; then
25345 Building GCC with plugin support requires a host that supports
25346 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25353 if test x
"$enable_plugin" = x
"yes"; then
25355 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25359 # Configure the subdirectories
25360 # AC_CONFIG_SUBDIRS($subdirs)
25362 # Create the Makefile
25363 # and configure language subdirectories
25364 ac_config_files
="$ac_config_files $all_outputs"
25367 ac_config_commands
="$ac_config_commands default"
25369 cat >confcache
<<\_ACEOF
25370 # This file is a shell script that caches the results of configure
25371 # tests run on this system so they can be shared between configure
25372 # scripts and configure runs, see configure's option --config-cache.
25373 # It is not useful on other systems. If it contains results you don't
25374 # want to keep, you may remove or edit it.
25376 # config.status only pays attention to the cache file if you give it
25377 # the --recheck option to rerun configure.
25379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25381 # following values.
25385 # The following way of writing the cache mishandles newlines in values,
25386 # but we know of no workaround that is simple, portable, and efficient.
25387 # So, we kill variables containing newlines.
25388 # Ultrix sh set writes to stderr and can't be redirected directly,
25389 # and sets the high bit in the cache file unless we assign to the vars.
25391 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25392 eval ac_val
=\$
$ac_var
25396 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25400 _ | IFS | as_nl
) ;; #(
25401 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25402 *) { eval $ac_var=; unset $ac_var;} ;;
25408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25409 *${as_nl}ac_space
=\
*)
25410 # `set' does not quote correctly, so add quotes: double-quote
25411 # substitution turns \\\\ into \\, and sed turns \\ into \.
25414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25417 # `set' quotes correctly as required by POSIX, so do not add quotes.
25418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25431 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25432 if test -w "$cache_file"; then
25433 test "x$cache_file" != "x/dev/null" &&
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25435 $as_echo "$as_me: updating cache $cache_file" >&6;}
25436 cat confcache
>$cache_file
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25439 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25444 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25445 # Let make expand exec_prefix.
25446 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25448 DEFS
=-DHAVE_CONFIG_H
25452 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25453 # 1. Remove the extension, and $U if already installed.
25454 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25455 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25457 # will be set to the directory where LIBOBJS objects are built.
25458 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25459 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25461 LIBOBJS
=$ac_libobjs
25463 LTLIBOBJS
=$ac_ltlibobjs
25468 : ${CONFIG_STATUS=./config.status}
25470 ac_clean_files_save
=$ac_clean_files
25471 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25477 # Generated by $as_me.
25478 # Run this file to recreate the current configuration.
25479 # Compiler output produced by configure, useful for debugging
25480 # configure, is in config.log if it exists.
25483 ac_cs_recheck=false
25486 SHELL=\${CONFIG_SHELL-$SHELL}
25489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25490 ## -------------------- ##
25491 ## M4sh Initialization. ##
25492 ## -------------------- ##
25494 # Be more Bourne compatible
25495 DUALCASE
=1; export DUALCASE
# for MKS sh
25496 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25500 # is contrary to our usage. Disable this feature.
25501 alias -g '${1+"$@"}'='"$@"'
25502 setopt NO_GLOB_SUBST
25504 case `(set -o) 2>/dev/null` in #(
25516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25517 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25520 # Prefer a ksh shell builtin over an external printf program on Solaris,
25521 # but without wasting forks for bash or zsh.
25522 if test -z "$BASH_VERSION$ZSH_VERSION" \
25523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25524 as_echo='print
-r --'
25525 as_echo_n='print
-rn --'
25526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25527 as_echo='printf %s
\n'
25528 as_echo_n='printf %s
'
25530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25531 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25532 as_echo_n='/usr
/ucb
/echo -n'
25534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25535 as_echo_n_body='eval
25539 expr "X$arg" : "X\\(.*\\)$as_nl";
25540 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25542 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25544 export as_echo_n_body
25545 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25547 export as_echo_body
25548 as_echo='sh
-c $as_echo_body as_echo
'
25551 # The user is always right.
25552 if test "${PATH_SEPARATOR+set}" != set; then
25554 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25555 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25562 # We need space, tab and new line, in precisely that order. Quoting is
25563 # there to prevent editors from complaining about space-tab.
25564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25565 # splitting by setting IFS to empty value.)
25568 # Find who we are. Look in the path if we contain no directory separator.
25570 *[\\/]* ) as_myself=$0 ;;
25571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25572 for as_dir in $PATH
25575 test -z "$as_dir" && as_dir=.
25576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25582 # We did not find ourselves, most probably we were run as `sh COMMAND'
25583 # in which case we are not to be found in the path.
25584 if test "x$as_myself" = x
; then
25587 if test ! -f "$as_myself"; then
25588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25592 # Unset variables that we do not need and which cause bugs (e.g. in
25593 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25594 # suppresses any "Segmentation fault" message there. '((' could
25595 # trigger a bug in pdksh 5.2.14.
25596 for as_var
in BASH_ENV ENV MAIL MAILPATH
25597 do eval test x\
${$as_var+set} = xset \
25598 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25614 # as_fn_error ERROR [LINENO LOG_FD]
25615 # ---------------------------------
25616 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25617 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25618 # script with status $?, using 1 if that was 0.
25621 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25623 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25626 $as_echo "$as_me: error: $1" >&2
25627 as_fn_exit
$as_status
25631 # as_fn_set_status STATUS
25632 # -----------------------
25633 # Set $? to STATUS, without forking.
25634 as_fn_set_status
()
25637 } # as_fn_set_status
25639 # as_fn_exit STATUS
25640 # -----------------
25641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25645 as_fn_set_status
$1
25651 # Portably unset VAR.
25654 { eval $1=; unset $1;}
25656 as_unset
=as_fn_unset
25657 # as_fn_append VAR VALUE
25658 # ----------------------
25659 # Append the text in VALUE to the end of the definition contained in VAR. Take
25660 # advantage of any shell optimizations that allow amortized linear growth over
25661 # repeated appends, instead of the typical quadratic growth present in naive
25663 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25664 eval 'as_fn_append ()
25675 # as_fn_arith ARG...
25676 # ------------------
25677 # Perform arithmetic evaluation on the ARGs, and store the result in the
25678 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25679 # must be portable across $(()) and expr.
25680 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25681 eval 'as_fn_arith ()
25688 as_val
=`expr "$@" || test $? -eq 1`
25693 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25694 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25700 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25701 as_basename
=basename
25706 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25712 as_me
=`$as_basename -- "$0" ||
25713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25714 X"$0" : 'X\(//\)$' \| \
25715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25717 sed '/^.*\/\([^/][^/]*\)\/*$/{
25731 # Avoid depending upon Character Ranges.
25732 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25733 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25734 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25735 as_cr_digits
='0123456789'
25736 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25738 ECHO_C
= ECHO_N
= ECHO_T
=
25739 case `echo -n x` in #(((((
25741 case `echo 'xy\c'` in
25742 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25744 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25751 rm -f conf$$ conf$$.exe conf$$.
file
25752 if test -d conf$$.dir
; then
25753 rm -f conf$$.dir
/conf$$.
file
25756 mkdir conf$$.dir
2>/dev
/null
25758 if (echo >conf$$.
file) 2>/dev
/null
; then
25759 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25761 # ... but there are two gotchas:
25762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25764 # In both cases, we have to default to `cp -p'.
25765 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25767 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25775 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25776 rmdir conf$$.dir
2>/dev
/null
25781 # Create "$as_dir" as a directory, including parents if necessary.
25786 -*) as_dir
=.
/$as_dir;;
25788 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25792 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25793 *) as_qdir
=$as_dir;;
25795 as_dirs
="'$as_qdir' $as_dirs"
25796 as_dir
=`$as_dirname -- "$as_dir" ||
25797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25798 X"$as_dir" : 'X\(//\)[^/]' \| \
25799 X"$as_dir" : 'X\(//\)$' \| \
25800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25801 $as_echo X"$as_dir" |
25802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25806 /^X\(\/\/\)[^/].*/{
25819 test -d "$as_dir" && break
25821 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25822 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
25826 if mkdir
-p .
2>/dev
/null
; then
25827 as_mkdir_p
='mkdir -p "$as_dir"'
25829 test -d .
/-p && rmdir .
/-p
25833 if test -x / >/dev
/null
2>&1; then
25834 as_test_x
='test -x'
25836 if ls -dL / >/dev
/null
2>&1; then
25843 if test -d "$1"; then
25849 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25850 ???[sx]*):;;*)false;;esac;fi
25854 as_executable_p
=$as_test_x
25856 # Sed expression to map a string onto a valid CPP name.
25857 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25859 # Sed expression to map a string onto a valid variable name.
25860 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25864 ## ----------------------------------- ##
25865 ## Main body of $CONFIG_STATUS script. ##
25866 ## ----------------------------------- ##
25868 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25871 # Save the log message, to keep $0 and so on meaningful, and to
25872 # report actual input values of CONFIG_FILES etc. instead of their
25873 # values after options handling.
25875 This file was extended by $as_me, which was
25876 generated by GNU Autoconf 2.64. Invocation command line was
25878 CONFIG_FILES = $CONFIG_FILES
25879 CONFIG_HEADERS = $CONFIG_HEADERS
25880 CONFIG_LINKS = $CONFIG_LINKS
25881 CONFIG_COMMANDS = $CONFIG_COMMANDS
25884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25889 case $ac_config_files in *"
25890 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25893 case $ac_config_headers in *"
25894 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25899 # Files that config.status was made for.
25900 config_files="$ac_config_files"
25901 config_headers="$ac_config_headers"
25902 config_commands="$ac_config_commands"
25906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25908 \`$as_me' instantiates files and other configuration actions
25909 from templates according to the current configuration. Unless the files
25910 and actions are specified as TAGs, all are instantiated by default.
25912 Usage: $0 [OPTION]... [TAG]...
25914 -h, --help print this help, then exit
25915 -V, --version print version number and configuration settings, then exit
25916 -q, --quiet, --silent
25917 do not print progress messages
25918 -d, --debug don't remove temporary files
25919 --recheck update $as_me by reconfiguring in the same conditions
25920 --file=FILE[:TEMPLATE]
25921 instantiate the configuration file FILE
25922 --header=FILE[:TEMPLATE]
25923 instantiate the configuration header FILE
25925 Configuration files:
25928 Configuration headers:
25931 Configuration commands:
25934 Report bugs to the package provider."
25937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25940 configured by $0, generated by GNU Autoconf 2.64,
25941 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25943 Copyright (C) 2009 Free Software Foundation, Inc.
25944 This config.status script is free software; the Free Software Foundation
25945 gives unlimited permission to copy, distribute and modify it."
25950 test -n "\$AWK" || AWK=awk
25953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25954 # The default lists apply if the user does not specify any file.
25960 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25961 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25972 # Handling of the options.
25973 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25975 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25976 $as_echo "$ac_cs_version"; exit ;;
25977 --debug |
--debu |
--deb |
--de |
--d |
-d )
25979 --file |
--fil |
--fi |
--f )
25982 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25984 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25985 ac_need_defaults
=false
;;
25986 --header |
--heade |
--head |
--hea )
25989 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25991 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25992 ac_need_defaults
=false
;;
25994 # Conflict between --help and --header
25995 as_fn_error
"ambiguous option: \`$1'
25996 Try \`$0 --help' for more information.";;
25997 --help |
--hel |
-h )
25998 $as_echo "$ac_cs_usage"; exit ;;
25999 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26000 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26003 # This is an error.
26004 -*) as_fn_error
"unrecognized option: \`$1'
26005 Try \`$0 --help' for more information." ;;
26007 *) as_fn_append ac_config_targets
" $1"
26008 ac_need_defaults
=false
;;
26014 ac_configure_extra_args
=
26016 if $ac_cs_silent; then
26018 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26023 if \$ac_cs_recheck; then
26024 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26026 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26027 CONFIG_SHELL='$SHELL'
26028 export CONFIG_SHELL
26033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26038 ## Running $as_me. ##
26044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26054 # Handling of arguments.
26055 for ac_config_target
in $ac_config_targets
26057 case $ac_config_target in
26058 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26059 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26060 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26061 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26062 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26063 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26065 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26070 # If the user did not use the arguments to specify the items to instantiate,
26071 # then the envvar interface is used. Set only those that are not.
26072 # We use the long form for the default assignment because of an extremely
26073 # bizarre bug on SunOS 4.1.3.
26074 if $ac_need_defaults; then
26075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26080 # Have a temporary directory for convenience. Make it in the build tree
26081 # simply because there is no reason against having it here, and in addition,
26082 # creating and moving files from /tmp can sometimes cause problems.
26083 # Hook for its removal unless debugging.
26084 # Note that there is a small window in which the directory will not be cleaned:
26085 # after its creation but before its name has been assigned to `$tmp'.
26089 trap 'exit_status=$?
26090 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26092 trap 'as_fn_exit 1' 1 2 13 15
26094 # Create a (secure) tmp directory for tmp files.
26097 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26098 test -n "$tmp" && test -d "$tmp"
26101 tmp
=.
/conf$$
-$RANDOM
26102 (umask 077 && mkdir
"$tmp")
26103 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26105 # Set up the scripts for CONFIG_FILES section.
26106 # No need to generate them if there are no CONFIG_FILES.
26107 # This happens for instance with `./config.status config.h'.
26108 if test -n "$CONFIG_FILES"; then
26110 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26111 ac_cs_awk_getline
=:
26112 ac_cs_awk_pipe_init
=
26113 ac_cs_awk_read_file
='
26114 while ((getline aline < (F[key])) > 0)
26117 ac_cs_awk_pipe_fini
=
26119 ac_cs_awk_getline
=false
26120 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26121 ac_cs_awk_read_file
='
26123 print "cat " F[key] " &&"
26124 '$ac_cs_awk_pipe_init
26125 # The final `:' finishes the AND list.
26126 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26128 ac_cr
=`echo X | tr X '\015'`
26129 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26130 # But we know of no other shell where ac_cr would be empty at this
26131 # point, so we can use a bashism as a fallback.
26132 if test "x$ac_cr" = x
; then
26133 eval ac_cr
=\$
\'\\r
\'
26135 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26136 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26139 ac_cs_awk_cr
=$ac_cr
26142 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26145 # Create commands to substitute file output variables.
26147 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26148 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26149 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26152 } >conf$
$files.sh
&&
26153 . .
/conf$
$files.sh ||
26154 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26155 rm -f conf$
$files.sh
26158 echo "cat >conf$$subs.awk <<_ACEOF" &&
26159 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26161 } >conf$$subs.sh ||
26162 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26163 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26165 for ac_last_try in false false false false false :; do
26166 . ./conf$$subs.sh ||
26167 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26169 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26170 if test $ac_delim_n = $ac_delim_num; then
26172 elif $ac_last_try; then
26173 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26175 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26178 rm -f conf$$subs.sh
26180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26181 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26185 s/^/S["/; s
/!.
*/"]=/
26195 s/\(.\{148\}\).*/\1/
26197 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26202 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26209 s/\(.\{148\}\).*/\1/
26211 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26215 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26220 ' <conf$$subs.awk | sed '
26225 ' >>$CONFIG_STATUS || ac_write_fail=1
26226 rm -f conf$$subs.awk
26227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26229 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26230 for (key in S) S_is_set[key] = 1
26232 \$ac_cs_awk_pipe_init
26236 nfields = split(line, field, "@
")
26238 len = length(field[1])
26239 for (i = 2; i < nfields; i++) {
26241 keylen = length(key)
26242 if (S_is_set[key]) {
26244 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26245 len += length(value) + length(field[++i])
26250 if (nfields == 3 && !substed) {
26252 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26253 \$ac_cs_awk_read_file
26259 \$ac_cs_awk_pipe_fini
26262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26263 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26264 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26267 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26268 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26271 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26272 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26273 # trailing colons and then remove the whole line if VPATH becomes empty
26274 # (actually we leave an empty line to preserve line numbers).
26275 if test "x
$srcdir" = x.; then
26276 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26277 s/:*\$(srcdir):*/:/
26278 s/:*\${srcdir}:*/:/
26280 s/^\([^=]*=[ ]*\):*/\1/
26286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26287 fi # test -n "$CONFIG_FILES"
26289 # Set up the scripts for CONFIG_HEADERS section.
26290 # No need to generate them if there are no CONFIG_HEADERS.
26291 # This happens for instance with `./config.status Makefile'.
26292 if test -n "$CONFIG_HEADERS"; then
26293 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26297 # Transform confdefs.h into an awk script `defines.awk', embedded as
26298 # here-document in config.status, that substitutes the proper values into
26299 # config.h.in to produce config.h.
26301 # Create a delimiter string that does not exist in confdefs.h, to ease
26302 # handling of long lines.
26304 for ac_last_try in false false :; do
26305 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26306 if test -z "$ac_t"; then
26308 elif $ac_last_try; then
26309 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26311 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26315 # For the awk script, D is an array of macro values keyed by name,
26316 # likewise P contains macro parameters if any. Preserve backslash
26317 # newline sequences.
26319 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26321 s/.\{148\}/&'"$ac_delim"'/g
26324 s/^[ ]*#[ ]*define[ ][ ]*/ /
26331 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26333 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26338 D["\
1"]=" \
3\\\\\\n
"\\/p
26340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26345 s/.\{148\}/&'"$ac_delim"'/g
26350 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26353 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26355 ' <confdefs.h | sed '
26356 s/'"$ac_delim"'/"\\\
26357 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26360 for (key in D) D_is_set[key] = 1
26363 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26365 split(line, arg, " ")
26366 if (arg[1] == "#") {
26370 defundef
= substr
(arg
[1], 2)
26373 split(mac1
, mac2
, "(") #)
26375 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26376 if (D_is_set
[macro
]) {
26377 # Preserve the white space surrounding the "#".
26378 print prefix
"define", macro P
[macro
] D
[macro
]
26381 # Replace #undef with comments. This is necessary, for example,
26382 # in the case of _POSIX_SOURCE, which is predefined and required
26383 # on some systems where configure will not decide to define it.
26384 if (defundef
== "undef") {
26385 print
"/*", prefix defundef
, macro
, "*/"
26393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26394 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26395 fi # test -n "$CONFIG_HEADERS"
26398 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26403 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26405 case $ac_mode$ac_tag in
26407 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26408 :[FH
]-) ac_tag
=-:-;;
26409 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26426 -) ac_f
="$tmp/stdin";;
26427 *) # Look for the file first in the build tree, then in the source tree
26428 # (if the path is not absolute). The absolute path cannot be DOS-style,
26429 # because $ac_f cannot contain `:'.
26433 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26435 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26437 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26438 as_fn_append ac_file_inputs
" '$ac_f'"
26441 # Let's still pretend it is `configure' which instantiates (i.e., don't
26442 # use $as_me), people would be surprised to read:
26443 # /* config.h. Generated by config.status. */
26444 configure_input
='Generated from '`
26445 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26447 if test x
"$ac_file" != x-
; then
26448 configure_input
="$ac_file. $configure_input"
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26450 $as_echo "$as_me: creating $ac_file" >&6;}
26452 # Neutralize special characters interpreted by sed in replacement strings.
26453 case $configure_input in #(
26454 *\
&* |
*\|
* |
*\\* )
26455 ac_sed_conf_input
=`$as_echo "$configure_input" |
26456 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26457 *) ac_sed_conf_input
=$configure_input;;
26461 *:-:* |
*:-) cat >"$tmp/stdin" \
26462 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26467 ac_dir
=`$as_dirname -- "$ac_file" ||
26468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26469 X"$ac_file" : 'X\(//\)[^/]' \| \
26470 X"$ac_file" : 'X\(//\)$' \| \
26471 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26472 $as_echo X"$ac_file" |
26473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26477 /^X\(\/\/\)[^/].*/{
26490 as_dir
="$ac_dir"; as_fn_mkdir_p
26494 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26496 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26497 # A ".." for each directory in $ac_dir_suffix.
26498 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26499 case $ac_top_builddir_sub in
26500 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26501 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26504 ac_abs_top_builddir
=$ac_pwd
26505 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26506 # for backward compatibility:
26507 ac_top_builddir
=$ac_top_build_prefix
26510 .
) # We are building in place.
26512 ac_top_srcdir
=$ac_top_builddir_sub
26513 ac_abs_top_srcdir
=$ac_pwd ;;
26514 [\\/]* | ?
:[\\/]* ) # Absolute name.
26515 ac_srcdir
=$srcdir$ac_dir_suffix;
26516 ac_top_srcdir
=$srcdir
26517 ac_abs_top_srcdir
=$srcdir ;;
26518 *) # Relative name.
26519 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26520 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26521 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26523 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26535 # If the template does not know about datarootdir, expand it.
26536 # FIXME: This hack should be removed a few years after 2.60.
26537 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26549 *datarootdir
*) ac_datarootdir_seen
=yes;;
26550 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26555 ac_datarootdir_hack='
26556 s&@datadir@&$datadir&g
26557 s&@docdir@&$docdir&g
26558 s&@infodir@&$infodir&g
26559 s&@localedir@&$localedir&g
26560 s&@mandir@&$mandir&g
26561 s&\\\${datarootdir}&$datarootdir&g' ;;
26565 # Neutralize VPATH when `$srcdir' = `.'.
26566 # Shell code in configure.ac might set extrasub.
26567 # FIXME: do we really want to maintain this feature?
26568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26569 ac_sed_extra="$ac_vpsub
26572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26574 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26575 s|@configure_input@|
$ac_sed_conf_input|
;t t
26576 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26577 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26578 s
&@srcdir@
&$ac_srcdir&;t t
26579 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26580 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26581 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26582 s
&@builddir@
&$ac_builddir&;t t
26583 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26584 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26585 $ac_datarootdir_hack
26587 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26588 if $ac_cs_awk_getline; then
26589 $AWK -f "$tmp/subs.
awk"
26591 $AWK -f "$tmp/subs.
awk" | $SHELL
26593 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26596 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26599 which seems to be undefined. Please make sure it is defined." >&5
26600 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26601 which seems to be undefined. Please make sure it is defined." >&2;}
26605 -) cat "$tmp/out" && rm -f "$tmp/out";;
26606 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26608 || as_fn_error "could not create $ac_file" "$LINENO" 5
26614 if test x"$ac_file" != x-; then
26616 $as_echo "/* $configure_input */" \
26617 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26618 } >"$tmp/config.h" \
26619 || as_fn_error "could not create $ac_file" "$LINENO" 5
26620 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26622 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26625 mv "$tmp/config.h" "$ac_file" \
26626 || as_fn_error "could not create $ac_file" "$LINENO" 5
26629 $as_echo "/* $configure_input */" \
26630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26631 || as_fn_error "could not create -" "$LINENO" 5
26635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26636 $as_echo "$as_me: executing $ac_file commands" >&6;}
26641 case $ac_file$ac_mode in
26642 "as":F) chmod +x as ;;
26643 "collect-ld":F) chmod +x collect-ld ;;
26644 "nm":F) chmod +x nm ;;
26646 case ${CONFIG_HEADERS} in
26647 *auto-host.h:config.in*)
26650 # Make sure all the subdirs exist.
26651 for d in $subdirs doc build
26653 test -d $d || mkdir $d
26663 ac_clean_files=$ac_clean_files_save
26665 test $ac_write_fail = 0 ||
26666 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26669 # configure is writing to config.log, and then calls config.status.
26670 # config.status does its own redirection, appending to config.log.
26671 # Unfortunately, on DOS this fails, as config.log is still kept open
26672 # by configure, so config.status won't be able to
write to it
; its
26673 # output is simply discarded. So we exec the FD to /dev/null,
26674 # effectively closing config.log, so it can be properly (re)opened and
26675 # appended to by config.status. When coming back to configure, we
26676 # need to make the FD available again.
26677 if test "$no_create" != yes; then
26679 ac_config_status_args
=
26680 test "$silent" = yes &&
26681 ac_config_status_args
="$ac_config_status_args --quiet"
26683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26686 # would make configure fail if this is the last instruction.
26687 $ac_cs_success || as_fn_exit $?
26689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26691 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}