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
685 ORIGINAL_NM_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
770 ENABLE_BUILD_WITH_CXX
773 valgrind_path_defines
845 program_transform_name
856 ac_subst_files
='language_hooks'
858 enable_option_checking
863 enable_generated_files_in_srcdir
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
894 enable_initfini_array
895 enable_sjlj_exceptions
896 with_system_libunwind
898 enable_leading_mingw64_underscores
900 enable_win32_registry
907 enable_gnu_unique_object
908 enable_linker_build_id
912 enable_maintainer_mode
913 enable_version_specific_runtime_libs
917 ac_precious_vars
='build_alias
940 # Initialize some variables set by options.
942 ac_init_version
=false
943 ac_unrecognized_opts
=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
954 program_transform_name
=s
,x
,x
,
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir
='${exec_prefix}/bin'
969 sbindir
='${exec_prefix}/sbin'
970 libexecdir
='${exec_prefix}/libexec'
971 datarootdir
='${prefix}/share'
972 datadir
='${datarootdir}'
973 sysconfdir
='${prefix}/etc'
974 sharedstatedir
='${prefix}/com'
975 localstatedir
='${prefix}/var'
976 includedir
='${prefix}/include'
977 oldincludedir
='/usr/include'
978 docdir
='${datarootdir}/doc/${PACKAGE}'
979 infodir
='${datarootdir}/info'
984 libdir
='${exec_prefix}/lib'
985 localedir
='${datarootdir}/locale'
986 mandir
='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\
$ac_option
1000 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1012 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1013 bindir
=$ac_optarg ;;
1015 -build |
--build |
--buil |
--bui |
--bu)
1016 ac_prev
=build_alias
;;
1017 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1018 build_alias
=$ac_optarg ;;
1020 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1021 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1022 ac_prev
=cache_file
;;
1023 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1024 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1025 cache_file
=$ac_optarg ;;
1027 --config-cache |
-C)
1028 cache_file
=config.cache
;;
1030 -datadir |
--datadir |
--datadi |
--datad)
1032 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1033 datadir
=$ac_optarg ;;
1035 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1036 |
--dataroo |
--dataro |
--datar)
1037 ac_prev
=datarootdir
;;
1038 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1039 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1040 datarootdir
=$ac_optarg ;;
1042 -disable-* |
--disable-*)
1043 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1046 as_fn_error
"invalid feature name: $ac_useropt"
1047 ac_useropt_orig
=$ac_useropt
1048 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_
$ac_useropt"
1053 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep
=', ';;
1056 eval enable_
$ac_useropt=no
;;
1058 -docdir |
--docdir |
--docdi |
--doc |
--do)
1060 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1061 docdir
=$ac_optarg ;;
1063 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1065 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1066 dvidir
=$ac_optarg ;;
1068 -enable-* |
--enable-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error
"invalid feature name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_
$ac_useropt"
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval enable_
$ac_useropt=\
$ac_optarg ;;
1084 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1085 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1086 |
--exec |
--exe |
--ex)
1087 ac_prev
=exec_prefix
;;
1088 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1089 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1090 |
--exec=* |
--exe=* |
--ex=*)
1091 exec_prefix
=$ac_optarg ;;
1093 -gas |
--gas |
--ga |
--g)
1094 # Obsolete; use --with-gas.
1097 -help |
--help |
--hel |
--he |
-h)
1098 ac_init_help
=long
;;
1099 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1100 ac_init_help
=recursive
;;
1101 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1102 ac_init_help
=short
;;
1104 -host |
--host |
--hos |
--ho)
1105 ac_prev
=host_alias
;;
1106 -host=* |
--host=* |
--hos=* |
--ho=*)
1107 host_alias
=$ac_optarg ;;
1109 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1111 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1113 htmldir
=$ac_optarg ;;
1115 -includedir |
--includedir |
--includedi |
--included |
--include \
1116 |
--includ |
--inclu |
--incl |
--inc)
1117 ac_prev
=includedir
;;
1118 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1119 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1120 includedir
=$ac_optarg ;;
1122 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1124 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1125 infodir
=$ac_optarg ;;
1127 -libdir |
--libdir |
--libdi |
--libd)
1129 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1130 libdir
=$ac_optarg ;;
1132 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1133 |
--libexe |
--libex |
--libe)
1134 ac_prev
=libexecdir
;;
1135 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1136 |
--libexe=* |
--libex=* |
--libe=*)
1137 libexecdir
=$ac_optarg ;;
1139 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1140 ac_prev
=localedir
;;
1141 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1142 localedir
=$ac_optarg ;;
1144 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1145 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1146 ac_prev
=localstatedir
;;
1147 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1148 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1149 localstatedir
=$ac_optarg ;;
1151 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1153 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1154 mandir
=$ac_optarg ;;
1156 -nfp |
--nfp |
--nf)
1157 # Obsolete; use --without-fp.
1160 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1161 |
--no-cr |
--no-c |
-n)
1164 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1165 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1168 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1169 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1170 |
--oldin |
--oldi |
--old |
--ol |
--o)
1171 ac_prev
=oldincludedir
;;
1172 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1173 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1174 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1175 oldincludedir
=$ac_optarg ;;
1177 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1179 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1180 prefix
=$ac_optarg ;;
1182 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1183 |
--program-pre |
--program-pr |
--program-p)
1184 ac_prev
=program_prefix
;;
1185 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1186 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1187 program_prefix
=$ac_optarg ;;
1189 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1190 |
--program-suf |
--program-su |
--program-s)
1191 ac_prev
=program_suffix
;;
1192 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1193 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1194 program_suffix
=$ac_optarg ;;
1196 -program-transform-name |
--program-transform-name \
1197 |
--program-transform-nam |
--program-transform-na \
1198 |
--program-transform-n |
--program-transform- \
1199 |
--program-transform |
--program-transfor \
1200 |
--program-transfo |
--program-transf \
1201 |
--program-trans |
--program-tran \
1202 |
--progr-tra |
--program-tr |
--program-t)
1203 ac_prev
=program_transform_name
;;
1204 -program-transform-name=* |
--program-transform-name=* \
1205 |
--program-transform-nam=* |
--program-transform-na=* \
1206 |
--program-transform-n=* |
--program-transform-=* \
1207 |
--program-transform=* |
--program-transfor=* \
1208 |
--program-transfo=* |
--program-transf=* \
1209 |
--program-trans=* |
--program-tran=* \
1210 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1211 program_transform_name
=$ac_optarg ;;
1213 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1215 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1216 pdfdir
=$ac_optarg ;;
1218 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1220 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1223 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1224 |
-silent |
--silent |
--silen |
--sile |
--sil)
1227 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1229 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1231 sbindir
=$ac_optarg ;;
1233 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1234 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1235 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1237 ac_prev
=sharedstatedir
;;
1238 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1239 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1240 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1242 sharedstatedir
=$ac_optarg ;;
1244 -site |
--site |
--sit)
1246 -site=* |
--site=* |
--sit=*)
1249 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1251 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1252 srcdir
=$ac_optarg ;;
1254 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1255 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1256 ac_prev
=sysconfdir
;;
1257 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1258 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1259 sysconfdir
=$ac_optarg ;;
1261 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1262 ac_prev
=target_alias
;;
1263 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1264 target_alias
=$ac_optarg ;;
1266 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1269 -version |
--version |
--versio |
--versi |
--vers |
-V)
1270 ac_init_version
=: ;;
1273 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1276 as_fn_error
"invalid package name: $ac_useropt"
1277 ac_useropt_orig
=$ac_useropt
1278 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep
=', ';;
1286 eval with_
$ac_useropt=\
$ac_optarg ;;
1288 -without-* |
--without-*)
1289 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 as_fn_error
"invalid package name: $ac_useropt"
1293 ac_useropt_orig
=$ac_useropt
1294 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep
=', ';;
1302 eval with_
$ac_useropt=no
;;
1305 # Obsolete; use --with-x.
1308 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1309 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1310 ac_prev
=x_includes
;;
1311 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1312 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1313 x_includes
=$ac_optarg ;;
1315 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1316 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1317 ac_prev
=x_libraries
;;
1318 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1319 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1320 x_libraries
=$ac_optarg ;;
1322 -*) as_fn_error
"unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1327 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1331 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\
$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 if test -n "$ac_prev"; then
1348 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error
"missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val
=\$
$ac_var
1367 # Remove trailing slashes.
1370 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\
$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$
]* | ?
:[\\/]* ) continue;;
1376 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1378 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target
=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x
; then
1390 if test "x$build_alias" = x
; then
1391 cross_compiling
=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1402 test "$silent" = yes && exec 6>/dev
/null
1405 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di
=`ls -di .` &&
1407 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error
"working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error
"pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted
=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir
=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted
=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1449 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var
in $ac_precious_vars; do
1466 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1468 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1542 --build=BUILD configure
for building on BUILD
[guessed
]
1543 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1544 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1548 if test -n "$ac_init_help"; then
1553 --disable-option-checking ignore unrecognized
--enable/--with options
1554 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1555 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1556 --enable-generated-files-in-srcdir
1557 put copies of generated files
in source dir
1558 intended
for creating
source tarballs
for users
1559 without texinfo bison or flex.
1560 --enable-werror-always enable -Werror despite compiler version
1561 --enable-checking=LIST
1562 enable expensive run-time checks. With LIST
,
1563 enable only specific categories of checks.
1564 Categories are
: yes,no
,all
,none
,release.
1565 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1566 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1567 --enable-coverage=LEVEL
1568 enable compiler
's code coverage collection.
1569 Use to measure compiler performance and locate
1570 unused parts of the compiler. With LEVEL, specify
1571 optimization. Values are opt, noopt,
1573 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1574 --enable-build-with-cxx build with C++ compiler instead of C compiler
1575 --enable-multilib enable library support for multiple ABIs
1576 --enable-__cxa_atexit enable __cxa_atexit for C++
1577 --enable-decimal-float={no,yes,bid,dpd}
1578 enable decimal float extension to C. Selecting 'bid
'
1579 or 'dpd
' choses which decimal floating point format
1581 --enable-fixed-point enable fixed-point arithmetic extension to C
1582 --enable-threads enable thread usage for target GCC
1583 --enable-threads=LIB use LIB thread package for target GCC
1584 --enable-tls enable or disable generation of tls code
1585 overriding the assembler check for tls support
1586 --enable-objc-gc enable the use of Boehm's garbage collector with
1587 the GNU Objective-C runtime
1588 --disable-shared don
't provide a shared libgcc
1589 --enable-intermodule build the compiler in one step
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-initfini-array use .init_array/.fini_array sections
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 Enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --disable-win32-registry
1600 disable lookup of installation paths in the
1601 Registry on Windows hosts
1602 --enable-win32-registry enable registry lookup (default)
1603 --enable-win32-registry=KEY
1604 use KEY instead of GCC version as the last portion
1606 --enable-shared[=PKGS] build shared libraries [default=yes]
1607 --enable-static[=PKGS] build static libraries [default=yes]
1608 --enable-fast-install[=PKGS]
1609 optimize for fast installation [default=yes]
1610 --disable-libtool-lock avoid locking (might break parallel builds)
1611 --enable-comdat enable COMDAT group support
1612 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1614 --enable-linker-build-id
1615 compiler will always pass --build-id to linker
1616 --enable-maintainer-mode
1617 enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-version-specific-runtime-libs
1620 specify that runtime libraries should be
1621 installed in a compiler-specific directory
1622 --enable-plugin enable plugin support
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-build-libsubdir=DIR Directory where to find libraries for build system
1628 --with-local-prefix=DIR specifies directory to put local include
1629 --with-gxx-include-dir=DIR
1630 specifies directory to put g++ header files
1631 --with-cpp-install-dir=DIR
1632 install the user visible C preprocessor in DIR
1633 (relative to PREFIX) as well as PREFIX/bin
1634 --with-gnu-ld arrange to work with GNU ld.
1635 --with-ld arrange to use the specified ld (full pathname)
1636 --with-demangler-in-ld try to use demangler in GNU ld.
1637 --with-gnu-as arrange to work with GNU as
1638 --with-as arrange to use the specified as (full pathname)
1639 --with-stabs arrange to use stabs instead of host debug format
1640 --with-dwarf2 force the default debug format to be DWARF 2
1641 --with-build-sysroot=sysroot
1642 use sysroot as the system root during the build
1643 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1644 --with-specs=SPECS add SPECS to driver command-line processing
1645 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1646 --with-bugurl=URL Direct users to URL to report a bug
1647 --with-multilib-list Select multilibs (SH only)
1648 --with-gnu-ld assume the C compiler uses GNU ld default=no
1649 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1650 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1651 --with-system-libunwind use installed libunwind
1652 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1654 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1655 --with-plugin-ld=[ARG
] specify the plugin linker
1656 --with-long-double-128 Use
128-bit long double by default.
1657 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1659 --with-system-zlib use installed libz
1660 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1662 Some influential environment variables
:
1663 CC C compiler
command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1666 nonstandard directory
<lib dir
>
1667 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1668 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1669 you have headers
in a nonstandard directory
<include dir
>
1670 CXX C
++ compiler
command
1671 CXXFLAGS C
++ compiler flags
1673 CXXCPP C
++ preprocessor
1674 GMPLIBS How to link GMP
1675 GMPINC How to
find GMP include files
1676 PPLLIBS How to link PPL
1677 PPLINC How to
find PPL include files
1678 CLOOGLIBS How to link CLOOG
1679 CLOOGINC How to
find CLOOG include files
1680 LIBELFLIBS How to link libelf
1681 LIBELFINC How to
find libelf include files
1683 Use these variables to override the choices made by
`configure' or to help
1684 it to find libraries and programs with nonstandard names/locations.
1686 Report bugs to the package provider.
1691 if test "$ac_init_help" = "recursive"; then
1692 # If there are subdirs, report their specific --help.
1693 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1694 test -d "$ac_dir" ||
1695 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1703 # A ".." for each directory in $ac_dir_suffix.
1704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1705 case $ac_top_builddir_sub in
1706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 ac_abs_top_builddir=$ac_pwd
1711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1712 # for backward compatibility:
1713 ac_top_builddir=$ac_top_build_prefix
1716 .) # We are building in place.
1718 ac_top_srcdir=$ac_top_builddir_sub
1719 ac_abs_top_srcdir=$ac_pwd ;;
1720 [\\/]* | ?:[\\/]* ) # Absolute name.
1721 ac_srcdir=$srcdir$ac_dir_suffix;
1722 ac_top_srcdir=$srcdir
1723 ac_abs_top_srcdir=$srcdir ;;
1725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1726 ac_top_srcdir=$ac_top_build_prefix$srcdir
1727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731 cd "$ac_dir" || { ac_status=$?; continue; }
1732 # Check for guested configure.
1733 if test -f "$ac_srcdir/configure.gnu"; then
1735 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1736 elif test -f "$ac_srcdir/configure"; then
1738 $SHELL "$ac_srcdir/configure" --help=recursive
1740 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742 cd "$ac_pwd" || { ac_status=$?; break; }
1746 test -n "$ac_init_help" && exit $ac_status
1747 if $ac_init_version; then
1750 generated by GNU Autoconf 2.64
1752 Copyright (C) 2009 Free Software Foundation, Inc.
1753 This configure script is free software; the Free Software Foundation
1754 gives unlimited permission to copy, distribute and modify it.
1759 ## ------------------------ ##
1760 ## Autoconf initialization. ##
1761 ## ------------------------ ##
1763 # ac_fn_c_try_compile LINENO
1764 # --------------------------
1765 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext
1770 if { { ac_try="$ac_compile"
1772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1773 *) ac_try_echo
=$ac_try;;
1775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_compile") 2>conftest.err
1779 if test -s conftest.err
; then
1780 grep -v '^ *+' conftest.err
>conftest.er1
1781 cat conftest.er1
>&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest.
$ac_objext; then :
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.
$ac_ext >&5
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1799 } # ac_fn_c_try_compile
1801 # ac_fn_cxx_try_compile LINENO
1802 # ----------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_cxx_try_compile
()
1806 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1807 rm -f conftest.
$ac_objext
1808 if { { ac_try
="$ac_compile"
1810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_cxx_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 } # ac_fn_cxx_try_compile
1839 # ac_fn_c_try_cpp LINENO
1840 # ----------------------
1841 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1848 *) ac_try_echo
=$ac_try;;
1850 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 if test -s conftest.err
; then
1855 grep -v '^ *+' conftest.err
>conftest.er1
1856 cat conftest.er1
>&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } >/dev
/null
&& {
1861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.
$ac_ext >&5
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1876 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1879 # the include files in INCLUDES and setting the cache variable VAR
1881 ac_fn_c_check_header_mongrel
()
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1894 # Is the header compilable?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1896 $as_echo_n "checking $2 usability... " >&6; }
1897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1902 if ac_fn_c_try_compile
"$LINENO"; then :
1903 ac_header_compiler
=yes
1905 ac_header_compiler
=no
1907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1909 $as_echo "$ac_header_compiler" >&6; }
1911 # Is the header present?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1913 $as_echo_n "checking $2 presence... " >&6; }
1914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1918 if ac_fn_c_try_cpp
"$LINENO"; then :
1919 ac_header_preproc
=yes
1921 ac_header_preproc
=no
1923 rm -f conftest.err conftest.
$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1925 $as_echo "$ac_header_preproc" >&6; }
1927 # So? What about this header?
1928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1931 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1937 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1939 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1941 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1943 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1953 eval "$3=\$ac_header_compiler"
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1961 } # ac_fn_c_check_header_mongrel
1963 # ac_fn_c_try_run LINENO
1964 # ----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1966 # that executables *can* be run.
1969 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1970 if { { ac_try
="$ac_link"
1972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>&5
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1981 { { case "(($ac_try" in
1982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1983 *) ac_try_echo
=$ac_try;;
1985 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_try") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; }; }; then :
1993 $as_echo "$as_me: program exited with status $ac_status" >&5
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.
$ac_ext >&5
1997 ac_retval
=$ac_status
1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2005 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2006 # -------------------------------------------------------
2007 # Tests whether HEADER exists and can be compiled using the include files in
2008 # INCLUDES, setting the cache variable VAR accordingly.
2009 ac_fn_c_check_header_compile
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2022 if ac_fn_c_try_compile
"$LINENO"; then :
2027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2034 } # ac_fn_c_check_header_compile
2036 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2037 # --------------------------------------------
2038 # Tries to find the compile-time value of EXPR in a program that includes
2039 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2041 ac_fn_c_compute_int
()
2043 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2044 if test "$cross_compiling" = yes; then
2045 # Depending upon the size, compute the lo and hi bounds.
2046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 static int test_array [1 - 2 * !(($2) >= 0)];
2059 if ac_fn_c_try_compile
"$LINENO"; then :
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2075 if ac_fn_c_try_compile
"$LINENO"; then :
2076 ac_hi
=$ac_mid; break
2078 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2079 if test $ac_lo -le $ac_mid; then
2083 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) < 0)];
2101 if ac_fn_c_try_compile
"$LINENO"; then :
2104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2117 if ac_fn_c_try_compile
"$LINENO"; then :
2118 ac_lo
=$ac_mid; break
2120 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2121 if test $ac_mid -le $ac_hi; then
2125 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 # Binary search between lo and hi bounds.
2136 while test "x$ac_lo" != "x$ac_hi"; do
2137 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151 if ac_fn_c_try_compile
"$LINENO"; then :
2154 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2166 static long int longval () { return $2; }
2167 static unsigned long int ulongval () { return $2; }
2174 FILE *f = fopen ("conftest.val", "w");
2179 long int i = longval ();
2182 fprintf (f, "%ld", i);
2186 unsigned long int i = ulongval ();
2189 fprintf (f, "%lu", i);
2191 /* Do not output a trailing newline, as this causes \r\n confusion
2192 on some platforms. */
2193 return ferror (f) || fclose (f) != 0;
2199 if ac_fn_c_try_run
"$LINENO"; then :
2200 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2212 } # ac_fn_c_compute_int
2214 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2215 # -------------------------------------------
2216 # Tests whether TYPE exists after having included INCLUDES, setting cache
2217 # variable VAR accordingly.
2218 ac_fn_c_check_type
()
2220 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224 $as_echo_n "(cached) " >&6
2227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2239 if ac_fn_c_try_compile
"$LINENO"; then :
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2252 if ac_fn_c_try_compile
"$LINENO"; then :
2257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2266 } # ac_fn_c_check_type
2268 # ac_fn_c_find_intX_t LINENO BITS VAR
2269 # -----------------------------------
2270 # Finds a signed integer type with width BITS, setting cache variable VAR
2272 ac_fn_c_find_intX_t
()
2274 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2276 $as_echo_n "checking for int$2_t... " >&6; }
2277 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2281 for ac_type
in int
$2_t 'int' 'long int' \
2282 'long long int' 'short int' 'signed char'; do
2283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 $ac_includes_default
2289 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2296 if ac_fn_c_try_compile
"$LINENO"; then :
2297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 $ac_includes_default
2303 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2304 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2311 if ac_fn_c_try_compile
"$LINENO"; then :
2318 eval "$3=\$ac_type" ;;
2321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2325 if test "x$as_val" = x
""no
; then :
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2337 } # ac_fn_c_find_intX_t
2339 # ac_fn_c_try_link LINENO
2340 # -----------------------
2341 # Try to link conftest.$ac_ext, and return whether this succeeded.
2344 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2345 rm -f conftest.
$ac_objext conftest
$ac_exeext
2346 if { { ac_try
="$ac_link"
2348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352 $as_echo "$ac_try_echo"; } >&5
2353 (eval "$ac_link") 2>conftest.err
2355 if test -s conftest.err; then
2356 grep -v '^ *+' conftest.err >conftest.er1
2357 cat conftest.er1 >&5
2358 mv -f conftest.er1 conftest.err
2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361 test $ac_status = 0; } && {
2362 test -z "$ac_c_werror_flag" ||
2363 test ! -s conftest.err
2364 } && test -s conftest$ac_exeext && {
2365 test "$cross_compiling" = yes ||
2366 $as_test_x conftest$ac_exeext
2370 $as_echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2375 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2376 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2377 # interfere with the next link command; also delete a directory that is
2378 # left behind by Apple's compiler. We do this before executing the actions.
2379 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2380 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383 } # ac_fn_c_try_link
2385 # ac_fn_c_find_uintX_t LINENO BITS VAR
2386 # ------------------------------------
2387 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2389 ac_fn_c_find_uintX_t ()
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2393 $as_echo_n "checking for uint$2_t... " >&6; }
2394 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2395 $as_echo_n "(cached) " >&6
2398 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2399 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $ac_includes_default
2406 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2413 if ac_fn_c_try_compile "$LINENO"; then :
2418 eval "$3=\$ac_type" ;;
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 if test "x$as_val" = x""no; then :
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2435 } # ac_fn_c_find_uintX_t
2437 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2438 # ----------------------------------------------
2439 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2440 ac_fn_c_check_header_preproc ()
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2446 $as_echo_n "(cached) " >&6
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2452 if ac_fn_c_try_cpp "$LINENO"; then :
2457 rm -f conftest.err conftest.$ac_ext
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464 } # ac_fn_c_check_header_preproc
2466 # ac_fn_c_check_func LINENO FUNC VAR
2467 # ----------------------------------
2468 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2469 ac_fn_c_check_func ()
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2475 $as_echo_n "(cached) " >&6
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2479 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2481 #define $2 innocuous_$2
2483 /* System header to define __stub macros and hopefully few prototypes,
2484 which can conflict with char $2 (); below.
2485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2486 <limits.h> exists even on freestanding compilers. */
2489 # include <limits.h>
2491 # include <assert.h>
2496 /* Override any GCC internal prototype to avoid an error.
2497 Use char because int might match the return type of a GCC
2498 builtin and then its argument prototype would still apply. */
2503 /* The GNU C library defines this for functions which it implements
2504 to always fail with ENOSYS. Some functions are actually named
2505 something starting with __ and the normal name is an alias. */
2506 #if defined __stub_$2 || defined __stub___$2
2518 if ac_fn_c_try_link "$LINENO"; then :
2523 rm -f core conftest.err conftest.$ac_objext \
2524 conftest$ac_exeext conftest.$ac_ext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 } # ac_fn_c_check_func
2533 # ac_fn_cxx_try_cpp LINENO
2534 # ------------------------
2535 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_cxx_try_cpp ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 if { { ac_try="$ac_cpp conftest.$ac_ext"
2541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2542 *) ac_try_echo
=$ac_try;;
2544 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2545 $as_echo "$ac_try_echo"; } >&5
2546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2548 if test -s conftest.err
; then
2549 grep -v '^ *+' conftest.err
>conftest.er1
2550 cat conftest.er1
>&5
2551 mv -f conftest.er1 conftest.err
2553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554 test $ac_status = 0; } >/dev
/null
&& {
2555 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2556 test ! -s conftest.err
2560 $as_echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.
$ac_ext >&5
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2568 } # ac_fn_cxx_try_cpp
2570 # ac_fn_cxx_try_link LINENO
2571 # -------------------------
2572 # Try to link conftest.$ac_ext, and return whether this succeeded.
2573 ac_fn_cxx_try_link
()
2575 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2576 rm -f conftest.
$ac_objext conftest
$ac_exeext
2577 if { { ac_try
="$ac_link"
2579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_link") 2>conftest.err
2586 if test -s conftest.err; then
2587 grep -v '^ *+' conftest.err >conftest.er1
2588 cat conftest.er1 >&5
2589 mv -f conftest.er1 conftest.err
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } && {
2593 test -z "$ac_cxx_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest$ac_exeext && {
2596 test "$cross_compiling" = yes ||
2597 $as_test_x conftest$ac_exeext
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2608 # interfere with the next link command; also delete a directory that is
2609 # left behind by Apple's compiler. We do this before executing the actions.
2610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614 } # ac_fn_cxx_try_link
2615 cat >config.log <<_ACEOF
2616 This file contains any messages produced by compilers while
2617 running configure, to aid debugging if configure makes a mistake.
2619 It was created by $as_me, which was
2620 generated by GNU Autoconf 2.64. Invocation command line was
2632 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2633 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2634 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2635 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2636 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2638 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2639 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2641 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2642 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2643 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2644 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2645 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2646 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2647 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 $as_echo "PATH: $as_dir"
2672 # Keep a trace of the command line.
2673 # Strip out --no-create and --no-recursion so they do not pile up.
2674 # Strip out --silent because we don't want to record it for future runs.
2675 # Also quote any args containing shell meta-characters.
2676 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_must_keep_next=false
2686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2688 | -silent | --silent | --silen | --sile | --sil)
2691 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2694 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2696 as_fn_append ac_configure_args1 " '$ac_arg'"
2697 if test $ac_must_keep_next = true; then
2698 ac_must_keep_next=false # Got value, back to normal.
2701 *=* | --config-cache | -C | -disable-* | --disable-* \
2702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2704 | -with-* | --with-* | -without-* | --without-* | --x)
2705 case "$ac_configure_args0 " in
2706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2709 -* ) ac_must_keep_next=true ;;
2712 as_fn_append ac_configure_args " '$ac_arg'"
2717 { ac_configure_args0=; unset ac_configure_args0;}
2718 { ac_configure_args1=; unset ac_configure_args1;}
2720 # When interrupted or exit'd, cleanup temporary files, and complete
2721 # config.log. We remove comments because anyway the quotes in there
2722 # would cause problems or look ugly.
2723 # WARNING: Use '\'' to represent an apostrophe within the trap.
2724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2725 trap 'exit_status=$?
2726 # Save into config.log some information that might help in debugging.
2731 ## ---------------- ##
2732 ## Cache variables. ##
2733 ## ---------------- ##
2736 # The following way of writing the cache mishandles newlines in values,
2738 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2739 eval ac_val=\$$ac_var
2743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2747 _ | IFS | as_nl) ;; #(
2748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2749 *) { eval $ac_var=; unset $ac_var;} ;;
2754 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2755 *${as_nl}ac_space=\ *)
2757 "s/'\''/'\''\\\\'\'''\''/g;
2758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2769 ## ----------------- ##
2770 ## Output variables. ##
2771 ## ----------------- ##
2774 for ac_var in $ac_subst_vars
2776 eval ac_val=\$$ac_var
2778 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 $as_echo "$ac_var='\''$ac_val'\''"
2784 if test -n "$ac_subst_files"; then
2786 ## ------------------- ##
2787 ## File substitutions. ##
2788 ## ------------------- ##
2791 for ac_var in $ac_subst_files
2793 eval ac_val=\$$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2802 if test -s confdefs.h; then
2812 test "$ac_signal" != 0 &&
2813 $as_echo "$as_me: caught signal $ac_signal"
2814 $as_echo "$as_me: exit $exit_status"
2816 rm -f core *.core core.conftest.* &&
2817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2820 for ac_signal in 1 2 13 15; do
2821 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2826 rm -f -r conftest* confdefs.h
2828 $as_echo "/* confdefs.h */" > confdefs.h
2830 # Predefined preprocessor variables.
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_NAME "$PACKAGE_NAME"
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_STRING "$PACKAGE_STRING"
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_URL "$PACKAGE_URL"
2857 # Let the site file select an alternate cache file if it wants to.
2858 # Prefer an explicitly selected file to automatically selected ones.
2861 if test -n "$CONFIG_SITE"; then
2862 ac_site_file1=$CONFIG_SITE
2863 elif test "x$prefix" != xNONE; then
2864 ac_site_file1=$prefix/share/config.site
2865 ac_site_file2=$prefix/etc/config.site
2867 ac_site_file1=$ac_default_prefix/share/config.site
2868 ac_site_file2=$ac_default_prefix/etc/config.site
2870 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2872 test "x$ac_site_file" = xNONE && continue
2873 if test -r "$ac_site_file"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2876 sed 's/^/| /' "$ac_site_file" >&5
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special
2883 # files actually), so we avoid doing that.
2884 if test -f "$cache_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889 *) . "./$cache_file";;
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898 # Check that the precious variables saved in the cache have kept the same
2900 ac_cache_corrupted=false
2901 for ac_var in $ac_precious_vars; do
2902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2903 eval ac_new_set=\$ac_env_${ac_var}_set
2904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2905 eval ac_new_val=\$ac_env_${ac_var}_value
2906 case $ac_old_set,$ac_new_set in
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2909 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2910 ac_cache_corrupted=: ;;
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2913 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2914 ac_cache_corrupted=: ;;
2917 if test "x$ac_old_val" != "x$ac_new_val"; then
2918 # differences in whitespace do not lead to failure.
2919 ac_old_val_w=`echo x
$ac_old_val`
2920 ac_new_val_w=`echo x
$ac_new_val`
2921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2924 ac_cache_corrupted=:
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2928 eval $ac_var=\$ac_old_val
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2931 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2933 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2936 # Pass precious variables to config.status.
2937 if test "$ac_new_set" = set; then
2939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2940 *) ac_arg=$ac_var=$ac_new_val ;;
2942 case " $ac_configure_args " in
2943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2944 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948 if $ac_cache_corrupted; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2952 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2953 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2955 ## -------------------- ##
2956 ## Main body of script. ##
2957 ## -------------------- ##
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2973 gcc_version=`cat $srcdir/BASE-VER
`
2975 # Determine the host, build, and target systems
2977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2978 for ac_t in install-sh install.sh shtool; do
2979 if test -f "$ac_dir/$ac_t"; then
2981 ac_install_sh="$ac_aux_dir/$ac_t -c"
2986 if test -z "$ac_aux_dir"; then
2987 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2990 # These three variables are undocumented and unsupported,
2991 # and are intended to be withdrawn in a future Autoconf release.
2992 # They can cause serious problems if a builder's source tree is in a directory
2993 # whose full name contains unusual characters.
2994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2999 # Make sure we can run config.sub.
3000 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3001 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3004 $as_echo_n "checking build system type... " >&6; }
3005 if test "${ac_cv_build+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3008 ac_build_alias=$build_alias
3009 test "x$ac_build_alias" = x &&
3010 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3011 test "x$ac_build_alias" = x &&
3012 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3014 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3018 $as_echo "$ac_cv_build" >&6; }
3019 case $ac_cv_build in
3021 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3024 ac_save_IFS=$IFS; IFS='-'
3030 # Remember, the first character of IFS is used to create $*,
3031 # except with old shells:
3034 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3038 $as_echo_n "checking host system type... " >&6; }
3039 if test "${ac_cv_host+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3042 if test "x$host_alias" = x; then
3043 ac_cv_host=$ac_cv_build
3045 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3046 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3051 $as_echo "$ac_cv_host" >&6; }
3054 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3057 ac_save_IFS=$IFS; IFS='-'
3063 # Remember, the first character of IFS is used to create $*,
3064 # except with old shells:
3067 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3071 $as_echo_n "checking target system type... " >&6; }
3072 if test "${ac_cv_target+set}" = set; then :
3073 $as_echo_n "(cached) " >&6
3075 if test "x$target_alias" = x; then
3076 ac_cv_target=$ac_cv_host
3078 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3079 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3084 $as_echo "$ac_cv_target" >&6; }
3085 case $ac_cv_target in
3087 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3089 target=$ac_cv_target
3090 ac_save_IFS=$IFS; IFS='-'
3096 # Remember, the first character of IFS is used to create $*,
3097 # except with old shells:
3100 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3103 # The aliases save the names the user supplied, while $host etc.
3104 # will get canonicalized.
3105 test -n "$target_alias" &&
3106 test "$program_prefix$program_suffix$program_transform_name" = \
3108 program_prefix=${target_alias}-
3110 # Determine the noncanonical target name, for directory use.
3111 case ${build_alias} in
3112 "") build_noncanonical=${build} ;;
3113 *) build_noncanonical=${build_alias} ;;
3116 case ${host_alias} in
3117 "") host_noncanonical=${build_noncanonical} ;;
3118 *) host_noncanonical=${host_alias} ;;
3121 case ${target_alias} in
3122 "") target_noncanonical=${host_noncanonical} ;;
3123 *) target_noncanonical=${target_alias} ;;
3129 # Determine the target- and build-specific subdirectories
3131 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3132 # have matching libraries, they should use host libraries: Makefile.tpl
3133 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3134 # However, they still use the build modules, because the corresponding
3135 # host modules (e.g. bison) are only built for the host when bootstrap
3137 # - build_subdir is where we find build modules, and never changes.
3138 # - build_libsubdir is where we find build libraries, and can be overridden.
3140 # Prefix 'build-' so this never conflicts with target_subdir.
3141 build_subdir="build-${build_noncanonical}"
3143 # Check whether --with-build-libsubdir was given.
3144 if test "${with_build_libsubdir+set}" = set; then :
3145 withval=$with_build_libsubdir; build_libsubdir="$withval"
3147 build_libsubdir="$build_subdir"
3150 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3151 if ( test $srcdir = . && test -d gcc ) \
3152 || test -d $srcdir/../host-${host_noncanonical}; then
3153 host_subdir="host-${host_noncanonical}"
3158 target_subdir=${target_noncanonical}
3161 # Set program_transform_name
3162 test "$program_prefix" != NONE &&
3163 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3164 # Use a double $ so make ignores it.
3165 test "$program_suffix" != NONE &&
3166 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3167 # Double any \ or $.
3168 # By default was `s
,x
,x
', remove it if useless.
3169 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3170 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3173 # Check for bogus environment variables.
3174 # Test if LIBRARY_PATH contains the notation for the current directory
3175 # since this would lead to problems installing/building glibc.
3176 # LIBRARY_PATH contains the current directory if one of the following
3178 # - one of the terminals (":" and ";") is the first or last sign
3179 # - two terminals occur directly after each other
3180 # - the path contains an element with a dot in it
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3182 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3183 case ${LIBRARY_PATH} in
3184 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3185 library_path_setting="contains current directory"
3188 library_path_setting="ok"
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3192 $as_echo "$library_path_setting" >&6; }
3193 if test "$library_path_setting" != "ok"; then
3195 *** LIBRARY_PATH shouldn't contain the current directory when
3196 *** building gcc. Please change the environment variable
3197 *** and run configure again.
" "$LINENO" 5
3200 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3201 # since this would lead to problems installing/building glibc.
3202 # GCC_EXEC_PREFIX contains the current directory if one of the following
3204 # - one of the terminals (":" and ";") is the first or last sign
3205 # - two terminals occur directly after each other
3206 # - the path contains an element with a dot in it
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3208 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3209 case ${GCC_EXEC_PREFIX} in
3210 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3211 gcc_exec_prefix_setting="contains current directory
"
3214 gcc_exec_prefix_setting="ok
"
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3218 $as_echo "$gcc_exec_prefix_setting" >&6; }
3219 if test "$gcc_exec_prefix_setting" != "ok
"; then
3221 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3222 *** building gcc. Please change the environment variable
3223 *** and run configure again." "$LINENO" 5
3230 # Specify the local prefix
3233 # Check whether --with-local-prefix was given.
3234 if test "${with_local_prefix+set}" = set; then :
3235 withval=$with_local_prefix; case "${withval}" in
3236 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3238 *) local_prefix=$with_local_prefix ;;
3243 # Default local prefix if it is empty
3244 if test x$local_prefix = x; then
3245 local_prefix=/usr/local
3248 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3249 # passed in by the toplevel make and thus we'd get different behavior
3250 # depending on where we built the sources.
3251 gcc_gxx_include_dir
=
3252 # Specify the g++ header file directory
3254 # Check whether --with-gxx-include-dir was given.
3255 if test "${with_gxx_include_dir+set}" = set; then :
3256 withval
=$with_gxx_include_dir; case "${withval}" in
3257 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3259 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3264 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3265 if test x
${gcc_gxx_include_dir} = x
; then
3266 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3267 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3269 libstdcxx_incdir
='include/c++/$(version)'
3270 if test x
$host != x
$target; then
3271 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3273 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3278 # Check whether --with-cpp_install_dir was given.
3279 if test "${with_cpp_install_dir+set}" = set; then :
3280 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3281 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3282 elif test x
$withval != xno
; then
3283 cpp_install_dir
=$withval
3288 # We would like to our source tree to be readonly. However when releases or
3289 # pre-releases are generated, the flex/bison generated files as well as the
3290 # various formats of manuals need to be included along with the rest of the
3291 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3295 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3296 # Check whether --enable-generated-files-in-srcdir was given.
3297 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3298 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3300 generated_files_in_srcdir
=no
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3305 $as_echo "$generated_files_in_srcdir" >&6; }
3307 if test "$generated_files_in_srcdir" = "yes"; then
3314 # -------------------
3315 # Find default linker
3316 # -------------------
3320 # Check whether --with-gnu-ld was given.
3321 if test "${with_gnu_ld+set}" = set; then :
3322 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3328 # With pre-defined ld
3330 # Check whether --with-ld was given.
3331 if test "${with_ld+set}" = set; then :
3332 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3335 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3336 if test ! -x "$DEFAULT_LINKER"; then
3337 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3338 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3342 cat >>confdefs.h
<<_ACEOF
3343 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3348 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3350 cat >>confdefs.h
<<_ACEOF
3351 #define HAVE_GNU_LD $gnu_ld
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3356 $as_echo_n "checking whether a default linker was specified... " >&6; }
3357 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3358 if test x
"$gnu_ld_flag" = x
"no"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3360 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3370 # With demangler in GNU ld
3372 # Check whether --with-demangler-in-ld was given.
3373 if test "${with_demangler_in_ld+set}" = set; then :
3374 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3380 # ----------------------
3381 # Find default assembler
3382 # ----------------------
3386 # Check whether --with-gnu-as was given.
3387 if test "${with_gnu_as+set}" = set; then :
3388 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3395 # Check whether --with-as was given.
3396 if test "${with_as+set}" = set; then :
3397 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3400 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3401 if test ! -x "$DEFAULT_ASSEMBLER"; then
3402 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3403 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3407 cat >>confdefs.h
<<_ACEOF
3408 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3413 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3415 cat >>confdefs.h
<<_ACEOF
3416 #define HAVE_GNU_AS $gnu_as
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3421 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3422 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3423 if test x
"$gas_flag" = x
"no"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3425 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3439 # If a non-executable a.out is present (e.g. created by GNU as above even if
3440 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3441 # file, even when creating an executable, so an execution test fails.
3442 # Remove possible default executable files to avoid this.
3444 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3445 # Autoconf includes it.
3446 rm -f a.out a.exe b.out
3448 # Find the native compiler
3450 ac_cpp
='$CPP $CPPFLAGS'
3451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3456 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC
="$CC" # Let the user override the test.
3465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir
=.
3470 for ac_exec_ext
in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3493 if test -z "$ac_cv_prog_CC"; then
3495 # Extract the first word of "gcc", so it can be a program name with args.
3496 set dummy gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_CC
="gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525 $as_echo "$ac_ct_CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3531 if test "x$ac_ct_CC" = x
; then
3534 case $cross_compiling:$ac_tool_warned in
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned
=yes ;;
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3549 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC
="$CC" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3587 if test -z "$CC"; then
3588 # Extract the first word of "cc", so it can be a program name with args.
3589 set dummy cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir
=.
3604 for ac_exec_ext
in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3607 ac_prog_rejected
=yes
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 if test $ac_prog_rejected = yes; then
3619 # We found a bogon in the path, so make sure we never use it.
3620 set dummy
$ac_cv_prog_CC
3622 if test $# != 0; then
3623 # We chose a different compiler from the bogus one.
3624 # However, it has the same basename, so the bogon will be chosen
3625 # first if we set CC to just the basename; use the full file name.
3627 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 for ac_prog
in cl.exe
3647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3648 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC
="$CC" # Let the user override the test.
3657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir
=.
3662 for ac_exec_ext
in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3684 test -n "$CC" && break
3687 if test -z "$CC"; then
3689 for ac_prog
in cl.exe
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy
$ac_prog; ac_word
=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_ac_ct_CC
="$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3719 if test -n "$ac_ct_CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3721 $as_echo "$ac_ct_CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$ac_ct_CC" && break
3731 if test "x$ac_ct_CC" = x
; then
3734 case $cross_compiling:$ac_tool_warned in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned
=yes ;;
3747 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error
"no acceptable C compiler found in \$PATH
3750 See \`config.log' for more details." "$LINENO" 5; }
3752 # Provide some information about the compiler.
3753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3756 for ac_option
in --version -v -V -qversion; do
3757 { { ac_try
="$ac_compiler $ac_option >&5"
3759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766 if test -s conftest.err; then
3768 ... rest of stderr output deleted ...
3769 10q' conftest.err >conftest.er1
3770 cat conftest.er1 >&5
3771 rm -f conftest.er1 conftest.err
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3788 ac_clean_files_save=$ac_clean_files
3789 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3790 # Try to create an executable without -o first, disregard a.out.
3791 # It will help us diagnose broken compilers, and finding out an intuition
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3794 $as_echo_n "checking for C compiler default output file name... " >&6; }
3795 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3797 # The possible output files:
3798 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3801 for ac_file in $ac_files
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 if { { ac_try="$ac_link_default"
3812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3813 *) ac_try_echo
=$ac_try;;
3815 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_link_default") 2>&5
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
3821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3824 # so that the user can short-circuit this test for compilers unknown to
3826 for ac_file
in $ac_files ''
3828 test -f "$ac_file" ||
continue
3830 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3833 # We found the default executable, but exeext='' is most
3837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3839 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841 # We set ac_cv_exeext here because the later test for it is not
3842 # safe: cross compilers may not add the suffix if given an `-o'
3843 # argument, so we may need to know it at that point already.
3844 # Even if this section looks crufty: it has the advantage of
3851 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3857 $as_echo "$ac_file" >&6; }
3858 if test -z "$ac_file"; then :
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.
$ac_ext >&5
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 { as_fn_set_status
77
3865 as_fn_error
"C compiler cannot create executables
3866 See \`config.log' for more details." "$LINENO" 5; }; }
3868 ac_exeext
=$ac_cv_exeext
3870 # Check that the compiler produces executables we can run. If not, either
3871 # the compiler is broken, or we cross compile.
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3873 $as_echo_n "checking whether the C compiler works... " >&6; }
3874 # If not cross compiling, check that we can run a simple program.
3875 if test "$cross_compiling" != yes; then
3876 if { ac_try
='./$ac_file'
3877 { { case "(($ac_try" in
3878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_try") 2>&5
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }; }; then
3889 if test "$cross_compiling" = maybe; then
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error "cannot run C compiled programs.
3895 If you meant to cross compile
, use \
`--host'.
3896 See \`config.log
' for more details." "$LINENO" 5; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3903 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3904 ac_clean_files=$ac_clean_files_save
3905 # Check that the compiler produces executables we can run. If not, either
3906 # the compiler is broken, or we cross compile.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3908 $as_echo_n "checking whether we are cross compiling... " >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910 $as_echo "$cross_compiling" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3913 $as_echo_n "checking for suffix of executables... " >&6; }
3914 if { { ac_try="$ac_link"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; then :
3925 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3926 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3927 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3929 for ac_file
in conftest.exe conftest conftest.
*; do
3930 test -f "$ac_file" ||
continue
3932 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3933 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3942 See \`config.log' for more details." "$LINENO" 5; }
3944 rm -f conftest
$ac_cv_exeext
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3946 $as_echo "$ac_cv_exeext" >&6; }
3948 rm -f conftest.
$ac_ext
3949 EXEEXT
=$ac_cv_exeext
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3952 $as_echo_n "checking for suffix of object files... " >&6; }
3953 if test "${ac_cv_objext+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3967 rm -f conftest.o conftest.obj
3968 if { { ac_try
="$ac_compile"
3970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_compile") 2>&5
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; then :
3979 for ac_file in conftest.o conftest.obj conftest.*; do
3980 test -f "$ac_file" || continue;
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3988 $as_echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error "cannot compute suffix of object files
: cannot compile
3994 See \
`config.log' for more details." "$LINENO" 5; }
3996 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3999 $as_echo "$ac_cv_objext" >&6; }
4000 OBJEXT=$ac_cv_objext
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4003 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4004 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4021 if ac_fn_c_try_compile "$LINENO"; then :
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4031 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4032 if test $ac_compiler_gnu = yes; then
4037 ac_test_CFLAGS=${CFLAGS+set}
4038 ac_save_CFLAGS=$CFLAGS
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4040 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4041 if test "${ac_cv_prog_cc_g+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 ac_save_c_werror_flag=$ac_c_werror_flag
4045 ac_c_werror_flag=yes
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4074 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_c_werror_flag=$ac_save_c_werror_flag
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4090 if ac_fn_c_try_compile "$LINENO"; then :
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 ac_c_werror_flag=$ac_save_c_werror_flag
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4101 $as_echo "$ac_cv_prog_cc_g" >&6; }
4102 if test "$ac_test_CFLAGS" = set; then
4103 CFLAGS=$ac_save_CFLAGS
4104 elif test $ac_cv_prog_cc_g = yes; then
4105 if test "$GCC" = yes; then
4111 if test "$GCC" = yes; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4118 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4119 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4122 ac_cv_prog_cc_c89=no
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4128 #include <sys/types.h>
4129 #include <sys/stat.h>
4130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4131 struct buf { int x; };
4132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4133 static char *e (p, i)
4139 static char *f (char * (*g) (char **, int), char **p, ...)
4144 s = g (p, va_arg (v,int));
4149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4150 function prototypes and stuff, but not '\xHH' hex character constants.
4151 These don't provoke an error unfortunately, instead are silently treated
4152 as 'x'. The following induces an error, until -std is added to get
4153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4154 array size at least. It's necessary to write '\x00'==0 to get something
4155 that's true only with -std. */
4156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4158 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4159 inside strings and character constants. */
4161 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4163 int test (int i, double x);
4164 struct s1 {int (*f) (int a);};
4165 struct s2 {int (*f) (double a);};
4166 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4172 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4177 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4178 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4180 CC="$ac_save_CC $ac_arg"
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182 ac_cv_prog_cc_c89=$ac_arg
4184 rm -f core conftest.err conftest.$ac_objext
4185 test "x$ac_cv_prog_cc_c89" != "xno" && break
4187 rm -f conftest.$ac_ext
4192 case "x$ac_cv_prog_cc_c89" in
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4195 $as_echo "none needed" >&6; } ;;
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4198 $as_echo "unsupported" >&6; } ;;
4200 CC="$CC $ac_cv_prog_cc_c89"
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4202 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4204 if test "x$ac_cv_prog_cc_c89" != xno; then :
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 if test "x$CC" != xcc; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4216 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4219 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4221 set dummy $CC; ac_cc=`$as_echo "$2" |
4222 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4223 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4237 # Make sure it works both with $CC and with simple cc.
4238 # We do the test twice because some compilers refuse to overwrite an
4239 # existing .o file with -o, though they will create one.
4240 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4242 if { { case "(($ac_try" in
4243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4244 *) ac_try_echo
=$ac_try;;
4246 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_try") 2>&5
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; } &&
4252 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_try") 2>&5
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; };
4263 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4264 if test "x$CC" != xcc; then
4265 # Test first that cc exists at all.
4266 if { ac_try='cc -c conftest.$ac_ext >&5'
4267 { { case "(($ac_try" in
4268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4269 *) ac_try_echo
=$ac_try;;
4271 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 $as_echo "$ac_try_echo"; } >&5
4273 (eval "$ac_try") 2>&5
4275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276 test $ac_status = 0; }; }; then
4277 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 if { { case "(($ac_try" in
4280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_try") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; } &&
4289 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4291 *) ac_try_echo
=$ac_try;;
4293 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; };
4303 # cc exists but doesn't like -o.
4304 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4309 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4311 rm -f core conftest
*
4314 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4316 $as_echo "yes" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4321 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4325 # expand $ac_aux_dir to an absolute path
4326 am_aux_dir
=`cd $ac_aux_dir && pwd`
4328 # FIXME: we rely on the cache variable name because
4329 # there is no other way.
4331 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4332 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4333 if test "$am_t" != yes; then
4334 # Losing compiler, so override with the script.
4335 # FIXME: It is wrong to rewrite CC.
4336 # But if we don't then we get into trouble of one sort or another.
4337 # A longer-term fix would be to have automake use am__CC in this case,
4338 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4339 CC
="$am_aux_dir/compile $CC"
4344 ac_cpp
='$CXXCPP $CPPFLAGS'
4345 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4348 if test -z "$CXX"; then
4349 if test -n "$CCC"; then
4352 if test -n "$ac_tool_prefix"; then
4353 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4356 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_CXX+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -n "$CXX"; then
4363 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir
=.
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 if test -n "$CXX"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4385 $as_echo "$CXX" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4392 test -n "$CXX" && break
4395 if test -z "$CXX"; then
4397 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy
$ac_prog; ac_word
=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 if test -n "$ac_ct_CXX"; then
4407 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir
=.
4414 for ac_exec_ext
in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4427 if test -n "$ac_ct_CXX"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4429 $as_echo "$ac_ct_CXX" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4436 test -n "$ac_ct_CXX" && break
4439 if test "x$ac_ct_CXX" = x
; then
4442 case $cross_compiling:$ac_tool_warned in
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446 ac_tool_warned
=yes ;;
4454 # Provide some information about the compiler.
4455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4458 for ac_option
in --version -v -V -qversion; do
4459 { { ac_try
="$ac_compiler $ac_option >&5"
4461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468 if test -s conftest.err; then
4470 ... rest of stderr output deleted ...
4471 10q' conftest.err >conftest.er1
4472 cat conftest.er1 >&5
4473 rm -f conftest.er1 conftest.err
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4480 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4498 if ac_fn_cxx_try_compile "$LINENO"; then :
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4508 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4509 if test $ac_compiler_gnu = yes; then
4514 ac_test_CXXFLAGS=${CXXFLAGS+set}
4515 ac_save_CXXFLAGS=$CXXFLAGS
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4517 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4518 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4521 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4522 ac_cxx_werror_flag=yes
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4537 ac_cv_prog_cxx_g=yes
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4551 if ac_fn_cxx_try_compile "$LINENO"; then :
4554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4567 if ac_fn_cxx_try_compile "$LINENO"; then :
4568 ac_cv_prog_cxx_g=yes
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4578 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4579 if test "$ac_test_CXXFLAGS" = set; then
4580 CXXFLAGS=$ac_save_CXXFLAGS
4581 elif test $ac_cv_prog_cxx_g = yes; then
4582 if test "$GXX" = yes; then
4588 if test "$GXX" = yes; then
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4605 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$GNATBIND"; then
4612 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 GNATBIND=$ac_cv_prog_GNATBIND
4632 if test -n "$GNATBIND"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4634 $as_echo "$GNATBIND" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4642 if test -z "$ac_cv_prog_GNATBIND"; then
4643 ac_ct_GNATBIND=$GNATBIND
4644 # Extract the first word of "gnatbind", so it can be a program name with args.
4645 set dummy gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$ac_ct_GNATBIND"; then
4652 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4672 if test -n "$ac_ct_GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4674 $as_echo "$ac_ct_GNATBIND" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4680 if test "x$ac_ct_GNATBIND" = x; then
4683 case $cross_compiling:$ac_tool_warned in
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4689 GNATBIND=$ac_ct_GNATBIND
4692 GNATBIND="$ac_cv_prog_GNATBIND"
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 if test -n "$GNATMAKE"; then
4704 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 GNATMAKE=$ac_cv_prog_GNATMAKE
4724 if test -n "$GNATMAKE"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4726 $as_echo "$GNATMAKE" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4734 if test -z "$ac_cv_prog_GNATMAKE"; then
4735 ac_ct_GNATMAKE=$GNATMAKE
4736 # Extract the first word of "gnatmake", so it can be a program name with args.
4737 set dummy gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$ac_ct_GNATMAKE"; then
4744 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4764 if test -n "$ac_ct_GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4766 $as_echo "$ac_ct_GNATMAKE" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4772 if test "x$ac_ct_GNATMAKE" = x; then
4775 case $cross_compiling:$ac_tool_warned in
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779 ac_tool_warned=yes ;;
4781 GNATMAKE=$ac_ct_GNATMAKE
4784 GNATMAKE="$ac_cv_prog_GNATMAKE"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4788 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4789 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4792 cat >conftest.adb <<EOF
4793 procedure conftest is begin null; end conftest;
4795 acx_cv_cc_gcc_supports_ada=no
4796 # There is a bug in old released versions of GCC which causes the
4797 # driver to exit successfully when the appropriate language module
4798 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4799 # Therefore we must check for the error message as well as an
4800 # unsuccessful exit.
4801 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4802 # given a .adb file, but produce no object file. So we must check
4803 # if an object file was really produced to guard against this.
4804 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4805 if test x"$errors" = x && test -f conftest.$ac_objext; then
4806 acx_cv_cc_gcc_supports_ada=yes
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4811 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4813 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4820 # autoconf is lame and doesn't give us any substitution variable for this.
4821 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4822 NO_MINUS_C_MINUS_O=yes
4824 OUTPUT_OPTION='-o $@'
4829 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4830 # optimizations to be activated explicitly by the toplevel.
4832 */prev-gcc/xgcc*) ;;
4833 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4837 # -------------------------
4838 # Check C compiler features
4839 # -------------------------
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4849 # On Suns, sometimes $CPP names a directory.
4850 if test -n "$CPP" && test -d "$CPP"; then
4853 if test -z "$CPP"; then
4854 if test "${ac_cv_prog_CPP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 # Double quotes because CPP needs to be expanded
4858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 for ac_c_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if ac_fn_c_try_cpp "$LINENO"; then :
4881 # Broken: fails on valid input.
4884 rm -f conftest.err conftest.$ac_ext
4886 # OK, works on sane cases. Now check whether nonexistent headers
4887 # can be detected and how.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893 # Broken: success on invalid input.
4896 # Passes both tests.
4900 rm -f conftest.err conftest.$ac_ext
4903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904 rm -f conftest.err conftest.
$ac_ext
4905 if $ac_preproc_ok; then :
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4918 $as_echo "$CPP" >&6; }
4920 for ac_c_preproc_warn_flag
in '' yes
4922 # Use a header file that comes with gcc, so configuring glibc
4923 # with a fresh cross-compiler works.
4924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925 # <limits.h> exists even on freestanding compilers.
4926 # On the NeXT, cc -E runs the code through the compiler's parser,
4927 # not just through cpp. "Syntax error" is here to catch this case.
4928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4931 # include <limits.h>
4933 # include <assert.h>
4937 if ac_fn_c_try_cpp
"$LINENO"; then :
4940 # Broken: fails on valid input.
4943 rm -f conftest.err conftest.
$ac_ext
4945 # OK, works on sane cases. Now check whether nonexistent headers
4946 # can be detected and how.
4947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 #include <ac_nonexistent.h>
4951 if ac_fn_c_try_cpp
"$LINENO"; then :
4952 # Broken: success on invalid input.
4955 # Passes both tests.
4959 rm -f conftest.err conftest.
$ac_ext
4962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4963 rm -f conftest.err conftest.
$ac_ext
4964 if $ac_preproc_ok; then :
4967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4969 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details." "$LINENO" 5; }
4974 ac_cpp
='$CPP $CPPFLAGS'
4975 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4982 if test "${ac_cv_path_GREP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 if test -z "$GREP"; then
4986 ac_path_GREP_found
=false
4987 # Loop through the user's path and test for each of PROGNAME-LIST
4988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4989 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4992 test -z "$as_dir" && as_dir
=.
4993 for ac_prog
in grep ggrep
; do
4994 for ac_exec_ext
in '' $ac_executable_extensions; do
4995 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4996 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4997 # Check for GNU ac_path_GREP and select it if it is found.
4998 # Check for GNU $ac_path_GREP
4999 case `"$ac_path_GREP" --version 2>&1` in
5001 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5004 $as_echo_n 0123456789 >"conftest.in"
5007 cat "conftest.in" "conftest.in" >"conftest.tmp"
5008 mv "conftest.tmp" "conftest.in"
5009 cp "conftest.in" "conftest.nl"
5010 $as_echo 'GREP' >> "conftest.nl"
5011 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5012 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5013 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5014 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5015 # Best one so far, save it but keep looking for a better one
5016 ac_cv_path_GREP
="$ac_path_GREP"
5017 ac_path_GREP_max
=$ac_count
5019 # 10*(2^10) chars as input seems more than enough
5020 test $ac_count -gt 10 && break
5022 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5025 $ac_path_GREP_found && break 3
5030 if test -z "$ac_cv_path_GREP"; then
5031 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 ac_cv_path_GREP
=$GREP
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5039 $as_echo "$ac_cv_path_GREP" >&6; }
5040 GREP
="$ac_cv_path_GREP"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5044 $as_echo_n "checking for egrep... " >&6; }
5045 if test "${ac_cv_path_EGREP+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5049 then ac_cv_path_EGREP
="$GREP -E"
5051 if test -z "$EGREP"; then
5052 ac_path_EGREP_found
=false
5053 # Loop through the user's path and test for each of PROGNAME-LIST
5054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5058 test -z "$as_dir" && as_dir
=.
5059 for ac_prog
in egrep; do
5060 for ac_exec_ext
in '' $ac_executable_extensions; do
5061 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5063 # Check for GNU ac_path_EGREP and select it if it is found.
5064 # Check for GNU $ac_path_EGREP
5065 case `"$ac_path_EGREP" --version 2>&1` in
5067 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5070 $as_echo_n 0123456789 >"conftest.in"
5073 cat "conftest.in" "conftest.in" >"conftest.tmp"
5074 mv "conftest.tmp" "conftest.in"
5075 cp "conftest.in" "conftest.nl"
5076 $as_echo 'EGREP' >> "conftest.nl"
5077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5078 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5079 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5081 # Best one so far, save it but keep looking for a better one
5082 ac_cv_path_EGREP
="$ac_path_EGREP"
5083 ac_path_EGREP_max
=$ac_count
5085 # 10*(2^10) chars as input seems more than enough
5086 test $ac_count -gt 10 && break
5088 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5091 $ac_path_EGREP_found && break 3
5096 if test -z "$ac_cv_path_EGREP"; then
5097 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 ac_cv_path_EGREP
=$EGREP
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5106 $as_echo "$ac_cv_path_EGREP" >&6; }
5107 EGREP
="$ac_cv_path_EGREP"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5111 $as_echo_n "checking for ANSI C header files... " >&6; }
5112 if test "${ac_cv_header_stdc+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5130 if ac_fn_c_try_compile
"$LINENO"; then :
5131 ac_cv_header_stdc
=yes
5133 ac_cv_header_stdc
=no
5135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5137 if test $ac_cv_header_stdc = yes; then
5138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5145 $EGREP "memchr" >/dev
/null
2>&1; then :
5148 ac_cv_header_stdc
=no
5154 if test $ac_cv_header_stdc = yes; then
5155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5162 $EGREP "free" >/dev
/null
2>&1; then :
5165 ac_cv_header_stdc
=no
5171 if test $ac_cv_header_stdc = yes; then
5172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5173 if test "$cross_compiling" = yes; then :
5176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5180 #if ((' ' & 0x0FF) == 0x020)
5181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5184 # define ISLOWER(c) \
5185 (('a' <= (c) && (c) <= 'i') \
5186 || ('j' <= (c) && (c) <= 'r') \
5187 || ('s' <= (c) && (c) <= 'z'))
5188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5196 for (i = 0; i < 256; i++)
5197 if (XOR (islower (i), ISLOWER (i))
5198 || toupper (i) != TOUPPER (i))
5203 if ac_fn_c_try_run
"$LINENO"; then :
5206 ac_cv_header_stdc
=no
5208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5215 $as_echo "$ac_cv_header_stdc" >&6; }
5216 if test $ac_cv_header_stdc = yes; then
5218 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5223 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5224 inttypes.h stdint.h unistd.h
5226 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5227 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5229 eval as_val
=\$
$as_ac_Header
5230 if test "x$as_val" = x
""yes; then :
5231 cat >>confdefs.h
<<_ACEOF
5232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5241 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5242 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5249 if test "$MINIX" = yes; then
5251 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5254 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5257 $as_echo "#define _MINIX 1" >>confdefs.h
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5263 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5264 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5270 # define __EXTENSIONS__ 1
5271 $ac_includes_default
5280 if ac_fn_c_try_compile
"$LINENO"; then :
5281 ac_cv_safe_to_define___extensions__
=yes
5283 ac_cv_safe_to_define___extensions__
=no
5285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5288 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5289 test $ac_cv_safe_to_define___extensions__ = yes &&
5290 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5292 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5294 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5296 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5298 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302 ac_cpp
='$CPP $CPPFLAGS'
5303 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5308 # On Suns, sometimes $CPP names a directory.
5309 if test -n "$CPP" && test -d "$CPP"; then
5312 if test -z "$CPP"; then
5313 if test "${ac_cv_prog_CPP+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5316 # Double quotes because CPP needs to be expanded
5317 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5320 for ac_c_preproc_warn_flag
in '' yes
5322 # Use a header file that comes with gcc, so configuring glibc
5323 # with a fresh cross-compiler works.
5324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325 # <limits.h> exists even on freestanding compilers.
5326 # On the NeXT, cc -E runs the code through the compiler's parser,
5327 # not just through cpp. "Syntax error" is here to catch this case.
5328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5331 # include <limits.h>
5333 # include <assert.h>
5337 if ac_fn_c_try_cpp
"$LINENO"; then :
5340 # Broken: fails on valid input.
5343 rm -f conftest.err conftest.
$ac_ext
5345 # OK, works on sane cases. Now check whether nonexistent headers
5346 # can be detected and how.
5347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #include <ac_nonexistent.h>
5351 if ac_fn_c_try_cpp
"$LINENO"; then :
5352 # Broken: success on invalid input.
5355 # Passes both tests.
5359 rm -f conftest.err conftest.
$ac_ext
5362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5363 rm -f conftest.err conftest.
$ac_ext
5364 if $ac_preproc_ok; then :
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5377 $as_echo "$CPP" >&6; }
5379 for ac_c_preproc_warn_flag
in '' yes
5381 # Use a header file that comes with gcc, so configuring glibc
5382 # with a fresh cross-compiler works.
5383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5384 # <limits.h> exists even on freestanding compilers.
5385 # On the NeXT, cc -E runs the code through the compiler's parser,
5386 # not just through cpp. "Syntax error" is here to catch this case.
5387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 # include <limits.h>
5392 # include <assert.h>
5396 if ac_fn_c_try_cpp
"$LINENO"; then :
5399 # Broken: fails on valid input.
5402 rm -f conftest.err conftest.
$ac_ext
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <ac_nonexistent.h>
5410 if ac_fn_c_try_cpp
"$LINENO"; then :
5411 # Broken: success on invalid input.
5414 # Passes both tests.
5418 rm -f conftest.err conftest.
$ac_ext
5421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5422 rm -f conftest.err conftest.
$ac_ext
5423 if $ac_preproc_ok; then :
5426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5428 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." "$LINENO" 5; }
5433 ac_cpp
='$CPP $CPPFLAGS'
5434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5439 $as_echo_n "checking for inline... " >&6; }
5440 if test "${ac_cv_c_inline+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5444 for ac_kw
in inline __inline__ __inline
; do
5445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5449 static $ac_kw foo_t static_foo () {return 0; }
5450 $ac_kw foo_t foo () {return 0; }
5454 if ac_fn_c_try_compile
"$LINENO"; then :
5455 ac_cv_c_inline
=$ac_kw
5457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5458 test "$ac_cv_c_inline" != no
&& break
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5463 $as_echo "$ac_cv_c_inline" >&6; }
5465 case $ac_cv_c_inline in
5468 case $ac_cv_c_inline in
5470 *) ac_val
=$ac_cv_c_inline;;
5472 cat >>confdefs.h
<<_ACEOF
5474 #define inline $ac_val
5481 # sizeof(char) is 1 by definition.
5482 # The cast to long int works around a bug in the HP C Compiler
5483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5485 # This bug is HP SR number 8606223364.
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5487 $as_echo_n "checking size of void *... " >&6; }
5488 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5491 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5494 if test "$ac_cv_type_void_p" = yes; then
5495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5497 { as_fn_set_status
77
5498 as_fn_error
"cannot compute sizeof (void *)
5499 See \`config.log' for more details." "$LINENO" 5; }; }
5501 ac_cv_sizeof_void_p
=0
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5507 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5511 cat >>confdefs.h
<<_ACEOF
5512 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 # The cast to long int works around a bug in the HP C Compiler
5517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5519 # This bug is HP SR number 8606223364.
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5521 $as_echo_n "checking size of short... " >&6; }
5522 if test "${ac_cv_sizeof_short+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5525 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5528 if test "$ac_cv_type_short" = yes; then
5529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5531 { as_fn_set_status
77
5532 as_fn_error
"cannot compute sizeof (short)
5533 See \`config.log' for more details." "$LINENO" 5; }; }
5535 ac_cv_sizeof_short
=0
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5541 $as_echo "$ac_cv_sizeof_short" >&6; }
5545 cat >>confdefs.h
<<_ACEOF
5546 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 # The cast to long int works around a bug in the HP C Compiler
5551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5553 # This bug is HP SR number 8606223364.
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5555 $as_echo_n "checking size of int... " >&6; }
5556 if test "${ac_cv_sizeof_int+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5559 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5562 if test "$ac_cv_type_int" = yes; then
5563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5565 { as_fn_set_status
77
5566 as_fn_error
"cannot compute sizeof (int)
5567 See \`config.log' for more details." "$LINENO" 5; }; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5575 $as_echo "$ac_cv_sizeof_int" >&6; }
5579 cat >>confdefs.h
<<_ACEOF
5580 #define SIZEOF_INT $ac_cv_sizeof_int
5584 # The cast to long int works around a bug in the HP C Compiler
5585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5587 # This bug is HP SR number 8606223364.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5589 $as_echo_n "checking size of long... " >&6; }
5590 if test "${ac_cv_sizeof_long+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5596 if test "$ac_cv_type_long" = yes; then
5597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5599 { as_fn_set_status
77
5600 as_fn_error
"cannot compute sizeof (long)
5601 See \`config.log' for more details." "$LINENO" 5; }; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5609 $as_echo "$ac_cv_sizeof_long" >&6; }
5613 cat >>confdefs.h
<<_ACEOF
5614 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5619 if test "x$ac_cv_type_long_long" = x
""yes; then :
5621 cat >>confdefs.h
<<_ACEOF
5622 #define HAVE_LONG_LONG 1
5625 # The cast to long int works around a bug in the HP C Compiler
5626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5628 # This bug is HP SR number 8606223364.
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5630 $as_echo_n "checking size of long long... " >&6; }
5631 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5634 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5637 if test "$ac_cv_type_long_long" = yes; then
5638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5640 { as_fn_set_status
77
5641 as_fn_error
"cannot compute sizeof (long long)
5642 See \`config.log' for more details." "$LINENO" 5; }; }
5644 ac_cv_sizeof_long_long
=0
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5650 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5654 cat >>confdefs.h
<<_ACEOF
5655 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5661 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5662 if test "x$ac_cv_type___int64" = x
""yes; then :
5664 cat >>confdefs.h
<<_ACEOF
5665 #define HAVE___INT64 1
5668 # The cast to long int works around a bug in the HP C Compiler
5669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5671 # This bug is HP SR number 8606223364.
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5673 $as_echo_n "checking size of __int64... " >&6; }
5674 if test "${ac_cv_sizeof___int64+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5677 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5680 if test "$ac_cv_type___int64" = yes; then
5681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5683 { as_fn_set_status
77
5684 as_fn_error
"cannot compute sizeof (__int64)
5685 See \`config.log' for more details." "$LINENO" 5; }; }
5687 ac_cv_sizeof___int64
=0
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5693 $as_echo "$ac_cv_sizeof___int64" >&6; }
5697 cat >>confdefs.h
<<_ACEOF
5698 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5704 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5705 case $ac_cv_c_int8_t in #(
5709 cat >>confdefs.h
<<_ACEOF
5710 #define int8_t $ac_cv_c_int8_t
5715 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5716 case $ac_cv_c_int16_t in #(
5720 cat >>confdefs.h
<<_ACEOF
5721 #define int16_t $ac_cv_c_int16_t
5726 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5727 case $ac_cv_c_int32_t in #(
5731 cat >>confdefs.h
<<_ACEOF
5732 #define int32_t $ac_cv_c_int32_t
5737 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5738 case $ac_cv_c_int64_t in #(
5742 cat >>confdefs.h
<<_ACEOF
5743 #define int64_t $ac_cv_c_int64_t
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5750 $as_echo_n "checking for long long int... " >&6; }
5751 if test "${ac_cv_type_long_long_int+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5757 /* For now, do not test the preprocessor; as of 2007 there are too many
5758 implementations with broken preprocessors. Perhaps this can
5759 be revisited in 2012. In the meantime, code should not expect
5760 #if to work with literals wider than 32 bits. */
5761 /* Test literals. */
5762 long long int ll = 9223372036854775807ll;
5763 long long int nll = -9223372036854775807LL;
5764 unsigned long long int ull = 18446744073709551615ULL;
5765 /* Test constant expressions. */
5766 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5768 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5774 /* Test availability of runtime routines for shift and division. */
5775 long long int llmax = 9223372036854775807ll;
5776 unsigned long long int ullmax = 18446744073709551615ull;
5777 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5778 | (llmax / ll) | (llmax % ll)
5779 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5780 | (ullmax / ull) | (ullmax % ull));
5786 if ac_fn_c_try_link
"$LINENO"; then :
5787 if test "$cross_compiling" = yes; then :
5788 ac_cv_type_long_long_int
=yes
5790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5795 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5796 # define LLONG_MAX (HALF - 1 + HALF)
5801 long long int n = 1;
5805 long long int m = n << i;
5808 if (LLONG_MAX / 2 < m)
5816 if ac_fn_c_try_run
"$LINENO"; then :
5817 ac_cv_type_long_long_int
=yes
5819 ac_cv_type_long_long_int
=no
5821 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5822 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5826 ac_cv_type_long_long_int
=no
5828 rm -f core conftest.err conftest.
$ac_objext \
5829 conftest
$ac_exeext conftest.
$ac_ext
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5832 $as_echo "$ac_cv_type_long_long_int" >&6; }
5833 if test $ac_cv_type_long_long_int = yes; then
5835 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5841 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5842 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5844 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5847 test $ac_cv_type_long_long_int = yes \
5848 && ac_type
='long long int' \
5849 || ac_type
='long int'
5851 cat >>confdefs.h
<<_ACEOF
5852 #define intmax_t $ac_type
5859 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5860 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5862 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5865 for ac_type
in 'int' 'long int' 'long long int'; do
5866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 $ac_includes_default
5872 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5879 if ac_fn_c_try_compile
"$LINENO"; then :
5881 cat >>confdefs.h
<<_ACEOF
5882 #define intptr_t $ac_type
5887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 test -z "$ac_type" && break
5893 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5894 case $ac_cv_c_uint8_t in #(
5898 $as_echo "#define _UINT8_T 1" >>confdefs.h
5901 cat >>confdefs.h
<<_ACEOF
5902 #define uint8_t $ac_cv_c_uint8_t
5907 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5908 case $ac_cv_c_uint16_t in #(
5913 cat >>confdefs.h
<<_ACEOF
5914 #define uint16_t $ac_cv_c_uint16_t
5919 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5920 case $ac_cv_c_uint32_t in #(
5924 $as_echo "#define _UINT32_T 1" >>confdefs.h
5927 cat >>confdefs.h
<<_ACEOF
5928 #define uint32_t $ac_cv_c_uint32_t
5933 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5934 case $ac_cv_c_uint64_t in #(
5938 $as_echo "#define _UINT64_T 1" >>confdefs.h
5941 cat >>confdefs.h
<<_ACEOF
5942 #define uint64_t $ac_cv_c_uint64_t
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5949 $as_echo_n "checking for unsigned long long int... " >&6; }
5950 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5956 /* For now, do not test the preprocessor; as of 2007 there are too many
5957 implementations with broken preprocessors. Perhaps this can
5958 be revisited in 2012. In the meantime, code should not expect
5959 #if to work with literals wider than 32 bits. */
5960 /* Test literals. */
5961 long long int ll = 9223372036854775807ll;
5962 long long int nll = -9223372036854775807LL;
5963 unsigned long long int ull = 18446744073709551615ULL;
5964 /* Test constant expressions. */
5965 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5967 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5973 /* Test availability of runtime routines for shift and division. */
5974 long long int llmax = 9223372036854775807ll;
5975 unsigned long long int ullmax = 18446744073709551615ull;
5976 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5977 | (llmax / ll) | (llmax % ll)
5978 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5979 | (ullmax / ull) | (ullmax % ull));
5985 if ac_fn_c_try_link
"$LINENO"; then :
5986 ac_cv_type_unsigned_long_long_int
=yes
5988 ac_cv_type_unsigned_long_long_int
=no
5990 rm -f core conftest.err conftest.
$ac_objext \
5991 conftest
$ac_exeext conftest.
$ac_ext
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5994 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5995 if test $ac_cv_type_unsigned_long_long_int = yes; then
5997 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6003 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6004 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6006 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6009 test $ac_cv_type_unsigned_long_long_int = yes \
6010 && ac_type
='unsigned long long int' \
6011 || ac_type
='unsigned long int'
6013 cat >>confdefs.h
<<_ACEOF
6014 #define uintmax_t $ac_type
6021 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6022 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6024 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6027 for ac_type
in 'unsigned int' 'unsigned long int' \
6028 'unsigned long long int'; do
6029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 $ac_includes_default
6035 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6042 if ac_fn_c_try_compile
"$LINENO"; then :
6044 cat >>confdefs.h
<<_ACEOF
6045 #define uintptr_t $ac_type
6050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 test -z "$ac_type" && break
6069 # ---------------------
6070 # Warnings and checking
6071 # ---------------------
6073 # Check $CC warning features (if it's GCC).
6074 # We want to use -pedantic, but we don't want warnings about
6077 # * overlong strings
6078 # So, we only use -pedantic if we can disable those warnings.
6081 save_CFLAGS
="$CFLAGS"
6082 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6083 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6086 $as_echo_n "checking whether $CC supports $option... " >&6; }
6087 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6088 $as_echo_n "(cached) " >&6
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6102 if ac_fn_c_try_compile
"$LINENO"; then :
6103 eval "$as_acx_Woption=yes"
6105 eval "$as_acx_Woption=no"
6107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6110 eval ac_res
=\$
$as_acx_Woption
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6112 $as_echo "$ac_res" >&6; }
6113 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6114 loose_warn
="$loose_warn${loose_warn:+ }$option"
6117 CFLAGS
="$save_CFLAGS"
6120 save_CFLAGS
="$CFLAGS"
6121 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6122 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6125 $as_echo_n "checking whether $CC supports $option... " >&6; }
6126 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6127 $as_echo_n "(cached) " >&6
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6141 if ac_fn_c_try_compile
"$LINENO"; then :
6142 eval "$as_acx_Woption=yes"
6144 eval "$as_acx_Woption=no"
6146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 eval ac_res
=\$
$as_acx_Woption
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6151 $as_echo "$ac_res" >&6; }
6152 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6153 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6156 CFLAGS
="$save_CFLAGS"
6159 save_CFLAGS
="$CFLAGS"
6160 for option
in -Wmissing-format-attribute; do
6161 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6164 $as_echo_n "checking whether $CC supports $option... " >&6; }
6165 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6166 $as_echo_n "(cached) " >&6
6169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6180 if ac_fn_c_try_compile
"$LINENO"; then :
6181 eval "$as_acx_Woption=yes"
6183 eval "$as_acx_Woption=no"
6185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6188 eval ac_res
=\$
$as_acx_Woption
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6190 $as_echo "$ac_res" >&6; }
6191 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6192 strict_warn
="$strict_warn${strict_warn:+ }$option"
6195 CFLAGS
="$save_CFLAGS"
6198 save_CFLAGS
="$CFLAGS"
6199 for option
in -Wold-style-definition -Wc++-compat; do
6200 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6203 $as_echo_n "checking whether $CC supports $option... " >&6; }
6204 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6205 $as_echo_n "(cached) " >&6
6208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6219 if ac_fn_c_try_compile
"$LINENO"; then :
6220 eval "$as_acx_Woption=yes"
6222 eval "$as_acx_Woption=no"
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6227 eval ac_res
=\$
$as_acx_Woption
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6229 $as_echo "$ac_res" >&6; }
6230 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6231 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6234 CFLAGS
="$save_CFLAGS"
6236 if test "$GCC" = yes; then :
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6238 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6239 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6242 save_CFLAGS
="$CFLAGS"
6243 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6255 if ac_fn_c_try_compile
"$LINENO"; then :
6256 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6258 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 CFLAGS
="$save_CFLAGS"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6264 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6265 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6266 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6271 # Check whether --enable-werror-always was given.
6272 if test "${enable_werror_always+set}" = set; then :
6273 enableval
=$enable_werror_always;
6275 enable_werror_always
=no
6278 if test $enable_werror_always = yes; then :
6279 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6284 # The above macros do nothing if the compiler is not GCC. However, the
6285 # Makefile has more goo to add other flags, so these variables are used
6286 # to enable warnings only for GCC.
6289 if test "x$GCC" = "xyes"; then
6290 warn_cflags
='$(GCC_WARN_CFLAGS)'
6291 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6296 # Enable expensive internal checks
6298 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6302 # Check whether --enable-checking was given.
6303 if test "${enable_checking+set}" = set; then :
6304 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6307 # Determine the default checks.
6308 if test x
$is_release = x
; then
6309 ac_checking_flags
=yes
6311 ac_checking_flags
=release
6315 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6316 for check
in release
$ac_checking_flags
6319 # these set all the flags to specific states
6320 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6321 ac_fold_checking
= ; ac_gc_checking
=1 ;
6322 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6323 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6324 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6325 ac_types_checking
=1 ;;
6326 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6327 ac_fold_checking
= ; ac_gc_checking
= ;
6328 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6329 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6330 ac_tree_checking
= ; ac_valgrind_checking
= ;
6331 ac_types_checking
= ;;
6332 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6333 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6334 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6335 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6336 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6337 ac_types_checking
=1 ;;
6338 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6339 ac_fold_checking
= ; ac_gc_checking
= ;
6340 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6341 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6342 ac_tree_checking
= ; ac_valgrind_checking
= ;
6343 ac_types_checking
= ;;
6344 # these enable particular checks
6345 assert
) ac_assert_checking
=1 ;;
6346 df
) ac_df_checking
=1 ;;
6347 fold) ac_fold_checking
=1 ;;
6348 gc
) ac_gc_checking
=1 ;;
6349 gcac
) ac_gc_always_collect
=1 ;;
6350 gimple
) ac_gimple_checking
=1 ;;
6351 misc
) ac_checking
=1 ;;
6352 rtl
) ac_rtl_checking
=1 ;;
6353 rtlflag
) ac_rtlflag_checking
=1 ;;
6354 runtime
) ac_runtime_checking
=1 ;;
6355 tree
) ac_tree_checking
=1 ;;
6356 types
) ac_types_checking
=1 ;;
6357 valgrind
) ac_valgrind_checking
=1 ;;
6358 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6364 if test x
$ac_checking != x
; then
6366 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6368 nocommon_flag
=-fno-common
6371 if test x
$ac_df_checking != x
; then
6373 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6376 if test x
$ac_assert_checking != x
; then
6378 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6381 if test x
$ac_gimple_checking != x
; then
6383 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6387 if test x
$ac_runtime_checking != x
; then
6389 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6392 if test x
$ac_tree_checking != x
; then
6394 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6396 TREEBROWSER
=tree-browser.o
6398 if test x
$ac_types_checking != x
; then
6400 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6404 if test x
$ac_rtl_checking != x
; then
6406 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6409 if test x
$ac_rtlflag_checking != x
; then
6411 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6414 if test x
$ac_gc_checking != x
; then
6416 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6419 if test x
$ac_gc_always_collect != x
; then
6421 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6424 if test x
$ac_fold_checking != x
; then
6426 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6429 valgrind_path_defines
=
6432 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6433 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6441 if test x
$ac_valgrind_checking != x
; then
6442 # It is certainly possible that there's valgrind but no valgrind.h.
6443 # GCC relies on making annotations so we must have both.
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6445 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 #include <valgrind/memcheck.h>
6449 #ifndef VALGRIND_DISCARD
6450 #error VALGRIND_DISCARD not defined
6453 if ac_fn_c_try_cpp
"$LINENO"; then :
6454 gcc_cv_header_valgrind_memcheck_h
=yes
6456 gcc_cv_header_valgrind_memcheck_h
=no
6458 rm -f conftest.err conftest.
$ac_ext
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6460 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6462 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #include <memcheck.h>
6466 #ifndef VALGRIND_DISCARD
6467 #error VALGRIND_DISCARD not defined
6470 if ac_fn_c_try_cpp
"$LINENO"; then :
6471 gcc_cv_header_memcheck_h
=yes
6473 gcc_cv_header_memcheck_h
=no
6475 rm -f conftest.err conftest.
$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6477 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6479 # Prepare PATH_SEPARATOR.
6480 # The user is always right.
6481 if test "${PATH_SEPARATOR+set}" != set; then
6482 echo "#! /bin/sh" >conf$$.sh
6483 echo "exit 0" >>conf$$.sh
6485 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6493 # Find out how to test for executable files. Don't use a zero-byte file,
6494 # as systems may use methods other than mode bits to determine executability.
6495 cat >conf$$.
file <<_ASEOF
6499 chmod +x conf$$.
file
6500 if test -x conf$$.
file >/dev
/null
2>&1; then
6501 ac_executable_p
="test -x"
6503 ac_executable_p
="test -f"
6507 # Extract the first word of "valgrind", so it can be a program name with args.
6508 set dummy valgrind
; ac_word
=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6514 case "$valgrind_path" in
6516 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6519 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6520 for ac_dir
in $PATH; do
6522 test -z "$ac_dir" && ac_dir
=.
6523 for ac_exec_ext
in '' $ac_executable_extensions; do
6524 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6525 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6526 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6536 valgrind_path
="$ac_cv_path_valgrind_path"
6537 if test -n "$valgrind_path"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6539 $as_echo "$valgrind_path" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6545 if test "x$valgrind_path" = "x" \
6546 ||
(test $have_valgrind_h = no \
6547 && test $gcc_cv_header_memcheck_h = no \
6548 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6549 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6551 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6552 valgrind_command
="$valgrind_path -q"
6554 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6556 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6558 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6561 if test $gcc_cv_header_memcheck_h = yes; then
6563 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6570 # Enable code coverage collection
6571 # Check whether --enable-coverage was given.
6572 if test "${enable_coverage+set}" = set; then :
6573 enableval
=$enable_coverage; case "${enableval}" in
6575 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6578 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6581 # a.k.a. --disable-coverage
6585 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6594 # Check whether --enable-gather-detailed-mem-stats was given.
6595 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6596 enableval
=$enable_gather_detailed_mem_stats;
6598 enable_gather_detailed_mem_stats
=no
6601 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6603 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6607 # -------------------------------
6608 # Miscenalleous configure options
6609 # -------------------------------
6611 # See if we are building gcc with C++.
6612 # Check whether --enable-build-with-cxx was given.
6613 if test "${enable_build_with_cxx+set}" = set; then :
6614 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6616 ENABLE_BUILD_WITH_CXX
=no
6623 # Check whether --with-stabs was given.
6624 if test "${with_stabs+set}" = set; then :
6625 withval
=$with_stabs; stabs
="$with_stabs"
6631 # Determine whether or not multilibs are enabled.
6632 # Check whether --enable-multilib was given.
6633 if test "${enable_multilib+set}" = set; then :
6634 enableval
=$enable_multilib;
6641 # Enable __cxa_atexit for C++.
6642 # Check whether --enable-__cxa_atexit was given.
6643 if test "${enable___cxa_atexit+set}" = set; then :
6644 enableval
=$enable___cxa_atexit;
6648 # Enable C extension for decimal float if target supports it.
6649 # Check whether --enable-decimal-float was given.
6650 if test "${enable_decimal_float+set}" = set; then :
6651 enableval
=$enable_decimal_float;
6652 case $enable_decimal_float in
6653 yes | no | bid | dpd
) ;;
6654 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6655 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6661 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6662 enable_decimal_float
=yes
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6666 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6667 enable_decimal_float
=no
6674 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6676 cat >>confdefs.h
<<_ACEOF
6677 #define ENABLE_DECIMAL_FLOAT $dfp
6681 # x86's use BID format instead of DPD
6682 case x
$enable_decimal_float in
6685 i?
86*-*-linux* | x86_64
*-*-linux*)
6686 enable_decimal_float
=bid
6689 enable_decimal_float
=dpd
6694 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6695 # dependency on libdecnumber.
6696 enable_decimal_float
=dpd
6701 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6703 cat >>confdefs.h
<<_ACEOF
6704 #define ENABLE_DECIMAL_BID_FORMAT $bid
6708 # Enable C extension for fixed-point arithmetic.
6709 # Check whether --enable-fixed-point was given.
6710 if test "${enable_fixed_point+set}" = set; then :
6711 enableval
=$enable_fixed_point;
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6720 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6721 enable_fixed_point
=no
6724 enable_fixed_point
=yes
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6730 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6731 enable_fixed_point
=no
6739 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6741 cat >>confdefs.h
<<_ACEOF
6742 #define ENABLE_FIXED_POINT $fixedpoint
6747 # Pass with no value to take the default
6748 # Pass with a value to specify a thread package
6749 # Check whether --enable-threads was given.
6750 if test "${enable_threads+set}" = set; then :
6751 enableval
=$enable_threads;
6757 # Check whether --enable-tls was given.
6758 if test "${enable_tls+set}" = set; then :
6759 enableval
=$enable_tls;
6762 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6763 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6771 # Check whether --enable-objc-gc was given.
6772 if test "${enable_objc_gc+set}" = set; then :
6773 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6784 # Check whether --with-dwarf2 was given.
6785 if test "${with_dwarf2+set}" = set; then :
6786 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6792 # Check whether --enable-shared was given.
6793 if test "${enable_shared+set}" = set; then :
6794 enableval
=$enable_shared;
6795 case $enable_shared in
6799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6800 for pkg
in $enableval; do
6801 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6816 # Check whether --with-build-sysroot was given.
6817 if test "${with_build_sysroot+set}" = set; then :
6818 withval
=$with_build_sysroot;
6823 # Check whether --with-sysroot was given.
6824 if test "${with_sysroot+set}" = set; then :
6825 withval
=$with_sysroot;
6826 case ${with_sysroot} in
6827 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6828 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6831 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6832 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6834 if test "x$prefix" = xNONE
; then
6835 test_prefix
=/usr
/local
6839 if test "x$exec_prefix" = xNONE
; then
6840 test_exec_prefix
=$test_prefix
6842 test_exec_prefix
=$exec_prefix
6844 case ${TARGET_SYSTEM_ROOT} in
6845 "${test_prefix}"|
"${test_prefix}/"*|\
6846 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6847 '${prefix}'|
'${prefix}/'*|\
6848 '${exec_prefix}'|
'${exec_prefix}/'*)
6849 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6850 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6857 TARGET_SYSTEM_ROOT_DEFINE
=
6858 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6867 # Check whether --with-specs was given.
6868 if test "${with_specs+set}" = set; then :
6869 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6877 # Build with intermodule optimisations
6878 # Check whether --enable-intermodule was given.
6879 if test "${enable_intermodule+set}" = set; then :
6880 enableval
=$enable_intermodule; case ${enable_intermodule} in
6881 yes) onestep
="-onestep";;
6892 # Check whether --with-pkgversion was given.
6893 if test "${with_pkgversion+set}" = set; then :
6894 withval
=$with_pkgversion; case "$withval" in
6895 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6897 *) PKGVERSION
="($withval) " ;;
6908 # Check whether --with-bugurl was given.
6909 if test "${with_bugurl+set}" = set; then :
6910 withval
=$with_bugurl; case "$withval" in
6911 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6914 *) BUGURL
="$withval"
6918 BUGURL
="http://gcc.gnu.org/bugs.html"
6928 REPORT_BUGS_TO
="<$BUGURL>"
6929 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6936 # Sanity check enable_languages in case someone does not run the toplevel
6937 # configure # script.
6938 # Check whether --enable-languages was given.
6939 if test "${enable_languages+set}" = set; then :
6940 enableval
=$enable_languages; case ,${enable_languages}, in
6942 # go safe -- we cannot be much sure without the toplevel
6944 # analysis of which target libs are present and usable
6948 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6953 enable_languages
=c
,${enable_languages}
6962 # Check whether --with-multilib-list was given.
6963 if test "${with_multilib_list+set}" = set; then :
6964 withval
=$with_multilib_list; :
6966 with_multilib_list
=default
6970 # -------------------------
6971 # Checks for other programs
6972 # -------------------------
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6977 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6978 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6979 $as_echo_n "(cached) " >&6
6981 cat >conftest.
make <<\_ACEOF
6984 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6986 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6989 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6991 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6995 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6997 $as_echo "yes" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 SET_MAKE
="MAKE=${MAKE-make}"
7006 # Find some useful tools
7007 for ac_prog
in gawk mawk nawk
awk
7009 # Extract the first word of "$ac_prog", so it can be a program name with args.
7010 set dummy
$ac_prog; ac_word
=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if test "${ac_cv_prog_AWK+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7016 if test -n "$AWK"; then
7017 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir
=.
7024 for ac_exec_ext
in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_prog_AWK
="$ac_prog"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 if test -n "$AWK"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7039 $as_echo "$AWK" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7046 test -n "$AWK" && break
7049 # We need awk to create options.c and options.h.
7050 # Bail out if it's missing.
7052 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7056 $as_echo_n "checking whether ln -s works... " >&6; }
7057 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 rm -f conftestdata_t
7061 echo >conftestdata_f
7062 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7064 gcc_cv_prog_LN_S
="ln -s"
7066 if ln conftestdata_f conftestdata_t
2>/dev
/null
7070 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7072 gcc_cv_prog_LN_S
="cp -p"
7078 rm -f conftestdata_f conftestdata_t
7081 LN_S
="$gcc_cv_prog_LN_S"
7082 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7084 $as_echo "yes" >&6; }
7086 if test "$gcc_cv_prog_LN_S" = "ln"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7088 $as_echo "no, using ln" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7091 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7096 $as_echo_n "checking whether ln works... " >&6; }
7097 if test "${acx_cv_prog_LN+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 rm -f conftestdata_t
7101 echo >conftestdata_f
7102 if ln conftestdata_f conftestdata_t
2>/dev
/null
7108 rm -f conftestdata_f conftestdata_t
7111 if test $acx_cv_prog_LN = no
; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7114 $as_echo "no, using $LN" >&6; }
7116 LN
="$acx_cv_prog_LN"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118 $as_echo "yes" >&6; }
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7123 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$RANLIB"; then
7130 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir
=.
7137 for ac_exec_ext
in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 RANLIB
=$ac_cv_prog_RANLIB
7150 if test -n "$RANLIB"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7152 $as_echo "$RANLIB" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7160 if test -z "$ac_cv_prog_RANLIB"; then
7161 ac_ct_RANLIB
=$RANLIB
7162 # Extract the first word of "ranlib", so it can be a program name with args.
7163 set dummy ranlib
; ac_word
=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$ac_ct_RANLIB"; then
7170 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir
=.
7177 for ac_exec_ext
in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7190 if test -n "$ac_ct_RANLIB"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7192 $as_echo "$ac_ct_RANLIB" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7198 if test "x$ac_ct_RANLIB" = x
; then
7201 case $cross_compiling:$ac_tool_warned in
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned
=yes ;;
7207 RANLIB
=$ac_ct_RANLIB
7210 RANLIB
="$ac_cv_prog_RANLIB"
7215 # By default, the Darwin ranlib will not treat common symbols as
7216 # definitions when building the archive table of contents. Other
7217 # ranlibs do that; pass an option to the Darwin ranlib that makes
7218 # it behave similarly.
7226 # Find a good install program. We prefer a C program (faster),
7227 # so one script is as good as another. But avoid the broken or
7228 # incompatible versions:
7229 # SysV /etc/install, /usr/sbin/install
7230 # SunOS /usr/etc/install
7231 # IRIX /sbin/install
7233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7235 # ./install, which can be erroneously created by make from ./install.sh.
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7237 $as_echo_n "checking for a BSD compatible install... " >&6; }
7238 if test -z "$INSTALL"; then
7239 if test "${ac_cv_path_install+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7242 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7243 for ac_dir
in $PATH; do
7244 # Account for people who put trailing slashes in PATH elements.
7246 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7248 # OSF1 and SCO ODT 3.0 have their own names for install.
7249 for ac_prog
in ginstall scoinst
install; do
7250 if test -f $ac_dir/$ac_prog; then
7251 if test $ac_prog = install &&
7252 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7253 # AIX install. It has an incompatible calling convention.
7254 # OSF/1 installbsd also uses dspmsg, but is usable.
7257 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7268 if test "${ac_cv_path_install+set}" = set; then
7269 INSTALL
="$ac_cv_path_install"
7271 # As a last resort, use the slow shell script. We don't cache a
7272 # path for INSTALL within a source directory, because that will
7273 # break other packages using the cache if that directory is
7274 # removed, or if the path is relative.
7275 INSTALL
="$ac_install_sh"
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7279 $as_echo "$INSTALL" >&6; }
7281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7282 # It thinks the first close brace ends the variable substitution.
7283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7285 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7288 # See if cmp has --ignore-initial.
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7290 $as_echo_n "checking for cmp's capabilities... " >&6; }
7291 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7296 gcc_cv_prog_cmp_skip
=slowcompare
7297 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7298 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7301 gcc_cv_prog_cmp_skip
=gnucompare
7304 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7305 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7306 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7309 gcc_cv_prog_cmp_skip
=fastcompare
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7317 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7318 make_compare_target
=$gcc_cv_prog_cmp_skip
7322 # See if we have the mktemp command.
7323 # Extract the first word of "mktemp", so it can be a program name with args.
7324 set dummy mktemp
; ac_word
=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7330 if test -n "$have_mktemp_command"; then
7331 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir
=.
7338 for ac_exec_ext
in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_have_mktemp_command
="yes"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7351 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7352 if test -n "$have_mktemp_command"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7354 $as_echo "$have_mktemp_command" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 # See if makeinfo has been installed and is modern enough
7363 # that we can use it.
7365 # Extract the first word of "makeinfo", so it can be a program name with args.
7366 set dummy makeinfo
; ac_word
=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7372 if test -n "$MAKEINFO"; then
7373 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir
=.
7380 for ac_exec_ext
in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_MAKEINFO
="makeinfo"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 MAKEINFO
=$ac_cv_prog_MAKEINFO
7393 if test -n "$MAKEINFO"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7395 $as_echo "$MAKEINFO" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7402 if test -n "$MAKEINFO"; then
7403 # Found it, now check the version.
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7405 $as_echo_n "checking for modern makeinfo... " >&6; }
7406 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7409 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7410 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7412 case $ac_prog_version in
7413 '') gcc_cv_prog_makeinfo_modern
=no
;;
7414 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7415 *) gcc_cv_prog_makeinfo_modern
=no
;;
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7420 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7422 gcc_cv_prog_makeinfo_modern
=no
7424 if test $gcc_cv_prog_makeinfo_modern = no
; then
7425 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7428 if test $gcc_cv_prog_makeinfo_modern = no
; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&5
7432 $as_echo "$as_me: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&2;}
7441 # Is pod2man recent enough to regenerate manpages?
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7443 $as_echo_n "checking for recent Pod::Man... " >&6; }
7444 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446 $as_echo "yes" >&6; }
7447 GENERATED_MANPAGES
=generated-manpages
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7455 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7460 # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy
$ac_prog; ac_word
=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_prog_FLEX+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$FLEX"; then
7468 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir
=.
7475 for ac_exec_ext
in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_prog_FLEX
="$ac_prog"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 FLEX
=$ac_cv_prog_FLEX
7488 if test -n "$FLEX"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7490 $as_echo "$FLEX" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7497 test -n "$FLEX" && break
7499 test -n "$FLEX" || FLEX
="$MISSING flex"
7503 for ac_prog
in bison
7505 # Extract the first word of "$ac_prog", so it can be a program name with args.
7506 set dummy
$ac_prog; ac_word
=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if test "${ac_cv_prog_BISON+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7512 if test -n "$BISON"; then
7513 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir
=.
7520 for ac_exec_ext
in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_BISON
="$ac_prog"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 BISON
=$ac_cv_prog_BISON
7533 if test -n "$BISON"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7535 $as_echo "$BISON" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7542 test -n "$BISON" && break
7544 test -n "$BISON" || BISON
="$MISSING bison"
7547 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7548 # check for build == host before using them.
7551 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7552 && test -d ..
/binutils
; then
7553 NM
='${objdir}/../binutils/nm-new'
7555 # Extract the first word of "nm", so it can be a program name with args.
7556 set dummy nm
; ac_word
=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_NM+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7562 if test -n "$NM"; then
7563 ac_cv_prog_NM
="$NM" # Let the user override the test.
7565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir
=.
7570 for ac_exec_ext
in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7584 if test -n "$NM"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7586 $as_echo "$NM" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7596 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7597 && test -d ..
/binutils
; then
7598 AR
='${objdir}/../binutils/ar'
7600 # Extract the first word of "ar", so it can be a program name with args.
7601 set dummy
ar; ac_word
=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_AR+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7607 if test -n "$AR"; then
7608 ac_cv_prog_AR
="$AR" # Let the user override the test.
7610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir
=.
7615 for ac_exec_ext
in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7629 if test -n "$AR"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7631 $as_echo "$AR" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7641 # --------------------
7642 # Checks for C headers
7643 # --------------------
7645 # Need to reject headers which give warnings, so that the -Werror bootstrap
7646 # works later. *sigh* This needs to come before all header checks.
7648 ac_c_preproc_warn_flag
=yes
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7651 $as_echo_n "checking for ANSI C header files... " >&6; }
7652 if test "${ac_cv_header_stdc+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7670 if ac_fn_c_try_compile
"$LINENO"; then :
7671 ac_cv_header_stdc
=yes
7673 ac_cv_header_stdc
=no
7675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7677 if test $ac_cv_header_stdc = yes; then
7678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "memchr" >/dev
/null
2>&1; then :
7688 ac_cv_header_stdc
=no
7694 if test $ac_cv_header_stdc = yes; then
7695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702 $EGREP "free" >/dev
/null
2>&1; then :
7705 ac_cv_header_stdc
=no
7711 if test $ac_cv_header_stdc = yes; then
7712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713 if test "$cross_compiling" = yes; then :
7716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7720 #if ((' ' & 0x0FF) == 0x020)
7721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7724 # define ISLOWER(c) \
7725 (('a' <= (c) && (c) <= 'i') \
7726 || ('j' <= (c) && (c) <= 'r') \
7727 || ('s' <= (c) && (c) <= 'z'))
7728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736 for (i = 0; i < 256; i++)
7737 if (XOR (islower (i), ISLOWER (i))
7738 || toupper (i) != TOUPPER (i))
7743 if ac_fn_c_try_run
"$LINENO"; then :
7746 ac_cv_header_stdc
=no
7748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7764 if test "${ac_cv_header_time+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 #include <sys/types.h>
7770 #include <sys/time.h>
7776 if ((struct tm *) 0)
7782 if ac_fn_c_try_compile
"$LINENO"; then :
7783 ac_cv_header_time
=yes
7785 ac_cv_header_time
=no
7787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7790 $as_echo "$ac_cv_header_time" >&6; }
7791 if test $ac_cv_header_time = yes; then
7793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7798 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7799 if test "${gcc_cv_header_string+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7805 #include <strings.h>
7814 if ac_fn_c_try_compile
"$LINENO"; then :
7815 gcc_cv_header_string
=yes
7817 gcc_cv_header_string
=no
7819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7822 $as_echo "$gcc_cv_header_string" >&6; }
7823 if test $gcc_cv_header_string = yes; then
7825 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7830 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7831 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <sys/types.h>
7837 #include <sys/wait.h>
7839 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7842 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7850 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7855 if ac_fn_c_try_compile
"$LINENO"; then :
7856 ac_cv_header_sys_wait_h
=yes
7858 ac_cv_header_sys_wait_h
=no
7860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7863 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7864 if test $ac_cv_header_sys_wait_h = yes; then
7866 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7870 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7871 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7872 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7873 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7875 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7877 eval as_val
=\$
$as_ac_Header
7878 if test "x$as_val" = x
""yes; then :
7879 cat >>confdefs.h
<<_ACEOF
7880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 # Check for thread headers.
7888 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7889 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7895 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7896 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7903 # These tests can't be done till we know if we have limits.h.
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7905 $as_echo_n "checking for CHAR_BIT... " >&6; }
7906 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 #ifdef HAVE_LIMITS_H
7918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919 $EGREP "found" >/dev
/null
2>&1; then :
7920 gcc_cv_decl_char_bit
=yes
7922 gcc_cv_decl_char_bit
=no
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7929 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7930 if test $gcc_cv_decl_char_bit = no
; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7932 $as_echo_n "checking number of bits in a byte... " >&6; }
7933 if test "${gcc_cv_c_nbby+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7938 while test $i -lt 65; do
7939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7946 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7947 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7953 if ac_fn_c_try_compile
"$LINENO"; then :
7954 gcc_cv_c_nbby
=$i; break
7956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7963 $as_echo "$gcc_cv_c_nbby" >&6; }
7964 if test $gcc_cv_c_nbby = failed
; then
7965 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7968 cat >>confdefs.h
<<_ACEOF
7969 #define CHAR_BIT $gcc_cv_c_nbby
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7975 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7976 if test "${ac_cv_c_bigendian+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 ac_cv_c_bigendian
=unknown
7980 # See if we're dealing with a universal compiler.
7981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 #ifndef __APPLE_CC__
7984 not a universal capable compiler
7989 if ac_fn_c_try_compile
"$LINENO"; then :
7991 # Check for potential -arch flags. It is not universal unless
7992 # there are at least two -arch flags with different values.
7995 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7996 if test -n "$ac_prev"; then
7998 i?
86 | x86_64 | ppc | ppc64
)
7999 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8002 ac_cv_c_bigendian
=universal
8008 elif test "x$ac_word" = "x-arch"; then
8013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 if test $ac_cv_c_bigendian = unknown
; then
8015 # See if sys/param.h defines the BYTE_ORDER macro.
8016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 #include <sys/types.h>
8019 #include <sys/param.h>
8024 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8025 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8034 if ac_fn_c_try_compile
"$LINENO"; then :
8035 # It does; now see whether it defined to BIG_ENDIAN or not.
8036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 #include <sys/types.h>
8039 #include <sys/param.h>
8044 #if BYTE_ORDER != BIG_ENDIAN
8052 if ac_fn_c_try_compile
"$LINENO"; then :
8053 ac_cv_c_bigendian
=yes
8055 ac_cv_c_bigendian
=no
8057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8061 if test $ac_cv_c_bigendian = unknown
; then
8062 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8070 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8078 if ac_fn_c_try_compile
"$LINENO"; then :
8079 # It does; now see whether it defined to _BIG_ENDIAN or not.
8080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8095 if ac_fn_c_try_compile
"$LINENO"; then :
8096 ac_cv_c_bigendian
=yes
8098 ac_cv_c_bigendian
=no
8100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8104 if test $ac_cv_c_bigendian = unknown
; then
8105 # Compile a test program.
8106 if test "$cross_compiling" = yes; then :
8107 # Try to guess by grepping values from an object file.
8108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 short int ascii_mm[] =
8111 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8112 short int ascii_ii[] =
8113 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8114 int use_ascii (int i) {
8115 return ascii_mm[i] + ascii_ii[i];
8117 short int ebcdic_ii[] =
8118 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8119 short int ebcdic_mm[] =
8120 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8121 int use_ebcdic (int i) {
8122 return ebcdic_mm[i] + ebcdic_ii[i];
8129 return use_ascii (foo) == use_ebcdic (foo);
8134 if ac_fn_c_try_compile
"$LINENO"; then :
8135 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8136 ac_cv_c_bigendian
=yes
8138 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8139 if test "$ac_cv_c_bigendian" = unknown
; then
8140 ac_cv_c_bigendian
=no
8142 # finding both strings is unlikely to happen, but who knows?
8143 ac_cv_c_bigendian
=unknown
8147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 $ac_includes_default
8156 /* Are we little or big endian? From Harbison&Steele. */
8160 char c[sizeof (long int)];
8163 return u.c[sizeof (long int) - 1] == 1;
8169 if ac_fn_c_try_run
"$LINENO"; then :
8170 ac_cv_c_bigendian
=no
8172 ac_cv_c_bigendian
=yes
8174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8181 $as_echo "$ac_cv_c_bigendian" >&6; }
8182 case $ac_cv_c_bigendian in #(
8184 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8190 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8194 as_fn_error
"unknown endianness
8195 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8204 # These libraries may be used by collect2.
8205 # We may need a special search path to get them linked.
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8207 $as_echo_n "checking for collect2 libraries... " >&6; }
8208 if test "${gcc_cv_collect2_libs+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8212 for libs
in '' -lld -lmld \
8213 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8214 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8220 /* Override any GCC internal prototype to avoid an error.
8221 Use char because int might match the return type of a GCC
8222 builtin and then its argument prototype would still apply. */
8235 if ac_fn_c_try_link
"$LINENO"; then :
8236 gcc_cv_collect2_libs
="$libs"; break
8238 rm -f core conftest.err conftest.
$ac_objext \
8239 conftest
$ac_exeext conftest.
$ac_ext
8242 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8245 $as_echo "$gcc_cv_collect2_libs" >&6; }
8246 case $gcc_cv_collect2_libs in
8248 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8252 # When building Ada code on Alpha, we need exc_resume which is usually in
8253 # -lexc. So test for it.
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8257 $as_echo_n "checking for library containing exc_resume... " >&6; }
8258 if test "${ac_cv_search_exc_resume+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 ac_func_search_save_LIBS
=$LIBS
8262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8275 return exc_resume ();
8280 for ac_lib
in '' exc
; do
8281 if test -z "$ac_lib"; then
8282 ac_res
="none required"
8285 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8287 if ac_fn_c_try_link
"$LINENO"; then :
8288 ac_cv_search_exc_resume
=$ac_res
8290 rm -f core conftest.err conftest.
$ac_objext \
8292 if test "${ac_cv_search_exc_resume+set}" = set; then :
8296 if test "${ac_cv_search_exc_resume+set}" = set; then :
8299 ac_cv_search_exc_resume
=no
8302 LIBS
=$ac_func_search_save_LIBS
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8305 $as_echo "$ac_cv_search_exc_resume" >&6; }
8306 ac_res
=$ac_cv_search_exc_resume
8307 if test "$ac_res" != no
; then :
8308 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8316 # Some systems put ldexp and frexp in libm instead of libc; assume
8317 # they're both in the same place. jcf-dump needs them.
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8321 $as_echo_n "checking for library containing ldexp... " >&6; }
8322 if test "${ac_cv_search_ldexp+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8325 ac_func_search_save_LIBS
=$LIBS
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8329 /* Override any GCC internal prototype to avoid an error.
8330 Use char because int might match the return type of a GCC
8331 builtin and then its argument prototype would still apply. */
8344 for ac_lib
in '' m
; do
8345 if test -z "$ac_lib"; then
8346 ac_res
="none required"
8349 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8351 if ac_fn_c_try_link
"$LINENO"; then :
8352 ac_cv_search_ldexp
=$ac_res
8354 rm -f core conftest.err conftest.
$ac_objext \
8356 if test "${ac_cv_search_ldexp+set}" = set; then :
8360 if test "${ac_cv_search_ldexp+set}" = set; then :
8363 ac_cv_search_ldexp
=no
8366 LIBS
=$ac_func_search_save_LIBS
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8369 $as_echo "$ac_cv_search_ldexp" >&6; }
8370 ac_res
=$ac_cv_search_ldexp
8371 if test "$ac_res" != no
; then :
8372 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8380 # Use <inttypes.h> only if it exists,
8381 # doesn't clash with <sys/types.h>, and declares intmax_t.
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8383 $as_echo_n "checking for inttypes.h... " >&6; }
8384 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <inttypes.h>
8399 if ac_fn_c_try_compile
"$LINENO"; then :
8400 gcc_cv_header_inttypes_h
=yes
8402 gcc_cv_header_inttypes_h
=no
8404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8408 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8409 if test $gcc_cv_header_inttypes_h = yes; then
8411 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8417 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8418 sysconf strsignal getrusage nl_langinfo \
8419 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8420 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
8422 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8423 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8424 eval as_val
=\$
$as_ac_var
8425 if test "x$as_val" = x
""yes; then :
8426 cat >>confdefs.h
<<_ACEOF
8427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8434 save_CPPFLAGS
="$CPPFLAGS"
8436 LIBS
="$LIBS $LIBELFLIBS"
8437 for ac_func
in elf_getshdrstrndx
8439 ac_fn_c_check_func
"$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8440 if test "x$ac_cv_func_elf_getshdrstrndx" = x
""yes; then :
8441 cat >>confdefs.h
<<_ACEOF
8442 #define HAVE_ELF_GETSHDRSTRNDX 1
8446 for ac_func
in elf_getshstrndx
8448 ac_fn_c_check_func
"$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8449 if test "x$ac_cv_func_elf_getshstrndx" = x
""yes; then :
8450 cat >>confdefs.h
<<_ACEOF
8451 #define HAVE_ELF_GETSHSTRNDX 1
8453 if test "$cross_compiling" = yes; then :
8454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8456 as_fn_error
"cannot run test program while cross compiling
8457 See \`config.log' for more details." "$LINENO" 5; }
8459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8465 return elf_getshstrndx (NULL, 0) == 0;
8468 if ac_fn_c_try_run
"$LINENO"; then :
8470 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8485 CPPFLAGS
="$save_CPPFLAGS"
8487 if test x
$ac_cv_func_mbstowcs = xyes
; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8489 $as_echo_n "checking whether mbstowcs works... " >&6; }
8490 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 if test "$cross_compiling" = yes; then :
8494 gcc_cv_func_mbstowcs_works
=yes
8496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8505 if ac_fn_c_try_run
"$LINENO"; then :
8506 gcc_cv_func_mbstowcs_works
=yes
8508 gcc_cv_func_mbstowcs_works
=no
8510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8516 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8517 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8519 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8524 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8525 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8529 cat >>confdefs.h
<<_ACEOF
8535 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8536 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8540 cat >>confdefs.h
<<_ACEOF
8541 #define caddr_t char *
8548 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8549 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8550 gcc_header_sys_mman_h
=yes
8552 gcc_header_sys_mman_h
=no
8555 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8556 if test "x$ac_cv_func_mmap" = x
""yes; then :
8562 if test "$gcc_header_sys_mman_h" != yes \
8563 ||
test "$gcc_func_mmap" != yes; then
8564 gcc_cv_func_mmap_file
=no
8565 gcc_cv_func_mmap_dev_zero
=no
8566 gcc_cv_func_mmap_anon
=no
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8569 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8570 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
8573 # Add a system to this blacklist if
8574 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8575 # memory area containing the same data that you'd get if you applied
8576 # read() to the same fd. The only system known to have a problem here
8577 # is VMS, where text files have record structure.
8580 gcc_cv_func_mmap_file
=no
;;
8582 gcc_cv_func_mmap_file
=yes;;
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8586 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8588 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8589 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8592 # Add a system to this blacklist if it has mmap() but /dev/zero
8593 # does not exist, or if mmapping /dev/zero does not give anonymous
8594 # zeroed pages with both the following properties:
8595 # 1. If you map N consecutive pages in with one call, and then
8596 # unmap any subset of those pages, the pages that were not
8597 # explicitly unmapped remain accessible.
8598 # 2. If you map two adjacent blocks of memory and then unmap them
8599 # both at once, they must both go away.
8600 # Systems known to be in this category are Windows (all variants),
8603 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8604 gcc_cv_func_mmap_dev_zero
=no
;;
8606 gcc_cv_func_mmap_dev_zero
=yes;;
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8610 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8612 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8614 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8615 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/mman.h>
8624 #ifndef MAP_ANONYMOUS
8625 #define MAP_ANONYMOUS MAP_ANON
8631 int n = MAP_ANONYMOUS;
8636 if ac_fn_c_try_compile
"$LINENO"; then :
8637 gcc_cv_decl_map_anon
=yes
8639 gcc_cv_decl_map_anon
=no
8641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8644 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8646 if test $gcc_cv_decl_map_anon = no
; then
8647 gcc_cv_func_mmap_anon
=no
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8650 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8651 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8654 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8655 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8656 # doesn't give anonymous zeroed pages with the same properties listed
8657 # above for use of /dev/zero.
8658 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8660 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8661 gcc_cv_func_mmap_anon
=no
;;
8663 gcc_cv_func_mmap_anon
=yes;;
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8667 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8671 if test $gcc_cv_func_mmap_file = yes; then
8673 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8676 if test $gcc_cv_func_mmap_dev_zero = yes; then
8678 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8681 if test $gcc_cv_func_mmap_anon = yes; then
8683 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8690 # Under VMS, vfork works very differently than on Unix. The standard test
8691 # won't work, and it isn't easily adaptable. It makes more sense to
8693 ac_cv_func_vfork_works
=yes
8696 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8697 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8701 cat >>confdefs.h
<<_ACEOF
8707 for ac_header
in vfork.h
8709 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8710 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8711 cat >>confdefs.h
<<_ACEOF
8712 #define HAVE_VFORK_H 1
8718 for ac_func
in fork vfork
8720 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8721 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8722 eval as_val
=\$
$as_ac_var
8723 if test "x$as_val" = x
""yes; then :
8724 cat >>confdefs.h
<<_ACEOF
8725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8731 if test "x$ac_cv_func_fork" = xyes
; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8733 $as_echo_n "checking for working fork... " >&6; }
8734 if test "${ac_cv_func_fork_works+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8737 if test "$cross_compiling" = yes; then :
8738 ac_cv_func_fork_works
=cross
8740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 $ac_includes_default
8747 /* By Ruediger Kuhlmann. */
8754 if ac_fn_c_try_run
"$LINENO"; then :
8755 ac_cv_func_fork_works
=yes
8757 ac_cv_func_fork_works
=no
8759 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8760 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8765 $as_echo "$ac_cv_func_fork_works" >&6; }
8768 ac_cv_func_fork_works
=$ac_cv_func_fork
8770 if test "x$ac_cv_func_fork_works" = xcross
; then
8772 *-*-amigaos* |
*-*-msdosdjgpp*)
8773 # Override, as these systems have only a dummy fork() stub
8774 ac_cv_func_fork_works
=no
8777 ac_cv_func_fork_works
=yes
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8781 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8783 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8784 if test "x$ac_cv_func_vfork" = xyes
; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8786 $as_echo_n "checking for working vfork... " >&6; }
8787 if test "${ac_cv_func_vfork_works+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8790 if test "$cross_compiling" = yes; then :
8791 ac_cv_func_vfork_works
=cross
8793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 /* Thanks to Paul Eggert for this test. */
8796 $ac_includes_default
8797 #include <sys/wait.h>
8801 /* On some sparc systems, changes by the child to local and incoming
8802 argument registers are propagated back to the parent. The compiler
8803 is told about this with #include <vfork.h>, but some compilers
8804 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8805 static variable whose address is put into a register that is
8806 clobbered by the vfork. */
8809 sparc_address_test (int arg)
8811 sparc_address_test (arg) int arg;
8832 pid_t parent = getpid ();
8835 sparc_address_test (0);
8840 /* Here is another test for sparc vfork register problems. This
8841 test uses lots of local variables, at least as many local
8842 variables as main has allocated so far including compiler
8843 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8844 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8845 reuse the register of parent for one of the local variables,
8846 since it will think that parent can't possibly be used any more
8847 in this routine. Assigning to the local variable will thus
8848 munge parent in the parent process. */
8850 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8851 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8852 /* Convince the compiler that p..p7 are live; otherwise, it might
8853 use the same hardware register for all 8 local variables. */
8854 if (p != p1 || p != p2 || p != p3 || p != p4
8855 || p != p5 || p != p6 || p != p7)
8858 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8859 from child file descriptors. If the child closes a descriptor
8860 before it execs or exits, this munges the parent's descriptor
8861 as well. Test for this by closing stdout in the child. */
8862 _exit(close(fileno(stdout)) != 0);
8867 while (wait(&status) != child)
8870 /* Was there some problem with vforking? */
8873 /* Did the child fail? (This shouldn't happen.) */
8876 /* Did the vfork/compiler bug occur? */
8877 || parent != getpid()
8879 /* Did the file descriptor bug occur? */
8880 || fstat(fileno(stdout), &st) != 0
8885 if ac_fn_c_try_run
"$LINENO"; then :
8886 ac_cv_func_vfork_works
=yes
8888 ac_cv_func_vfork_works
=no
8890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8896 $as_echo "$ac_cv_func_vfork_works" >&6; }
8899 if test "x$ac_cv_func_fork_works" = xcross
; then
8900 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8902 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8905 if test "x$ac_cv_func_vfork_works" = xyes
; then
8907 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8911 $as_echo "#define vfork fork" >>confdefs.h
8914 if test "x$ac_cv_func_fork_works" = xyes
; then
8916 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8922 if test "X$prefix" = "XNONE"; then
8923 acl_final_prefix
="$ac_default_prefix"
8925 acl_final_prefix
="$prefix"
8927 if test "X$exec_prefix" = "XNONE"; then
8928 acl_final_exec_prefix
='${prefix}'
8930 acl_final_exec_prefix
="$exec_prefix"
8932 acl_save_prefix
="$prefix"
8933 prefix
="$acl_final_prefix"
8934 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8935 prefix
="$acl_save_prefix"
8938 # Check whether --with-gnu-ld was given.
8939 if test "${with_gnu_ld+set}" = set; then :
8940 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8945 # Prepare PATH_SEPARATOR.
8946 # The user is always right.
8947 if test "${PATH_SEPARATOR+set}" != set; then
8948 echo "#! /bin/sh" >conf$$.sh
8949 echo "exit 0" >>conf$$.sh
8951 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8959 if test "$GCC" = yes; then
8960 # Check if gcc -print-prog-name=ld gives a path.
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8962 $as_echo_n "checking for ld used by GCC... " >&6; }
8965 # gcc leaves a trailing carriage return which upsets mingw
8966 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8968 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8971 # Accept absolute paths.
8972 [\\/]* |
[A-Za-z
]:[\\/]*)
8973 re_direlt
='/[^/][^/]*/\.\./'
8974 # Canonicalize the path of ld
8975 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8976 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8977 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8979 test -z "$LD" && LD
="$ac_prog"
8982 # If it fails, then pretend we aren't using GCC.
8986 # If it is relative, then search for the first ld in PATH.
8990 elif test "$with_gnu_ld" = yes; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8992 $as_echo_n "checking for GNU ld... " >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8995 $as_echo_n "checking for non-GNU ld... " >&6; }
8997 if test "${acl_cv_path_LD+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 if test -z "$LD"; then
9001 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9002 for ac_dir
in $PATH; do
9003 test -z "$ac_dir" && ac_dir
=.
9004 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9005 acl_cv_path_LD
="$ac_dir/$ac_prog"
9006 # Check to see if the program is GNU ld. I'd rather use --version,
9007 # but apparently some GNU ld's only accept -v.
9008 # Break only if it was the GNU/non-GNU ld that we prefer.
9009 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9010 test "$with_gnu_ld" != no
&& break
9012 test "$with_gnu_ld" != yes && break
9018 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9022 LD
="$acl_cv_path_LD"
9023 if test -n "$LD"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9025 $as_echo "$LD" >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9030 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9033 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9036 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9037 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9038 acl_cv_prog_gnu_ld
=yes
9040 acl_cv_prog_gnu_ld
=no
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9044 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9045 with_gnu_ld
=$acl_cv_prog_gnu_ld
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9050 $as_echo_n "checking for shared library run path origin... " >&6; }
9051 if test "${acl_cv_rpath+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9055 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9056 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9063 $as_echo "$acl_cv_rpath" >&6; }
9065 libext
="$acl_cv_libext"
9066 shlibext
="$acl_cv_shlibext"
9067 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9068 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9069 hardcode_direct
="$acl_cv_hardcode_direct"
9070 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9071 # Check whether --enable-rpath was given.
9072 if test "${enable_rpath+set}" = set; then :
9073 enableval
=$enable_rpath; :
9087 acl_save_prefix
="$prefix"
9088 prefix
="$acl_final_prefix"
9089 acl_save_exec_prefix
="$exec_prefix"
9090 exec_prefix
="$acl_final_exec_prefix"
9092 eval additional_includedir
=\"$includedir\"
9093 eval additional_libdir
=\"$libdir\"
9095 exec_prefix
="$acl_save_exec_prefix"
9096 prefix
="$acl_save_prefix"
9099 # Check whether --with-libiconv-prefix was given.
9100 if test "${with_libiconv_prefix+set}" = set; then :
9101 withval
=$with_libiconv_prefix;
9102 if test "X$withval" = "Xno"; then
9105 if test "X$withval" = "X"; then
9107 acl_save_prefix
="$prefix"
9108 prefix
="$acl_final_prefix"
9109 acl_save_exec_prefix
="$exec_prefix"
9110 exec_prefix
="$acl_final_exec_prefix"
9112 eval additional_includedir
=\"$includedir\"
9113 eval additional_libdir
=\"$libdir\"
9115 exec_prefix
="$acl_save_exec_prefix"
9116 prefix
="$acl_save_prefix"
9119 additional_includedir
="$withval/include"
9120 additional_libdir
="$withval/lib"
9131 names_already_handled
=
9132 names_next_round
='iconv '
9133 while test -n "$names_next_round"; do
9134 names_this_round
="$names_next_round"
9136 for name
in $names_this_round; do
9138 for n
in $names_already_handled; do
9139 if test "$n" = "$name"; then
9144 if test -z "$already_handled"; then
9145 names_already_handled
="$names_already_handled $name"
9146 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9147 eval value
=\"\
$HAVE_LIB$uppername\"
9148 if test -n "$value"; then
9149 if test "$value" = yes; then
9150 eval value
=\"\
$LIB$uppername\"
9151 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9152 eval value
=\"\
$LTLIB$uppername\"
9153 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9162 if test $use_additional = yes; then
9163 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9164 found_dir
="$additional_libdir"
9165 found_so
="$additional_libdir/lib$name.$shlibext"
9166 if test -f "$additional_libdir/lib$name.la"; then
9167 found_la
="$additional_libdir/lib$name.la"
9170 if test -f "$additional_libdir/lib$name.$libext"; then
9171 found_dir
="$additional_libdir"
9172 found_a
="$additional_libdir/lib$name.$libext"
9173 if test -f "$additional_libdir/lib$name.la"; then
9174 found_la
="$additional_libdir/lib$name.la"
9179 if test "X$found_dir" = "X"; then
9180 for x
in $LDFLAGS $LTLIBICONV; do
9182 acl_save_prefix
="$prefix"
9183 prefix
="$acl_final_prefix"
9184 acl_save_exec_prefix
="$exec_prefix"
9185 exec_prefix
="$acl_final_exec_prefix"
9187 exec_prefix
="$acl_save_exec_prefix"
9188 prefix
="$acl_save_prefix"
9192 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9193 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9195 found_so
="$dir/lib$name.$shlibext"
9196 if test -f "$dir/lib$name.la"; then
9197 found_la
="$dir/lib$name.la"
9200 if test -f "$dir/lib$name.$libext"; then
9202 found_a
="$dir/lib$name.$libext"
9203 if test -f "$dir/lib$name.la"; then
9204 found_la
="$dir/lib$name.la"
9210 if test "X$found_dir" != "X"; then
9215 if test "X$found_dir" != "X"; then
9216 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9217 if test "X$found_so" != "X"; then
9218 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9219 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9222 for x
in $ltrpathdirs; do
9223 if test "X$x" = "X$found_dir"; then
9228 if test -z "$haveit"; then
9229 ltrpathdirs
="$ltrpathdirs $found_dir"
9231 if test "$hardcode_direct" = yes; then
9232 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9234 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9235 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9237 for x
in $rpathdirs; do
9238 if test "X$x" = "X$found_dir"; then
9243 if test -z "$haveit"; then
9244 rpathdirs
="$rpathdirs $found_dir"
9248 for x
in $LDFLAGS $LIBICONV; do
9250 acl_save_prefix
="$prefix"
9251 prefix
="$acl_final_prefix"
9252 acl_save_exec_prefix
="$exec_prefix"
9253 exec_prefix
="$acl_final_exec_prefix"
9255 exec_prefix
="$acl_save_exec_prefix"
9256 prefix
="$acl_save_prefix"
9258 if test "X$x" = "X-L$found_dir"; then
9263 if test -z "$haveit"; then
9264 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9266 if test "$hardcode_minus_L" != no
; then
9267 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9269 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9275 if test "X$found_a" != "X"; then
9276 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9278 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9281 additional_includedir
=
9282 case "$found_dir" in
9284 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9285 additional_includedir
="$basedir/include"
9288 if test "X$additional_includedir" != "X"; then
9289 if test "X$additional_includedir" != "X/usr/include"; then
9291 if test "X$additional_includedir" = "X/usr/local/include"; then
9292 if test -n "$GCC"; then
9294 linux
*) haveit
=yes;;
9298 if test -z "$haveit"; then
9299 for x
in $CPPFLAGS $INCICONV; do
9301 acl_save_prefix
="$prefix"
9302 prefix
="$acl_final_prefix"
9303 acl_save_exec_prefix
="$exec_prefix"
9304 exec_prefix
="$acl_final_exec_prefix"
9306 exec_prefix
="$acl_save_exec_prefix"
9307 prefix
="$acl_save_prefix"
9309 if test "X$x" = "X-I$additional_includedir"; then
9314 if test -z "$haveit"; then
9315 if test -d "$additional_includedir"; then
9316 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9322 if test -n "$found_la"; then
9323 save_libdir
="$libdir"
9325 */* |
*\\*) .
"$found_la" ;;
9326 *) .
"./$found_la" ;;
9328 libdir
="$save_libdir"
9329 for dep
in $dependency_libs; do
9332 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9333 if test "X$additional_libdir" != "X/usr/lib"; then
9335 if test "X$additional_libdir" = "X/usr/local/lib"; then
9336 if test -n "$GCC"; then
9338 linux
*) haveit
=yes;;
9342 if test -z "$haveit"; then
9344 for x
in $LDFLAGS $LIBICONV; do
9346 acl_save_prefix
="$prefix"
9347 prefix
="$acl_final_prefix"
9348 acl_save_exec_prefix
="$exec_prefix"
9349 exec_prefix
="$acl_final_exec_prefix"
9351 exec_prefix
="$acl_save_exec_prefix"
9352 prefix
="$acl_save_prefix"
9354 if test "X$x" = "X-L$additional_libdir"; then
9359 if test -z "$haveit"; then
9360 if test -d "$additional_libdir"; then
9361 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9365 for x
in $LDFLAGS $LTLIBICONV; do
9367 acl_save_prefix
="$prefix"
9368 prefix
="$acl_final_prefix"
9369 acl_save_exec_prefix
="$exec_prefix"
9370 exec_prefix
="$acl_final_exec_prefix"
9372 exec_prefix
="$acl_save_exec_prefix"
9373 prefix
="$acl_save_prefix"
9375 if test "X$x" = "X-L$additional_libdir"; then
9380 if test -z "$haveit"; then
9381 if test -d "$additional_libdir"; then
9382 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9389 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9390 if test "$enable_rpath" != no
; then
9392 for x
in $rpathdirs; do
9393 if test "X$x" = "X$dir"; then
9398 if test -z "$haveit"; then
9399 rpathdirs
="$rpathdirs $dir"
9402 for x
in $ltrpathdirs; do
9403 if test "X$x" = "X$dir"; then
9408 if test -z "$haveit"; then
9409 ltrpathdirs
="$ltrpathdirs $dir"
9414 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9417 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9420 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9421 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9427 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9428 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9434 if test "X$rpathdirs" != "X"; then
9435 if test -n "$hardcode_libdir_separator"; then
9437 for found_dir
in $rpathdirs; do
9438 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9440 acl_save_libdir
="$libdir"
9442 eval flag
=\"$hardcode_libdir_flag_spec\"
9443 libdir
="$acl_save_libdir"
9444 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9446 for found_dir
in $rpathdirs; do
9447 acl_save_libdir
="$libdir"
9449 eval flag
=\"$hardcode_libdir_flag_spec\"
9450 libdir
="$acl_save_libdir"
9451 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9455 if test "X$ltrpathdirs" != "X"; then
9456 for found_dir
in $ltrpathdirs; do
9457 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9467 am_save_CPPFLAGS
="$CPPFLAGS"
9469 for element
in $INCICONV; do
9471 for x
in $CPPFLAGS; do
9473 acl_save_prefix
="$prefix"
9474 prefix
="$acl_final_prefix"
9475 acl_save_exec_prefix
="$exec_prefix"
9476 exec_prefix
="$acl_final_exec_prefix"
9478 exec_prefix
="$acl_save_exec_prefix"
9479 prefix
="$acl_save_prefix"
9481 if test "X$x" = "X$element"; then
9486 if test -z "$haveit"; then
9487 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9493 $as_echo_n "checking for iconv... " >&6; }
9494 if test "${am_cv_func_iconv+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9498 am_cv_func_iconv
="no, consider installing GNU libiconv"
9500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9507 iconv_t cd = iconv_open("","");
9508 iconv(cd,NULL,NULL,NULL,NULL);
9514 if ac_fn_c_try_link
"$LINENO"; then :
9515 am_cv_func_iconv
=yes
9517 rm -f core conftest.err conftest.
$ac_objext \
9518 conftest
$ac_exeext conftest.
$ac_ext
9519 if test "$am_cv_func_iconv" != yes; then
9520 am_save_LIBS
="$LIBS"
9521 LIBS
="$LIBS $LIBICONV"
9522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9529 iconv_t cd = iconv_open("","");
9530 iconv(cd,NULL,NULL,NULL,NULL);
9536 if ac_fn_c_try_link
"$LINENO"; then :
9538 am_cv_func_iconv
=yes
9540 rm -f core conftest.err conftest.
$ac_objext \
9541 conftest
$ac_exeext conftest.
$ac_ext
9542 LIBS
="$am_save_LIBS"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9547 $as_echo "$am_cv_func_iconv" >&6; }
9548 if test "$am_cv_func_iconv" = yes; then
9550 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9553 if test "$am_cv_lib_iconv" = yes; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9555 $as_echo_n "checking how to link with libiconv... " >&6; }
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9557 $as_echo "$LIBICONV" >&6; }
9559 CPPFLAGS
="$am_save_CPPFLAGS"
9566 if test "$am_cv_func_iconv" = yes; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9568 $as_echo_n "checking for iconv declaration... " >&6; }
9569 if test "${am_cv_proto_iconv+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9582 #if defined(__STDC__) || defined(__cplusplus)
9583 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9596 if ac_fn_c_try_compile
"$LINENO"; then :
9597 am_cv_proto_iconv_arg1
=""
9599 am_cv_proto_iconv_arg1
="const"
9601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9602 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);"
9605 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9607 }$am_cv_proto_iconv" >&5
9609 }$am_cv_proto_iconv" >&6; }
9611 cat >>confdefs.h
<<_ACEOF
9612 #define ICONV_CONST $am_cv_proto_iconv_arg1
9617 # Until we have in-tree GNU iconv:
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9623 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9624 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9638 if ac_fn_c_try_link
"$LINENO"; then :
9639 am_cv_val_LC_MESSAGES
=yes
9641 am_cv_val_LC_MESSAGES
=no
9643 rm -f core conftest.err conftest.
$ac_objext \
9644 conftest
$ac_exeext conftest.
$ac_ext
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9647 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9648 if test $am_cv_val_LC_MESSAGES = yes; then
9650 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9657 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9658 if test "${am_cv_langinfo_codeset+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <langinfo.h>
9667 char* cs = nl_langinfo(CODESET);
9672 if ac_fn_c_try_link
"$LINENO"; then :
9673 am_cv_langinfo_codeset
=yes
9675 am_cv_langinfo_codeset
=no
9677 rm -f core conftest.err conftest.
$ac_objext \
9678 conftest
$ac_exeext conftest.
$ac_ext
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9682 $as_echo "$am_cv_langinfo_codeset" >&6; }
9683 if test $am_cv_langinfo_codeset = yes; then
9685 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9690 # We will need to find libiberty.h and ansidecl.h
9691 saved_CFLAGS
="$CFLAGS"
9692 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9693 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9694 strsignal strstr strverscmp \
9695 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9696 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
9698 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9700 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9701 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9702 $as_echo_n "(cached) " >&6
9704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 #define $ac_tr_decl 1
9709 #include "ansidecl.h"
9716 char *(*pfn) = (char *(*)) $ac_func ;
9722 if ac_fn_c_try_compile
"$LINENO"; then :
9723 eval "gcc_cv_have_decl_$ac_func=yes"
9725 eval "gcc_cv_have_decl_$ac_func=no"
9727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9730 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9732 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9733 #define $ac_tr_decl 1
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9739 #define $ac_tr_decl 0
9747 for ac_func
in getrlimit setrlimit getrusage
9749 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9751 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9752 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9753 $as_echo_n "(cached) " >&6
9755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9758 #define $ac_tr_decl 1
9760 #include "ansidecl.h"
9762 #ifdef HAVE_SYS_RESOURCE_H
9763 #include <sys/resource.h>
9771 char *(*pfn) = (char *(*)) $ac_func ;
9777 if ac_fn_c_try_compile
"$LINENO"; then :
9778 eval "gcc_cv_have_decl_$ac_func=yes"
9780 eval "gcc_cv_have_decl_$ac_func=no"
9782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9785 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9787 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9788 #define $ac_tr_decl 1
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9794 #define $ac_tr_decl 0
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 #include "ansidecl.h"
9807 #ifdef HAVE_SYS_RESOURCE_H
9808 #include <sys/resource.h>
9819 if ac_fn_c_try_compile
"$LINENO"; then :
9823 $as_echo "#define rlim_t long" >>confdefs.h
9826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9828 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9829 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9830 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9831 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9832 for ac_func
in ldgetname
9834 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9836 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9837 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9838 $as_echo_n "(cached) " >&6
9840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9843 #define $ac_tr_decl 1
9845 #include "ansidecl.h"
9858 char *(*pfn) = (char *(*)) $ac_func ;
9864 if ac_fn_c_try_compile
"$LINENO"; then :
9865 eval "gcc_cv_have_decl_$ac_func=yes"
9867 eval "gcc_cv_have_decl_$ac_func=no"
9869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9872 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9874 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9875 #define $ac_tr_decl 1
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9881 #define $ac_tr_decl 0
9889 for ac_func
in times
9891 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9893 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9894 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9895 $as_echo_n "(cached) " >&6
9897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9900 #define $ac_tr_decl 1
9902 #include "ansidecl.h"
9904 #ifdef HAVE_SYS_TIMES_H
9905 #include <sys/times.h>
9913 char *(*pfn) = (char *(*)) $ac_func ;
9919 if ac_fn_c_try_compile
"$LINENO"; then :
9920 eval "gcc_cv_have_decl_$ac_func=yes"
9922 eval "gcc_cv_have_decl_$ac_func=no"
9924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9927 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9930 #define $ac_tr_decl 1
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9936 #define $ac_tr_decl 0
9944 for ac_func
in sigaltstack
9946 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9948 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9949 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9950 $as_echo_n "(cached) " >&6
9952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 #define $ac_tr_decl 1
9957 #include "ansidecl.h"
9966 char *(*pfn) = (char *(*)) $ac_func ;
9972 if ac_fn_c_try_compile
"$LINENO"; then :
9973 eval "gcc_cv_have_decl_$ac_func=yes"
9975 eval "gcc_cv_have_decl_$ac_func=no"
9977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9980 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9982 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9983 #define $ac_tr_decl 1
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9989 #define $ac_tr_decl 0
9997 # More time-related stuff.
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9999 $as_echo_n "checking for struct tms... " >&6; }
10000 if test "${ac_cv_struct_tms+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10007 #include "ansidecl.h"
10008 #include "system.h"
10009 #ifdef HAVE_SYS_TIMES_H
10010 #include <sys/times.h>
10021 if ac_fn_c_try_compile
"$LINENO"; then :
10022 ac_cv_struct_tms
=yes
10024 ac_cv_struct_tms
=no
10026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10029 $as_echo "$ac_cv_struct_tms" >&6; }
10030 if test $ac_cv_struct_tms = yes; then
10032 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10036 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10037 # revisit after autoconf 2.50.
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10039 $as_echo_n "checking for clock_t... " >&6; }
10040 if test "${gcc_cv_type_clock_t+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 #include "ansidecl.h"
10048 #include "system.h"
10058 if ac_fn_c_try_compile
"$LINENO"; then :
10059 gcc_cv_type_clock_t
=yes
10061 gcc_cv_type_clock_t
=no
10063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10066 $as_echo "$gcc_cv_type_clock_t" >&6; }
10067 if test $gcc_cv_type_clock_t = yes; then
10069 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10073 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10074 CFLAGS
="$saved_CFLAGS"
10076 # Check whether --enable-initfini-array was given.
10077 if test "${enable_initfini_array+set}" = set; then :
10078 enableval
=$enable_initfini_array;
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10082 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10083 if test "${gcc_cv_initfini_array+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10086 if test "$cross_compiling" = yes; then :
10087 gcc_cv_initfini_array
=no
10089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10093 int main (void) { return x; }
10094 int foo (void) { x = 0; }
10095 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10097 if ac_fn_c_try_run
"$LINENO"; then :
10098 gcc_cv_initfini_array
=yes
10100 gcc_cv_initfini_array
=no
10102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10108 $as_echo "$gcc_cv_initfini_array" >&6; }
10109 enable_initfini_array
=$gcc_cv_initfini_array
10113 if test $enable_initfini_array = yes; then
10115 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10119 # mkdir takes a single argument on some systems.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10121 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10122 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10128 #include <sys/types.h>
10129 #ifdef HAVE_SYS_STAT_H
10130 # include <sys/stat.h>
10132 #ifdef HAVE_UNISTD_H
10133 # include <unistd.h>
10135 #ifdef HAVE_DIRECT_H
10136 # include <direct.h>
10146 if ac_fn_c_try_compile
"$LINENO"; then :
10147 gcc_cv_mkdir_takes_one_arg
=no
10149 gcc_cv_mkdir_takes_one_arg
=yes
10151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10154 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10155 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10157 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10168 # With Setjmp/Longjmp based exception handling.
10169 # Check whether --enable-sjlj-exceptions was given.
10170 if test "${enable_sjlj_exceptions+set}" = set; then :
10171 enableval
=$enable_sjlj_exceptions; case $target in
10173 if test $enableval != yes; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10175 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10180 force_sjlj_exceptions
=yes
10184 force_sjlj_exceptions
=yes
10188 force_sjlj_exceptions
=no
10193 if test $force_sjlj_exceptions = yes; then
10194 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10196 cat >>confdefs.h
<<_ACEOF
10197 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10202 # For platforms with the unwind ABI which includes an unwind library,
10203 # libunwind, we can choose to use the system libunwind.
10204 # config.gcc also contains tests of with_system_libunwind.
10207 # Check whether --with-system-libunwind was given.
10208 if test "${with_system_libunwind+set}" = set; then :
10209 withval
=$with_system_libunwind;
10212 # If system-libunwind was not specifically set, pick a default setting.
10213 if test x
$with_system_libunwind = x
; then
10215 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10216 *) with_system_libunwind
=no
;;
10219 # Based on system-libunwind and target, do we have ipinfo?
10220 if test x
$with_system_libunwind = xyes
; then
10222 ia64-
*-*) have_unwind_getipinfo
=no
;;
10223 *) have_unwind_getipinfo
=yes ;;
10226 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10229 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10230 *) have_unwind_getipinfo
=yes ;;
10235 if test x
$have_unwind_getipinfo = xyes
; then
10237 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10242 # --------------------------------------------------------
10243 # Build, host, and target specific configuration fragments
10244 # --------------------------------------------------------
10246 # Collect build-machine-specific information.
10247 .
${srcdir}/config.build
10249 # Collect host-machine-specific information.
10250 .
${srcdir}/config.
host
10254 # Collect target-machine-specific information.
10255 .
${srcdir}/config.gcc
10257 extra_objs
="${host_extra_objs} ${extra_objs}"
10258 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10260 # Default the target-machine variables that were not explicitly set.
10261 if test x
"$tm_file" = x
10262 then tm_file
=$cpu_type/$cpu_type.h
; fi
10264 if test x
"$extra_headers" = x
10265 then extra_headers
=; fi
10267 if test x
$md_file = x
10268 then md_file
=$cpu_type/$cpu_type.md
; fi
10270 if test x
$out_file = x
10271 then out_file
=$cpu_type/$cpu_type.c
; fi
10273 if test x
"$tmake_file" = x
10274 then tmake_file
=$cpu_type/t-
$cpu_type
10277 if test x
"$dwarf2" = xyes
10278 then tm_file
="$tm_file tm-dwarf2.h"
10281 # Say what files are being used for the output code and MD file.
10282 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10283 echo "Using \`$srcdir/config/$md_file' as machine description file."
10285 # If any of the xm_file variables contain nonexistent files, warn
10286 # about them and drop them.
10289 for x
in $build_xm_file; do
10290 if test -f $srcdir/config
/$x
10292 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10293 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10296 build_xm_file
="$bx"
10299 for x
in $host_xm_file; do
10300 if test -f $srcdir/config
/$x
10302 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10303 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10309 for x
in $xm_file; do
10310 if test -f $srcdir/config
/$x
10312 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10313 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10319 for f
in $tm_file; do
10322 if test $count = ax
; then
10323 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10325 echo "Using the following target machine macro files:"
10326 for f
in $tm_file; do
10327 echo " $srcdir/config/$f"
10331 if test x
$need_64bit_hwint = xyes
; then
10333 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10337 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10339 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10344 for f
in $host_xm_file; do
10347 if test $count = a
; then
10349 elif test $count = ax
; then
10350 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10352 echo "Using the following host machine macro files:"
10353 for f
in $host_xm_file; do
10354 echo " $srcdir/config/$f"
10357 echo "Using ${out_host_hook_obj} for host machine hooks."
10359 if test "$host_xm_file" != "$build_xm_file"; then
10361 for f
in $build_xm_file; do
10364 if test $count = a
; then
10366 elif test $count = ax
; then
10367 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10369 echo "Using the following build machine macro files:"
10370 for f
in $build_xm_file; do
10371 echo " $srcdir/config/$f"
10377 powerpc
*-*-darwin*)
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10379 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10380 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 #include <sys/cdefs.h>
10387 #include <sys/signal.h>
10388 #include <ucontext.h>
10389 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10392 if ac_fn_c_try_compile
"$LINENO"; then :
10393 gcc_cv_mcontext_underscores
=no
10395 gcc_cv_mcontext_underscores
=yes
10397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10400 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10401 if test $gcc_cv_mcontext_underscores = yes; then
10403 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10413 # Check if a valid thread package
10414 case ${enable_threads} in
10417 target_thread_file
='single'
10421 target_thread_file
='single'
10423 aix | dce | gnat | irix | posix | posix95 | rtems | \
10424 single | solaris | vxworks | win32 | mipssde
)
10425 target_thread_file
=${enable_threads}
10428 echo "${enable_threads} is an unknown thread package" 1>&2
10433 if test x
${thread_file} = x
; then
10434 # No thread file set by target-specific clauses in config.gcc,
10435 # so use file chosen by default logic above
10436 thread_file
=${target_thread_file}
10439 # Make gthr-default.h if we have a thread file.
10441 if test $thread_file != single
; then
10442 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10443 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10444 rm -f gthr-default.h-t
10446 mv -f gthr-default.h-t gthr-default.h
10448 gthread_flags
=-DHAVE_GTHR_DEFAULT
10457 if test x
$enable___cxa_atexit = xyes || \
10458 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10459 if test x
$host = x
$target; then
10461 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10462 # keyed to flag_use_cxa_atexit
10467 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10468 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10471 echo "__cxa_atexit can't be enabled on this target"
10477 # We can't check for __cxa_atexit when building a cross, so assume
10481 if test x
$use_cxa_atexit = xyes
; then
10483 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10488 # Look for a file containing extra machine modes.
10489 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10490 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10493 cat >>confdefs.h
<<_ACEOF
10494 #define EXTRA_MODES_FILE "config/$extra_modes"
10499 # Convert extra_options into a form suitable for Makefile use.
10501 for f
in $extra_options; do
10502 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10506 # auto-host.h is the file containing items generated by autoconf and is
10507 # the first file included by config.h.
10508 # If host=build, it is correct to have bconfig include auto-host.h
10509 # as well. If host!=build, we are in error and need to do more
10510 # work to find out the build config parameters.
10511 if test x
$host = x
$build
10513 build_auto
=auto-host.h
10515 # We create a subdir, then run autoconf in the subdir.
10516 # To prevent recursion we set host and build for the new
10517 # invocation of configure to the build for this invocation
10524 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10525 *) realsrcdir
=..
/${srcdir};;
10527 saved_CFLAGS
="${CFLAGS}"
10528 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10529 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10530 ${realsrcdir}/configure \
10531 --enable-languages=${enable_languages-all} \
10532 --target=$target_alias --host=$build_alias --build=$build_alias
10533 CFLAGS
="${saved_CFLAGS}"
10535 # We just finished tests for the build machine, so rename
10536 # the file auto-build.h in the gcc directory.
10537 mv auto-host.h ..
/auto-build.h
10540 build_auto
=auto-build.h
10544 tm_file
="${tm_file} defaults.h"
10545 tm_p_file
="${tm_p_file} tm-preds.h"
10546 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10547 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10548 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10549 # put this back in temporarily.
10550 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10556 # Compile in configure arguments.
10557 if test -f configargs.h
; then
10558 # Being re-configured.
10559 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10560 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10562 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10565 # Double all backslashes and backslash all quotes to turn
10566 # gcc_config_arguments into a C string.
10567 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10568 $gcc_config_arguments
10570 gcc_config_arguments_str
=`cat conftest.out`
10573 cat > configargs.h
<<EOF
10574 /* Generated automatically. */
10575 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10576 static const char thread_model[] = "$thread_file";
10578 static const struct {
10579 const char *name, *value;
10580 } configure_default_options[] = $configure_default_options;
10583 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10584 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10585 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10586 if test -f $srcdir/REVISION
; then
10587 gcc_REVISION
=`cat $srcdir/REVISION`
10591 cat > plugin-version.h
<<EOF
10592 #include "configargs.h"
10594 static char basever[] = "$gcc_BASEVER";
10595 static char datestamp[] = "$gcc_DATESTAMP";
10596 static char devphase[] = "$gcc_DEVPHASE";
10597 static char revision[] = "$gcc_REVISION";
10599 /* FIXME plugins: We should make the version information more precise.
10600 One way to do is to add a checksum. */
10602 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10603 devphase, revision,
10604 configuration_arguments};
10607 # Internationalization
10608 # If we haven't got the data from the intl directory,
10609 # assume NLS is disabled.
10618 if test -f ..
/intl
/config.intl
; then
10619 . ..
/intl
/config.intl
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10622 $as_echo_n "checking whether NLS is requested... " >&6; }
10623 if test x
"$USE_NLS" != xyes
; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; }
10630 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10634 $as_echo_n "checking for catalogs to be installed... " >&6; }
10635 # Look for .po and .gmo files in the source directory.
10638 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10639 # If there aren't any .gmo files the shell will give us the
10640 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10642 case "$cat" in *\
**)
10645 # The quadruple backslash is collapsed to a double backslash
10646 # by the backticks, then collapsed again by the double quotes,
10647 # leaving us with one backslash in the sed expression (right
10648 # before the dot that mustn't act as a wildcard).
10649 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10650 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10651 # The user is allowed to set LINGUAS to a list of languages to
10652 # install catalogs for. If it's empty that means "all of them."
10653 if test "x$LINGUAS" = x
; then
10654 CATALOGS
="$CATALOGS $cat"
10655 XLINGUAS
="$XLINGUAS $lang"
10657 case "$LINGUAS" in *$lang*)
10658 CATALOGS
="$CATALOGS $cat"
10659 XLINGUAS
="$XLINGUAS $lang"
10664 LINGUAS
="$XLINGUAS"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10666 $as_echo "$LINGUAS" >&6; }
10679 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10680 # -liconv on the link line twice.
10681 case "$LIBINTL" in *$LIBICONV*)
10685 # Check whether --enable-secureplt was given.
10686 if test "${enable_secureplt+set}" = set; then :
10687 enableval
=$enable_secureplt;
10691 # Check whether --enable-leading-mingw64-underscores was given.
10692 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10693 enableval
=$enable_leading_mingw64_underscores;
10696 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
10698 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10702 # Check whether --enable-cld was given.
10703 if test "${enable_cld+set}" = set; then :
10704 enableval
=$enable_cld;
10710 # Windows32 Registry support for specifying GCC installation paths.
10711 # Check whether --enable-win32-registry was given.
10712 if test "${enable_win32_registry+set}" = set; then :
10713 enableval
=$enable_win32_registry;
10718 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10719 if test "x$enable_win32_registry" != xno
; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10721 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10722 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
10725 ac_func_search_save_LIBS
=$LIBS
10726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10735 char RegOpenKeyExA ();
10739 return RegOpenKeyExA ();
10744 for ac_lib
in '' advapi32
; do
10745 if test -z "$ac_lib"; then
10746 ac_res
="none required"
10749 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10751 if ac_fn_c_try_link
"$LINENO"; then :
10752 ac_cv_search_RegOpenKeyExA
=$ac_res
10754 rm -f core conftest.err conftest.
$ac_objext \
10756 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10760 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10763 ac_cv_search_RegOpenKeyExA
=no
10765 rm conftest.
$ac_ext
10766 LIBS
=$ac_func_search_save_LIBS
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10769 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10770 ac_res
=$ac_cv_search_RegOpenKeyExA
10771 if test "$ac_res" != no
; then :
10772 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10775 enable_win32_registry
=no
10780 if test "x$enable_win32_registry" != xno
; then
10782 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10785 if test "x$enable_win32_registry" != xyes \
10786 && test "x$enable_win32_registry" != x
; then
10788 cat >>confdefs.h
<<_ACEOF
10789 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10797 # Get an absolute path to the GCC top-level source directory
10798 holddir
=`${PWDCMD-pwd}`
10800 topdir
=`${PWDCMD-pwd}`
10803 # Conditionalize the makefile for this host machine.
10805 for f
in ${host_xmake_file}
10807 if test -f ${srcdir}/config
/$f
10809 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10813 # Conditionalize the makefile for this target machine.
10815 for f
in ${tmake_file}
10817 if test -f ${srcdir}/config
/$f
10819 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10822 tmake_file
="${tmake_file_}"
10824 out_object_file
=`basename $out_file .c`.o
10826 tm_file_list
="options.h"
10827 tm_include_list
="options.h"
10828 for f
in $tm_file; do
10831 f
=`echo $f | sed 's/^..//'`
10832 tm_file_list
="${tm_file_list} $f"
10833 tm_include_list
="${tm_include_list} $f"
10836 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10837 tm_include_list
="${tm_include_list} $f"
10840 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10841 tm_include_list
="${tm_include_list} config/$f"
10848 for f
in $tm_p_file; do
10851 tm_p_file_list
="${tm_p_file_list} $f"
10852 tm_p_include_list
="${tm_p_include_list} $f"
10855 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10856 tm_p_include_list
="${tm_p_include_list} config/$f"
10862 for f
in $xm_file; do
10865 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10866 xm_include_list
="${xm_include_list} $f"
10869 xm_file_list
="${xm_file_list} $f"
10870 xm_include_list
="${xm_include_list} $f"
10873 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10874 xm_include_list
="${xm_include_list} config/$f"
10880 host_xm_include_list
=
10881 for f
in $host_xm_file; do
10884 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10885 host_xm_include_list
="${host_xm_include_list} $f"
10888 host_xm_file_list
="${host_xm_file_list} $f"
10889 host_xm_include_list
="${host_xm_include_list} $f"
10892 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10893 host_xm_include_list
="${host_xm_include_list} config/$f"
10898 build_xm_file_list
=
10899 for f
in $build_xm_file; do
10902 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10903 build_xm_include_list
="${build_xm_include_list} $f"
10905 auto-build.h | auto-host.h
)
10906 build_xm_file_list
="${build_xm_file_list} $f"
10907 build_xm_include_list
="${build_xm_include_list} $f"
10910 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10911 build_xm_include_list
="${build_xm_include_list} config/$f"
10916 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10917 # cross-compiler which does not use the native headers and libraries.
10918 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10921 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10923 if test "x$with_build_sysroot" != x
; then
10924 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10926 # This value is used, even on a native system, because
10927 # CROSS_SYSTEM_HEADER_DIR is just
10928 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10929 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10932 if test x
$host != x
$target
10934 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10936 SYSTEM_HEADER_DIR
=$build_system_header_dir
10937 case "$host","$target" in
10938 # Darwin crosses can use the host system's libraries and headers,
10939 # because of the fat library support. Of course, it must be the
10940 # same version of Darwin on both sides. Allow the user to
10941 # just say --target=foo-darwin without a version number to mean
10942 # "the version on this system".
10943 *-*-darwin*,*-*-darwin*)
10944 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10945 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10946 if test $hostos = $targetos -o $targetos = darwin
; then
10948 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10953 i?
86-*-*,x86_64-
*-* \
10954 | powerpc
*-*-*,powerpc64
*-*-*)
10955 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10957 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10958 SYSTEM_HEADER_DIR
=$build_system_header_dir
10961 # If this is a cross-compiler that does not
10962 # have its own set of headers then define
10965 # If this is using newlib, without having the headers available now,
10966 # then define inhibit_libc in LIBGCC2_CFLAGS.
10967 # This prevents libgcc2 from containing any code which requires libc
10969 : ${inhibit_libc=false}
10970 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10971 test x
$with_newlib = xyes
; } &&
10972 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10977 # When building gcc with a cross-compiler, we need to adjust things so
10978 # that the generator programs are still built with the native compiler.
10979 # Also, we cannot run fixincludes.
10981 # These are the normal (build=host) settings:
10982 CC_FOR_BUILD
='$(CC)'
10983 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10984 BUILD_LDFLAGS
='$(LDFLAGS)'
10985 STMP_FIXINC
=stmp-fixinc
10987 # And these apply if build != host, or we are generating coverage data
10988 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10990 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10991 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
10994 # Expand extra_headers to include complete path.
10995 # This substitutes for lots of t-* files.
10996 extra_headers_list
=
10997 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10998 for file in ${extra_headers} ; do
10999 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11002 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11003 if test x
"$use_gcc_tgmath" = xyes
11004 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11007 # Define collect2 in Makefile.
11008 case $host_can_use_collect2 in
11010 *) collect2
='collect2$(exeext)' ;;
11014 # Add a definition of USE_COLLECT2 if system wants one.
11015 case $use_collect2 in
11016 no
) use_collect2
= ;;
11019 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11020 xm_defines
="${xm_defines} USE_COLLECT2"
11021 case $host_can_use_collect2 in
11023 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11029 # ---------------------------
11030 # Assembler & linker features
11031 # ---------------------------
11033 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11034 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11035 # However when ld-new is first executed from the build tree, libtool will
11036 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11037 # to the build tree. While doing this we need to use the previous-stage
11038 # linker, or we have an infinite loop. The presence of a shell script as
11039 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11040 # the gcc/collect-ld script. So we need to know how libtool works, or
11041 # exec-tool will fail.
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11047 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11052 macro_version
='2.2.7a'
11053 macro_revision
='1.3134'
11067 ltmain
="$ac_aux_dir/ltmain.sh"
11069 # Backslashify metacharacters that are still active within
11070 # double-quoted strings.
11071 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11073 # Same as above, but do not quote variable references.
11074 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11076 # Sed substitution to delay expansion of an escaped shell variable in a
11077 # double_quote_subst'ed string.
11078 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11080 # Sed substitution to delay expansion of an escaped single quote.
11081 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11083 # Sed substitution to avoid accidental globbing in evaled expressions
11084 no_glob_subst
='s/\*/\\\*/g'
11086 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11088 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11091 $as_echo_n "checking how to print strings... " >&6; }
11092 # Test print first, because it will be a builtin if present.
11093 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11094 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11096 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11099 # Use this function as a fallback that always works.
11100 func_fallback_echo ()
11102 eval 'cat <<_LTECHO_EOF
11106 ECHO='func_fallback_echo
'
11109 # func_echo_all arg...
11110 # Invoke $ECHO with all args, space-separated.
11117 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11118 $as_echo "printf" >&6; } ;;
11119 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11120 $as_echo "print -r" >&6; } ;;
11121 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11122 $as_echo "cat" >&6; } ;;
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11140 if test "${ac_cv_path_SED+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11144 for ac_i in 1 2 3 4 5 6 7; do
11145 ac_script="$ac_script$as_nl$ac_script"
11147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11148 { ac_script=; unset ac_script;}
11149 if test -z "$SED"; then
11150 ac_path_SED_found=false
11151 # Loop through the user's path and
test for each of PROGNAME-LIST
11152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11153 for as_dir
in $PATH
11156 test -z "$as_dir" && as_dir
=.
11157 for ac_prog
in sed gsed
; do
11158 for ac_exec_ext
in '' $ac_executable_extensions; do
11159 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11160 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11161 # Check for GNU ac_path_SED and select it if it is found.
11162 # Check for GNU $ac_path_SED
11163 case `"$ac_path_SED" --version 2>&1` in
11165 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11168 $as_echo_n 0123456789 >"conftest.in"
11171 cat "conftest.in" "conftest.in" >"conftest.tmp"
11172 mv "conftest.tmp" "conftest.in"
11173 cp "conftest.in" "conftest.nl"
11174 $as_echo '' >> "conftest.nl"
11175 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11176 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11177 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11178 if test $ac_count -gt ${ac_path_SED_max-0}; then
11179 # Best one so far, save it but keep looking for a better one
11180 ac_cv_path_SED
="$ac_path_SED"
11181 ac_path_SED_max
=$ac_count
11183 # 10*(2^10) chars as input seems more than enough
11184 test $ac_count -gt 10 && break
11186 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11189 $ac_path_SED_found && break 3
11194 if test -z "$ac_cv_path_SED"; then
11195 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11198 ac_cv_path_SED
=$SED
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11203 $as_echo "$ac_cv_path_SED" >&6; }
11204 SED
="$ac_cv_path_SED"
11207 test -z "$SED" && SED
=sed
11208 Xsed
="$SED -e 1s/^X//"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11221 $as_echo_n "checking for fgrep... " >&6; }
11222 if test "${ac_cv_path_FGREP+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11226 then ac_cv_path_FGREP
="$GREP -F"
11228 if test -z "$FGREP"; then
11229 ac_path_FGREP_found
=false
11230 # Loop through the user's path and test for each of PROGNAME-LIST
11231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11232 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11235 test -z "$as_dir" && as_dir
=.
11236 for ac_prog
in fgrep
; do
11237 for ac_exec_ext
in '' $ac_executable_extensions; do
11238 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11239 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11240 # Check for GNU ac_path_FGREP and select it if it is found.
11241 # Check for GNU $ac_path_FGREP
11242 case `"$ac_path_FGREP" --version 2>&1` in
11244 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11247 $as_echo_n 0123456789 >"conftest.in"
11250 cat "conftest.in" "conftest.in" >"conftest.tmp"
11251 mv "conftest.tmp" "conftest.in"
11252 cp "conftest.in" "conftest.nl"
11253 $as_echo 'FGREP' >> "conftest.nl"
11254 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11255 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11256 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11257 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11258 # Best one so far, save it but keep looking for a better one
11259 ac_cv_path_FGREP
="$ac_path_FGREP"
11260 ac_path_FGREP_max
=$ac_count
11262 # 10*(2^10) chars as input seems more than enough
11263 test $ac_count -gt 10 && break
11265 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11268 $ac_path_FGREP_found && break 3
11273 if test -z "$ac_cv_path_FGREP"; then
11274 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11277 ac_cv_path_FGREP
=$FGREP
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11283 $as_echo "$ac_cv_path_FGREP" >&6; }
11284 FGREP
="$ac_cv_path_FGREP"
11287 test -z "$GREP" && GREP
=grep
11307 # Check whether --with-gnu-ld was given.
11308 if test "${with_gnu_ld+set}" = set; then :
11309 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11315 if test "$GCC" = yes; then
11316 # Check if gcc -print-prog-name=ld gives a path.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11318 $as_echo_n "checking for ld used by $CC... " >&6; }
11321 # gcc leaves a trailing carriage return which upsets mingw
11322 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11324 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11327 # Accept absolute paths.
11329 re_direlt
='/[^/][^/]*/\.\./'
11330 # Canonicalize the pathname of ld
11331 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11332 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11333 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11335 test -z "$LD" && LD
="$ac_prog"
11338 # If it fails, then pretend we aren't using GCC.
11342 # If it is relative, then search for the first ld in PATH.
11343 with_gnu_ld
=unknown
11346 elif test "$with_gnu_ld" = yes; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11348 $as_echo_n "checking for GNU ld... " >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11351 $as_echo_n "checking for non-GNU ld... " >&6; }
11353 if test "${lt_cv_path_LD+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11356 if test -z "$LD"; then
11357 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11358 for ac_dir
in $PATH; do
11360 test -z "$ac_dir" && ac_dir
=.
11361 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11362 lt_cv_path_LD
="$ac_dir/$ac_prog"
11363 # Check to see if the program is GNU ld. I'd rather use --version,
11364 # but apparently some variants of GNU ld only accept -v.
11365 # Break only if it was the GNU/non-GNU ld that we prefer.
11366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11367 *GNU
* |
*'with BFD'*)
11368 test "$with_gnu_ld" != no
&& break
11371 test "$with_gnu_ld" != yes && break
11378 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11382 LD
="$lt_cv_path_LD"
11383 if test -n "$LD"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11385 $as_echo "$LD" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11390 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11393 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11397 case `$LD -v 2>&1 </dev/null` in
11398 *GNU
* |
*'with BFD'*)
11399 lt_cv_prog_gnu_ld
=yes
11402 lt_cv_prog_gnu_ld
=no
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11407 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11408 with_gnu_ld
=$lt_cv_prog_gnu_ld
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11419 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11420 if test "${lt_cv_path_NM+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11423 if test -n "$NM"; then
11424 # Let the user override the test.
11425 lt_cv_path_NM
="$NM"
11427 lt_nm_to_check
="${ac_tool_prefix}nm"
11428 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11429 lt_nm_to_check
="$lt_nm_to_check nm"
11431 for lt_tmp_nm
in $lt_nm_to_check; do
11432 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11433 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11435 test -z "$ac_dir" && ac_dir
=.
11436 tmp_nm
="$ac_dir/$lt_tmp_nm"
11437 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11438 # Check to see if the nm accepts a BSD-compat flag.
11439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11440 # nm: unknown option "B" ignored
11441 # Tru64's nm complains that /dev/null is an invalid object file
11442 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11443 */dev
/null
* |
*'Invalid file or object type'*)
11444 lt_cv_path_NM
="$tmp_nm -B"
11448 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11450 lt_cv_path_NM
="$tmp_nm -p"
11454 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11455 continue # so that we can try to find one that supports BSD flags
11464 : ${lt_cv_path_NM=no}
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11468 $as_echo "$lt_cv_path_NM" >&6; }
11469 if test "$lt_cv_path_NM" != "no"; then
11470 NM
="$lt_cv_path_NM"
11472 # Didn't find any BSD compatible name lister, look for dumpbin.
11473 if test -n "$DUMPBIN"; then :
11474 # Let the user override the test.
11476 if test -n "$ac_tool_prefix"; then
11477 for ac_prog
in dumpbin
"link -dump"
11479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11480 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11486 if test -n "$DUMPBIN"; then
11487 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11490 for as_dir
in $PATH
11493 test -z "$as_dir" && as_dir
=.
11494 for ac_exec_ext
in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 DUMPBIN
=$ac_cv_prog_DUMPBIN
11507 if test -n "$DUMPBIN"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11509 $as_echo "$DUMPBIN" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11516 test -n "$DUMPBIN" && break
11519 if test -z "$DUMPBIN"; then
11520 ac_ct_DUMPBIN
=$DUMPBIN
11521 for ac_prog
in dumpbin
"link -dump"
11523 # Extract the first word of "$ac_prog", so it can be a program name with args.
11524 set dummy
$ac_prog; ac_word
=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11528 $as_echo_n "(cached) " >&6
11530 if test -n "$ac_ct_DUMPBIN"; then
11531 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11534 for as_dir
in $PATH
11537 test -z "$as_dir" && as_dir
=.
11538 for ac_exec_ext
in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11551 if test -n "$ac_ct_DUMPBIN"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11553 $as_echo "$ac_ct_DUMPBIN" >&6; }
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11560 test -n "$ac_ct_DUMPBIN" && break
11563 if test "x$ac_ct_DUMPBIN" = x
; then
11566 case $cross_compiling:$ac_tool_warned in
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11570 ac_tool_warned
=yes ;;
11572 DUMPBIN
=$ac_ct_DUMPBIN
11576 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11578 DUMPBIN
="$DUMPBIN -symbols"
11586 if test "$DUMPBIN" != ":"; then
11590 test -z "$NM" && NM
=nm
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11598 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11599 if test "${lt_cv_nm_interface+set}" = set; then :
11600 $as_echo_n "(cached) " >&6
11602 lt_cv_nm_interface
="BSD nm"
11603 echo "int some_variable = 0;" > conftest.
$ac_ext
11604 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11605 (eval "$ac_compile" 2>conftest.err
)
11606 cat conftest.err
>&5
11607 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11608 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11609 cat conftest.err
>&5
11610 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11611 cat conftest.out
>&5
11612 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11613 lt_cv_nm_interface
="MS dumpbin"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11618 $as_echo "$lt_cv_nm_interface" >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11621 $as_echo_n "checking whether ln -s works... " >&6; }
11623 if test "$LN_S" = "ln -s"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11628 $as_echo "no, using $LN_S" >&6; }
11631 # find the maximum length of command line arguments
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11633 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11634 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11642 # On DJGPP, this test can blow up pretty badly due to problems in libc
11643 # (any single argument exceeding 2000 bytes causes a buffer overrun
11644 # during glob expansion). Even if it were fixed, the result of this
11645 # check would be larger than it should be.
11646 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11650 # Under GNU Hurd, this test is not required because there is
11651 # no limit to the length of command line arguments.
11652 # Libtool will interpret -1 as no limit whatsoever
11653 lt_cv_sys_max_cmd_len
=-1;
11656 cygwin
* | mingw
* | cegcc
*)
11657 # On Win9x/ME, this test blows up -- it succeeds, but takes
11658 # about 5 minutes as the teststring grows exponentially.
11659 # Worse, since 9x/ME are not pre-emptively multitasking,
11660 # you end up with a "frozen" computer, even though with patience
11661 # the test eventually succeeds (with a max line length of 256k).
11662 # Instead, let's just punt: use the minimum linelength reported by
11663 # all of the supported platforms: 8192 (on NT/2K/XP).
11664 lt_cv_sys_max_cmd_len
=8192;
11668 # On MiNT this can take a long time and run out of memory.
11669 lt_cv_sys_max_cmd_len
=8192;
11673 # On AmigaOS with pdksh, this test takes hours, literally.
11674 # So we just punt and use a minimum line length of 8192.
11675 lt_cv_sys_max_cmd_len
=8192;
11678 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11679 # This has been around since 386BSD, at least. Likely further.
11680 if test -x /sbin
/sysctl
; then
11681 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11682 elif test -x /usr
/sbin
/sysctl
; then
11683 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11685 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11687 # And add a safety zone
11688 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11689 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11693 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11694 lt_cv_sys_max_cmd_len
=196608
11698 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11699 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11700 # nice to cause kernel panics so lets avoid the loop below.
11701 # First set a reasonable default.
11702 lt_cv_sys_max_cmd_len
=16384
11704 if test -x /sbin
/sysconfig
; then
11705 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11706 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11711 lt_cv_sys_max_cmd_len
=102400
11713 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11714 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11715 if test -n "$kargmax"; then
11716 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11718 lt_cv_sys_max_cmd_len
=32768
11722 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11723 if test -n "$lt_cv_sys_max_cmd_len"; then
11724 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11725 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11727 # Make teststring a little bigger before we do anything with it.
11728 # a 1K string should be a reasonable start.
11729 for i
in 1 2 3 4 5 6 7 8 ; do
11730 teststring
=$teststring$teststring
11732 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11733 # If test is not a shell built-in, we'll probably end up computing a
11734 # maximum length that is only half of the actual maximum length, but
11736 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11737 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11738 test $i != 17 # 1/2 MB should be enough
11741 teststring
=$teststring$teststring
11743 # Only check the string length outside the loop.
11744 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11746 # Add a significant safety factor because C++ compilers can tack on
11747 # massive amounts of additional arguments before passing them to the
11748 # linker. It appears as though 1/2 is a usable value.
11749 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11756 if test -n $lt_cv_sys_max_cmd_len ; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11758 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11761 $as_echo "none" >&6; }
11763 max_cmd_len
=$lt_cv_sys_max_cmd_len
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11775 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11776 # Try some XSI features
11778 ( _lt_dummy
="a/b/c"
11779 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11781 && eval 'test $(( 1 + 1 )) -eq 2 \
11782 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11785 $as_echo "$xsi_shell" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11789 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11791 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11793 && lt_shell_append=yes
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11795 $as_echo "$lt_shell_append" >&6; }
11798 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11808 # test EBCDIC or ASCII
11809 case `echo X|tr X '\101'` in
11810 A) # ASCII based system
11811 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11812 lt_SP2NL='tr \040 \012'
11813 lt_NL2SP='tr \015\012 \040\040'
11815 *) # EBCDIC based system
11816 lt_SP2NL='tr \100 \n'
11817 lt_NL2SP='tr \r\n \100\100'
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11830 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11831 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11832 $as_echo_n "(cached
) " >&6
11834 lt_cv_ld_reload_flag='-r'
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11837 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11838 reload_flag=$lt_cv_ld_reload_flag
11839 case $reload_flag in
11841 *) reload_flag=" $reload_flag" ;;
11843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11846 if test "$GCC" = yes; then
11847 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11862 if test -n "$ac_tool_prefix"; then
11863 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11864 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11866 $as_echo_n "checking
for $ac_word...
" >&6; }
11867 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11868 $as_echo_n "(cached
) " >&6
11870 if test -n "$OBJDUMP"; then
11871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11880 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11890 OBJDUMP=$ac_cv_prog_OBJDUMP
11891 if test -n "$OBJDUMP"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11893 $as_echo "$OBJDUMP" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11896 $as_echo "no
" >&6; }
11901 if test -z "$ac_cv_prog_OBJDUMP"; then
11902 ac_ct_OBJDUMP=$OBJDUMP
11903 # Extract the first word of "objdump
", so it can be a program name with args.
11904 set dummy objdump; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11906 $as_echo_n "checking
for $ac_word...
" >&6; }
11907 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11908 $as_echo_n "(cached
) " >&6
11910 if test -n "$ac_ct_OBJDUMP"; then
11911 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11920 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11930 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11931 if test -n "$ac_ct_OBJDUMP"; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11933 $as_echo "$ac_ct_OBJDUMP" >&6; }
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11936 $as_echo "no
" >&6; }
11939 if test "x
$ac_ct_OBJDUMP" = x; then
11942 case $cross_compiling:$ac_tool_warned in
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11945 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11946 ac_tool_warned=yes ;;
11948 OBJDUMP=$ac_ct_OBJDUMP
11951 OBJDUMP="$ac_cv_prog_OBJDUMP"
11954 test -z "$OBJDUMP" && OBJDUMP=objdump
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11965 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11966 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11967 $as_echo_n "(cached
) " >&6
11969 lt_cv_file_magic_cmd='$MAGIC_CMD'
11970 lt_cv_file_magic_test_file=
11971 lt_cv_deplibs_check_method='unknown'
11972 # Need to set the preceding variable on all platforms that support
11973 # interlibrary dependencies.
11974 # 'none' -- dependencies not supported.
11975 # `unknown' -- same as none, but documents that we really don't know.
11976 # 'pass_all' -- all dependencies passed with no checks.
11977 # 'test_compile' -- check by making test program.
11978 # 'file_magic [[regex]]' -- check by looking for files in library path
11979 # which responds to the $file_magic_cmd with a given extended regex.
11980 # If you have `file' or equivalent on your system and you're not sure
11981 # whether `pass_all' will *always* work, you probably want this one.
11985 lt_cv_deplibs_check_method=pass_all
11989 lt_cv_deplibs_check_method=pass_all
11993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11994 lt_cv_file_magic_cmd='/usr/bin/file -L'
11995 lt_cv_file_magic_test_file=/shlib/libc.so
11999 # func_win32_libid is a shell function defined in ltmain.sh
12000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12001 lt_cv_file_magic_cmd='func_win32_libid'
12005 # Base MSYS/MinGW do not provide the 'file' command needed by
12006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12007 # unless we find 'file', for example because we are cross-compiling.
12008 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12009 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12011 lt_cv_file_magic_cmd='func_win32_libid'
12013 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12014 lt_cv_file_magic_cmd='$OBJDUMP -f'
12019 # use the weaker test based on 'objdump'. See mingw*.
12020 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12021 lt_cv_file_magic_cmd='$OBJDUMP -f'
12024 darwin* | rhapsody*)
12025 lt_cv_deplibs_check_method=pass_all
12028 freebsd* | dragonfly*)
12029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12032 # Not sure whether the presence of OpenBSD here was a mistake.
12033 # Let's accept both of them until this is cleared up.
12034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12035 lt_cv_file_magic_cmd=/usr/bin/file
12036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12040 lt_cv_deplibs_check_method=pass_all
12045 lt_cv_deplibs_check_method=pass_all
12049 lt_cv_deplibs_check_method=pass_all
12052 hpux10.20* | hpux11*)
12053 lt_cv_file_magic_cmd=/usr/bin/file
12056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12060 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]'
12061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12075 irix5* | irix6* | nonstopux*)
12077 *-32|*"-32 ") libmagic=32-bit;;
12078 *-n32|*"-n32 ") libmagic=N32;;
12079 *-64|*"-64 ") libmagic=64-bit;;
12080 *) libmagic=never-match;;
12082 lt_cv_deplibs_check_method=pass_all
12085 # This must be Linux ELF.
12086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12087 lt_cv_deplibs_check_method=pass_all
12091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12100 lt_cv_file_magic_cmd=/usr/bin/file
12101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12105 lt_cv_deplibs_check_method=pass_all
12109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12116 osf3* | osf4* | osf5*)
12117 lt_cv_deplibs_check_method=pass_all
12121 lt_cv_deplibs_check_method=pass_all
12125 lt_cv_deplibs_check_method=pass_all
12128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12129 lt_cv_deplibs_check_method=pass_all
12133 case $host_vendor in
12135 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]'
12136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12139 lt_cv_deplibs_check_method=pass_all
12142 lt_cv_file_magic_cmd='/bin/file'
12143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12146 lt_cv_file_magic_cmd='/bin/file'
12147 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12148 lt_cv_file_magic_test_file=/lib/libc.so
12151 lt_cv_deplibs_check_method=pass_all
12154 lt_cv_deplibs_check_method=pass_all
12160 lt_cv_deplibs_check_method=pass_all
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12167 file_magic_cmd=$lt_cv_file_magic_cmd
12168 deplibs_check_method=$lt_cv_deplibs_check_method
12169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12182 if test -n "$ac_tool_prefix"; then
12183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12184 set dummy ${ac_tool_prefix}ar; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12186 $as_echo_n "checking
for $ac_word...
" >&6; }
12187 if test "${ac_cv_prog_AR+set}" = set; then :
12188 $as_echo_n "(cached
) " >&6
12190 if test -n "$AR"; then
12191 ac_cv_prog_AR="$AR" # Let the user override the test.
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200 ac_cv_prog_AR="${ac_tool_prefix}ar"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12211 if test -n "$AR"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12213 $as_echo "$AR" >&6; }
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12216 $as_echo "no
" >&6; }
12221 if test -z "$ac_cv_prog_AR"; then
12223 # Extract the first word of "ar", so it can be a program name with args.
12224 set dummy ar; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12226 $as_echo_n "checking
for $ac_word...
" >&6; }
12227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12228 $as_echo_n "(cached
) " >&6
12230 if test -n "$ac_ct_AR"; then
12231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_ac_ct_AR="ar"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12251 if test -n "$ac_ct_AR"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12253 $as_echo "$ac_ct_AR" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12256 $as_echo "no
" >&6; }
12259 if test "x
$ac_ct_AR" = x; then
12262 case $cross_compiling:$ac_tool_warned in
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12265 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12266 ac_tool_warned=yes ;;
12271 AR="$ac_cv_prog_AR"
12274 test -z "$AR" && AR=ar
12275 test -z "$AR_FLAGS" && AR_FLAGS=cru
12287 if test -n "$ac_tool_prefix"; then
12288 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12289 set dummy ${ac_tool_prefix}strip; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12291 $as_echo_n "checking
for $ac_word...
" >&6; }
12292 if test "${ac_cv_prog_STRIP+set}" = set; then :
12293 $as_echo_n "(cached
) " >&6
12295 if test -n "$STRIP"; then
12296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12305 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12315 STRIP=$ac_cv_prog_STRIP
12316 if test -n "$STRIP"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12318 $as_echo "$STRIP" >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12321 $as_echo "no
" >&6; }
12326 if test -z "$ac_cv_prog_STRIP"; then
12328 # Extract the first word of "strip
", so it can be a program name with args.
12329 set dummy strip; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12331 $as_echo_n "checking
for $ac_word...
" >&6; }
12332 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12333 $as_echo_n "(cached
) " >&6
12335 if test -n "$ac_ct_STRIP"; then
12336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345 ac_cv_prog_ac_ct_STRIP="strip
"
12346 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12356 if test -n "$ac_ct_STRIP"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12358 $as_echo "$ac_ct_STRIP" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12361 $as_echo "no
" >&6; }
12364 if test "x
$ac_ct_STRIP" = x; then
12367 case $cross_compiling:$ac_tool_warned in
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12370 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12371 ac_tool_warned=yes ;;
12376 STRIP="$ac_cv_prog_STRIP"
12379 test -z "$STRIP" && STRIP=:
12386 if test -n "$ac_tool_prefix"; then
12387 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12390 $as_echo_n "checking
for $ac_word...
" >&6; }
12391 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12392 $as_echo_n "(cached
) " >&6
12394 if test -n "$RANLIB"; then
12395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12414 RANLIB=$ac_cv_prog_RANLIB
12415 if test -n "$RANLIB"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12417 $as_echo "$RANLIB" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12420 $as_echo "no
" >&6; }
12425 if test -z "$ac_cv_prog_RANLIB"; then
12426 ac_ct_RANLIB=$RANLIB
12427 # Extract the first word of "ranlib
", so it can be a program name with args.
12428 set dummy ranlib; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12430 $as_echo_n "checking
for $ac_word...
" >&6; }
12431 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12432 $as_echo_n "(cached
) " >&6
12434 if test -n "$ac_ct_RANLIB"; then
12435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12455 if test -n "$ac_ct_RANLIB"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12457 $as_echo "$ac_ct_RANLIB" >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12460 $as_echo "no
" >&6; }
12463 if test "x
$ac_ct_RANLIB" = x; then
12466 case $cross_compiling:$ac_tool_warned in
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12469 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12470 ac_tool_warned=yes ;;
12472 RANLIB=$ac_ct_RANLIB
12475 RANLIB="$ac_cv_prog_RANLIB"
12478 test -z "$RANLIB" && RANLIB=:
12485 # Determine commands to create old-style static archives.
12486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12487 old_postinstall_cmds='chmod 644 $oldlib'
12488 old_postuninstall_cmds=
12490 if test -n "$RANLIB"; then
12493 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12496 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12499 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12504 lock_old_archive_extraction=yes ;;
12506 lock_old_archive_extraction=no ;;
12547 # If no C compiler was specified, use CC.
12550 # If no C compiler flags were specified, use CFLAGS.
12551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12553 # Allow CC to be a program name with arguments.
12557 # Check for command to grab the raw symbol name followed by C symbol from nm.
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12559 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12560 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12561 $as_echo_n "(cached
) " >&6
12564 # These are sane defaults that work on at least a few old systems.
12565 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12567 # Character class describing NM global symbol codes.
12568 symcode='[BCDEGRST]'
12570 # Regexp to match symbols that can be accessed directly from C.
12571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12573 # Define system-specific variables.
12578 cygwin* | mingw* | pw32* | cegcc*)
12579 symcode='[ABCDGISTW]'
12582 if test "$host_cpu" = ia64; then
12583 symcode='[ABCDEGRST]'
12586 irix* | nonstopux*)
12587 symcode='[BCDEGRST]'
12590 symcode='[BCDEGQRST]'
12601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12609 # If we're using GNU nm, then use its standard symbol codes.
12610 case `$NM -V 2>&1` in
12611 *GNU* | *'with BFD'*)
12612 symcode='[ABCDGIRSTW]' ;;
12615 # Transform an extracted symbol line into a proper C declaration.
12616 # Some systems (esp. on ia64) link data and code symbols differently,
12617 # so use this general approach.
12618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12620 # Transform an extracted symbol line into symbol name and symbol address
12621 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12622 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'"
12624 # Handle CRLF in mingw tool chain
12628 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12632 # Try without a prefix underscore, then with it.
12633 for ac_symprfx in "" "_
"; do
12635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12636 symxfrm="\\1 $ac_symprfx\\2 \\2"
12638 # Write the raw and C identifiers.
12639 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12640 # Fake it for dumpbin and say T for any non-static function
12641 # and D for any global variable.
12642 # Also find C++ and __fastcall symbols from MSVC++,
12643 # which start with @ or ?.
12644 lt_cv_sys_global_symbol_pipe="$AWK '"\
12645 " {last_section=section; section=\$ 3};"\
12646 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12647 " \$ 0!~/External *\|/{next};"\
12648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12649 " {if(hide[section]) next};"\
12650 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12651 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12652 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12653 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12654 " ' prfx
=^
$ac_symprfx"
12656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12659 # Check to see that the pipe works correctly.
12663 cat > conftest.$ac_ext <<_LT_EOF
12668 void nm_test_func(void);
12669 void nm_test_func(void){}
12673 int main(){nm_test_var='a';nm_test_func();return(0);}
12676 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12677 (eval $ac_compile) 2>&5
12679 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12680 test $ac_status = 0; }; then
12681 # Now try to grab the symbols.
12683 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12684 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12686 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12687 test $ac_status = 0; } && test -s "$nlist"; then
12688 # Try sorting and uniquifying the output.
12689 if sort "$nlist" | uniq > "$nlist"T; then
12690 mv -f "$nlist"T "$nlist"
12695 # Make sure that we snagged all the symbols we need.
12696 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12697 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12698 cat <<_LT_EOF > conftest.$ac_ext
12704 # Now generate the symbol file.
12705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12707 cat <<_LT_EOF >> conftest.$ac_ext
12709 /* The mapping between symbol names and symbols. */
12714 lt__PROGRAM__LTX_preloaded_symbols[] =
12716 { "@PROGRAM@
", (void *) 0 },
12718 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12719 cat <<\_LT_EOF >> conftest.$ac_ext
12723 /* This works around a problem in FreeBSD linker */
12724 #ifdef FREEBSD_WORKAROUND
12725 static const void *lt_preloaded_setup() {
12726 return lt__PROGRAM__LTX_preloaded_symbols;
12734 # Now try linking the two files.
12735 mv conftest.$ac_objext conftstm.$ac_objext
12736 lt_save_LIBS="$LIBS"
12737 lt_save_CFLAGS="$CFLAGS"
12738 LIBS="conftstm.
$ac_objext"
12739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12740 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12741 (eval $ac_link) 2>&5
12743 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12744 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12747 LIBS="$lt_save_LIBS"
12748 CFLAGS="$lt_save_CFLAGS"
12750 echo "cannot
find nm_test_func
in $nlist" >&5
12753 echo "cannot
find nm_test_var
in $nlist" >&5
12756 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12759 echo "$progname: failed program was
:" >&5
12760 cat conftest.$ac_ext >&5
12762 rm -rf conftest* conftst*
12764 # Do not use the global_symbol_pipe unless it works.
12765 if test "$pipe_works" = yes; then
12768 lt_cv_sys_global_symbol_pipe=
12774 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12775 lt_cv_sys_global_symbol_to_cdecl=
12777 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12779 $as_echo "failed
" >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12782 $as_echo "ok
" >&6; }
12806 # Check whether --enable-libtool-lock was given.
12807 if test "${enable_libtool_lock+set}" = set; then :
12808 enableval=$enable_libtool_lock;
12811 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12813 # Some flags need to be propagated to the compiler or linker for good
12817 # Find out which ABI we are using.
12818 echo 'int i;' > conftest.$ac_ext
12819 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12820 (eval $ac_compile) 2>&5
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12823 test $ac_status = 0; }; then
12824 case `/usr/bin/file conftest.$ac_objext` in
12826 HPUX_IA64_MODE="32"
12829 HPUX_IA64_MODE="64"
12836 # Find out which ABI we are using.
12837 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12838 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12839 (eval $ac_compile) 2>&5
12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12842 test $ac_status = 0; }; then
12843 if test "$lt_cv_prog_gnu_ld" = yes; then
12844 case `/usr/bin/file conftest.$ac_objext` in
12846 LD="${LD-ld} -melf32bsmip"
12849 LD="${LD-ld} -melf32bmipn32"
12852 LD="${LD-ld} -melf64bmip"
12856 case `/usr/bin/file conftest.$ac_objext` in
12872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12873 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12874 # Find out which ABI we are using.
12875 echo 'int i;' > conftest.$ac_ext
12876 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12877 (eval $ac_compile) 2>&5
12879 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12880 test $ac_status = 0; }; then
12881 case `/usr/bin/file conftest.o` in
12884 x86_64-*kfreebsd*-gnu)
12885 LD="${LD-ld} -m elf_i386_fbsd
"
12888 LD="${LD-ld} -m elf_i386
"
12890 ppc64-*linux*|powerpc64-*linux*)
12891 LD="${LD-ld} -m elf32ppclinux
"
12894 LD="${LD-ld} -m elf_s390
"
12897 LD="${LD-ld} -m elf32_sparc
"
12903 x86_64-*kfreebsd*-gnu)
12904 LD="${LD-ld} -m elf_x86_64_fbsd
"
12907 LD="${LD-ld} -m elf_x86_64
"
12909 ppc*-*linux*|powerpc*-*linux*)
12910 LD="${LD-ld} -m elf64ppc
"
12912 s390*-*linux*|s390*-*tpf*)
12913 LD="${LD-ld} -m elf64_s390
"
12916 LD="${LD-ld} -m elf64_sparc
"
12926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12927 SAVE_CFLAGS="$CFLAGS"
12928 CFLAGS="$CFLAGS -belf"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12930 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12931 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12932 $as_echo_n "(cached
) " >&6
12935 ac_cpp='$CPP $CPPFLAGS'
12936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 lt_cv_cc_needs_belf=yes
12954 lt_cv_cc_needs_belf=no
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12959 ac_cpp='$CPP $CPPFLAGS'
12960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12966 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12967 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12969 CFLAGS="$SAVE_CFLAGS"
12973 # Find out which ABI we are using.
12974 echo 'int i;' > conftest.$ac_ext
12975 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12976 (eval $ac_compile) 2>&5
12978 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12979 test $ac_status = 0; }; then
12980 case `/usr/bin/file conftest.o` in
12982 case $lt_cv_prog_gnu_ld in
12983 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12985 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12997 need_locks="$enable_libtool_lock"
13001 rhapsody* | darwin*)
13002 if test -n "$ac_tool_prefix"; then
13003 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13004 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13006 $as_echo_n "checking
for $ac_word...
" >&6; }
13007 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13008 $as_echo_n "(cached
) " >&6
13010 if test -n "$DSYMUTIL"; then
13011 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13030 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13031 if test -n "$DSYMUTIL"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13033 $as_echo "$DSYMUTIL" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13036 $as_echo "no
" >&6; }
13041 if test -z "$ac_cv_prog_DSYMUTIL"; then
13042 ac_ct_DSYMUTIL=$DSYMUTIL
13043 # Extract the first word of "dsymutil
", so it can be a program name with args.
13044 set dummy dsymutil; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13046 $as_echo_n "checking
for $ac_word...
" >&6; }
13047 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13048 $as_echo_n "(cached
) " >&6
13050 if test -n "$ac_ct_DSYMUTIL"; then
13051 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13070 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13071 if test -n "$ac_ct_DSYMUTIL"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13073 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13076 $as_echo "no
" >&6; }
13079 if test "x
$ac_ct_DSYMUTIL" = x; then
13082 case $cross_compiling:$ac_tool_warned in
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13086 ac_tool_warned=yes ;;
13088 DSYMUTIL=$ac_ct_DSYMUTIL
13091 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13094 if test -n "$ac_tool_prefix"; then
13095 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13096 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13098 $as_echo_n "checking
for $ac_word...
" >&6; }
13099 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13100 $as_echo_n "(cached
) " >&6
13102 if test -n "$NMEDIT"; then
13103 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13122 NMEDIT=$ac_cv_prog_NMEDIT
13123 if test -n "$NMEDIT"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13125 $as_echo "$NMEDIT" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13128 $as_echo "no
" >&6; }
13133 if test -z "$ac_cv_prog_NMEDIT"; then
13134 ac_ct_NMEDIT=$NMEDIT
13135 # Extract the first word of "nmedit
", so it can be a program name with args.
13136 set dummy nmedit; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13138 $as_echo_n "checking
for $ac_word...
" >&6; }
13139 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13140 $as_echo_n "(cached
) " >&6
13142 if test -n "$ac_ct_NMEDIT"; then
13143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13152 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13162 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13163 if test -n "$ac_ct_NMEDIT"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13165 $as_echo "$ac_ct_NMEDIT" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13168 $as_echo "no
" >&6; }
13171 if test "x
$ac_ct_NMEDIT" = x; then
13174 case $cross_compiling:$ac_tool_warned in
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13178 ac_tool_warned=yes ;;
13180 NMEDIT=$ac_ct_NMEDIT
13183 NMEDIT="$ac_cv_prog_NMEDIT"
13186 if test -n "$ac_tool_prefix"; then
13187 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13188 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13190 $as_echo_n "checking
for $ac_word...
" >&6; }
13191 if test "${ac_cv_prog_LIPO+set}" = set; then :
13192 $as_echo_n "(cached
) " >&6
13194 if test -n "$LIPO"; then
13195 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13214 LIPO=$ac_cv_prog_LIPO
13215 if test -n "$LIPO"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13217 $as_echo "$LIPO" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13220 $as_echo "no
" >&6; }
13225 if test -z "$ac_cv_prog_LIPO"; then
13227 # Extract the first word of "lipo
", so it can be a program name with args.
13228 set dummy lipo; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13230 $as_echo_n "checking
for $ac_word...
" >&6; }
13231 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13232 $as_echo_n "(cached
) " >&6
13234 if test -n "$ac_ct_LIPO"; then
13235 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13244 ac_cv_prog_ac_ct_LIPO="lipo
"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13254 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13255 if test -n "$ac_ct_LIPO"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13257 $as_echo "$ac_ct_LIPO" >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13260 $as_echo "no
" >&6; }
13263 if test "x
$ac_ct_LIPO" = x; then
13266 case $cross_compiling:$ac_tool_warned in
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13270 ac_tool_warned=yes ;;
13275 LIPO="$ac_cv_prog_LIPO"
13278 if test -n "$ac_tool_prefix"; then
13279 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13280 set dummy ${ac_tool_prefix}otool; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13282 $as_echo_n "checking
for $ac_word...
" >&6; }
13283 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13284 $as_echo_n "(cached
) " >&6
13286 if test -n "$OTOOL"; then
13287 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290 for as_dir in $PATH
13293 test -z "$as_dir" && as_dir=.
13294 for ac_exec_ext in '' $ac_executable_extensions; do
13295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13296 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13306 OTOOL=$ac_cv_prog_OTOOL
13307 if test -n "$OTOOL"; then
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13309 $as_echo "$OTOOL" >&6; }
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13312 $as_echo "no
" >&6; }
13317 if test -z "$ac_cv_prog_OTOOL"; then
13319 # Extract the first word of "otool
", so it can be a program name with args.
13320 set dummy otool; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13322 $as_echo_n "checking
for $ac_word...
" >&6; }
13323 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13324 $as_echo_n "(cached
) " >&6
13326 if test -n "$ac_ct_OTOOL"; then
13327 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13336 ac_cv_prog_ac_ct_OTOOL="otool
"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13346 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13347 if test -n "$ac_ct_OTOOL"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13349 $as_echo "$ac_ct_OTOOL" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13352 $as_echo "no
" >&6; }
13355 if test "x
$ac_ct_OTOOL" = x; then
13358 case $cross_compiling:$ac_tool_warned in
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13361 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13362 ac_tool_warned=yes ;;
13367 OTOOL="$ac_cv_prog_OTOOL"
13370 if test -n "$ac_tool_prefix"; then
13371 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13372 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13374 $as_echo_n "checking
for $ac_word...
" >&6; }
13375 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13376 $as_echo_n "(cached
) " >&6
13378 if test -n "$OTOOL64"; then
13379 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382 for as_dir in $PATH
13385 test -z "$as_dir" && as_dir=.
13386 for ac_exec_ext in '' $ac_executable_extensions; do
13387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13388 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13398 OTOOL64=$ac_cv_prog_OTOOL64
13399 if test -n "$OTOOL64"; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13401 $as_echo "$OTOOL64" >&6; }
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13404 $as_echo "no
" >&6; }
13409 if test -z "$ac_cv_prog_OTOOL64"; then
13410 ac_ct_OTOOL64=$OTOOL64
13411 # Extract the first word of "otool64
", so it can be a program name with args.
13412 set dummy otool64; ac_word=$2
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13414 $as_echo_n "checking
for $ac_word...
" >&6; }
13415 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13416 $as_echo_n "(cached
) " >&6
13418 if test -n "$ac_ct_OTOOL64"; then
13419 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13428 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13438 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13439 if test -n "$ac_ct_OTOOL64"; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13441 $as_echo "$ac_ct_OTOOL64" >&6; }
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13444 $as_echo "no
" >&6; }
13447 if test "x
$ac_ct_OTOOL64" = x; then
13450 case $cross_compiling:$ac_tool_warned in
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13453 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13454 ac_tool_warned=yes ;;
13456 OTOOL64=$ac_ct_OTOOL64
13459 OTOOL64="$ac_cv_prog_OTOOL64"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13489 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13490 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13491 $as_echo_n "(cached
) " >&6
13493 lt_cv_apple_cc_single_mod=no
13494 if test -z "${LT_MULTI_MODULE}"; then
13495 # By default we will add the -single_module flag. You can override
13496 # by either setting the environment variable LT_MULTI_MODULE
13497 # non-empty at configure time, or by adding -multi_module to the
13499 rm -rf libconftest.dylib*
13500 echo "int foo
(void
){return 1;}" > conftest.c
13501 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13502 -dynamiclib -Wl,-single_module conftest.c
" >&5
13503 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13504 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13506 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13507 lt_cv_apple_cc_single_mod=yes
13509 cat conftest.err >&5
13511 rm -rf libconftest.dylib*
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13516 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13518 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13519 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13520 $as_echo_n "(cached
) " >&6
13522 lt_cv_ld_exported_symbols_list=no
13523 save_LDFLAGS=$LDFLAGS
13524 echo "_main
" > conftest.sym
13525 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 lt_cv_ld_exported_symbols_list=yes
13540 lt_cv_ld_exported_symbols_list=no
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LDFLAGS="$save_LDFLAGS"
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13548 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13550 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13551 if test "${lt_cv_ld_force_load+set}" = set; then :
13552 $as_echo_n "(cached
) " >&6
13554 lt_cv_ld_force_load=no
13555 cat > conftest.c << _LT_EOF
13556 int forced_loaded() { return 2;}
13558 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13559 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13560 echo "$AR cru libconftest.a conftest.o
" >&5
13561 $AR cru libconftest.a conftest.o 2>&5
13562 cat > conftest.c << _LT_EOF
13563 int main() { return 0;}
13565 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13566 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13568 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13569 lt_cv_ld_force_load=yes
13571 cat conftest.err >&5
13573 rm -f conftest.err libconftest.a conftest conftest.c
13574 rm -rf conftest.dSYM
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13578 $as_echo "$lt_cv_ld_force_load" >&6; }
13580 rhapsody* | darwin1.[012])
13581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13584 darwin*) # darwin 5.x on
13585 # if running on 10.5 or later, the deployment target defaults
13586 # to the OS version, if on x86, and 10.4, the deployment
13587 # target defaults to 10.4. Don't you love it?
13588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13599 _lt_dar_single_mod='$single_module'
13601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13606 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13607 _lt_dsymutil='~$DSYMUTIL $lib || :'
13614 for ac_header in dlfcn.h
13616 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13617 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13618 cat >>confdefs.h <<_ACEOF
13619 #define HAVE_DLFCN_H 1
13637 enable_win32_dll=no
13640 # Check whether --enable-shared was given.
13641 if test "${enable_shared+set}" = set; then :
13642 enableval=$enable_shared; p=${PACKAGE-default}
13644 yes) enable_shared=yes ;;
13645 no) enable_shared=no ;;
13648 # Look at the argument we got. We use all the common list separators.
13649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13650 for pkg in $enableval; do
13652 if test "X
$pkg" = "X
$p"; then
13671 # Check whether --enable-static was given.
13672 if test "${enable_static+set}" = set; then :
13673 enableval=$enable_static; p=${PACKAGE-default}
13675 yes) enable_static=yes ;;
13676 no) enable_static=no ;;
13679 # Look at the argument we got. We use all the common list separators.
13680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13681 for pkg in $enableval; do
13683 if test "X
$pkg" = "X
$p"; then
13703 # Check whether --with-pic was given.
13704 if test "${with_pic+set}" = set; then :
13705 withval=$with_pic; pic_mode="$withval"
13711 test -z "$pic_mode" && pic_mode=default
13719 # Check whether --enable-fast-install was given.
13720 if test "${enable_fast_install+set}" = set; then :
13721 enableval=$enable_fast_install; p=${PACKAGE-default}
13723 yes) enable_fast_install=yes ;;
13724 no) enable_fast_install=no ;;
13726 enable_fast_install=no
13727 # Look at the argument we got. We use all the common list separators.
13728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13729 for pkg in $enableval; do
13731 if test "X
$pkg" = "X
$p"; then
13732 enable_fast_install=yes
13739 enable_fast_install=yes
13752 # This can be used to rebuild libtool when needed
13753 LIBTOOL_DEPS="$ltmain"
13755 # Always use our own libtool.
13756 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13783 test -z "$LN_S" && LN_S="ln -s"
13798 if test -n "${ZSH_VERSION+set}" ; then
13799 setopt NO_GLOB_SUBST
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13803 $as_echo_n "checking
for objdir...
" >&6; }
13804 if test "${lt_cv_objdir+set}" = set; then :
13805 $as_echo_n "(cached
) " >&6
13807 rm -f .libs 2>/dev/null
13808 mkdir .libs 2>/dev/null
13809 if test -d .libs; then
13812 # MS-DOS does not allow filenames that begin with a dot.
13815 rmdir .libs 2>/dev/null
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13818 $as_echo "$lt_cv_objdir" >&6; }
13819 objdir=$lt_cv_objdir
13825 cat >>confdefs.h <<_ACEOF
13826 #define LT_OBJDIR "$lt_cv_objdir/"
13834 # AIX sometimes has problems with the GCC collect2 program. For some
13835 # reason, if we set the COLLECT_NAMES environment variable, the problems
13836 # vanish in a puff of smoke.
13837 if test "X
${COLLECT_NAMES+set}" != Xset; then
13839 export COLLECT_NAMES
13844 # Global variables:
13846 can_build_shared=yes
13848 # All known linkers require a `.a' archive for static linking (except MSVC,
13849 # which needs '.lib').
13852 with_gnu_ld="$lt_cv_prog_gnu_ld"
13855 old_CFLAGS="$CFLAGS"
13857 # Set sane defaults for various variables
13858 test -z "$CC" && CC=cc
13859 test -z "$LTCC" && LTCC=$CC
13860 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13861 test -z "$LD" && LD=ld
13862 test -z "$ac_objext" && ac_objext=o
13864 for cc_temp in $compiler""; do
13866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13872 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13875 # Only perform the check for file, if the check method requires it
13876 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13877 case $deplibs_check_method in
13879 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13881 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13883 $as_echo_n "(cached
) " >&6
13887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13890 lt_save_MAGIC_CMD="$MAGIC_CMD"
13891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13892 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13893 for ac_dir in $ac_dummy; do
13895 test -z "$ac_dir" && ac_dir=.
13896 if test -f $ac_dir/${ac_tool_prefix}file; then
13897 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13898 if test -n "$file_magic_test_file"; then
13899 case $deplibs_check_method in
13901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13904 $EGREP "$file_magic_regex" > /dev/null; then
13909 *** Warning: the command libtool uses to detect shared libraries,
13910 *** $file_magic_cmd, produces output that libtool cannot recognize.
13911 *** The result is that libtool may fail to recognize shared libraries
13912 *** as such. This will affect the creation of libtool libraries that
13913 *** depend on shared libraries, but programs linked with such libtool
13914 *** libraries will work regardless of this problem. Nevertheless, you
13915 *** may want to report the problem to your system manager and/or to
13916 *** bug-libtool@gnu.org
13926 MAGIC_CMD="$lt_save_MAGIC_CMD"
13931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13932 if test -n "$MAGIC_CMD"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13934 $as_echo "$MAGIC_CMD" >&6; }
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13937 $as_echo "no
" >&6; }
13944 if test -z "$lt_cv_path_MAGIC_CMD"; then
13945 if test -n "$ac_tool_prefix"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13947 $as_echo_n "checking
for file...
" >&6; }
13948 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13949 $as_echo_n "(cached
) " >&6
13953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13956 lt_save_MAGIC_CMD="$MAGIC_CMD"
13957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13958 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13959 for ac_dir in $ac_dummy; do
13961 test -z "$ac_dir" && ac_dir=.
13962 if test -f $ac_dir/file; then
13963 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13964 if test -n "$file_magic_test_file"; then
13965 case $deplibs_check_method in
13967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13970 $EGREP "$file_magic_regex" > /dev/null; then
13975 *** Warning: the command libtool uses to detect shared libraries,
13976 *** $file_magic_cmd, produces output that libtool cannot recognize.
13977 *** The result is that libtool may fail to recognize shared libraries
13978 *** as such. This will affect the creation of libtool libraries that
13979 *** depend on shared libraries, but programs linked with such libtool
13980 *** libraries will work regardless of this problem. Nevertheless, you
13981 *** may want to report the problem to your system manager and/or to
13982 *** bug-libtool@gnu.org
13992 MAGIC_CMD="$lt_save_MAGIC_CMD"
13997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13998 if test -n "$MAGIC_CMD"; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14000 $as_echo "$MAGIC_CMD" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14003 $as_echo "no
" >&6; }
14016 # Use C for the default configuration in the libtool script
14020 ac_cpp='$CPP $CPPFLAGS'
14021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026 # Source file extension for C test sources.
14029 # Object file extension for compiled C test sources.
14033 # Code to be used in simple compile tests
14034 lt_simple_compile_test_code="int some_variable
= 0;"
14036 # Code to be used in simple link tests
14037 lt_simple_link_test_code='int main(){return(0);}'
14045 # If no C compiler was specified, use CC.
14048 # If no C compiler flags were specified, use CFLAGS.
14049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14051 # Allow CC to be a program name with arguments.
14054 # Save the default compiler, since it gets overwritten when the other
14055 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14056 compiler_DEFAULT=$CC
14058 # save warnings/boilerplate of simple test code
14059 ac_outfile=conftest.$ac_objext
14060 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14061 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14062 _lt_compiler_boilerplate=`cat conftest.err`
14065 ac_outfile=conftest.$ac_objext
14066 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14067 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14068 _lt_linker_boilerplate=`cat conftest.err`
14073 ## There is no encapsulation within the following macros, do not change
14074 ## the running order or otherwise move them around unless you know exactly
14075 ## what you are doing...
14076 if test -n "$compiler"; then
14078 lt_prog_compiler_no_builtin_flag=
14080 if test "$GCC" = yes; then
14081 case $cc_basename in
14083 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14085 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14089 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14090 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14091 $as_echo_n "(cached
) " >&6
14093 lt_cv_prog_compiler_rtti_exceptions=no
14094 ac_outfile=conftest.$ac_objext
14095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14096 lt_compiler_flag="-fno-rtti -fno-exceptions"
14097 # Insert the option either (1) after the last *FLAGS variable, or
14098 # (2) before a word containing "conftest.
", or (3) at the end.
14099 # Note that $ac_compile itself does not contain backslashes and begins
14100 # with a dollar sign (not a hyphen), so the echo should work correctly.
14101 # The option is referenced via a variable to avoid confusing sed.
14102 lt_compile=`echo "$ac_compile" | $SED \
14103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14105 -e 's:$: $lt_compiler_flag:'`
14106 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14107 (eval "$lt_compile" 2>conftest.err)
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14111 if (exit $ac_status) && test -s "$ac_outfile"; then
14112 # The compiler can only warn and ignore the option if not recognized
14113 # So say no if there are warnings other than the usual output.
14114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14117 lt_cv_prog_compiler_rtti_exceptions=yes
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14124 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14126 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14127 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14139 lt_prog_compiler_wl=
14140 lt_prog_compiler_pic=
14141 lt_prog_compiler_static=
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14144 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14146 if test "$GCC" = yes; then
14147 lt_prog_compiler_wl='-Wl,'
14148 lt_prog_compiler_static='-static'
14152 # All AIX code is PIC.
14153 if test "$host_cpu" = ia64; then
14154 # AIX 5 now supports IA64 processor
14155 lt_prog_compiler_static='-Bstatic'
14162 # see comment about AmigaOS4 .so support
14163 lt_prog_compiler_pic='-fPIC'
14166 # FIXME: we need at least 68020 code to build shared libraries, but
14167 # adding the `-m68020' flag to GCC prevents building anything better,
14169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14175 # PIC is the default for these OSes.
14178 mingw* | cygwin* | pw32* | os2* | cegcc*)
14179 # This hack is so that the source file can tell whether it is being
14180 # built for inclusion in a dll (and should export symbols for example).
14181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14182 # (--disable-auto-import) libraries
14183 lt_prog_compiler_pic='-DDLL_EXPORT'
14186 darwin* | rhapsody*)
14187 # PIC is the default on this platform
14188 # Common symbols not allowed in MH_DYLIB files
14189 lt_prog_compiler_pic='-fno-common'
14193 # PIC is the default for Haiku.
14194 # The "-static" flag exists, but is broken.
14195 lt_prog_compiler_static=
14199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14201 # sets the default TLS model and affects inlining.
14207 lt_prog_compiler_pic='-fPIC'
14213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14214 # Instead, we relocate shared libraries at runtime.
14218 # Just because we use GCC doesn't mean we suddenly get shared libraries
14219 # on systems that don't support them.
14220 lt_prog_compiler_can_build_shared=no
14225 # QNX uses GNU C++, but need to define -shared option too, otherwise
14226 # it will coredump.
14227 lt_prog_compiler_pic='-fPIC -shared'
14231 if test -d /usr/nec; then
14232 lt_prog_compiler_pic=-Kconform_pic
14237 lt_prog_compiler_pic='-fPIC'
14241 case $cc_basename in
14242 nvcc*) # Cuda Compiler Driver 2.2
14243 lt_prog_compiler_wl='-Xlinker '
14244 lt_prog_compiler_pic='-Xcompiler -fPIC'
14248 # PORTME Check for flag to pass linker flags through the system compiler.
14251 lt_prog_compiler_wl='-Wl,'
14252 if test "$host_cpu" = ia64; then
14253 # AIX 5 now supports IA64 processor
14254 lt_prog_compiler_static='-Bstatic'
14256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14260 mingw* | cygwin* | pw32* | os2* | cegcc*)
14261 # This hack is so that the source file can tell whether it is being
14262 # built for inclusion in a dll (and should export symbols for example).
14263 lt_prog_compiler_pic='-DDLL_EXPORT'
14266 hpux9* | hpux10* | hpux11*)
14267 lt_prog_compiler_wl='-Wl,'
14268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14269 # not for PA HP-UX.
14275 lt_prog_compiler_pic='+Z'
14278 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14279 lt_prog_compiler_static='${wl}-a ${wl}archive'
14282 irix5* | irix6* | nonstopux*)
14283 lt_prog_compiler_wl='-Wl,'
14284 # PIC (with -KPIC) is the default.
14285 lt_prog_compiler_static='-non_shared'
14288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14289 case $cc_basename in
14290 # old Intel for x86_64 which still supported -KPIC.
14292 lt_prog_compiler_wl='-Wl,'
14293 lt_prog_compiler_pic='-KPIC'
14294 lt_prog_compiler_static='-static'
14296 # icc used to be incompatible with GCC.
14297 # ICC 10 doesn't accept -KPIC any more.
14299 lt_prog_compiler_wl='-Wl,'
14300 lt_prog_compiler_pic='-fPIC'
14301 lt_prog_compiler_static='-static'
14303 # Lahey Fortran 8.1.
14305 lt_prog_compiler_wl='-Wl,'
14306 lt_prog_compiler_pic='--shared'
14307 lt_prog_compiler_static='--static'
14309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14310 # Portland Group compilers (*not* the Pentium gcc compiler,
14311 # which looks to be a dead project)
14312 lt_prog_compiler_wl='-Wl,'
14313 lt_prog_compiler_pic='-fpic'
14314 lt_prog_compiler_static='-Bstatic'
14317 lt_prog_compiler_wl='-Wl,'
14318 # All Alpha code is PIC.
14319 lt_prog_compiler_static='-non_shared'
14321 xl* | bgxl* | bgf* | mpixl*)
14322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14323 lt_prog_compiler_wl='-Wl,'
14324 lt_prog_compiler_pic='-qpic'
14325 lt_prog_compiler_static='-qstaticlink'
14328 case `$CC -V 2>&1 | sed 5q` in
14329 *Sun\ F* | *Sun*Fortran*)
14330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14331 lt_prog_compiler_pic='-KPIC'
14332 lt_prog_compiler_static='-Bstatic'
14333 lt_prog_compiler_wl=''
14337 lt_prog_compiler_pic='-KPIC'
14338 lt_prog_compiler_static='-Bstatic'
14339 lt_prog_compiler_wl='-Wl,'
14347 lt_prog_compiler_pic='-KPIC'
14348 lt_prog_compiler_static='-Bstatic'
14352 # QNX uses GNU C++, but need to define -shared option too, otherwise
14353 # it will coredump.
14354 lt_prog_compiler_pic='-fPIC -shared'
14357 osf3* | osf4* | osf5*)
14358 lt_prog_compiler_wl='-Wl,'
14359 # All OSF/1 code is PIC.
14360 lt_prog_compiler_static='-non_shared'
14364 lt_prog_compiler_static='-non_shared'
14368 lt_prog_compiler_pic='-KPIC'
14369 lt_prog_compiler_static='-Bstatic'
14370 case $cc_basename in
14371 f77* | f90* | f95*)
14372 lt_prog_compiler_wl='-Qoption ld ';;
14374 lt_prog_compiler_wl='-Wl,';;
14379 lt_prog_compiler_wl='-Qoption ld '
14380 lt_prog_compiler_pic='-PIC'
14381 lt_prog_compiler_static='-Bstatic'
14384 sysv4 | sysv4.2uw2* | sysv4.3*)
14385 lt_prog_compiler_wl='-Wl,'
14386 lt_prog_compiler_pic='-KPIC'
14387 lt_prog_compiler_static='-Bstatic'
14391 if test -d /usr/nec ;then
14392 lt_prog_compiler_pic='-Kconform_pic'
14393 lt_prog_compiler_static='-Bstatic'
14397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14398 lt_prog_compiler_wl='-Wl,'
14399 lt_prog_compiler_pic='-KPIC'
14400 lt_prog_compiler_static='-Bstatic'
14404 lt_prog_compiler_wl='-Wl,'
14405 lt_prog_compiler_can_build_shared=no
14409 lt_prog_compiler_pic='-pic'
14410 lt_prog_compiler_static='-Bstatic'
14414 lt_prog_compiler_can_build_shared=no
14420 # For platforms which do not support PIC, -DPIC is meaningless:
14422 lt_prog_compiler_pic=
14425 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14429 $as_echo "$lt_prog_compiler_pic" >&6; }
14437 # Check to make sure the PIC flag actually works.
14439 if test -n "$lt_prog_compiler_pic"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14441 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14442 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14443 $as_echo_n "(cached
) " >&6
14445 lt_cv_prog_compiler_pic_works=no
14446 ac_outfile=conftest.$ac_objext
14447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14449 # Insert the option either (1) after the last *FLAGS variable, or
14450 # (2) before a word containing "conftest.
", or (3) at the end.
14451 # Note that $ac_compile itself does not contain backslashes and begins
14452 # with a dollar sign (not a hyphen), so the echo should work correctly.
14453 # The option is referenced via a variable to avoid confusing sed.
14454 lt_compile=`echo "$ac_compile" | $SED \
14455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14457 -e 's:$: $lt_compiler_flag:'`
14458 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14459 (eval "$lt_compile" 2>conftest.err)
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14463 if (exit $ac_status) && test -s "$ac_outfile"; then
14464 # The compiler can only warn and ignore the option if not recognized
14465 # So say no if there are warnings other than the usual output.
14466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14469 lt_cv_prog_compiler_pic_works=yes
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14476 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14478 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14479 case $lt_prog_compiler_pic in
14481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14484 lt_prog_compiler_pic=
14485 lt_prog_compiler_can_build_shared=no
14496 # Check to make sure the static flag actually works.
14498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14500 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14501 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14502 $as_echo_n "(cached
) " >&6
14504 lt_cv_prog_compiler_static_works=no
14505 save_LDFLAGS="$LDFLAGS"
14506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14509 # The linker can only warn and ignore the option if not recognized
14510 # So say no if there are warnings
14511 if test -s conftest.err; then
14512 # Append any errors to the config.log.
14513 cat conftest.err 1>&5
14514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14516 if diff conftest.exp conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_static_works=yes
14520 lt_cv_prog_compiler_static_works=yes
14524 LDFLAGS="$save_LDFLAGS"
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14528 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14530 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14533 lt_prog_compiler_static=
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14543 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14545 $as_echo_n "(cached
) " >&6
14547 lt_cv_prog_compiler_c_o=no
14548 $RM -r conftest 2>/dev/null
14552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14554 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14555 # Insert the option either (1) after the last *FLAGS variable, or
14556 # (2) before a word containing "conftest.
", or (3) at the end.
14557 # Note that $ac_compile itself does not contain backslashes and begins
14558 # with a dollar sign (not a hyphen), so the echo should work correctly.
14559 lt_compile=`echo "$ac_compile" | $SED \
14560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562 -e 's:$: $lt_compiler_flag:'`
14563 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14564 (eval "$lt_compile" 2>out/conftest.err)
14566 cat out/conftest.err >&5
14567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14570 # The compiler can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
14572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14575 lt_cv_prog_compiler_c_o=yes
14580 # SGI C++ compiler will create directory out/ii_files/ for
14581 # template instantiation
14582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14583 $RM out/* && rmdir out
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14598 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14600 $as_echo_n "(cached
) " >&6
14602 lt_cv_prog_compiler_c_o=no
14603 $RM -r conftest 2>/dev/null
14607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14610 # Insert the option either (1) after the last *FLAGS variable, or
14611 # (2) before a word containing "conftest.
", or (3) at the end.
14612 # Note that $ac_compile itself does not contain backslashes and begins
14613 # with a dollar sign (not a hyphen), so the echo should work correctly.
14614 lt_compile=`echo "$ac_compile" | $SED \
14615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14617 -e 's:$: $lt_compiler_flag:'`
14618 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14619 (eval "$lt_compile" 2>out/conftest.err)
14621 cat out/conftest.err >&5
14622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625 # The compiler can only warn and ignore the option if not recognized
14626 # So say no if there are warnings
14627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14630 lt_cv_prog_compiler_c_o=yes
14635 # SGI C++ compiler will create directory out/ii_files/ for
14636 # template instantiation
14637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14638 $RM out/* && rmdir out
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14650 hard_links="nottested
"
14651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14652 # do not overwrite the value of need_locks provided by the user
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14654 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14659 ln conftest.a conftest.b 2>&5 || hard_links=no
14660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14662 $as_echo "$hard_links" >&6; }
14663 if test "$hard_links" = no; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14665 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14678 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14681 allow_undefined_flag=
14682 always_export_symbols=no
14684 archive_expsym_cmds=
14685 compiler_needs_object=no
14686 enable_shared_with_static_runtimes=no
14687 export_dynamic_flag_spec=
14688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14689 hardcode_automatic=no
14691 hardcode_direct_absolute=no
14692 hardcode_libdir_flag_spec=
14693 hardcode_libdir_flag_spec_ld=
14694 hardcode_libdir_separator=
14695 hardcode_minus_L=no
14696 hardcode_shlibpath_var=unsupported
14698 link_all_deplibs=unknown
14700 module_expsym_cmds=
14701 old_archive_from_new_cmds=
14702 old_archive_from_expsyms_cmds=
14703 thread_safe_flag_spec=
14704 whole_archive_flag_spec=
14705 # include_expsyms should be a list of space-separated symbols to be *always*
14706 # included in the symbol list
14708 # exclude_expsyms can be an extended regexp of symbols to exclude
14709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14711 # as well as any symbol that contains `d'.
14712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14714 # platforms (ab)use it in PIC code, but their linkers get confused if
14715 # the symbol is explicitly referenced. Since portable code cannot
14716 # rely on this symbol name, it's probably fine to never include it in
14717 # preloaded symbol tables.
14718 # Exclude shared library initialization/finalization symbols.
14719 extract_expsyms_cmds=
14722 cygwin* | mingw* | pw32* | cegcc*)
14723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14724 # When not using gcc, we currently assume that we are using
14725 # Microsoft Visual C++.
14726 if test "$GCC" != yes; then
14731 # we just hope/assume this is gcc and not c89 (= MSVC++)
14741 # On some targets, GNU ld is compatible enough with the native linker
14742 # that we're better off using the native interface for both.
14743 lt_use_gnu_ld_interface=no
14744 if test "$with_gnu_ld" = yes; then
14747 # The AIX port of GNU ld has always aspired to compatibility
14748 # with the native linker. However, as the warning in the GNU ld
14749 # block says, versions before 2.19.5* couldn't really create working
14750 # shared libraries, regardless of the interface used.
14751 case `$LD -v 2>&1` in
14752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14756 lt_use_gnu_ld_interface=yes
14761 lt_use_gnu_ld_interface=yes
14766 if test "$lt_use_gnu_ld_interface" = yes; then
14767 # If archive_cmds runs LD, not CC, wlarc should be empty
14770 # Set some defaults for GNU ld with shared library support. These
14771 # are reset later if shared libraries are not supported. Putting them
14772 # here allows them to be overridden if necessary.
14773 runpath_var=LD_RUN_PATH
14774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14775 export_dynamic_flag_spec='${wl}--export-dynamic'
14776 # ancient GNU ld didn't support --whole-archive et. al.
14777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14780 whole_archive_flag_spec=
14782 supports_anon_versioning=no
14783 case `$LD -v 2>&1` in
14784 *GNU\ gold*) supports_anon_versioning=yes ;;
14785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14788 *\ 2.11.*) ;; # other 2.11 versions
14789 *) supports_anon_versioning=yes ;;
14792 # See if GNU ld supports shared libraries.
14795 # On AIX/PPC, the GNU linker is very broken
14796 if test "$host_cpu" != ia64; then
14800 *** Warning: the GNU linker, at least up to release 2.19, is reported
14801 *** to be unable to reliably create shared libraries on AIX.
14802 *** Therefore, libtool is disabling shared libraries support. If you
14803 *** really care for shared libraries, you may want to install binutils
14804 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14805 *** You will then need to restart the configuration process.
14814 # see comment about AmigaOS4 .so support
14815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816 archive_expsym_cmds=''
14819 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)'
14820 hardcode_libdir_flag_spec
='-L$libdir'
14821 hardcode_minus_L
=yes
14827 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14828 allow_undefined_flag
=unsupported
14829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14830 # support --undefined. This deserves some investigation. FIXME
14831 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837 cygwin
* | mingw
* | pw32
* | cegcc
*)
14838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14839 # as there is no search path for DLLs.
14840 hardcode_libdir_flag_spec
='-L$libdir'
14841 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14842 allow_undefined_flag
=unsupported
14843 always_export_symbols
=no
14844 enable_shared_with_static_runtimes
=yes
14845 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14847 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14848 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14849 # If the export-symbols file already is a .def file (1st line
14850 # is EXPORTS), use it as is; otherwise, prepend...
14851 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14852 cp $export_symbols $output_objdir/$soname.def;
14854 echo EXPORTS > $output_objdir/$soname.def;
14855 cat $export_symbols >> $output_objdir/$soname.def;
14857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14864 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14865 link_all_deplibs
=yes
14870 hardcode_shlibpath_var
=no
14871 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14872 export_dynamic_flag_spec
='${wl}-E'
14873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14874 # Instead, shared libraries are loaded at an image base (0x10000000 by
14875 # default) and relocated if they conflict, which is a slow very memory
14876 # consuming and fragmenting process. To avoid this, we pick a random,
14877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14879 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14880 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'
14883 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14885 if test "$host_os" = linux-dietlibc
; then
14886 case $cc_basename in
14887 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14890 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14891 && test "$tmp_diet" = no
14894 tmp_sharedflag
='-shared'
14895 case $cc_basename,$host_cpu in
14896 pgcc
*) # Portland Group C compiler
14897 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'
14898 tmp_addflag
=' $pic_flag'
14900 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14901 # Portland Group f77 and f90 compilers
14902 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'
14903 tmp_addflag
=' $pic_flag -Mnomain' ;;
14904 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14905 tmp_addflag
=' -i_dynamic' ;;
14906 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14907 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14908 ifc
* | ifort
*) # Intel Fortran compiler
14909 tmp_addflag
=' -nofor_main' ;;
14910 lf95
*) # Lahey Fortran 8.1
14911 whole_archive_flag_spec
=
14912 tmp_sharedflag
='--shared' ;;
14913 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14914 tmp_sharedflag
='-qmkshrobj'
14916 nvcc
*) # Cuda Compiler Driver 2.2
14917 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'
14918 compiler_needs_object
=yes
14921 case `$CC -V 2>&1 | sed 5q` in
14922 *Sun\ C
*) # Sun C 5.9
14923 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'
14924 compiler_needs_object
=yes
14925 tmp_sharedflag
='-G' ;;
14926 *Sun\ F
*) # Sun Fortran 8.3
14927 tmp_sharedflag
='-G' ;;
14929 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931 if test "x$supports_anon_versioning" = xyes
; then
14932 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14934 echo "local: *; };" >> $output_objdir/$libname.ver~
14935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14938 case $cc_basename in
14939 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14941 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14942 hardcode_libdir_flag_spec
=
14943 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14944 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14945 if test "x$supports_anon_versioning" = xyes
; then
14946 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14948 echo "local: *; };" >> $output_objdir/$libname.ver~
14949 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14959 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14960 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14963 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14969 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14974 *** create shared libraries on Solaris systems. Therefore, libtool
14975 *** is disabling shared libraries support. We urge you to upgrade GNU
14976 *** binutils to release 2.9.1 or newer. Another option is to modify
14977 *** your PATH or compiler configuration so that the native linker is
14978 *** used, and then restart.
14981 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14982 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14989 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14990 case `$LD -v 2>&1` in
14991 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14996 *** reliably create shared libraries on SCO systems. Therefore, libtool
14997 *** is disabling shared libraries support. We urge you to upgrade GNU
14998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14999 *** your PATH or compiler configuration so that the native linker is
15000 *** used, and then restart.
15005 # For security reasons, it is highly recommended that you always
15006 # use absolute paths for naming shared libraries, and exclude the
15007 # DT_RUNPATH tag from executables and libraries. But doing so
15008 # requires that you compile everything twice, which is a pain.
15009 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15010 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15011 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15021 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_direct
=yes
15024 hardcode_shlibpath_var
=no
15028 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15029 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15037 if test "$ld_shlibs" = no
; then
15039 hardcode_libdir_flag_spec
=
15040 export_dynamic_flag_spec
=
15041 whole_archive_flag_spec
=
15044 # PORTME fill in a description of your system's linker (not GNU ld)
15047 allow_undefined_flag
=unsupported
15048 always_export_symbols
=yes
15049 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'
15050 # Note: this linker hardcodes the directories in LIBPATH if there
15051 # are no directories specified by -L.
15052 hardcode_minus_L
=yes
15053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15054 # Neither direct hardcoding nor static linking is supported with a
15056 hardcode_direct
=unsupported
15061 if test "$host_cpu" = ia64
; then
15062 # On IA64, the linker does run time linking by default, so we don't
15063 # have to do anything special.
15064 aix_use_runtimelinking
=no
15065 exp_sym_flag
='-Bexport'
15068 # If we're using GNU nm, then we don't want the "-C" option.
15069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15070 # Also, AIX nm treats weak defined symbols like other global
15071 # defined symbols, whereas GNU nm marks them as "W".
15072 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15073 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'
15075 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'
15077 aix_use_runtimelinking
=no
15079 # Test if we are trying to use run time linking or normal
15080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15081 # need to do runtime linking.
15082 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15083 for ld_flag
in $LDFLAGS; do
15084 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15085 aix_use_runtimelinking
=yes
15092 exp_sym_flag
='-bexport'
15093 no_entry_flag
='-bnoentry'
15096 # When large executables or shared objects are built, AIX ld can
15097 # have problems creating the table of contents. If linking a library
15098 # or program results in "error TOC overflow" add -mminimal-toc to
15099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15103 hardcode_direct
=yes
15104 hardcode_direct_absolute
=yes
15105 hardcode_libdir_separator
=':'
15106 link_all_deplibs
=yes
15107 file_list_spec
='${wl}-f,'
15109 if test "$GCC" = yes; then
15110 case $host_os in aix4.
[012]|aix4.
[012].
*)
15111 # We only want to do this on AIX 4.2 and lower, the check
15112 # below for broken collect2 doesn't work under 4.3+
15113 collect2name
=`${CC} -print-prog-name=collect2`
15114 if test -f "$collect2name" &&
15115 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15117 # We have reworked collect2
15120 # We have old collect2
15121 hardcode_direct
=unsupported
15122 # It fails to find uninstalled libraries when the uninstalled
15123 # path is not listed in the libpath. Setting hardcode_minus_L
15124 # to unsupported forces relinking
15125 hardcode_minus_L
=yes
15126 hardcode_libdir_flag_spec
='-L$libdir'
15127 hardcode_libdir_separator
=
15131 shared_flag
='-shared'
15132 if test "$aix_use_runtimelinking" = yes; then
15133 shared_flag
="$shared_flag "'${wl}-G'
15137 if test "$host_cpu" = ia64
; then
15138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15139 # chokes on -Wl,-G. The following line is correct:
15142 if test "$aix_use_runtimelinking" = yes; then
15143 shared_flag
='${wl}-G'
15145 shared_flag
='${wl}-bM:SRE'
15150 export_dynamic_flag_spec
='${wl}-bexpall'
15151 # It seems that -bexpall does not export symbols beginning with
15152 # underscore (_), so it is better to generate a list of symbols to export.
15153 always_export_symbols
=yes
15154 if test "$aix_use_runtimelinking" = yes; then
15155 # Warning - without using the other runtime loading flags (-brtl),
15156 # -berok will link without error, but may produce a broken library.
15157 allow_undefined_flag
='-berok'
15158 # Determine the default libpath from the value encoded in an
15159 # empty executable.
15160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15171 if ac_fn_c_try_link
"$LINENO"; then :
15173 lt_aix_libpath_sed
='
15174 /Import File Strings/,/^$/ {
15180 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15181 # Check for a 64-bit object if we didn't find anything.
15182 if test -z "$aix_libpath"; then
15183 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15186 rm -f core conftest.err conftest.
$ac_objext \
15187 conftest
$ac_exeext conftest.
$ac_ext
15188 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15190 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15191 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"
15193 if test "$host_cpu" = ia64
; then
15194 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15195 allow_undefined_flag
="-z nodefs"
15196 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"
15198 # Determine the default libpath from the value encoded in an
15199 # empty executable.
15200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15211 if ac_fn_c_try_link
"$LINENO"; then :
15213 lt_aix_libpath_sed
='
15214 /Import File Strings/,/^$/ {
15220 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15221 # Check for a 64-bit object if we didn't find anything.
15222 if test -z "$aix_libpath"; then
15223 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15226 rm -f core conftest.err conftest.
$ac_objext \
15227 conftest
$ac_exeext conftest.
$ac_ext
15228 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15230 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15231 # Warning - without using the other run time loading flags,
15232 # -berok will link without error, but may produce a broken library.
15233 no_undefined_flag
=' ${wl}-bernotok'
15234 allow_undefined_flag
=' ${wl}-berok'
15235 if test "$with_gnu_ld" = yes; then
15236 # We only use this code for GNU lds that support --whole-archive.
15237 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15239 # Exported symbols can be pulled into shared objects from archives
15240 whole_archive_flag_spec
='$convenience'
15242 archive_cmds_need_lc
=yes
15243 # This is similar to how AIX traditionally builds its shared libraries.
15244 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'
15252 # see comment about AmigaOS4 .so support
15253 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15254 archive_expsym_cmds
=''
15257 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)'
15258 hardcode_libdir_flag_spec
='-L$libdir'
15259 hardcode_minus_L
=yes
15265 export_dynamic_flag_spec
=-rdynamic
15268 cygwin
* | mingw
* | pw32
* | cegcc
*)
15269 # When not using gcc, we currently assume that we are using
15270 # Microsoft Visual C++.
15271 # hardcode_libdir_flag_spec is actually meaningless, as there is
15272 # no search path for DLLs.
15273 hardcode_libdir_flag_spec
=' '
15274 allow_undefined_flag
=unsupported
15275 # Tell ltmain to make .lib files, not .a files.
15277 # Tell ltmain to make .dll files, not .so files.
15279 # FIXME: Setting linknames here is a bad hack.
15280 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15281 # The linker will automatically build a .lib file if we build a DLL.
15282 old_archive_from_new_cmds
='true'
15283 # FIXME: Should let the user specify the lib program.
15284 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15285 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15286 enable_shared_with_static_runtimes
=yes
15289 darwin
* | rhapsody
*)
15292 archive_cmds_need_lc
=no
15294 hardcode_automatic
=yes
15295 hardcode_shlibpath_var
=unsupported
15296 if test "$lt_cv_ld_force_load" = "yes"; then
15297 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\"`'
15299 whole_archive_flag_spec
=''
15301 link_all_deplibs
=yes
15302 allow_undefined_flag
="$_lt_dar_allow_undefined"
15303 case $cc_basename in
15304 ifort
*) _lt_dar_can_shared
=yes ;;
15305 *) _lt_dar_can_shared
=$GCC ;;
15307 if test "$_lt_dar_can_shared" = "yes"; then
15308 output_verbose_link_cmd
=func_echo_all
15309 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15310 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15311 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}"
15312 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}"
15321 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322 hardcode_libdir_flag_spec
='-L$libdir'
15323 hardcode_shlibpath_var
=no
15330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15331 # support. Future versions do this automatically, but an explicit c++rt0.o
15332 # does not break anything, and helps significantly (at the cost of a little
15335 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15336 hardcode_libdir_flag_spec
='-R$libdir'
15337 hardcode_direct
=yes
15338 hardcode_shlibpath_var
=no
15341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15343 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_direct
=yes
15345 hardcode_minus_L
=yes
15346 hardcode_shlibpath_var
=no
15349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15350 freebsd
* | dragonfly
*)
15351 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15352 hardcode_libdir_flag_spec
='-R$libdir'
15353 hardcode_direct
=yes
15354 hardcode_shlibpath_var
=no
15358 if test "$GCC" = yes; then
15359 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'
15361 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'
15363 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15364 hardcode_libdir_separator
=:
15365 hardcode_direct
=yes
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L
=yes
15370 export_dynamic_flag_spec
='${wl}-E'
15374 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15375 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15377 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15379 if test "$with_gnu_ld" = no
; then
15380 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15381 hardcode_libdir_flag_spec_ld
='+b $libdir'
15382 hardcode_libdir_separator
=:
15383 hardcode_direct
=yes
15384 hardcode_direct_absolute
=yes
15385 export_dynamic_flag_spec
='${wl}-E'
15386 # hardcode_minus_L: Not really in the search PATH,
15387 # but as the default location of the library.
15388 hardcode_minus_L
=yes
15393 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15396 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15402 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15408 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15411 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15415 # Older versions of the 11.00 compiler do not understand -b yet
15416 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15418 $as_echo_n "checking if $CC understands -b... " >&6; }
15419 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15420 $as_echo_n "(cached) " >&6
15422 lt_cv_prog_compiler__b
=no
15423 save_LDFLAGS
="$LDFLAGS"
15424 LDFLAGS
="$LDFLAGS -b"
15425 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15426 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15427 # The linker can only warn and ignore the option if not recognized
15428 # So say no if there are warnings
15429 if test -s conftest.err
; then
15430 # Append any errors to the config.log.
15431 cat conftest.err
1>&5
15432 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15433 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15434 if diff conftest.exp conftest.er2
>/dev
/null
; then
15435 lt_cv_prog_compiler__b
=yes
15438 lt_cv_prog_compiler__b
=yes
15442 LDFLAGS
="$save_LDFLAGS"
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15446 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15448 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15449 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15451 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15457 if test "$with_gnu_ld" = no
; then
15458 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15459 hardcode_libdir_separator
=:
15464 hardcode_shlibpath_var
=no
15467 hardcode_direct
=yes
15468 hardcode_direct_absolute
=yes
15469 export_dynamic_flag_spec
='${wl}-E'
15471 # hardcode_minus_L: Not really in the search PATH,
15472 # but as the default location of the library.
15473 hardcode_minus_L
=yes
15479 irix5
* | irix6
* | nonstopux
*)
15480 if test "$GCC" = yes; then
15481 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'
15482 # Try to use the -exported_symbol ld option, if it does not
15483 # work, assume that -exports_file does not work either and
15484 # implicitly export all symbols.
15485 save_LDFLAGS
="$LDFLAGS"
15486 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15491 if ac_fn_c_try_link
"$LINENO"; then :
15492 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'
15495 rm -f core conftest.err conftest.
$ac_objext \
15496 conftest
$ac_exeext conftest.
$ac_ext
15497 LDFLAGS
="$save_LDFLAGS"
15499 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'
15500 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'
15502 archive_cmds_need_lc
='no'
15503 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15504 hardcode_libdir_separator
=:
15506 link_all_deplibs
=yes
15510 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15511 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15513 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15515 hardcode_libdir_flag_spec
='-R$libdir'
15516 hardcode_direct
=yes
15517 hardcode_shlibpath_var
=no
15521 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct
=yes
15523 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15524 hardcode_libdir_separator
=:
15525 hardcode_shlibpath_var
=no
15532 if test -f /usr
/libexec
/ld.so
; then
15533 hardcode_direct
=yes
15534 hardcode_shlibpath_var
=no
15535 hardcode_direct_absolute
=yes
15536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15537 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15538 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15539 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15540 export_dynamic_flag_spec
='${wl}-E'
15543 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15544 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_libdir_flag_spec
='-R$libdir'
15548 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15549 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15559 hardcode_libdir_flag_spec
='-L$libdir'
15560 hardcode_minus_L
=yes
15561 allow_undefined_flag
=unsupported
15562 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'
15563 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15567 if test "$GCC" = yes; then
15568 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15569 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'
15571 allow_undefined_flag
=' -expect_unresolved \*'
15572 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'
15574 archive_cmds_need_lc
='no'
15575 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15576 hardcode_libdir_separator
=:
15579 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15580 if test "$GCC" = yes; then
15581 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15582 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'
15583 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15585 allow_undefined_flag
=' -expect_unresolved \*'
15586 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'
15587 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~
15588 $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'
15590 # Both c and cxx compiler support -rpath directly
15591 hardcode_libdir_flag_spec
='-rpath $libdir'
15593 archive_cmds_need_lc
='no'
15594 hardcode_libdir_separator
=:
15598 no_undefined_flag
=' -z defs'
15599 if test "$GCC" = yes; then
15601 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15603 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15605 case `$CC -V 2>&1` in
15608 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15614 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15615 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15620 hardcode_libdir_flag_spec
='-R$libdir'
15621 hardcode_shlibpath_var
=no
15623 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15625 # The compiler driver will combine and reorder linker options,
15626 # but understands `-z linker_flag'. GCC discards it without `$wl',
15627 # but is careful enough not to reorder.
15628 # Supported since Solaris 2.6 (maybe 2.5.1?)
15629 if test "$GCC" = yes; then
15630 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15632 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15636 link_all_deplibs
=yes
15640 if test "x$host_vendor" = xsequent
; then
15641 # Use $CC to link under sequent, because it throws in some extra .o
15642 # files that make .init and .fini sections work.
15643 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_libdir_flag_spec
='-L$libdir'
15648 hardcode_direct
=yes
15649 hardcode_minus_L
=yes
15650 hardcode_shlibpath_var
=no
15654 case $host_vendor in
15656 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15657 hardcode_direct
=yes # is this really true???
15660 ## LD is ld it makes a PLAMLIB
15661 ## CC just makes a GrossModule.
15662 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15663 reload_cmds
='$CC -r -o $output$reload_objs'
15667 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15668 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15671 runpath_var
='LD_RUN_PATH'
15672 hardcode_shlibpath_var
=no
15676 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_shlibpath_var
=no
15678 export_dynamic_flag_spec
='-Bexport'
15682 if test -d /usr
/nec
; then
15683 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_shlibpath_var
=no
15685 runpath_var
=LD_RUN_PATH
15686 hardcode_runpath_var
=yes
15691 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15692 no_undefined_flag
='${wl}-z,text'
15693 archive_cmds_need_lc
=no
15694 hardcode_shlibpath_var
=no
15695 runpath_var
='LD_RUN_PATH'
15697 if test "$GCC" = yes; then
15698 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 sysv5
* | sco3.2v5
* | sco5v6
*)
15707 # Note: We can NOT use -z defs as we might desire, because we do not
15708 # link with -lc, and that would cause any symbols used from libc to
15709 # always be unresolved, which means just about no library would
15710 # ever link correctly. If we're not using GNU ld we use -z text
15711 # though, which does catch some bad symbols but isn't as heavy-handed
15713 no_undefined_flag
='${wl}-z,text'
15714 allow_undefined_flag
='${wl}-z,nodefs'
15715 archive_cmds_need_lc
=no
15716 hardcode_shlibpath_var
=no
15717 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15718 hardcode_libdir_separator
=':'
15719 link_all_deplibs
=yes
15720 export_dynamic_flag_spec
='${wl}-Bexport'
15721 runpath_var
='LD_RUN_PATH'
15723 if test "$GCC" = yes; then
15724 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_libdir_flag_spec
='-L$libdir'
15735 hardcode_shlibpath_var
=no
15743 if test x
$host_vendor = xsni
; then
15745 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15746 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15753 $as_echo "$ld_shlibs" >&6; }
15754 test "$ld_shlibs" = no
&& can_build_shared
=no
15756 with_gnu_ld
=$with_gnu_ld
15773 # Do we need to explicitly link libc?
15775 case "x$archive_cmds_need_lc" in
15777 # Assume -lc should be added
15778 archive_cmds_need_lc
=yes
15780 if test "$enable_shared" = yes && test "$GCC" = yes; then
15781 case $archive_cmds in
15783 # FIXME: we may have to deal with multi-command sequences.
15786 # Test whether the compiler implicitly links with -lc since on some
15787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15788 # to ld, don't add -lc before -lgcc.
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15791 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15795 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15798 (eval $ac_compile) 2>&5
15800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15801 test $ac_status = 0; } 2>conftest.err
; then
15804 libobjs
=conftest.
$ac_objext
15806 wl
=$lt_prog_compiler_wl
15807 pic_flag
=$lt_prog_compiler_pic
15813 lt_save_allow_undefined_flag
=$allow_undefined_flag
15814 allow_undefined_flag
=
15815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15816 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15819 test $ac_status = 0; }
15821 lt_cv_archive_cmds_need_lc
=no
15823 lt_cv_archive_cmds_need_lc
=yes
15825 allow_undefined_flag
=$lt_save_allow_undefined_flag
15827 cat conftest.err
1>&5
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15833 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15834 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16000 if test "$GCC" = yes; then
16002 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16003 *) lt_awk_arg
="/^libraries:/" ;;
16006 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16007 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16009 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16010 case $lt_search_path_spec in
16012 # if the path contains ";" then we assume it to be the separator
16013 # otherwise default to the standard path separator (i.e. ":") - it is
16014 # assumed that no part of a normal pathname contains ";" but that should
16015 # okay in the real world where ";" in dirpaths is itself problematic.
16016 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16019 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16022 # Ok, now we have the path, separated by spaces, we can step through it
16023 # and add multilib dir if necessary.
16024 lt_tmp_lt_search_path_spec
=
16025 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16026 for lt_sys_path
in $lt_search_path_spec; do
16027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16028 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16030 test -d "$lt_sys_path" && \
16031 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16034 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16035 BEGIN {RS=" "; FS="/|\n";} {
16038 for (lt_i = NF; lt_i > 0; lt_i--) {
16039 if ($lt_i != "" && $lt_i != ".") {
16040 if ($lt_i == "..") {
16043 if (lt_count == 0) {
16044 lt_foo="/" $lt_i lt_foo;
16051 if (lt_foo != "") { lt_freq[lt_foo]++; }
16052 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16054 # AWK program above erroneously prepends '/' to C:/dos/paths
16057 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16058 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16060 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16062 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16064 library_names_spec
=
16065 libname_spec
='lib$name'
16069 postuninstall_cmds
=
16073 shlibpath_overrides_runpath
=unknown
16075 dynamic_linker
="$host_os ld.so"
16076 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16077 need_lib_prefix
=unknown
16078 hardcode_into_libs
=no
16080 # when you set need_version to no, make sure it does not cause -set_version
16081 # flags to be left without arguments
16082 need_version
=unknown
16087 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16088 shlibpath_var
=LIBPATH
16090 # AIX 3 has no versioning support, so we append a major version to the name.
16091 soname_spec
='${libname}${release}${shared_ext}$major'
16098 hardcode_into_libs
=yes
16099 if test "$host_cpu" = ia64
; then
16100 # AIX 5 supports IA64
16101 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16102 shlibpath_var
=LD_LIBRARY_PATH
16104 # With GCC up to 2.95.x, collect2 would create an import file
16105 # for dependence libraries. The import file would start with
16106 # the line `#! .'. This would cause the generated library to
16107 # depend on `.', always an invalid library. This was fixed in
16108 # development snapshots of GCC prior to 3.0.
16110 aix4 | aix4.
[01] | aix4.
[01].
*)
16111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16113 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16116 can_build_shared
=no
16120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16121 # soname into executable. Probably we can add versioning support to
16122 # collect2, so additional links can be useful in future.
16123 if test "$aix_use_runtimelinking" = yes; then
16124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16125 # instead of lib<name>.a to let people know that these are not
16126 # typical AIX shared libraries.
16127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 # We preserve .a as extension for shared libraries through AIX4.2
16130 # and later when we are not doing run time linking.
16131 library_names_spec
='${libname}${release}.a $libname.a'
16132 soname_spec
='${libname}${release}${shared_ext}$major'
16134 shlibpath_var
=LIBPATH
16141 # Since July 2007 AmigaOS4 officially supports .so libraries.
16142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 library_names_spec
='$libname.ixlibrary $libname.a'
16147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16148 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'
16154 library_names_spec
='${libname}${shared_ext}'
16155 dynamic_linker
="$host_os ld.so"
16156 shlibpath_var
=LIBRARY_PATH
16162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16163 soname_spec
='${libname}${release}${shared_ext}$major'
16164 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16165 shlibpath_var
=LD_LIBRARY_PATH
16166 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16167 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16168 # the default ld.so.conf also contains /usr/contrib/lib and
16169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16170 # libtool to hard-code these into programs
16173 cygwin
* | mingw
* | pw32
* | cegcc
*)
16174 version_type
=windows
16179 case $GCC,$host_os in
16180 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16181 library_names_spec
='$libname.dll.a'
16182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16183 postinstall_cmds
='base_file=`basename \${file}`~
16184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16185 dldir=$destdir/`dirname \$dlpath`~
16186 test -d \$dldir || mkdir -p \$dldir~
16187 $install_prog $dir/$dlname \$dldir/$dlname~
16188 chmod a+x \$dldir/$dlname~
16189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16192 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16193 dlpath=$dir/\$dldll~
16195 shlibpath_overrides_runpath
=yes
16199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16200 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16202 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16205 # MinGW DLLs use traditional 'lib' prefix
16206 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16209 # pw32 DLLs use 'pw' prefix rather than 'lib'
16210 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16216 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16219 dynamic_linker
='Win32 ld.exe'
16220 # FIXME: first we should search . and the directory the executable is in
16224 darwin
* | rhapsody
*)
16225 dynamic_linker
="$host_os dyld"
16226 version_type
=darwin
16229 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16230 soname_spec
='${libname}${release}${major}$shared_ext'
16231 shlibpath_overrides_runpath
=yes
16232 shlibpath_var
=DYLD_LIBRARY_PATH
16233 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16235 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16236 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16244 soname_spec
='${libname}${release}${shared_ext}$major'
16245 shlibpath_var
=LD_LIBRARY_PATH
16252 freebsd
* | dragonfly
*)
16253 # DragonFly does not have aout. When/if they implement a new
16254 # versioning mechanism, adjust this.
16255 if test -x /usr
/bin
/objformat
; then
16256 objformat
=`/usr/bin/objformat`
16259 freebsd
[123]*) objformat
=aout
;;
16260 *) objformat
=elf
;;
16263 version_type
=freebsd-
$objformat
16264 case $version_type in
16266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16271 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16275 shlibpath_var
=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath
=yes
16280 freebsd3.
[01]* | freebsdelf3.
[01]*)
16281 shlibpath_overrides_runpath
=yes
16282 hardcode_into_libs
=yes
16284 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16285 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16286 shlibpath_overrides_runpath
=no
16287 hardcode_into_libs
=yes
16289 *) # from 4.6 on, and DragonFly
16290 shlibpath_overrides_runpath
=yes
16291 hardcode_into_libs
=yes
16300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16301 soname_spec
='${libname}${release}${shared_ext}$major'
16302 shlibpath_var
=LD_LIBRARY_PATH
16303 hardcode_into_libs
=yes
16310 dynamic_linker
="$host_os runtime_loader"
16311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16312 soname_spec
='${libname}${release}${shared_ext}$major'
16313 shlibpath_var
=LIBRARY_PATH
16314 shlibpath_overrides_runpath
=yes
16315 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16316 hardcode_into_libs
=yes
16319 hpux9
* | hpux10
* | hpux11
*)
16320 # Give a soname corresponding to the major version so that dld.sl refuses to
16321 # link against other versions.
16328 hardcode_into_libs
=yes
16329 dynamic_linker
="$host_os dld.so"
16330 shlibpath_var
=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec
='${libname}${release}${shared_ext}$major'
16334 if test "X$HPUX_IA64_MODE" = X32
; then
16335 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16337 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16339 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16343 hardcode_into_libs
=yes
16344 dynamic_linker
="$host_os dld.sl"
16345 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16346 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 soname_spec
='${libname}${release}${shared_ext}$major'
16349 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16350 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16354 dynamic_linker
="$host_os dld.sl"
16355 shlibpath_var
=SHLIB_PATH
16356 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
16361 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16362 postinstall_cmds
='chmod 555 $lib'
16363 # or fails outright, so override atomically:
16364 install_override_mode
=555
16371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16372 soname_spec
='${libname}${release}${shared_ext}$major'
16373 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16374 shlibpath_var
=LD_LIBRARY_PATH
16375 shlibpath_overrides_runpath
=no
16376 hardcode_into_libs
=yes
16379 irix5
* | irix6
* | nonstopux
*)
16381 nonstopux
*) version_type
=nonstopux
;;
16383 if test "$lt_cv_prog_gnu_ld" = yes; then
16391 soname_spec
='${libname}${release}${shared_ext}$major'
16392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16394 irix5
* | nonstopux
*)
16395 libsuff
= shlibsuff
=
16398 case $LD in # libtool.m4 will add one of these switches to LD
16399 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16400 libsuff
= shlibsuff
= libmagic
=32-bit;;
16401 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16402 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16403 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16404 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16405 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16409 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16410 shlibpath_overrides_runpath
=no
16411 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16412 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16413 hardcode_into_libs
=yes
16416 # No shared lib support for Linux oldld, aout, or coff.
16417 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16421 # This must be Linux ELF.
16422 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16429 shlibpath_var
=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath
=no
16432 # Some binutils ld are patched to set DT_RUNPATH
16433 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16434 $as_echo_n "(cached) " >&6
16436 lt_cv_shlibpath_overrides_runpath
=no
16437 save_LDFLAGS
=$LDFLAGS
16438 save_libdir
=$libdir
16439 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16440 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16452 if ac_fn_c_try_link
"$LINENO"; then :
16453 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16454 lt_cv_shlibpath_overrides_runpath
=yes
16457 rm -f core conftest.err conftest.
$ac_objext \
16458 conftest
$ac_exeext conftest.
$ac_ext
16459 LDFLAGS
=$save_LDFLAGS
16460 libdir
=$save_libdir
16464 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16466 # This implies no fast_install, which is unacceptable.
16467 # Some rework will be needed to allow for fast_install
16468 # before this can be enabled.
16469 hardcode_into_libs
=yes
16471 # Append ld.so.conf contents to the search path
16472 if test -f /etc
/ld.so.conf
; then
16473 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' ' '`
16474 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16477 # We used to test for /lib/ld.so.1 and disable shared libraries on
16478 # powerpc, because MkLinux only supported shared libraries with the
16479 # GNU dynamic linker. Since this was broken with cross compilers,
16480 # most powerpc-linux boxes support dynamic linking these days and
16481 # people can always --disable-shared, the test was removed, and we
16482 # assume the GNU/Linux dynamic linker is in use.
16483 dynamic_linker
='GNU/Linux ld.so'
16490 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16492 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16493 dynamic_linker
='NetBSD (a.out) ld.so'
16495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16496 soname_spec
='${libname}${release}${shared_ext}$major'
16497 dynamic_linker
='NetBSD ld.elf_so'
16499 shlibpath_var
=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath
=yes
16501 hardcode_into_libs
=yes
16506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 shlibpath_var
=LD_LIBRARY_PATH
16508 shlibpath_overrides_runpath
=yes
16515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec
='${libname}${release}${shared_ext}$major'
16517 shlibpath_var
=LD_LIBRARY_PATH
16518 shlibpath_overrides_runpath
=no
16519 hardcode_into_libs
=yes
16520 dynamic_linker
='ldqnx.so'
16525 sys_lib_dlsearch_path_spec
="/usr/lib"
16527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16529 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16530 *) need_version
=no
;;
16532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16533 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16534 shlibpath_var
=LD_LIBRARY_PATH
16535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16537 openbsd2.
[89] | openbsd2.
[89].
*)
16538 shlibpath_overrides_runpath
=no
16541 shlibpath_overrides_runpath
=yes
16545 shlibpath_overrides_runpath
=yes
16550 libname_spec
='$name'
16553 library_names_spec
='$libname${shared_ext} $libname.a'
16554 dynamic_linker
='OS/2 ld.exe'
16555 shlibpath_var
=LIBPATH
16558 osf3
* | osf4
* | osf5
*)
16562 soname_spec
='${libname}${release}${shared_ext}$major'
16563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 shlibpath_var
=LD_LIBRARY_PATH
16565 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16566 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 soname_spec
='${libname}${release}${shared_ext}$major'
16579 shlibpath_var
=LD_LIBRARY_PATH
16580 shlibpath_overrides_runpath
=yes
16581 hardcode_into_libs
=yes
16582 # ldd complains unless libraries are executable
16583 postinstall_cmds
='chmod +x $lib'
16588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16589 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16590 shlibpath_var
=LD_LIBRARY_PATH
16591 shlibpath_overrides_runpath
=yes
16592 if test "$with_gnu_ld" = yes; then
16600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec
='${libname}${release}${shared_ext}$major'
16602 shlibpath_var
=LD_LIBRARY_PATH
16603 case $host_vendor in
16605 shlibpath_overrides_runpath
=no
16607 runpath_var
=LD_RUN_PATH
16615 shlibpath_overrides_runpath
=no
16616 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16622 if test -d /usr
/nec
;then
16624 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16625 soname_spec
='$libname${shared_ext}.$major'
16626 shlibpath_var
=LD_LIBRARY_PATH
16630 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16631 version_type
=freebsd-elf
16634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16635 soname_spec
='${libname}${release}${shared_ext}$major'
16636 shlibpath_var
=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath
=yes
16638 hardcode_into_libs
=yes
16639 if test "$with_gnu_ld" = yes; then
16640 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16642 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16645 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16649 sys_lib_dlsearch_path_spec
='/usr/lib'
16653 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 shlibpath_var
=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath
=no
16660 hardcode_into_libs
=yes
16665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16666 soname_spec
='${libname}${release}${shared_ext}$major'
16667 shlibpath_var
=LD_LIBRARY_PATH
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16675 $as_echo "$dynamic_linker" >&6; }
16676 test "$dynamic_linker" = no
&& can_build_shared
=no
16678 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16679 if test "$GCC" = yes; then
16680 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16684 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16686 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16687 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16782 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16784 if test -n "$hardcode_libdir_flag_spec" ||
16785 test -n "$runpath_var" ||
16786 test "X$hardcode_automatic" = "Xyes" ; then
16788 # We can hardcode non-existent directories.
16789 if test "$hardcode_direct" != no
&&
16790 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16791 # have to relink, otherwise we might link with an installed library
16792 # when we should be linking with a yet-to-be-installed one
16793 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16794 test "$hardcode_minus_L" != no
; then
16795 # Linking always hardcodes the temporary library directory.
16796 hardcode_action
=relink
16798 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16799 hardcode_action
=immediate
16802 # We cannot hardcode anything, or else we can only hardcode existing
16804 hardcode_action
=unsupported
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16807 $as_echo "$hardcode_action" >&6; }
16809 if test "$hardcode_action" = relink ||
16810 test "$inherit_rpath" = yes; then
16811 # Fast installation is not supported
16812 enable_fast_install
=no
16813 elif test "$shlibpath_overrides_runpath" = yes ||
16814 test "$enable_shared" = no
; then
16815 # Fast installation is not necessary
16816 enable_fast_install
=needless
16824 if test "x$enable_dlopen" != xyes
; then
16825 enable_dlopen
=unknown
16826 enable_dlopen_self
=unknown
16827 enable_dlopen_self_static
=unknown
16834 lt_cv_dlopen
="load_add_on"
16836 lt_cv_dlopen_self
=yes
16839 mingw
* | pw32
* | cegcc
*)
16840 lt_cv_dlopen
="LoadLibrary"
16845 lt_cv_dlopen
="dlopen"
16850 # if libdl is installed we need to link against it
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16852 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16854 $as_echo_n "(cached) " >&6
16856 ac_check_lib_save_LIBS
=$LIBS
16858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16876 if ac_fn_c_try_link
"$LINENO"; then :
16877 ac_cv_lib_dl_dlopen
=yes
16879 ac_cv_lib_dl_dlopen
=no
16881 rm -f core conftest.err conftest.
$ac_objext \
16882 conftest
$ac_exeext conftest.
$ac_ext
16883 LIBS
=$ac_check_lib_save_LIBS
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16886 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16887 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16888 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16891 lt_cv_dlopen
="dyld"
16893 lt_cv_dlopen_self
=yes
16900 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16901 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16902 lt_cv_dlopen
="shl_load"
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16905 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16906 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16907 $as_echo_n "(cached) " >&6
16909 ac_check_lib_save_LIBS
=$LIBS
16911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16924 return shl_load ();
16929 if ac_fn_c_try_link
"$LINENO"; then :
16930 ac_cv_lib_dld_shl_load
=yes
16932 ac_cv_lib_dld_shl_load
=no
16934 rm -f core conftest.err conftest.
$ac_objext \
16935 conftest
$ac_exeext conftest.
$ac_ext
16936 LIBS
=$ac_check_lib_save_LIBS
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16939 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16940 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16941 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16943 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16944 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16945 lt_cv_dlopen
="dlopen"
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16950 $as_echo_n "(cached) " >&6
16952 ac_check_lib_save_LIBS
=$LIBS
16954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16957 /* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
16972 if ac_fn_c_try_link
"$LINENO"; then :
16973 ac_cv_lib_dl_dlopen
=yes
16975 ac_cv_lib_dl_dlopen
=no
16977 rm -f core conftest.err conftest.
$ac_objext \
16978 conftest
$ac_exeext conftest.
$ac_ext
16979 LIBS
=$ac_check_lib_save_LIBS
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16982 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16983 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16984 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16987 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16988 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16989 $as_echo_n "(cached) " >&6
16991 ac_check_lib_save_LIBS
=$LIBS
16992 LIBS
="-lsvld $LIBS"
16993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
17011 if ac_fn_c_try_link
"$LINENO"; then :
17012 ac_cv_lib_svld_dlopen
=yes
17014 ac_cv_lib_svld_dlopen
=no
17016 rm -f core conftest.err conftest.
$ac_objext \
17017 conftest
$ac_exeext conftest.
$ac_ext
17018 LIBS
=$ac_check_lib_save_LIBS
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17021 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17022 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17023 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17026 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17028 $as_echo_n "(cached) " >&6
17030 ac_check_lib_save_LIBS
=$LIBS
17032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17035 /* Override any GCC internal prototype to avoid an error.
17036 Use char because int might match the return type of a GCC
17037 builtin and then its argument prototype would still apply. */
17045 return dld_link ();
17050 if ac_fn_c_try_link
"$LINENO"; then :
17051 ac_cv_lib_dld_dld_link
=yes
17053 ac_cv_lib_dld_dld_link
=no
17055 rm -f core conftest.err conftest.
$ac_objext \
17056 conftest
$ac_exeext conftest.
$ac_ext
17057 LIBS
=$ac_check_lib_save_LIBS
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17060 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17061 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17062 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17083 if test "x$lt_cv_dlopen" != xno
; then
17089 case $lt_cv_dlopen in
17091 save_CPPFLAGS
="$CPPFLAGS"
17092 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17094 save_LDFLAGS
="$LDFLAGS"
17095 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17098 LIBS
="$lt_cv_dlopen_libs $LIBS"
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17101 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17102 if test "${lt_cv_dlopen_self+set}" = set; then :
17103 $as_echo_n "(cached) " >&6
17105 if test "$cross_compiling" = yes; then :
17106 lt_cv_dlopen_self
=cross
17108 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17109 lt_status
=$lt_dlunknown
17110 cat > conftest.
$ac_ext <<_LT_EOF
17111 #line 17111 "configure"
17112 #include "confdefs.h"
17121 # define LT_DLGLOBAL RTLD_GLOBAL
17124 # define LT_DLGLOBAL DL_GLOBAL
17126 # define LT_DLGLOBAL 0
17130 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17131 find out it does not work in some platform. */
17132 #ifndef LT_DLLAZY_OR_NOW
17134 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17137 # define LT_DLLAZY_OR_NOW DL_LAZY
17140 # define LT_DLLAZY_OR_NOW RTLD_NOW
17143 # define LT_DLLAZY_OR_NOW DL_NOW
17145 # define LT_DLLAZY_OR_NOW 0
17152 /* When -fvisbility=hidden is used, assume the code has been annotated
17153 correspondingly for the symbols needed. */
17154 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17155 void fnord () __attribute__((visibility("default")));
17158 void fnord () { int i=42; }
17161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17162 int status = $lt_dlunknown;
17166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17169 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17170 else puts (dlerror ());
17172 /* dlclose (self); */
17180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17181 (eval $ac_link) 2>&5
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17185 (.
/conftest
; exit; ) >&5 2>/dev
/null
17187 case x
$lt_status in
17188 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17189 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17190 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17193 # compilation failed
17194 lt_cv_dlopen_self
=no
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17202 $as_echo "$lt_cv_dlopen_self" >&6; }
17204 if test "x$lt_cv_dlopen_self" = xyes
; then
17205 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17207 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17208 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17209 $as_echo_n "(cached) " >&6
17211 if test "$cross_compiling" = yes; then :
17212 lt_cv_dlopen_self_static
=cross
17214 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17215 lt_status
=$lt_dlunknown
17216 cat > conftest.
$ac_ext <<_LT_EOF
17217 #line 17217 "configure"
17218 #include "confdefs.h"
17227 # define LT_DLGLOBAL RTLD_GLOBAL
17230 # define LT_DLGLOBAL DL_GLOBAL
17232 # define LT_DLGLOBAL 0
17236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17237 find out it does not work in some platform. */
17238 #ifndef LT_DLLAZY_OR_NOW
17240 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17243 # define LT_DLLAZY_OR_NOW DL_LAZY
17246 # define LT_DLLAZY_OR_NOW RTLD_NOW
17249 # define LT_DLLAZY_OR_NOW DL_NOW
17251 # define LT_DLLAZY_OR_NOW 0
17258 /* When -fvisbility=hidden is used, assume the code has been annotated
17259 correspondingly for the symbols needed. */
17260 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17261 void fnord () __attribute__((visibility("default")));
17264 void fnord () { int i=42; }
17267 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17268 int status = $lt_dlunknown;
17272 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17275 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17276 else puts (dlerror ());
17278 /* dlclose (self); */
17286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17287 (eval $ac_link) 2>&5
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17291 (.
/conftest
; exit; ) >&5 2>/dev
/null
17293 case x
$lt_status in
17294 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17295 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17296 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17299 # compilation failed
17300 lt_cv_dlopen_self_static
=no
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17311 CPPFLAGS
="$save_CPPFLAGS"
17312 LDFLAGS
="$save_LDFLAGS"
17317 case $lt_cv_dlopen_self in
17318 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17319 *) enable_dlopen_self
=unknown
;;
17322 case $lt_cv_dlopen_self_static in
17323 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17324 *) enable_dlopen_self_static
=unknown
;;
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17348 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17349 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17350 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17352 $as_echo "yes" >&6; }
17354 # FIXME - insert some real tests, host_os isn't really good enough
17357 if test -n "$STRIP" ; then
17358 striplib
="$STRIP -x"
17359 old_striplib
="$STRIP -S"
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17361 $as_echo "yes" >&6; }
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364 $as_echo "no" >&6; }
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17385 # Report which library types will actually be built
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17389 $as_echo "$can_build_shared" >&6; }
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17392 $as_echo_n "checking whether to build shared libraries... " >&6; }
17393 test "$can_build_shared" = "no" && enable_shared
=no
17395 # On AIX, shared libraries and static libraries use the same namespace, and
17396 # are all built from PIC.
17399 test "$enable_shared" = yes && enable_static
=no
17400 if test -n "$RANLIB"; then
17401 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17402 postinstall_cmds
='$RANLIB $lib'
17407 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17408 test "$enable_shared" = yes && enable_static
=no
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17413 $as_echo "$enable_shared" >&6; }
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17416 $as_echo_n "checking whether to build static libraries... " >&6; }
17417 # Make sure either enable_shared or enable_static is yes.
17418 test "$enable_shared" = yes || enable_static
=yes
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17420 $as_echo "$enable_static" >&6; }
17427 ac_cpp
='$CPP $CPPFLAGS'
17428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17434 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17435 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17436 (test "X$CXX" != "Xg++"))) ; then
17438 ac_cpp
='$CXXCPP $CPPFLAGS'
17439 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17440 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17441 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17443 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17444 if test -z "$CXXCPP"; then
17445 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17446 $as_echo_n "(cached) " >&6
17448 # Double quotes because CXXCPP needs to be expanded
17449 for CXXCPP
in "$CXX -E" "/lib/cpp"
17451 ac_preproc_ok
=false
17452 for ac_cxx_preproc_warn_flag
in '' yes
17454 # Use a header file that comes with gcc, so configuring glibc
17455 # with a fresh cross-compiler works.
17456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17457 # <limits.h> exists even on freestanding compilers.
17458 # On the NeXT, cc -E runs the code through the compiler's parser,
17459 # not just through cpp. "Syntax error" is here to catch this case.
17460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17463 # include <limits.h>
17465 # include <assert.h>
17469 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17472 # Broken: fails on valid input.
17475 rm -f conftest.err conftest.
$ac_ext
17477 # OK, works on sane cases. Now check whether nonexistent headers
17478 # can be detected and how.
17479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 #include <ac_nonexistent.h>
17483 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17484 # Broken: success on invalid input.
17487 # Passes both tests.
17491 rm -f conftest.err conftest.
$ac_ext
17494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17495 rm -f conftest.err conftest.
$ac_ext
17496 if $ac_preproc_ok; then :
17501 ac_cv_prog_CXXCPP
=$CXXCPP
17504 CXXCPP
=$ac_cv_prog_CXXCPP
17506 ac_cv_prog_CXXCPP
=$CXXCPP
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17509 $as_echo "$CXXCPP" >&6; }
17510 ac_preproc_ok
=false
17511 for ac_cxx_preproc_warn_flag
in '' yes
17513 # Use a header file that comes with gcc, so configuring glibc
17514 # with a fresh cross-compiler works.
17515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 # <limits.h> exists even on freestanding compilers.
17517 # On the NeXT, cc -E runs the code through the compiler's parser,
17518 # not just through cpp. "Syntax error" is here to catch this case.
17519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17522 # include <limits.h>
17524 # include <assert.h>
17528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17531 # Broken: fails on valid input.
17534 rm -f conftest.err conftest.
$ac_ext
17536 # OK, works on sane cases. Now check whether nonexistent headers
17537 # can be detected and how.
17538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 #include <ac_nonexistent.h>
17542 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17543 # Broken: success on invalid input.
17546 # Passes both tests.
17550 rm -f conftest.err conftest.
$ac_ext
17553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17554 rm -f conftest.err conftest.
$ac_ext
17555 if $ac_preproc_ok; then :
17558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17560 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17561 See \`config.log' for more details." "$LINENO" 5; }
17565 ac_cpp
='$CPP $CPPFLAGS'
17566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17571 _lt_caught_CXX_error
=yes
17575 ac_cpp
='$CXXCPP $CPPFLAGS'
17576 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17580 archive_cmds_need_lc_CXX
=no
17581 allow_undefined_flag_CXX
=
17582 always_export_symbols_CXX
=no
17583 archive_expsym_cmds_CXX
=
17584 compiler_needs_object_CXX
=no
17585 export_dynamic_flag_spec_CXX
=
17586 hardcode_direct_CXX
=no
17587 hardcode_direct_absolute_CXX
=no
17588 hardcode_libdir_flag_spec_CXX
=
17589 hardcode_libdir_flag_spec_ld_CXX
=
17590 hardcode_libdir_separator_CXX
=
17591 hardcode_minus_L_CXX
=no
17592 hardcode_shlibpath_var_CXX
=unsupported
17593 hardcode_automatic_CXX
=no
17594 inherit_rpath_CXX
=no
17596 module_expsym_cmds_CXX
=
17597 link_all_deplibs_CXX
=unknown
17598 old_archive_cmds_CXX
=$old_archive_cmds
17599 reload_flag_CXX
=$reload_flag
17600 reload_cmds_CXX
=$reload_cmds
17601 no_undefined_flag_CXX
=
17602 whole_archive_flag_spec_CXX
=
17603 enable_shared_with_static_runtimes_CXX
=no
17605 # Source file extension for C++ test sources.
17608 # Object file extension for compiled C++ test sources.
17612 # No sense in running all these tests if we already determined that
17613 # the CXX compiler isn't working. Some variables (like enable_shared)
17614 # are currently assumed to apply to all compilers on this platform,
17615 # and will be corrupted by setting them based on a non-working compiler.
17616 if test "$_lt_caught_CXX_error" != yes; then
17617 # Code to be used in simple compile tests
17618 lt_simple_compile_test_code
="int some_variable = 0;"
17620 # Code to be used in simple link tests
17621 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17630 # If no C compiler was specified, use CC.
17633 # If no C compiler flags were specified, use CFLAGS.
17634 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17636 # Allow CC to be a program name with arguments.
17640 # save warnings/boilerplate of simple test code
17641 ac_outfile
=conftest.
$ac_objext
17642 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17643 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17644 _lt_compiler_boilerplate
=`cat conftest.err`
17647 ac_outfile
=conftest.
$ac_objext
17648 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17649 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17650 _lt_linker_boilerplate
=`cat conftest.err`
17654 # Allow CC to be a program name with arguments.
17659 lt_save_with_gnu_ld
=$with_gnu_ld
17660 lt_save_path_LD
=$lt_cv_path_LD
17661 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17662 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17664 $as_unset lt_cv_prog_gnu_ld
17666 if test -n "${lt_cv_path_LDCXX+set}"; then
17667 lt_cv_path_LD
=$lt_cv_path_LDCXX
17669 $as_unset lt_cv_path_LD
17671 test -z "${LDCXX+set}" || LD
=$LDCXX
17675 for cc_temp
in $compiler""; do
17677 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17678 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17683 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17686 if test -n "$compiler"; then
17687 # We don't want -fno-exception when compiling C++ code, so set the
17688 # no_builtin_flag separately
17689 if test "$GXX" = yes; then
17690 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17692 lt_prog_compiler_no_builtin_flag_CXX
=
17695 if test "$GXX" = yes; then
17696 # Set up default GNU C++ configuration
17700 # Check whether --with-gnu-ld was given.
17701 if test "${with_gnu_ld+set}" = set; then :
17702 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17708 if test "$GCC" = yes; then
17709 # Check if gcc -print-prog-name=ld gives a path.
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17711 $as_echo_n "checking for ld used by $CC... " >&6; }
17714 # gcc leaves a trailing carriage return which upsets mingw
17715 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17717 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17720 # Accept absolute paths.
17722 re_direlt
='/[^/][^/]*/\.\./'
17723 # Canonicalize the pathname of ld
17724 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17725 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17726 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17728 test -z "$LD" && LD
="$ac_prog"
17731 # If it fails, then pretend we aren't using GCC.
17735 # If it is relative, then search for the first ld in PATH.
17736 with_gnu_ld
=unknown
17739 elif test "$with_gnu_ld" = yes; then
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17741 $as_echo_n "checking for GNU ld... " >&6; }
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17744 $as_echo_n "checking for non-GNU ld... " >&6; }
17746 if test "${lt_cv_path_LD+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17749 if test -z "$LD"; then
17750 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17751 for ac_dir
in $PATH; do
17753 test -z "$ac_dir" && ac_dir
=.
17754 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17755 lt_cv_path_LD
="$ac_dir/$ac_prog"
17756 # Check to see if the program is GNU ld. I'd rather use --version,
17757 # but apparently some variants of GNU ld only accept -v.
17758 # Break only if it was the GNU/non-GNU ld that we prefer.
17759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17760 *GNU
* |
*'with BFD'*)
17761 test "$with_gnu_ld" != no
&& break
17764 test "$with_gnu_ld" != yes && break
17771 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17775 LD
="$lt_cv_path_LD"
17776 if test -n "$LD"; then
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17778 $as_echo "$LD" >&6; }
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17781 $as_echo "no" >&6; }
17783 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17785 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17786 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17787 $as_echo_n "(cached) " >&6
17789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17790 case `$LD -v 2>&1 </dev/null` in
17791 *GNU
* |
*'with BFD'*)
17792 lt_cv_prog_gnu_ld
=yes
17795 lt_cv_prog_gnu_ld
=no
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17800 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17801 with_gnu_ld
=$lt_cv_prog_gnu_ld
17809 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17810 # archiving commands below assume that GNU ld is being used.
17811 if test "$with_gnu_ld" = yes; then
17812 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17813 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'
17815 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17816 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17818 # If archive_cmds runs LD, not CC, wlarc should be empty
17819 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17820 # investigate it a little bit more. (MM)
17823 # ancient GNU ld didn't support --whole-archive et. al.
17824 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17825 $GREP 'no-whole-archive' > /dev
/null
; then
17826 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17828 whole_archive_flag_spec_CXX
=
17834 # A generic and very simple default shared library creation
17835 # command for GNU C++ for the case where it uses the native
17836 # linker, instead of GNU ld. If possible, this setting should
17837 # overridden to take advantage of the native linker features on
17838 # the platform it is being used on.
17839 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17842 # Commands to make compiler produce verbose output that lists
17843 # what "hidden" libraries, object files and flags are used when
17844 # linking a shared library.
17845 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17853 # PORTME: fill in a description of your system's C++ link characteristics
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17859 # FIXME: insert proper C++ library support
17863 if test "$host_cpu" = ia64
; then
17864 # On IA64, the linker does run time linking by default, so we don't
17865 # have to do anything special.
17866 aix_use_runtimelinking
=no
17867 exp_sym_flag
='-Bexport'
17870 aix_use_runtimelinking
=no
17872 # Test if we are trying to use run time linking or normal
17873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17874 # need to do runtime linking.
17875 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17876 for ld_flag
in $LDFLAGS; do
17879 aix_use_runtimelinking
=yes
17887 exp_sym_flag
='-bexport'
17888 no_entry_flag
='-bnoentry'
17891 # When large executables or shared objects are built, AIX ld can
17892 # have problems creating the table of contents. If linking a library
17893 # or program results in "error TOC overflow" add -mminimal-toc to
17894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17897 archive_cmds_CXX
=''
17898 hardcode_direct_CXX
=yes
17899 hardcode_direct_absolute_CXX
=yes
17900 hardcode_libdir_separator_CXX
=':'
17901 link_all_deplibs_CXX
=yes
17902 file_list_spec_CXX
='${wl}-f,'
17904 if test "$GXX" = yes; then
17905 case $host_os in aix4.
[012]|aix4.
[012].
*)
17906 # We only want to do this on AIX 4.2 and lower, the check
17907 # below for broken collect2 doesn't work under 4.3+
17908 collect2name
=`${CC} -print-prog-name=collect2`
17909 if test -f "$collect2name" &&
17910 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17912 # We have reworked collect2
17915 # We have old collect2
17916 hardcode_direct_CXX
=unsupported
17917 # It fails to find uninstalled libraries when the uninstalled
17918 # path is not listed in the libpath. Setting hardcode_minus_L
17919 # to unsupported forces relinking
17920 hardcode_minus_L_CXX
=yes
17921 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17922 hardcode_libdir_separator_CXX
=
17925 shared_flag
='-shared'
17926 if test "$aix_use_runtimelinking" = yes; then
17927 shared_flag
="$shared_flag "'${wl}-G'
17931 if test "$host_cpu" = ia64
; then
17932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17933 # chokes on -Wl,-G. The following line is correct:
17936 if test "$aix_use_runtimelinking" = yes; then
17937 shared_flag
='${wl}-G'
17939 shared_flag
='${wl}-bM:SRE'
17944 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17945 # It seems that -bexpall does not export symbols beginning with
17946 # underscore (_), so it is better to generate a list of symbols to
17948 always_export_symbols_CXX
=yes
17949 if test "$aix_use_runtimelinking" = yes; then
17950 # Warning - without using the other runtime loading flags (-brtl),
17951 # -berok will link without error, but may produce a broken library.
17952 allow_undefined_flag_CXX
='-berok'
17953 # Determine the default libpath from the value encoded in an empty
17955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17966 if ac_fn_cxx_try_link
"$LINENO"; then :
17968 lt_aix_libpath_sed
='
17969 /Import File Strings/,/^$/ {
17975 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17976 # Check for a 64-bit object if we didn't find anything.
17977 if test -z "$aix_libpath"; then
17978 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17981 rm -f core conftest.err conftest.
$ac_objext \
17982 conftest
$ac_exeext conftest.
$ac_ext
17983 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17985 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17987 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"
17989 if test "$host_cpu" = ia64
; then
17990 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17991 allow_undefined_flag_CXX
="-z nodefs"
17992 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"
17994 # Determine the default libpath from the value encoded in an
17995 # empty executable.
17996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
18007 if ac_fn_cxx_try_link
"$LINENO"; then :
18009 lt_aix_libpath_sed
='
18010 /Import File Strings/,/^$/ {
18016 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18017 # Check for a 64-bit object if we didn't find anything.
18018 if test -z "$aix_libpath"; then
18019 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18022 rm -f core conftest.err conftest.
$ac_objext \
18023 conftest
$ac_exeext conftest.
$ac_ext
18024 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18026 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18027 # Warning - without using the other run time loading flags,
18028 # -berok will link without error, but may produce a broken library.
18029 no_undefined_flag_CXX
=' ${wl}-bernotok'
18030 allow_undefined_flag_CXX
=' ${wl}-berok'
18031 if test "$with_gnu_ld" = yes; then
18032 # We only use this code for GNU lds that support --whole-archive.
18033 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18035 # Exported symbols can be pulled into shared objects from archives
18036 whole_archive_flag_spec_CXX
='$convenience'
18038 archive_cmds_need_lc_CXX
=yes
18039 # This is similar to how AIX traditionally builds its shared
18041 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'
18047 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18048 allow_undefined_flag_CXX
=unsupported
18049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18050 # support --undefined. This deserves some investigation. FIXME
18051 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18058 case $cc_basename in
18060 # FIXME: insert proper C++ library support
18066 cygwin
* | mingw
* | pw32
* | cegcc
*)
18067 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18068 # as there is no search path for DLLs.
18069 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18070 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18071 allow_undefined_flag_CXX
=unsupported
18072 always_export_symbols_CXX
=no
18073 enable_shared_with_static_runtimes_CXX
=yes
18075 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18076 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'
18077 # If the export-symbols file already is a .def file (1st line
18078 # is EXPORTS), use it as is; otherwise, prepend...
18079 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18080 cp $export_symbols $output_objdir/$soname.def;
18082 echo EXPORTS > $output_objdir/$soname.def;
18083 cat $export_symbols >> $output_objdir/$soname.def;
18085 $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'
18090 darwin
* | rhapsody
*)
18093 archive_cmds_need_lc_CXX
=no
18094 hardcode_direct_CXX
=no
18095 hardcode_automatic_CXX
=yes
18096 hardcode_shlibpath_var_CXX
=unsupported
18097 if test "$lt_cv_ld_force_load" = "yes"; then
18098 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\"`'
18100 whole_archive_flag_spec_CXX
=''
18102 link_all_deplibs_CXX
=yes
18103 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18104 case $cc_basename in
18105 ifort
*) _lt_dar_can_shared
=yes ;;
18106 *) _lt_dar_can_shared
=$GCC ;;
18108 if test "$_lt_dar_can_shared" = "yes"; then
18109 output_verbose_link_cmd
=func_echo_all
18110 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}"
18111 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18112 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}"
18113 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}"
18114 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18115 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}"
18116 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}"
18126 case $cc_basename in
18128 # FIXME: insert proper C++ library support
18132 # Green Hills C++ Compiler
18133 # FIXME: insert proper C++ library support
18137 # FIXME: insert proper C++ library support
18144 # C++ shared libraries reported to be fairly broken before
18150 archive_cmds_need_lc_CXX
=no
18153 freebsd
* | dragonfly
*)
18154 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18163 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18164 link_all_deplibs_CXX
=yes
18168 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18169 hardcode_libdir_separator_CXX
=:
18170 export_dynamic_flag_spec_CXX
='${wl}-E'
18171 hardcode_direct_CXX
=yes
18172 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18173 # but as the default
18174 # location of the library.
18176 case $cc_basename in
18178 # FIXME: insert proper C++ library support
18182 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'
18183 # Commands to make compiler produce verbose output that lists
18184 # what "hidden" libraries, object files and flags are used when
18185 # linking a shared library.
18187 # There doesn't appear to be a way to prevent this compiler from
18188 # explicitly linking system object files so we need to strip them
18189 # from the output so that they don't get included in the library
18191 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"'
18194 if test "$GXX" = yes; then
18195 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'
18197 # FIXME: insert proper C++ library support
18205 if test $with_gnu_ld = no
; then
18206 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18207 hardcode_libdir_separator_CXX
=:
18213 export_dynamic_flag_spec_CXX
='${wl}-E'
18219 hardcode_direct_CXX
=no
18220 hardcode_shlibpath_var_CXX
=no
18223 hardcode_direct_CXX
=yes
18224 hardcode_direct_absolute_CXX
=yes
18225 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18226 # but as the default
18227 # location of the library.
18231 case $cc_basename in
18233 # FIXME: insert proper C++ library support
18239 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18242 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18245 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18248 # Commands to make compiler produce verbose output that lists
18249 # what "hidden" libraries, object files and flags are used when
18250 # linking a shared library.
18252 # There doesn't appear to be a way to prevent this compiler from
18253 # explicitly linking system object files so we need to strip them
18254 # from the output so that they don't get included in the library
18256 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"'
18259 if test "$GXX" = yes; then
18260 if test $with_gnu_ld = no
; then
18263 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18266 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18269 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'
18274 # FIXME: insert proper C++ library support
18282 hardcode_direct_CXX
=no
18283 hardcode_shlibpath_var_CXX
=no
18284 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18285 export_dynamic_flag_spec_CXX
='${wl}-E'
18286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18287 # Instead, shared libraries are loaded at an image base (0x10000000 by
18288 # default) and relocated if they conflict, which is a slow very memory
18289 # consuming and fragmenting process. To avoid this, we pick a random,
18290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18292 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'
18293 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'
18296 case $cc_basename in
18299 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'
18301 # Archives containing C++ object files must be created using
18302 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18303 # necessary to make sure instantiated templates are included
18305 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18308 if test "$GXX" = yes; then
18309 if test "$with_gnu_ld" = no
; then
18310 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'
18312 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'
18315 link_all_deplibs_CXX
=yes
18318 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18319 hardcode_libdir_separator_CXX
=:
18320 inherit_rpath_CXX
=yes
18323 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18324 case $cc_basename in
18326 # Kuck and Associates, Inc. (KAI) C++ Compiler
18328 # KCC will only create a shared library if the output file
18329 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18330 # to its proper name (with version) after linking.
18331 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'
18332 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'
18333 # Commands to make compiler produce verbose output that lists
18334 # what "hidden" libraries, object files and flags are used when
18335 # linking a shared library.
18337 # There doesn't appear to be a way to prevent this compiler from
18338 # explicitly linking system object files so we need to strip them
18339 # from the output so that they don't get included in the library
18341 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"'
18343 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18344 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18346 # Archives containing C++ object files must be created using
18347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18348 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18353 # version 8.0 and above of icpc choke on multiply defined symbols
18354 # if we add $predep_objects and $postdep_objects, however 7.1 and
18355 # earlier do not add the objects themselves.
18356 case `$CC -V 2>&1` in
18358 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18359 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'
18361 *) # Version 8.0 or newer
18364 ia64
*) tmp_idyn
=' -i_dynamic';;
18366 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18367 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'
18370 archive_cmds_need_lc_CXX
=no
18371 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18372 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18373 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18376 # Portland Group C++ compiler
18378 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18379 prelink_cmds_CXX
='tpldir=Template.dir~
18381 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18382 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18383 old_archive_cmds_CXX
='tpldir=Template.dir~
18385 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18386 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18388 archive_cmds_CXX
='tpldir=Template.dir~
18390 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18391 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18392 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18394 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18395 $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'
18397 *) # Version 6 and above use weak symbols
18398 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18399 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'
18403 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18404 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18405 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'
18409 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410 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'
18412 runpath_var
=LD_RUN_PATH
18413 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18414 hardcode_libdir_separator_CXX
=:
18416 # Commands to make compiler produce verbose output that lists
18417 # what "hidden" libraries, object files and flags are used when
18418 # linking a shared library.
18420 # There doesn't appear to be a way to prevent this compiler from
18421 # explicitly linking system object files so we need to strip them
18422 # from the output so that they don't get included in the library
18424 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'
18426 xl
* | mpixl
* | bgxl
*)
18427 # IBM XL 8.0 on PPC, with GNU ld
18428 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18429 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18430 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18431 if test "x$supports_anon_versioning" = xyes
; then
18432 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18434 echo "local: *; };" >> $output_objdir/$libname.ver~
18435 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18439 case `$CC -V 2>&1 | sed 5q` in
18442 no_undefined_flag_CXX
=' -zdefs'
18443 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18444 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'
18445 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18446 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'
18447 compiler_needs_object_CXX
=yes
18449 # Not sure whether something based on
18450 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18452 output_verbose_link_cmd
='func_echo_all'
18454 # Archives containing C++ object files must be created using
18455 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18456 # necessary to make sure instantiated templates are included
18458 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18466 # FIXME: insert proper C++ library support
18471 # FIXME: insert proper C++ library support
18476 case $cc_basename in
18478 # FIXME: insert proper C++ library support
18482 # FIXME: insert proper C++ library support
18489 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18490 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18492 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18493 hardcode_direct_CXX
=yes
18494 hardcode_shlibpath_var_CXX
=no
18496 # Workaround some broken pre-1.5 toolchains
18497 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18505 # C++ shared libraries are fairly broken
18510 if test -f /usr
/libexec
/ld.so
; then
18511 hardcode_direct_CXX
=yes
18512 hardcode_shlibpath_var_CXX
=no
18513 hardcode_direct_absolute_CXX
=yes
18514 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18515 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18517 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18518 export_dynamic_flag_spec_CXX
='${wl}-E'
18519 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18521 output_verbose_link_cmd
=func_echo_all
18527 osf3
* | osf4
* | osf5
*)
18528 case $cc_basename in
18530 # Kuck and Associates, Inc. (KAI) C++ Compiler
18532 # KCC will only create a shared library if the output file
18533 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18534 # to its proper name (with version) after linking.
18535 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'
18537 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18538 hardcode_libdir_separator_CXX
=:
18540 # Archives containing C++ object files must be created using
18541 # the KAI C++ compiler.
18543 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18544 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18548 # Rational C++ 2.4.1
18549 # FIXME: insert proper C++ library support
18555 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18556 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'
18557 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18560 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18561 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'
18562 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18563 echo "-hidden">> $lib.exp~
18564 $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~
18566 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18570 hardcode_libdir_separator_CXX
=:
18572 # Commands to make compiler produce verbose output that lists
18573 # what "hidden" libraries, object files and flags are used when
18574 # linking a shared library.
18576 # There doesn't appear to be a way to prevent this compiler from
18577 # explicitly linking system object files so we need to strip them
18578 # from the output so that they don't get included in the library
18580 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"'
18583 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18584 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18587 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'
18590 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'
18594 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18595 hardcode_libdir_separator_CXX
=:
18597 # Commands to make compiler produce verbose output that lists
18598 # what "hidden" libraries, object files and flags are used when
18599 # linking a shared library.
18600 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18603 # FIXME: insert proper C++ library support
18611 # FIXME: insert proper C++ library support
18616 case $cc_basename in
18619 # FIXME: insert proper C++ library support
18624 # FIXME: insert proper C++ library support
18628 # FIXME: insert proper C++ library support
18635 case $cc_basename in
18637 # Sun C++ 4.2, 5.x and Centerline C++
18638 archive_cmds_need_lc_CXX
=yes
18639 no_undefined_flag_CXX
=' -zdefs'
18640 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18641 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18642 $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'
18644 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18645 hardcode_shlibpath_var_CXX
=no
18647 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18649 # The compiler driver will combine and reorder linker options,
18650 # but understands `-z linker_flag'.
18651 # Supported since Solaris 2.6 (maybe 2.5.1?)
18652 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18655 link_all_deplibs_CXX
=yes
18657 output_verbose_link_cmd
='func_echo_all'
18659 # Archives containing C++ object files must be created using
18660 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18661 # necessary to make sure instantiated templates are included
18663 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18666 # Green Hills C++ Compiler
18667 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18669 # The C++ compiler must be used to create the archive.
18670 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18673 # GNU C++ compiler with Solaris linker
18674 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18675 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18676 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18677 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18678 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18679 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18681 # Commands to make compiler produce verbose output that lists
18682 # what "hidden" libraries, object files and flags are used when
18683 # linking a shared library.
18684 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18686 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18688 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18689 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18690 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18692 # Commands to make compiler produce verbose output that lists
18693 # what "hidden" libraries, object files and flags are used when
18694 # linking a shared library.
18695 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18698 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18700 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18702 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18710 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18711 no_undefined_flag_CXX
='${wl}-z,text'
18712 archive_cmds_need_lc_CXX
=no
18713 hardcode_shlibpath_var_CXX
=no
18714 runpath_var
='LD_RUN_PATH'
18716 case $cc_basename in
18718 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18719 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18722 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18723 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18728 sysv5
* | sco3.2v5
* | sco5v6
*)
18729 # Note: We can NOT use -z defs as we might desire, because we do not
18730 # link with -lc, and that would cause any symbols used from libc to
18731 # always be unresolved, which means just about no library would
18732 # ever link correctly. If we're not using GNU ld we use -z text
18733 # though, which does catch some bad symbols but isn't as heavy-handed
18735 no_undefined_flag_CXX
='${wl}-z,text'
18736 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18737 archive_cmds_need_lc_CXX
=no
18738 hardcode_shlibpath_var_CXX
=no
18739 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18740 hardcode_libdir_separator_CXX
=':'
18741 link_all_deplibs_CXX
=yes
18742 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18743 runpath_var
='LD_RUN_PATH'
18745 case $cc_basename in
18747 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18750 '"$old_archive_cmds_CXX"
18751 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18752 '"$reload_cmds_CXX"
18755 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18756 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 case $cc_basename in
18764 # NonStop-UX NCC 3.20
18765 # FIXME: insert proper C++ library support
18769 # FIXME: insert proper C++ library support
18776 # FIXME: insert proper C++ library support
18781 # FIXME: insert proper C++ library support
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18787 $as_echo "$ld_shlibs_CXX" >&6; }
18788 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18794 ## There is no encapsulation within the following macros, do not change
18795 ## the running order or otherwise move them around unless you know exactly
18796 ## what you are doing...
18797 # Dependencies to place before and after the object being linked:
18798 predep_objects_CXX
=
18799 postdep_objects_CXX
=
18802 compiler_lib_search_path_CXX
=
18804 cat > conftest.
$ac_ext <<_LT_EOF
18808 Foo (void) { a = 0; }
18814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18815 (eval $ac_compile) 2>&5
18817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18818 test $ac_status = 0; }; then
18819 # Parse the compiler output and extract the necessary
18820 # objects, libraries and library flags.
18822 # Sentinel used to keep track of whether or not we are before
18823 # the conftest object file.
18824 pre_test_object_deps_done
=no
18826 for p
in `eval "$output_verbose_link_cmd"`; do
18830 # Some compilers place space between "-{L,R}" and the path.
18831 # Remove the space.
18832 if test $p = "-L" ||
18833 test $p = "-R"; then
18840 if test "$pre_test_object_deps_done" = no
; then
18843 # Internal compiler library paths should come after those
18844 # provided the user. The postdeps already come after the
18845 # user supplied libs so there is no need to process them.
18846 if test -z "$compiler_lib_search_path_CXX"; then
18847 compiler_lib_search_path_CXX
="${prev}${p}"
18849 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18852 # The "-l" case would never come before the object being
18853 # linked, so don't bother handling this case.
18856 if test -z "$postdeps_CXX"; then
18857 postdeps_CXX
="${prev}${p}"
18859 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18865 # This assumes that the test object file only shows up
18866 # once in the compiler output.
18867 if test "$p" = "conftest.$objext"; then
18868 pre_test_object_deps_done
=yes
18872 if test "$pre_test_object_deps_done" = no
; then
18873 if test -z "$predep_objects_CXX"; then
18874 predep_objects_CXX
="$p"
18876 predep_objects_CXX
="$predep_objects_CXX $p"
18879 if test -z "$postdep_objects_CXX"; then
18880 postdep_objects_CXX
="$p"
18882 postdep_objects_CXX
="$postdep_objects_CXX $p"
18887 *) ;; # Ignore the rest.
18895 echo "libtool.m4: error: problem compiling CXX test program"
18898 $RM -f confest.
$objext
18900 # PORTME: override above test on systems where it is broken
18903 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18904 # hack all around it, let's just trust "g++" to DTRT.
18905 predep_objects_CXX
=
18906 postdep_objects_CXX
=
18911 case `$CC -V 2>&1 | sed 5q` in
18915 # The more standards-conforming stlport4 library is
18916 # incompatible with the Cstd library. Avoid specifying
18917 # it if it's in CXXFLAGS. Ignore libCrun as
18918 # -library=stlport4 depends on it.
18919 case " $CXX $CXXFLAGS " in
18920 *" -library=stlport4 "*)
18921 solaris_use_stlport4
=yes
18925 if test "$solaris_use_stlport4" != yes; then
18926 postdeps_CXX
='-library=Cstd -library=Crun'
18933 case $cc_basename in
18935 # The more standards-conforming stlport4 library is
18936 # incompatible with the Cstd library. Avoid specifying
18937 # it if it's in CXXFLAGS. Ignore libCrun as
18938 # -library=stlport4 depends on it.
18939 case " $CXX $CXXFLAGS " in
18940 *" -library=stlport4 "*)
18941 solaris_use_stlport4
=yes
18945 # Adding this requires a known-good setup of shared libraries for
18946 # Sun compiler versions before 5.6, else PIC objects from an old
18947 # archive will be linked into the output, leading to subtle bugs.
18948 if test "$solaris_use_stlport4" != yes; then
18949 postdeps_CXX
='-library=Cstd -library=Crun'
18957 case " $postdeps_CXX " in
18958 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18960 compiler_lib_search_dirs_CXX
=
18961 if test -n "${compiler_lib_search_path_CXX}"; then
18962 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18995 lt_prog_compiler_wl_CXX
=
18996 lt_prog_compiler_pic_CXX
=
18997 lt_prog_compiler_static_CXX
=
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19000 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19002 # C++ specific cases for pic, static, wl, etc.
19003 if test "$GXX" = yes; then
19004 lt_prog_compiler_wl_CXX
='-Wl,'
19005 lt_prog_compiler_static_CXX
='-static'
19009 # All AIX code is PIC.
19010 if test "$host_cpu" = ia64
; then
19011 # AIX 5 now supports IA64 processor
19012 lt_prog_compiler_static_CXX
='-Bstatic'
19019 # see comment about AmigaOS4 .so support
19020 lt_prog_compiler_pic_CXX
='-fPIC'
19023 # FIXME: we need at least 68020 code to build shared libraries, but
19024 # adding the `-m68020' flag to GCC prevents building anything better,
19026 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19031 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19032 # PIC is the default for these OSes.
19034 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19035 # This hack is so that the source file can tell whether it is being
19036 # built for inclusion in a dll (and should export symbols for example).
19037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19038 # (--disable-auto-import) libraries
19039 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19041 darwin
* | rhapsody
*)
19042 # PIC is the default on this platform
19043 # Common symbols not allowed in MH_DYLIB files
19044 lt_prog_compiler_pic_CXX
='-fno-common'
19047 # DJGPP does not support shared libraries at all
19048 lt_prog_compiler_pic_CXX
=
19051 # PIC is the default for Haiku.
19052 # The "-static" flag exists, but is broken.
19053 lt_prog_compiler_static_CXX
=
19056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19057 # Instead, we relocate shared libraries at runtime.
19060 if test -d /usr
/nec
; then
19061 lt_prog_compiler_pic_CXX
=-Kconform_pic
19065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19067 # sets the default TLS model and affects inlining.
19072 lt_prog_compiler_pic_CXX
='-fPIC'
19077 # QNX uses GNU C++, but need to define -shared option too, otherwise
19078 # it will coredump.
19079 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19082 lt_prog_compiler_pic_CXX
='-fPIC'
19088 # All AIX code is PIC.
19089 if test "$host_cpu" = ia64
; then
19090 # AIX 5 now supports IA64 processor
19091 lt_prog_compiler_static_CXX
='-Bstatic'
19093 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19097 case $cc_basename in
19099 # Green Hills C++ Compiler
19100 # _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"
19105 case $cc_basename in
19107 lt_prog_compiler_pic_CXX
='-KPIC'
19110 # Green Hills C++ Compiler
19111 lt_prog_compiler_pic_CXX
='-pic'
19117 freebsd
* | dragonfly
*)
19118 # FreeBSD uses GNU C++
19120 hpux9
* | hpux10
* | hpux11
*)
19121 case $cc_basename in
19123 lt_prog_compiler_wl_CXX
='-Wl,'
19124 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19125 if test "$host_cpu" != ia64
; then
19126 lt_prog_compiler_pic_CXX
='+Z'
19130 lt_prog_compiler_wl_CXX
='-Wl,'
19131 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19137 lt_prog_compiler_pic_CXX
='+Z'
19146 # This is c89, which is MS Visual C++ (no shared libs)
19147 # Anyone wants to do a port?
19149 irix5
* | irix6
* | nonstopux
*)
19150 case $cc_basename in
19152 lt_prog_compiler_wl_CXX
='-Wl,'
19153 lt_prog_compiler_static_CXX
='-non_shared'
19154 # CC pic flag -KPIC is the default.
19160 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19161 case $cc_basename in
19164 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19165 lt_prog_compiler_pic_CXX
='-fPIC'
19168 # old Intel C++ for x86_64 which still supported -KPIC.
19169 lt_prog_compiler_wl_CXX
='-Wl,'
19170 lt_prog_compiler_pic_CXX
='-KPIC'
19171 lt_prog_compiler_static_CXX
='-static'
19174 # Intel C++, used to be incompatible with GCC.
19175 # ICC 10 doesn't accept -KPIC any more.
19176 lt_prog_compiler_wl_CXX
='-Wl,'
19177 lt_prog_compiler_pic_CXX
='-fPIC'
19178 lt_prog_compiler_static_CXX
='-static'
19181 # Portland Group C++ compiler
19182 lt_prog_compiler_wl_CXX
='-Wl,'
19183 lt_prog_compiler_pic_CXX
='-fpic'
19184 lt_prog_compiler_static_CXX
='-Bstatic'
19188 # Make sure the PIC flag is empty. It appears that all Alpha
19189 # Linux and Compaq Tru64 Unix objects are PIC.
19190 lt_prog_compiler_pic_CXX
=
19191 lt_prog_compiler_static_CXX
='-non_shared'
19193 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19194 # IBM XL 8.0, 9.0 on PPC and BlueGene
19195 lt_prog_compiler_wl_CXX
='-Wl,'
19196 lt_prog_compiler_pic_CXX
='-qpic'
19197 lt_prog_compiler_static_CXX
='-qstaticlink'
19200 case `$CC -V 2>&1 | sed 5q` in
19203 lt_prog_compiler_pic_CXX
='-KPIC'
19204 lt_prog_compiler_static_CXX
='-Bstatic'
19205 lt_prog_compiler_wl_CXX
='-Qoption ld '
19216 case $cc_basename in
19218 lt_prog_compiler_pic_CXX
='-W c,exportall'
19227 # QNX uses GNU C++, but need to define -shared option too, otherwise
19228 # it will coredump.
19229 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19231 osf3
* | osf4
* | osf5
*)
19232 case $cc_basename in
19234 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19237 # Rational C++ 2.4.1
19238 lt_prog_compiler_pic_CXX
='-pic'
19241 # Digital/Compaq C++
19242 lt_prog_compiler_wl_CXX
='-Wl,'
19243 # Make sure the PIC flag is empty. It appears that all Alpha
19244 # Linux and Compaq Tru64 Unix objects are PIC.
19245 lt_prog_compiler_pic_CXX
=
19246 lt_prog_compiler_static_CXX
='-non_shared'
19255 case $cc_basename in
19257 # Sun C++ 4.2, 5.x and Centerline C++
19258 lt_prog_compiler_pic_CXX
='-KPIC'
19259 lt_prog_compiler_static_CXX
='-Bstatic'
19260 lt_prog_compiler_wl_CXX
='-Qoption ld '
19263 # Green Hills C++ Compiler
19264 lt_prog_compiler_pic_CXX
='-PIC'
19271 case $cc_basename in
19274 lt_prog_compiler_pic_CXX
='-pic'
19275 lt_prog_compiler_static_CXX
='-Bstatic'
19279 lt_prog_compiler_pic_CXX
='-pic'
19285 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19286 case $cc_basename in
19288 lt_prog_compiler_wl_CXX
='-Wl,'
19289 lt_prog_compiler_pic_CXX
='-KPIC'
19290 lt_prog_compiler_static_CXX
='-Bstatic'
19295 case $cc_basename in
19297 # NonStop-UX NCC 3.20
19298 lt_prog_compiler_pic_CXX
='-KPIC'
19307 lt_prog_compiler_can_build_shared_CXX
=no
19313 # For platforms which do not support PIC, -DPIC is meaningless:
19315 lt_prog_compiler_pic_CXX
=
19318 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19322 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19327 # Check to make sure the PIC flag actually works.
19329 if test -n "$lt_prog_compiler_pic_CXX"; then
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19331 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19332 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19333 $as_echo_n "(cached) " >&6
19335 lt_cv_prog_compiler_pic_works_CXX
=no
19336 ac_outfile
=conftest.
$ac_objext
19337 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19338 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19339 # Insert the option either (1) after the last *FLAGS variable, or
19340 # (2) before a word containing "conftest.", or (3) at the end.
19341 # Note that $ac_compile itself does not contain backslashes and begins
19342 # with a dollar sign (not a hyphen), so the echo should work correctly.
19343 # The option is referenced via a variable to avoid confusing sed.
19344 lt_compile
=`echo "$ac_compile" | $SED \
19345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19347 -e 's:$: $lt_compiler_flag:'`
19348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19349 (eval "$lt_compile" 2>conftest.err
)
19351 cat conftest.err
>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 if (exit $ac_status) && test -s "$ac_outfile"; then
19354 # The compiler can only warn and ignore the option if not recognized
19355 # So say no if there are warnings other than the usual output.
19356 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19357 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19358 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19359 lt_cv_prog_compiler_pic_works_CXX
=yes
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19366 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19368 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19369 case $lt_prog_compiler_pic_CXX in
19371 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19374 lt_prog_compiler_pic_CXX
=
19375 lt_prog_compiler_can_build_shared_CXX
=no
19383 # Check to make sure the static flag actually works.
19385 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19387 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19388 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19389 $as_echo_n "(cached) " >&6
19391 lt_cv_prog_compiler_static_works_CXX
=no
19392 save_LDFLAGS
="$LDFLAGS"
19393 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19394 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19395 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19396 # The linker can only warn and ignore the option if not recognized
19397 # So say no if there are warnings
19398 if test -s conftest.err
; then
19399 # Append any errors to the config.log.
19400 cat conftest.err
1>&5
19401 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19402 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19403 if diff conftest.exp conftest.er2
>/dev
/null
; then
19404 lt_cv_prog_compiler_static_works_CXX
=yes
19407 lt_cv_prog_compiler_static_works_CXX
=yes
19411 LDFLAGS
="$save_LDFLAGS"
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19415 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19417 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19420 lt_prog_compiler_static_CXX
=
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19427 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19428 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19429 $as_echo_n "(cached) " >&6
19431 lt_cv_prog_compiler_c_o_CXX
=no
19432 $RM -r conftest
2>/dev
/null
19436 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19438 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19439 # Insert the option either (1) after the last *FLAGS variable, or
19440 # (2) before a word containing "conftest.", or (3) at the end.
19441 # Note that $ac_compile itself does not contain backslashes and begins
19442 # with a dollar sign (not a hyphen), so the echo should work correctly.
19443 lt_compile
=`echo "$ac_compile" | $SED \
19444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19446 -e 's:$: $lt_compiler_flag:'`
19447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19448 (eval "$lt_compile" 2>out
/conftest.err
)
19450 cat out
/conftest.err
>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19454 # The compiler can only warn and ignore the option if not recognized
19455 # So say no if there are warnings
19456 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19457 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19458 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19459 lt_cv_prog_compiler_c_o_CXX
=yes
19464 # SGI C++ compiler will create directory out/ii_files/ for
19465 # template instantiation
19466 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19467 $RM out
/* && rmdir out
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19474 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19481 $as_echo_n "(cached) " >&6
19483 lt_cv_prog_compiler_c_o_CXX
=no
19484 $RM -r conftest
2>/dev
/null
19488 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19490 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19491 # Insert the option either (1) after the last *FLAGS variable, or
19492 # (2) before a word containing "conftest.", or (3) at the end.
19493 # Note that $ac_compile itself does not contain backslashes and begins
19494 # with a dollar sign (not a hyphen), so the echo should work correctly.
19495 lt_compile
=`echo "$ac_compile" | $SED \
19496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19498 -e 's:$: $lt_compiler_flag:'`
19499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19500 (eval "$lt_compile" 2>out
/conftest.err
)
19502 cat out
/conftest.err
>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19506 # The compiler can only warn and ignore the option if not recognized
19507 # So say no if there are warnings
19508 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19509 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19510 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19511 lt_cv_prog_compiler_c_o_CXX
=yes
19516 # SGI C++ compiler will create directory out/ii_files/ for
19517 # template instantiation
19518 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19519 $RM out
/* && rmdir out
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19526 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19531 hard_links
="nottested"
19532 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19533 # do not overwrite the value of need_locks provided by the user
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19535 $as_echo_n "checking if we can lock with hard links... " >&6; }
19538 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19540 ln conftest.a conftest.b
2>&5 || hard_links
=no
19541 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19543 $as_echo "$hard_links" >&6; }
19544 if test "$hard_links" = no
; then
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19546 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19558 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19561 # If we're using GNU nm, then we don't want the "-C" option.
19562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19563 # Also, AIX nm treats weak defined symbols like other global defined
19564 # symbols, whereas GNU nm marks them as "W".
19565 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19566 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'
19568 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'
19572 export_symbols_cmds_CXX
="$ltdll_cmds"
19574 cygwin
* | mingw
* | cegcc
*)
19575 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'
19578 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19581 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19584 $as_echo "$ld_shlibs_CXX" >&6; }
19585 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19587 with_gnu_ld_CXX
=$with_gnu_ld
19595 # Do we need to explicitly link libc?
19597 case "x$archive_cmds_need_lc_CXX" in
19599 # Assume -lc should be added
19600 archive_cmds_need_lc_CXX
=yes
19602 if test "$enable_shared" = yes && test "$GCC" = yes; then
19603 case $archive_cmds_CXX in
19605 # FIXME: we may have to deal with multi-command sequences.
19608 # Test whether the compiler implicitly links with -lc since on some
19609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19610 # to ld, don't add -lc before -lgcc.
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19612 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19613 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19614 $as_echo_n "(cached) " >&6
19617 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19620 (eval $ac_compile) 2>&5
19622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19623 test $ac_status = 0; } 2>conftest.err
; then
19626 libobjs
=conftest.
$ac_objext
19628 wl
=$lt_prog_compiler_wl_CXX
19629 pic_flag
=$lt_prog_compiler_pic_CXX
19635 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19636 allow_undefined_flag_CXX
=
19637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19638 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19641 test $ac_status = 0; }
19643 lt_cv_archive_cmds_need_lc_CXX
=no
19645 lt_cv_archive_cmds_need_lc_CXX
=yes
19647 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19649 cat conftest.err
1>&5
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19655 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19656 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19727 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19729 library_names_spec
=
19730 libname_spec
='lib$name'
19734 postuninstall_cmds
=
19738 shlibpath_overrides_runpath
=unknown
19740 dynamic_linker
="$host_os ld.so"
19741 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19742 need_lib_prefix
=unknown
19743 hardcode_into_libs
=no
19745 # when you set need_version to no, make sure it does not cause -set_version
19746 # flags to be left without arguments
19747 need_version
=unknown
19752 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19753 shlibpath_var
=LIBPATH
19755 # AIX 3 has no versioning support, so we append a major version to the name.
19756 soname_spec
='${libname}${release}${shared_ext}$major'
19763 hardcode_into_libs
=yes
19764 if test "$host_cpu" = ia64
; then
19765 # AIX 5 supports IA64
19766 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19767 shlibpath_var
=LD_LIBRARY_PATH
19769 # With GCC up to 2.95.x, collect2 would create an import file
19770 # for dependence libraries. The import file would start with
19771 # the line `#! .'. This would cause the generated library to
19772 # depend on `.', always an invalid library. This was fixed in
19773 # development snapshots of GCC prior to 3.0.
19775 aix4 | aix4.
[01] | aix4.
[01].
*)
19776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19778 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19781 can_build_shared
=no
19785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19786 # soname into executable. Probably we can add versioning support to
19787 # collect2, so additional links can be useful in future.
19788 if test "$aix_use_runtimelinking" = yes; then
19789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19790 # instead of lib<name>.a to let people know that these are not
19791 # typical AIX shared libraries.
19792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794 # We preserve .a as extension for shared libraries through AIX4.2
19795 # and later when we are not doing run time linking.
19796 library_names_spec
='${libname}${release}.a $libname.a'
19797 soname_spec
='${libname}${release}${shared_ext}$major'
19799 shlibpath_var
=LIBPATH
19806 # Since July 2007 AmigaOS4 officially supports .so libraries.
19807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811 library_names_spec
='$libname.ixlibrary $libname.a'
19812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19813 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'
19819 library_names_spec
='${libname}${shared_ext}'
19820 dynamic_linker
="$host_os ld.so"
19821 shlibpath_var
=LIBRARY_PATH
19827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19828 soname_spec
='${libname}${release}${shared_ext}$major'
19829 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19830 shlibpath_var
=LD_LIBRARY_PATH
19831 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19832 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19833 # the default ld.so.conf also contains /usr/contrib/lib and
19834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19835 # libtool to hard-code these into programs
19838 cygwin
* | mingw
* | pw32
* | cegcc
*)
19839 version_type
=windows
19844 case $GCC,$host_os in
19845 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19846 library_names_spec
='$libname.dll.a'
19847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19848 postinstall_cmds
='base_file=`basename \${file}`~
19849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19850 dldir=$destdir/`dirname \$dlpath`~
19851 test -d \$dldir || mkdir -p \$dldir~
19852 $install_prog $dir/$dlname \$dldir/$dlname~
19853 chmod a+x \$dldir/$dlname~
19854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19857 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19858 dlpath=$dir/\$dldll~
19860 shlibpath_overrides_runpath
=yes
19864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19865 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19869 # MinGW DLLs use traditional 'lib' prefix
19870 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19873 # pw32 DLLs use 'pw' prefix rather than 'lib'
19874 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19880 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19883 dynamic_linker
='Win32 ld.exe'
19884 # FIXME: first we should search . and the directory the executable is in
19888 darwin
* | rhapsody
*)
19889 dynamic_linker
="$host_os dyld"
19890 version_type
=darwin
19893 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19894 soname_spec
='${libname}${release}${major}$shared_ext'
19895 shlibpath_overrides_runpath
=yes
19896 shlibpath_var
=DYLD_LIBRARY_PATH
19897 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19899 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19907 soname_spec
='${libname}${release}${shared_ext}$major'
19908 shlibpath_var
=LD_LIBRARY_PATH
19915 freebsd
* | dragonfly
*)
19916 # DragonFly does not have aout. When/if they implement a new
19917 # versioning mechanism, adjust this.
19918 if test -x /usr
/bin
/objformat
; then
19919 objformat
=`/usr/bin/objformat`
19922 freebsd
[123]*) objformat
=aout
;;
19923 *) objformat
=elf
;;
19926 version_type
=freebsd-
$objformat
19927 case $version_type in
19929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19934 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19938 shlibpath_var
=LD_LIBRARY_PATH
19941 shlibpath_overrides_runpath
=yes
19943 freebsd3.
[01]* | freebsdelf3.
[01]*)
19944 shlibpath_overrides_runpath
=yes
19945 hardcode_into_libs
=yes
19947 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19948 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19949 shlibpath_overrides_runpath
=no
19950 hardcode_into_libs
=yes
19952 *) # from 4.6 on, and DragonFly
19953 shlibpath_overrides_runpath
=yes
19954 hardcode_into_libs
=yes
19963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19964 soname_spec
='${libname}${release}${shared_ext}$major'
19965 shlibpath_var
=LD_LIBRARY_PATH
19966 hardcode_into_libs
=yes
19973 dynamic_linker
="$host_os runtime_loader"
19974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19975 soname_spec
='${libname}${release}${shared_ext}$major'
19976 shlibpath_var
=LIBRARY_PATH
19977 shlibpath_overrides_runpath
=yes
19978 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19979 hardcode_into_libs
=yes
19982 hpux9
* | hpux10
* | hpux11
*)
19983 # Give a soname corresponding to the major version so that dld.sl refuses to
19984 # link against other versions.
19991 hardcode_into_libs
=yes
19992 dynamic_linker
="$host_os dld.so"
19993 shlibpath_var
=LD_LIBRARY_PATH
19994 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19996 soname_spec
='${libname}${release}${shared_ext}$major'
19997 if test "X$HPUX_IA64_MODE" = X32
; then
19998 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20000 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20002 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20006 hardcode_into_libs
=yes
20007 dynamic_linker
="$host_os dld.sl"
20008 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20009 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011 soname_spec
='${libname}${release}${shared_ext}$major'
20012 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20013 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20017 dynamic_linker
="$host_os dld.sl"
20018 shlibpath_var
=SHLIB_PATH
20019 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
20024 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20025 postinstall_cmds
='chmod 555 $lib'
20026 # or fails outright, so override atomically:
20027 install_override_mode
=555
20034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20035 soname_spec
='${libname}${release}${shared_ext}$major'
20036 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20037 shlibpath_var
=LD_LIBRARY_PATH
20038 shlibpath_overrides_runpath
=no
20039 hardcode_into_libs
=yes
20042 irix5
* | irix6
* | nonstopux
*)
20044 nonstopux
*) version_type
=nonstopux
;;
20046 if test "$lt_cv_prog_gnu_ld" = yes; then
20054 soname_spec
='${libname}${release}${shared_ext}$major'
20055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20057 irix5
* | nonstopux
*)
20058 libsuff
= shlibsuff
=
20061 case $LD in # libtool.m4 will add one of these switches to LD
20062 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20063 libsuff
= shlibsuff
= libmagic
=32-bit;;
20064 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20065 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20066 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20067 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20068 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20072 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20073 shlibpath_overrides_runpath
=no
20074 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20075 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20076 hardcode_into_libs
=yes
20079 # No shared lib support for Linux oldld, aout, or coff.
20080 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20084 # This must be Linux ELF.
20085 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20092 shlibpath_var
=LD_LIBRARY_PATH
20093 shlibpath_overrides_runpath
=no
20095 # Some binutils ld are patched to set DT_RUNPATH
20096 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20099 lt_cv_shlibpath_overrides_runpath
=no
20100 save_LDFLAGS
=$LDFLAGS
20101 save_libdir
=$libdir
20102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20105 /* end confdefs.h. */
20115 if ac_fn_cxx_try_link
"$LINENO"; then :
20116 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20117 lt_cv_shlibpath_overrides_runpath
=yes
20120 rm -f core conftest.err conftest.
$ac_objext \
20121 conftest
$ac_exeext conftest.
$ac_ext
20122 LDFLAGS
=$save_LDFLAGS
20123 libdir
=$save_libdir
20127 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20129 # This implies no fast_install, which is unacceptable.
20130 # Some rework will be needed to allow for fast_install
20131 # before this can be enabled.
20132 hardcode_into_libs
=yes
20134 # Append ld.so.conf contents to the search path
20135 if test -f /etc
/ld.so.conf
; then
20136 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' ' '`
20137 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20140 # We used to test for /lib/ld.so.1 and disable shared libraries on
20141 # powerpc, because MkLinux only supported shared libraries with the
20142 # GNU dynamic linker. Since this was broken with cross compilers,
20143 # most powerpc-linux boxes support dynamic linking these days and
20144 # people can always --disable-shared, the test was removed, and we
20145 # assume the GNU/Linux dynamic linker is in use.
20146 dynamic_linker
='GNU/Linux ld.so'
20153 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20155 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20156 dynamic_linker
='NetBSD (a.out) ld.so'
20158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20159 soname_spec
='${libname}${release}${shared_ext}$major'
20160 dynamic_linker
='NetBSD ld.elf_so'
20162 shlibpath_var
=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath
=yes
20164 hardcode_into_libs
=yes
20169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170 shlibpath_var
=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath
=yes
20178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec
='${libname}${release}${shared_ext}$major'
20180 shlibpath_var
=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath
=no
20182 hardcode_into_libs
=yes
20183 dynamic_linker
='ldqnx.so'
20188 sys_lib_dlsearch_path_spec
="/usr/lib"
20190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20192 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20193 *) need_version
=no
;;
20195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20196 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20197 shlibpath_var
=LD_LIBRARY_PATH
20198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20200 openbsd2.
[89] | openbsd2.
[89].
*)
20201 shlibpath_overrides_runpath
=no
20204 shlibpath_overrides_runpath
=yes
20208 shlibpath_overrides_runpath
=yes
20213 libname_spec
='$name'
20216 library_names_spec
='$libname${shared_ext} $libname.a'
20217 dynamic_linker
='OS/2 ld.exe'
20218 shlibpath_var
=LIBPATH
20221 osf3
* | osf4
* | osf5
*)
20225 soname_spec
='${libname}${release}${shared_ext}$major'
20226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227 shlibpath_var
=LD_LIBRARY_PATH
20228 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20229 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20241 soname_spec
='${libname}${release}${shared_ext}$major'
20242 shlibpath_var
=LD_LIBRARY_PATH
20243 shlibpath_overrides_runpath
=yes
20244 hardcode_into_libs
=yes
20245 # ldd complains unless libraries are executable
20246 postinstall_cmds
='chmod +x $lib'
20251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20252 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20253 shlibpath_var
=LD_LIBRARY_PATH
20254 shlibpath_overrides_runpath
=yes
20255 if test "$with_gnu_ld" = yes; then
20263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20264 soname_spec
='${libname}${release}${shared_ext}$major'
20265 shlibpath_var
=LD_LIBRARY_PATH
20266 case $host_vendor in
20268 shlibpath_overrides_runpath
=no
20270 runpath_var
=LD_RUN_PATH
20278 shlibpath_overrides_runpath
=no
20279 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20285 if test -d /usr
/nec
;then
20287 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20288 soname_spec
='$libname${shared_ext}.$major'
20289 shlibpath_var
=LD_LIBRARY_PATH
20293 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20294 version_type
=freebsd-elf
20297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20298 soname_spec
='${libname}${release}${shared_ext}$major'
20299 shlibpath_var
=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath
=yes
20301 hardcode_into_libs
=yes
20302 if test "$with_gnu_ld" = yes; then
20303 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20305 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20308 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20312 sys_lib_dlsearch_path_spec
='/usr/lib'
20316 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321 shlibpath_var
=LD_LIBRARY_PATH
20322 shlibpath_overrides_runpath
=no
20323 hardcode_into_libs
=yes
20328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec
='${libname}${release}${shared_ext}$major'
20330 shlibpath_var
=LD_LIBRARY_PATH
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20338 $as_echo "$dynamic_linker" >&6; }
20339 test "$dynamic_linker" = no
&& can_build_shared
=no
20341 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20342 if test "$GCC" = yes; then
20343 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20346 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20347 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20349 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20350 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20391 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20392 hardcode_action_CXX
=
20393 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20394 test -n "$runpath_var_CXX" ||
20395 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20397 # We can hardcode non-existent directories.
20398 if test "$hardcode_direct_CXX" != no
&&
20399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20400 # have to relink, otherwise we might link with an installed library
20401 # when we should be linking with a yet-to-be-installed one
20402 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20403 test "$hardcode_minus_L_CXX" != no
; then
20404 # Linking always hardcodes the temporary library directory.
20405 hardcode_action_CXX
=relink
20407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20408 hardcode_action_CXX
=immediate
20411 # We cannot hardcode anything, or else we can only hardcode existing
20413 hardcode_action_CXX
=unsupported
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20416 $as_echo "$hardcode_action_CXX" >&6; }
20418 if test "$hardcode_action_CXX" = relink ||
20419 test "$inherit_rpath_CXX" = yes; then
20420 # Fast installation is not supported
20421 enable_fast_install
=no
20422 elif test "$shlibpath_overrides_runpath" = yes ||
20423 test "$enable_shared" = no
; then
20424 # Fast installation is not necessary
20425 enable_fast_install
=needless
20434 fi # test -n "$compiler"
20440 with_gnu_ld
=$lt_save_with_gnu_ld
20441 lt_cv_path_LDCXX
=$lt_cv_path_LD
20442 lt_cv_path_LD
=$lt_save_path_LD
20443 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20444 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20445 fi # test "$_lt_caught_CXX_error" != yes
20448 ac_cpp
='$CPP $CPPFLAGS'
20449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20468 # Only expand once:
20474 # Identify the assembler which will work hand-in-glove with the newly
20475 # built GCC, so that we can examine its features. This is the assembler
20476 # which will be driven by the driver program.
20478 # If build != host, and we aren't building gas in-tree, we identify a
20479 # build->target assembler and hope that it will have the same features
20480 # as the host->target assembler we'll be using.
20481 gcc_cv_gas_major_version
=
20482 gcc_cv_gas_minor_version
=
20483 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20485 if test "${gcc_cv_as+set}" = set; then :
20489 if test -x "$DEFAULT_ASSEMBLER"; then
20490 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20491 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20492 && test -f ..
/gas
/Makefile \
20493 && test x
$build = x
$host; then
20494 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20495 elif test -x as
$build_exeext; then
20496 # Build using assembler in the current directory.
20497 gcc_cv_as
=.
/as
$build_exeext
20498 elif test -x $AS_FOR_TARGET; then
20499 gcc_cv_as
="$AS_FOR_TARGET"
20501 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20502 set dummy
$AS_FOR_TARGET; ac_word
=$2
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20504 $as_echo_n "checking for $ac_word... " >&6; }
20505 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20506 $as_echo_n "(cached) " >&6
20510 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20514 for as_dir
in $PATH
20517 test -z "$as_dir" && as_dir
=.
20518 for ac_exec_ext
in '' $ac_executable_extensions; do
20519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20520 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20531 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20532 if test -n "$gcc_cv_as"; then
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20534 $as_echo "$gcc_cv_as" >&6; }
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537 $as_echo "no" >&6; }
20544 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20546 case "$ORIGINAL_AS_FOR_TARGET" in
20547 .
/as | .
/as
$build_exeext) ;;
20548 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20553 $as_echo_n "checking what assembler to use... " >&6; }
20554 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20555 # Single tree build which includes gas. We want to prefer it
20556 # over whatever linker top-level may have detected, since
20557 # we'll use what we're building after installation anyway.
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20559 $as_echo "newly built gas" >&6; }
20561 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20562 for f
in $gcc_cv_as_bfd_srcdir/configure \
20563 $gcc_cv_as_gas_srcdir/configure \
20564 $gcc_cv_as_gas_srcdir/configure.
in \
20565 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20566 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20567 if test x
$gcc_cv_gas_version != x
; then
20571 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20572 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20573 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20574 case $gcc_cv_gas_patch_version in
20575 "") gcc_cv_gas_patch_version
="0" ;;
20577 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20578 + $gcc_cv_gas_minor_version \) \* 1000 \
20579 + $gcc_cv_gas_patch_version`
20581 in_tree_gas_is_elf
=no
20582 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20583 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20584 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20586 in_tree_gas_is_elf
=yes
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20590 $as_echo "$gcc_cv_as" >&6; }
20594 # Identify the linker which will work hand-in-glove with the newly
20595 # built GCC, so that we can examine its features. This is the linker
20596 # which will be driven by the driver program.
20598 # If build != host, and we aren't building gas in-tree, we identify a
20599 # build->target linker and hope that it will have the same features
20600 # as the host->target linker we'll be using.
20601 gcc_cv_gld_major_version
=
20602 gcc_cv_gld_minor_version
=
20603 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20604 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20606 if test "${gcc_cv_ld+set}" = set; then :
20610 if test -x "$DEFAULT_LINKER"; then
20611 gcc_cv_ld
="$DEFAULT_LINKER"
20612 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20613 && test -f ..
/ld
/Makefile \
20614 && test x
$build = x
$host; then
20615 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20616 elif test -x collect-ld
$build_exeext; then
20617 # Build using linker in the current directory.
20618 gcc_cv_ld
=.
/collect-ld
$build_exeext
20619 elif test -x $LD_FOR_TARGET; then
20620 gcc_cv_ld
="$LD_FOR_TARGET"
20622 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20623 set dummy
$LD_FOR_TARGET; ac_word
=$2
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20625 $as_echo_n "checking for $ac_word... " >&6; }
20626 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20627 $as_echo_n "(cached) " >&6
20631 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20635 for as_dir
in $PATH
20638 test -z "$as_dir" && as_dir
=.
20639 for ac_exec_ext
in '' $ac_executable_extensions; do
20640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20641 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20652 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20653 if test -n "$gcc_cv_ld"; then
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20655 $as_echo "$gcc_cv_ld" >&6; }
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20658 $as_echo "no" >&6; }
20665 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20666 PLUGIN_LD
=`basename $gcc_cv_ld`
20668 # Check whether --with-plugin-ld was given.
20669 if test "${with_plugin_ld+set}" = set; then :
20670 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20671 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20672 PLUGIN_LD
="$withval"
20678 cat >>confdefs.h
<<_ACEOF
20679 #define PLUGIN_LD "$PLUGIN_LD"
20683 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20685 case "$ORIGINAL_LD_FOR_TARGET" in
20686 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20687 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20692 $as_echo_n "checking what linker to use... " >&6; }
20693 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20694 # Single tree build which includes ld. We want to prefer it
20695 # over whatever linker top-level may have detected, since
20696 # we'll use what we're building after installation anyway.
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20698 $as_echo "newly built ld" >&6; }
20700 in_tree_ld_is_elf
=no
20701 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20702 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20703 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20704 in_tree_ld_is_elf
=yes
20706 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
20708 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20709 if test x
$gcc_cv_gld_version != x
; then
20713 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20714 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20717 $as_echo "$gcc_cv_ld" >&6; }
20721 # Figure out what nm we will be using.
20722 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20723 if test "${gcc_cv_nm+set}" = set; then :
20727 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20728 && test -f ..
/binutils
/Makefile \
20729 && test x
$build = x
$host; then
20730 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20731 elif test -x nm
$build_exeext; then
20732 gcc_cv_nm
=.
/nm
$build_exeext
20733 elif test -x $NM_FOR_TARGET; then
20734 gcc_cv_nm
="$NM_FOR_TARGET"
20736 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20737 set dummy
$NM_FOR_TARGET; ac_word
=$2
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20745 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20749 for as_dir
in $PATH
20752 test -z "$as_dir" && as_dir
=.
20753 for ac_exec_ext
in '' $ac_executable_extensions; do
20754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20755 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20766 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20767 if test -n "$gcc_cv_nm"; then
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20769 $as_echo "$gcc_cv_nm" >&6; }
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20780 $as_echo_n "checking what nm to use... " >&6; }
20781 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20782 # Single tree build which includes binutils.
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20784 $as_echo "newly built nm" >&6; }
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20788 $as_echo "$gcc_cv_nm" >&6; }
20792 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20794 case "$ORIGINAL_NM_FOR_TARGET" in
20795 .
/nm | .
/nm
$build_exeext) ;;
20796 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20801 # Figure out what objdump we will be using.
20802 if test "${gcc_cv_objdump+set}" = set; then :
20806 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20807 && test -f ..
/binutils
/Makefile \
20808 && test x
$build = x
$host; then
20809 # Single tree build which includes binutils.
20810 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20811 elif test -x objdump
$build_exeext; then
20812 gcc_cv_objdump
=.
/objdump
$build_exeext
20813 elif test -x $OBJDUMP_FOR_TARGET; then
20814 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20816 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20817 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20819 $as_echo_n "checking for $ac_word... " >&6; }
20820 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20821 $as_echo_n "(cached) " >&6
20823 case $gcc_cv_objdump in
20825 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20829 for as_dir
in $PATH
20832 test -z "$as_dir" && as_dir
=.
20833 for ac_exec_ext
in '' $ac_executable_extensions; do
20834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20835 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20846 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20847 if test -n "$gcc_cv_objdump"; then
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20849 $as_echo "$gcc_cv_objdump" >&6; }
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20852 $as_echo "no" >&6; }
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20860 $as_echo_n "checking what objdump to use... " >&6; }
20861 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20862 # Single tree build which includes binutils.
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20864 $as_echo "newly built objdump" >&6; }
20865 elif test x
$gcc_cv_objdump = x
; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20867 $as_echo "not found" >&6; }
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20870 $as_echo "$gcc_cv_objdump" >&6; }
20873 # Figure out what readelf we will be using.
20874 if test "${gcc_cv_readelf+set}" = set; then :
20878 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20879 && test -f ..
/binutils
/Makefile \
20880 && test x
$build = x
$host; then
20881 # Single tree build which includes binutils.
20882 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20883 elif test -x readelf
$build_exeext; then
20884 gcc_cv_readelf
=.
/readelf
$build_exeext
20886 # Extract the first word of "readelf", so it can be a program name with args.
20887 set dummy readelf
; ac_word
=$2
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20889 $as_echo_n "checking for $ac_word... " >&6; }
20890 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20893 case $gcc_cv_readelf in
20895 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20899 for as_dir
in $PATH
20902 test -z "$as_dir" && as_dir
=.
20903 for ac_exec_ext
in '' $ac_executable_extensions; do
20904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20905 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20916 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20917 if test -n "$gcc_cv_readelf"; then
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20919 $as_echo "$gcc_cv_readelf" >&6; }
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20922 $as_echo "no" >&6; }
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20930 $as_echo_n "checking what readelf to use... " >&6; }
20931 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20932 # Single tree build which includes binutils.
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20934 $as_echo "newly built readelf" >&6; }
20935 elif test x
$gcc_cv_readelf = x
; then
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20937 $as_echo "not found" >&6; }
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20940 $as_echo "$gcc_cv_readelf" >&6; }
20943 # Figure out what assembler alignment features are present.
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20945 $as_echo_n "checking assembler flags... " >&6; }
20946 if test "${gcc_cv_as_flags+set}" = set; then :
20947 $as_echo_n "(cached) " >&6
20950 i
[34567]86-*-linux*)
20951 gcc_cv_as_flags
="--32"
20954 gcc_cv_as_flags
=" "
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20959 $as_echo "$gcc_cv_as_flags" >&6; }
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20962 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20963 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20964 $as_echo_n "(cached) " >&6
20966 gcc_cv_as_balign_and_p2align
=no
20967 if test $in_tree_gas = yes; then
20968 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20969 then gcc_cv_as_balign_and_p2align
=yes
20971 elif test x
$gcc_cv_as != x
; then
20973 .p2align 2' > conftest.s
20974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20976 (eval $ac_try) 2>&5
20978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20979 test $ac_status = 0; }; }
20981 gcc_cv_as_balign_and_p2align
=yes
20983 echo "configure: failed program was" >&5
20986 rm -f conftest.o conftest.s
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20990 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20991 if test $gcc_cv_as_balign_and_p2align = yes; then
20993 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20998 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20999 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21000 $as_echo_n "(cached) " >&6
21002 gcc_cv_as_max_skip_p2align
=no
21003 if test $in_tree_gas = yes; then
21004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21005 then gcc_cv_as_max_skip_p2align
=yes
21007 elif test x
$gcc_cv_as != x
; then
21008 echo '.p2align 4,,7' > conftest.s
21009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21011 (eval $ac_try) 2>&5
21013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21014 test $ac_status = 0; }; }
21016 gcc_cv_as_max_skip_p2align
=yes
21018 echo "configure: failed program was" >&5
21021 rm -f conftest.o conftest.s
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21025 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21026 if test $gcc_cv_as_max_skip_p2align = yes; then
21028 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21033 $as_echo_n "checking assembler for .literal16... " >&6; }
21034 if test "${gcc_cv_as_literal16+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21037 gcc_cv_as_literal16
=no
21038 if test $in_tree_gas = yes; then
21039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21040 then gcc_cv_as_literal16
=yes
21042 elif test x
$gcc_cv_as != x
; then
21043 echo '.literal16' > conftest.s
21044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21046 (eval $ac_try) 2>&5
21048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049 test $ac_status = 0; }; }
21051 gcc_cv_as_literal16
=yes
21053 echo "configure: failed program was" >&5
21056 rm -f conftest.o conftest.s
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21060 $as_echo "$gcc_cv_as_literal16" >&6; }
21061 if test $gcc_cv_as_literal16 = yes; then
21063 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21068 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21069 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21070 $as_echo_n "(cached) " >&6
21072 gcc_cv_as_subsection_m1
=no
21073 if test $in_tree_gas = yes; then
21074 if test $in_tree_gas_is_elf = yes \
21075 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21076 then gcc_cv_as_subsection_m1
=yes
21078 elif test x
$gcc_cv_as != x
; then
21079 echo 'conftest_label1: .word 0
21081 conftest_label2: .word 0
21082 .previous' > conftest.s
21083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21085 (eval $ac_try) 2>&5
21087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088 test $ac_status = 0; }; }
21090 if test x
$gcc_cv_nm != x
; then
21091 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21092 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21093 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21095 else gcc_cv_as_subsection_m1
=yes
21097 rm -f conftest.nm1 conftest.nm2
21100 echo "configure: failed program was" >&5
21103 rm -f conftest.o conftest.s
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21107 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21108 if test $gcc_cv_as_subsection_m1 = yes; then
21110 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21115 $as_echo_n "checking assembler for .weak... " >&6; }
21116 if test "${gcc_cv_as_weak+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21120 if test $in_tree_gas = yes; then
21121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21122 then gcc_cv_as_weak
=yes
21124 elif test x
$gcc_cv_as != x
; then
21125 echo ' .weak foobar' > conftest.s
21126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21128 (eval $ac_try) 2>&5
21130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21131 test $ac_status = 0; }; }
21135 echo "configure: failed program was" >&5
21138 rm -f conftest.o conftest.s
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21142 $as_echo "$gcc_cv_as_weak" >&6; }
21143 if test $gcc_cv_as_weak = yes; then
21145 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21150 $as_echo_n "checking assembler for .weakref... " >&6; }
21151 if test "${gcc_cv_as_weakref+set}" = set; then :
21152 $as_echo_n "(cached) " >&6
21154 gcc_cv_as_weakref
=no
21155 if test $in_tree_gas = yes; then
21156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21157 then gcc_cv_as_weakref
=yes
21159 elif test x
$gcc_cv_as != x
; then
21160 echo ' .weakref foobar, barfnot' > conftest.s
21161 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21163 (eval $ac_try) 2>&5
21165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21166 test $ac_status = 0; }; }
21168 gcc_cv_as_weakref
=yes
21170 echo "configure: failed program was" >&5
21173 rm -f conftest.o conftest.s
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21177 $as_echo "$gcc_cv_as_weakref" >&6; }
21178 if test $gcc_cv_as_weakref = yes; then
21180 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21185 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21186 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21187 $as_echo_n "(cached) " >&6
21189 gcc_cv_as_nsubspa_comdat
=no
21190 if test $in_tree_gas = yes; then
21191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21192 then gcc_cv_as_nsubspa_comdat
=yes
21194 elif test x
$gcc_cv_as != x
; then
21195 echo ' .SPACE $TEXT$
21196 .NSUBSPA $CODE$,COMDAT' > conftest.s
21197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21199 (eval $ac_try) 2>&5
21201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21202 test $ac_status = 0; }; }
21204 gcc_cv_as_nsubspa_comdat
=yes
21206 echo "configure: failed program was" >&5
21209 rm -f conftest.o conftest.s
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21213 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21214 if test $gcc_cv_as_nsubspa_comdat = yes; then
21216 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21220 # .hidden needs to be supported in both the assembler and the linker,
21221 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21222 # This is irritatingly difficult to feature test for; we have to check the
21223 # date string after the version number. If we've got an in-tree
21224 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21226 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21228 $as_echo_n "checking assembler for .hidden... " >&6; }
21229 if test "${gcc_cv_as_hidden+set}" = set; then :
21230 $as_echo_n "(cached) " >&6
21232 gcc_cv_as_hidden
=no
21233 if test $in_tree_gas = yes; then
21234 if test $in_tree_gas_is_elf = yes \
21235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21236 then gcc_cv_as_hidden
=yes
21238 elif test x
$gcc_cv_as != x
; then
21239 echo ' .hidden foobar
21240 foobar:' > conftest.s
21241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21243 (eval $ac_try) 2>&5
21245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21246 test $ac_status = 0; }; }
21249 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21250 # STV_HIDDEN, so disable .hidden support if so.
21251 case "${target}" in
21253 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21254 cat > conftest.s
<<EOF
21259 .set default,hidden
21261 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21262 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21263 grep '\.hidden default' > /dev
/null
; then
21264 gcc_cv_as_hidden
=no
21266 gcc_cv_as_hidden
=yes
21269 # Assume bug is present if objdump is missing.
21270 gcc_cv_as_hidden
=no
21274 gcc_cv_as_hidden
=yes
21278 echo "configure: failed program was" >&5
21281 rm -f conftest.o conftest.s
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21285 $as_echo "$gcc_cv_as_hidden" >&6; }
21288 if test $in_tree_ld != yes ; then
21289 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21290 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21291 ld_vers
=`echo $ld_ver | sed -n \
21292 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21293 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'`
21294 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21295 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21296 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21298 case "${target}" in
21301 # Solaris 2 ld -V output looks like this for a regular version:
21303 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21305 # but test versions add stuff at the end:
21307 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21309 ld_ver
=`$gcc_cv_ld -V 2>&1`
21310 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21311 ld_vers
=`echo $ld_ver | sed -n \
21312 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21313 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21314 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21322 $as_echo_n "checking linker for .hidden support... " >&6; }
21323 if test "${gcc_cv_ld_hidden+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21326 if test $in_tree_ld = yes ; then
21327 gcc_cv_ld_hidden
=no
21328 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 \
21329 && test $in_tree_ld_is_elf = yes; then
21330 gcc_cv_ld_hidden
=yes
21333 gcc_cv_ld_hidden
=yes
21334 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21335 if test 0"$ld_date" -lt 20020404; then
21336 if test -n "$ld_date"; then
21337 # If there was date string, but was earlier than 2002-04-04, fail
21338 gcc_cv_ld_hidden
=no
21339 elif test -z "$ld_vers"; then
21340 # If there was no date string nor ld version number, something is wrong
21341 gcc_cv_ld_hidden
=no
21343 test -z "$ld_vers_patch" && ld_vers_patch
=0
21344 if test "$ld_vers_major" -lt 2; then
21345 gcc_cv_ld_hidden
=no
21346 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21347 gcc_cv_ld_hidden
="no"
21348 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21349 gcc_cv_ld_hidden
=no
21354 case "${target}" in
21355 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21356 gcc_cv_ld_hidden
=yes
21358 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21359 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21360 # .symbolic was only added in Solaris 9 12/02.
21361 gcc_cv_ld_hidden
=yes
21364 gcc_cv_ld_hidden
=no
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21371 $as_echo "$gcc_cv_ld_hidden" >&6; }
21372 libgcc_visibility
=no
21375 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21376 libgcc_visibility
=yes
21378 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21383 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21384 gcc_cv_ld_ro_rw_mix
=unknown
21385 if test $in_tree_ld = yes ; then
21386 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 \
21387 && test $in_tree_ld_is_elf = yes; then
21388 gcc_cv_ld_ro_rw_mix
=read-write
21390 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21391 echo '.section myfoosect, "a"' > conftest1.s
21392 echo '.section myfoosect, "aw"' > conftest2.s
21393 echo '.byte 1' >> conftest2.s
21394 echo '.section myfoosect, "a"' > conftest3.s
21395 echo '.byte 0' >> conftest3.s
21396 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21397 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21398 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21399 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21400 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21401 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21402 | sed -e '/myfoosect/!d' -e N`
21403 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21404 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21405 gcc_cv_ld_ro_rw_mix
=read-only
21407 gcc_cv_ld_ro_rw_mix
=read-write
21411 rm -f conftest.
* conftest
[123].
*
21413 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21415 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21419 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21421 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21423 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21424 if test "${gcc_cv_as_leb128+set}" = set; then :
21425 $as_echo_n "(cached) " >&6
21427 gcc_cv_as_leb128
=no
21428 if test $in_tree_gas = yes; then
21429 if test $in_tree_gas_is_elf = yes \
21430 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21431 then gcc_cv_as_leb128
=yes
21433 elif test x
$gcc_cv_as != x
; then
21440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21442 (eval $ac_try) 2>&5
21444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21445 test $ac_status = 0; }; }
21447 # GAS versions before 2.11 do not support uleb128,
21448 # despite appearing to.
21449 # ??? There exists an elf-specific test that will crash
21450 # the assembler. Perhaps it's better to figure out whether
21451 # arbitrary sections are supported and try the test.
21452 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21453 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21454 as_vers
=`echo $as_ver | sed -n \
21455 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21456 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21457 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21458 if test $as_major -eq 2 && test $as_minor -lt 11
21460 else gcc_cv_as_leb128
=yes
21464 echo "configure: failed program was" >&5
21467 rm -f conftest.o conftest.s
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21471 $as_echo "$gcc_cv_as_leb128" >&6; }
21472 if test $gcc_cv_as_leb128 = yes; then
21474 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21478 # Check if we have assembler support for unwind directives.
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21480 $as_echo_n "checking assembler for cfi directives... " >&6; }
21481 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21484 gcc_cv_as_cfi_directive
=no
21485 if test x
$gcc_cv_as != x
; then
21491 .cfi_escape 1, 2, 3, 4, 5
21492 .cfi_endproc' > conftest.s
21493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21495 (eval $ac_try) 2>&5
21497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21498 test $ac_status = 0; }; }
21502 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21503 # read-only and read-write sections, we need to make sure that the
21504 # assembler used emits read-write .eh_frame sections.
21505 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21506 if test "x$gcc_cv_objdump" != x
; then
21507 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21508 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21509 gcc_cv_as_cfi_directive
=no
21512 i?
86-*-solaris2.1
[0-9]*)
21513 # On Solaris/x86, make sure that GCC and gas agree on using
21514 # read-only .eh_frame sections for 64-bit.
21515 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21516 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21517 sed -e /.eh_frame
/!d
-e N | \
21518 grep READONLY
> /dev
/null
; then
21519 gcc_cv_as_cfi_directive
=yes
21521 gcc_cv_as_cfi_directive
=no
21525 gcc_cv_as_cfi_directive
=yes
21530 # no objdump, err on the side of caution
21531 gcc_cv_as_cfi_directive
=no
21534 gcc_cv_as_cfi_directive
=yes
21538 gcc_cv_as_cfi_directive
=yes
21542 echo "configure: failed program was" >&5
21545 rm -f conftest.o conftest.s
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21549 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21551 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21553 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21554 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21557 gcc_cv_as_cfi_advance_working
=no
21558 if test x
$gcc_cv_as != x
; then
21561 .cfi_adjust_cfa_offset 64
21563 .cfi_adjust_cfa_offset 128
21564 .cfi_endproc' > conftest.s
21565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21567 (eval $ac_try) 2>&5
21569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21570 test $ac_status = 0; }; }
21573 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21574 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21575 gcc_cv_as_cfi_advance_working
=yes
21579 echo "configure: failed program was" >&5
21582 rm -f conftest.o conftest.s
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21586 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21589 # no readelf, err on the side of caution
21590 gcc_cv_as_cfi_advance_working
=no
21593 cat >>confdefs.h
<<_ACEOF
21594 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21595 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21600 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21601 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21604 gcc_cv_as_cfi_personality_directive
=no
21605 if test x
$gcc_cv_as != x
; then
21608 .cfi_personality 0, symbol
21609 .cfi_endproc' > conftest.s
21610 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21612 (eval $ac_try) 2>&5
21614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21615 test $ac_status = 0; }; }
21617 gcc_cv_as_cfi_personality_directive
=yes
21619 echo "configure: failed program was" >&5
21622 rm -f conftest.o conftest.s
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21626 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21629 cat >>confdefs.h
<<_ACEOF
21630 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21631 then echo 1; else echo 0; fi`
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21636 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21637 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21638 $as_echo_n "(cached) " >&6
21640 gcc_cv_as_cfi_sections_directive
=no
21641 if test x
$gcc_cv_as != x
; then
21643 .cfi_sections .debug_frame, .eh_frame
21645 .cfi_endproc' > conftest.s
21646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21648 (eval $ac_try) 2>&5
21650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21651 test $ac_status = 0; }; }
21653 gcc_cv_as_cfi_sections_directive
=yes
21655 echo "configure: failed program was" >&5
21658 rm -f conftest.o conftest.s
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21662 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21665 cat >>confdefs.h
<<_ACEOF
21666 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21667 then echo 1; else echo 0; fi`
21671 # GAS versions up to and including 2.11.0 may mis-optimize
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21674 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21675 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21676 $as_echo_n "(cached) " >&6
21678 gcc_cv_as_eh_frame
=no
21679 if test $in_tree_gas = yes; then
21680 if test $in_tree_gas_is_elf = yes \
21681 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21682 then gcc_cv_as_eh_frame
=yes
21684 elif test x
$gcc_cv_as != x
; then
21691 .section .eh_frame,"aw",@progbits
21693 .4byte .LECIE1-.LSCIE1
21707 .4byte .LEFDE1-.LASFDE1
21709 .4byte .LASFDE1-__FRAME_BEGIN__
21716 .LEFDE1:' > conftest.s
21717 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21719 (eval $ac_try) 2>&5
21721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722 test $ac_status = 0; }; }
21724 cat > conftest.lit
<<EOF
21725 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21726 0010 01000000 12000000 18000000 00000000 ................
21727 0020 08000000 04080000 0044 .........D
21729 cat > conftest.big
<<EOF
21730 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21731 0010 00000001 00000012 00000018 00000000 ................
21732 0020 00000008 04000000 0844 .........D
21734 # If the assembler didn't choke, and we can objdump,
21735 # and we got the correct data, then succeed.
21736 # The text in the here-document typically retains its unix-style line
21737 # endings, while the output of objdump will use host line endings.
21738 # Therefore, use diff -b for the comparisons.
21739 if test x
$gcc_cv_objdump != x \
21740 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21741 |
tail -3 > conftest.got \
21742 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21743 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21745 gcc_cv_as_eh_frame
=yes
21746 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21748 (eval $ac_try) 2>&5
21750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21751 test $ac_status = 0; }; }; then
21752 gcc_cv_as_eh_frame
=buggy
21754 # Uh oh, what do we do now?
21755 gcc_cv_as_eh_frame
=no
21758 echo "configure: failed program was" >&5
21761 rm -f conftest.o conftest.s
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21765 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21768 if test $gcc_cv_as_eh_frame = buggy
; then
21770 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21775 $as_echo_n "checking assembler for section merging support... " >&6; }
21776 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21777 $as_echo_n "(cached) " >&6
21779 gcc_cv_as_shf_merge
=no
21780 if test $in_tree_gas = yes; then
21781 if test $in_tree_gas_is_elf = yes \
21782 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21783 then gcc_cv_as_shf_merge
=yes
21785 elif test x
$gcc_cv_as != x
; then
21786 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21789 (eval $ac_try) 2>&5
21791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21792 test $ac_status = 0; }; }
21794 gcc_cv_as_shf_merge
=yes
21796 echo "configure: failed program was" >&5
21799 rm -f conftest.o conftest.s
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21803 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21805 if test $gcc_cv_as_shf_merge = no
; then
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21807 $as_echo_n "checking assembler for section merging support... " >&6; }
21808 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21809 $as_echo_n "(cached) " >&6
21811 gcc_cv_as_shf_merge
=no
21812 if test $in_tree_gas = yes; then
21813 if test $in_tree_gas_is_elf = yes \
21814 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21815 then gcc_cv_as_shf_merge
=yes
21817 elif test x
$gcc_cv_as != x
; then
21818 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21821 (eval $ac_try) 2>&5
21823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21824 test $ac_status = 0; }; }
21826 gcc_cv_as_shf_merge
=yes
21828 echo "configure: failed program was" >&5
21831 rm -f conftest.o conftest.s
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21835 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21839 cat >>confdefs.h
<<_ACEOF
21840 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21845 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21846 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21847 $as_echo_n "(cached) " >&6
21849 gcc_cv_as_comdat_group
=no
21850 if test $in_tree_gas = yes; then
21851 if test $in_tree_gas_is_elf = yes \
21852 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21853 then gcc_cv_as_comdat_group
=yes
21855 elif test x
$gcc_cv_as != x
; then
21856 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21859 (eval $ac_try) 2>&5
21861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21862 test $ac_status = 0; }; }
21864 gcc_cv_as_comdat_group
=yes
21866 echo "configure: failed program was" >&5
21869 rm -f conftest.o conftest.s
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21873 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21875 if test $gcc_cv_as_comdat_group = yes; then
21876 gcc_cv_as_comdat_group_percent
=no
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21879 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21880 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21881 $as_echo_n "(cached) " >&6
21883 gcc_cv_as_comdat_group_percent
=no
21884 if test $in_tree_gas = yes; then
21885 if test $in_tree_gas_is_elf = yes \
21886 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21887 then gcc_cv_as_comdat_group_percent
=yes
21889 elif test x
$gcc_cv_as != x
; then
21890 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21893 (eval $ac_try) 2>&5
21895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21896 test $ac_status = 0; }; }
21898 gcc_cv_as_comdat_group_percent
=yes
21900 echo "configure: failed program was" >&5
21903 rm -f conftest.o conftest.s
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21907 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21910 if test $in_tree_ld = yes ; then
21912 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 \
21913 && test $in_tree_ld_is_elf = yes; then
21916 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21918 if test 0"$ld_date" -lt 20050308; then
21919 if test -n "$ld_date"; then
21920 # If there was date string, but was earlier than 2005-03-08, fail
21922 elif test "$ld_vers_major" -lt 2; then
21924 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21929 case "${target}" in
21930 *-*-solaris2.1
[1-9]*)
21931 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21932 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21935 # FIXME: Maybe need to refine later when COMDAT group support with
21936 # Sun as is implemented.
21937 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
21944 # Assume linkers other than GNU ld don't support COMDAT group.
21949 # Allow overriding the automatic COMDAT group tests above.
21950 # Check whether --enable-comdat was given.
21951 if test "${enable_comdat+set}" = set; then :
21952 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
21955 if test $comdat_group = no
; then
21956 gcc_cv_as_comdat_group
=no
21957 gcc_cv_as_comdat_group_percent
=no
21960 cat >>confdefs.h
<<_ACEOF
21961 #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`
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21966 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21967 if test "${gcc_cv_as_discriminator+set}" = set; then :
21968 $as_echo_n "(cached) " >&6
21970 gcc_cv_as_discriminator
=no
21971 if test $in_tree_gas = yes; then
21972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21973 then gcc_cv_as_discriminator
=yes
21975 elif test x
$gcc_cv_as != x
; then
21978 .loc 1 1 0 discriminator 1' > conftest.s
21979 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21981 (eval $ac_try) 2>&5
21983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21984 test $ac_status = 0; }; }
21986 gcc_cv_as_discriminator
=yes
21988 echo "configure: failed program was" >&5
21991 rm -f conftest.o conftest.s
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21995 $as_echo "$gcc_cv_as_discriminator" >&6; }
21996 if test $gcc_cv_as_discriminator = yes; then
21998 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22002 # Thread-local storage - the check is heavily parameterized.
22010 .section ".tdata","awT",@progbits
22013 ldq $27,__tls_get_addr($29) !literal!1
22014 lda $16,foo($29) !tlsgd!1
22015 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22016 ldq $27,__tls_get_addr($29) !literal!2
22017 lda $16,foo($29) !tlsldm!2
22018 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22019 ldq $1,foo($29) !gotdtprel
22020 ldah $2,foo($29) !dtprelhi
22021 lda $3,foo($2) !dtprello
22022 lda $4,foo($29) !dtprel
22023 ldq $1,foo($29) !gottprel
22024 ldah $2,foo($29) !tprelhi
22025 lda $3,foo($2) !tprello
22026 lda $4,foo($29) !tprel'
22029 tls_as_opt
=--fatal-warnings
22031 cris-
*-*|crisv32-
*-*)
22033 .section ".tdata","awT",@progbits
22040 tls_as_opt
=--fatal-warnings
22044 .section ".tdata","awT",@progbits
22047 call #gettlsoff(x)'
22056 .section ".tdata","awT",@progbits
22060 addil LT%foo-$tls_gdidx$,gp
22061 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22064 addil LT%foo-$tls_ldidx$,gp
22066 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22067 addil LR%foo-$tls_dtpoff$,%ret0
22068 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22070 addil LT%foo-$tls_ieoff$,gp
22071 ldw RT%foo-$tls_ieoff$(%r1),%t2
22074 addil LR%foo-$tls_leoff$,%t1
22075 ldo RR%foo-$tls_leoff$(%r1),%t2'
22078 tls_as_opt
=--fatal-warnings
22082 .section ".tdata","awT",%progbits
22085 .word foo(gottpoff)
22095 i
[34567]86-*-solaris2.
[56789]*)
22096 # TLS was introduced in the Solaris 9 4/04 release but
22097 # we do not enable it by default on Solaris 9 either.
22098 if test "x$enable_tls" = xyes
; then
22104 i
[34567]86-*-solaris2.
*)
22111 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22113 .section .tdata,"awt",@progbits'
22117 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22121 .section ".tdata","awT",@progbits'
22124 tls_as_opt
="--fatal-warnings"
22126 conftest_s
="$conftest_s
22130 leal foo@tlsgd(,%ebx,1), %eax
22131 leal foo@tlsldm(%ebx), %eax
22132 leal foo@dtpoff(%eax), %edx
22133 movl foo@gottpoff(%ebx), %eax
22134 subl foo@gottpoff(%ebx), %eax
22135 addl foo@gotntpoff(%ebx), %eax
22136 movl foo@indntpoff, %eax
22137 movl \$foo@tpoff, %eax
22138 subl \$foo@tpoff, %eax
22139 leal foo@ntpoff(%ecx), %eax"
22143 .section ".tdata","awT",@progbits
22147 leaq foo@TLSGD(%rip), %rdi
22148 leaq foo@TLSLD(%rip), %rdi
22149 leaq foo@DTPOFF(%rax), %rdx
22150 movq foo@GOTTPOFF(%rip), %rax
22151 movq $foo@TPOFF, %rax'
22154 tls_as_opt
=--fatal-warnings
22158 .section ".tdata","awT",@progbits
22161 addl r16 = @ltoff(@dtpmod(foo#)), gp
22162 addl r17 = @ltoff(@dtprel(foo#)), gp
22163 addl r18 = @ltoff(@tprel(foo#)), gp
22164 addl r19 = @dtprel(foo#), gp
22165 adds r21 = @dtprel(foo#), r13
22166 movl r23 = @dtprel(foo#)
22167 addl r20 = @tprel(foo#), gp
22168 adds r22 = @tprel(foo#), r13
22169 movl r24 = @tprel(foo#)'
22172 tls_as_opt
=--fatal-warnings
22176 .section .tdata,"awT",@progbits
22180 addiu $4, $28, %tlsgd(x)
22181 addiu $4, $28, %tlsldm(x)
22182 lui $4, %dtprel_hi(x)
22183 addiu $4, $4, %dtprel_lo(x)
22184 lw $4, %gottprel(x)($28)
22185 lui $4, %tprel_hi(x)
22186 addiu $4, $4, %tprel_lo(x)'
22189 tls_as_opt
='-32 --fatal-warnings'
22193 .section .tdata,"awT",@progbits
22198 move.l x@TLSGD(%a5),%a0
22199 move.l x@TLSLDM(%a5),%a0
22200 move.l x@TLSLDO(%a5),%a0
22201 move.l x@TLSIE(%a5),%a0
22202 move.l x@TLSLE(%a5),%a0'
22205 tls_as_opt
='--fatal-warnings'
22209 .section ".tdata","awT",@progbits
22217 addi 3,31,ld0@got@tlsgd
22219 addi 3,31,x1@got@tlsld
22222 addis 9,3,x2@dtprel@ha
22223 addi 9,9,x2@dtprel@l
22224 lwz 9,x3@got@tprel(31)
22227 addis 9,2,x2@tprel@ha
22228 addi 9,9,x2@tprel@l'
22231 tls_as_opt
="-a32 --fatal-warnings"
22235 .section ".tdata","awT",@progbits
22243 addi 3,2,ld0@got@tlsgd
22249 addi 3,2,x1@got@tlsld
22255 addis 9,3,x2@dtprel@ha
22256 addi 9,9,x2@dtprel@l
22259 ld 9,x3@got@dtprel(2)
22265 tls_as_opt
="-a64 --fatal-warnings"
22269 .section ".tdata","awT",@progbits
22276 .long foo@GOTNTPOFF
22277 .long foo@INDNTPOFF
22278 l %r1,foo@GOTNTPOFF(%r12)
22279 l %r1,0(%r1):tls_load:foo
22280 bas %r14,0(%r1,%r13):tls_gdcall:foo
22281 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22284 tls_as_opt
="-m31 --fatal-warnings"
22288 .section ".tdata","awT",@progbits
22295 .quad foo@GOTNTPOFF
22296 lg %r1,foo@GOTNTPOFF(%r12)
22297 larl %r1,foo@INDNTPOFF
22298 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22299 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22302 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22304 sh-
*-* | sh
[34]-*-*)
22306 .section ".tdata","awT",@progbits
22316 tls_as_opt
=--fatal-warnings
22320 sparc
*-sun-solaris2.
[56789]*)
22321 # TLS was introduced in the Solaris 9 4/04 release but
22322 # we do not enable it by default on Solaris 9 either.
22323 if test "x$enable_tls" = xyes
; then
22329 sparc
*-sun-solaris2.
*)
22336 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22338 .section ".tdata",#alloc,#write,#tls
22341 sethi %tgd_hi22(foo), %o0
22342 add %o0, %tgd_lo10(foo), %o1
22343 add %l7, %o1, %o0, %tgd_add(foo)
22344 call __tls_get_addr, %tgd_call(foo)
22345 sethi %tldm_hi22(foo), %l1
22346 add %l1, %tldm_lo10(foo), %l2
22347 add %l7, %l2, %o0, %tldm_add(foo)
22348 call __tls_get_addr, %tldm_call(foo)
22349 sethi %tldo_hix22(foo), %l3
22350 xor %l3, %tldo_lox10(foo), %l4
22351 add %o0, %l4, %l5, %tldo_add(foo)
22352 sethi %tie_hi22(foo), %o3
22353 add %o3, %tie_lo10(foo), %o3
22354 ld [%l7 + %o3], %o2, %tie_ld(foo)
22355 add %g7, %o2, %o4, %tie_add(foo)
22356 sethi %tle_hix22(foo), %l1
22357 xor %l1, %tle_lox10(foo), %o5
22358 ld [%g7 + %o5], %o1'
22363 .section ".tdata","awT",@progbits
22366 sethi %tgd_hi22(foo), %o0
22367 add %o0, %tgd_lo10(foo), %o1
22368 add %l7, %o1, %o0, %tgd_add(foo)
22369 call __tls_get_addr, %tgd_call(foo)
22370 sethi %tldm_hi22(foo), %l1
22371 add %l1, %tldm_lo10(foo), %l2
22372 add %l7, %l2, %o0, %tldm_add(foo)
22373 call __tls_get_addr, %tldm_call(foo)
22374 sethi %tldo_hix22(foo), %l3
22375 xor %l3, %tldo_lox10(foo), %l4
22376 add %o0, %l4, %l5, %tldo_add(foo)
22377 sethi %tie_hi22(foo), %o3
22378 add %o3, %tie_lo10(foo), %o3
22379 ld [%l7 + %o3], %o2, %tie_ld(foo)
22380 add %g7, %o2, %o4, %tie_add(foo)
22381 sethi %tle_hix22(foo), %l1
22382 xor %l1, %tle_lox10(foo), %o5
22383 ld [%g7 + %o5], %o1'
22386 tls_as_opt
="-32 --fatal-warnings"
22391 .section ".tdata","awT",@progbits
22394 movi a8, foo@TLSFUNC
22395 movi a10, foo@TLSARG
22396 callx8.tls a8, foo@TLSCALL'
22402 if test "x$enable_tls" = xno
; then
22403 : # TLS explicitly disabled.
22404 elif test "x$enable_tls" = xyes
; then
22405 set_have_as_tls
=yes # TLS explicitly enabled.
22406 elif test -z "$tls_first_major"; then
22407 : # If we don't have a check, assume no support.
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22410 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22411 if test "${gcc_cv_as_tls+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22415 if test $in_tree_gas = yes; then
22416 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22417 then gcc_cv_as_tls
=yes
22419 elif test x
$gcc_cv_as != x
; then
22420 echo "$conftest_s" > conftest.s
22421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22423 (eval $ac_try) 2>&5
22425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22426 test $ac_status = 0; }; }
22430 echo "configure: failed program was" >&5
22433 rm -f conftest.o conftest.s
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22437 $as_echo "$gcc_cv_as_tls" >&6; }
22438 if test $gcc_cv_as_tls = yes; then
22439 set_have_as_tls
=yes
22442 if test $set_have_as_tls = yes ; then
22444 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22448 # Target-specific assembler checks.
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22451 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22452 gcc_cv_ld_static_dynamic
=no
22453 if test $in_tree_ld = yes ; then
22454 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
22455 gcc_cv_ld_static_dynamic
=yes
22457 elif test x
$gcc_cv_ld != x
; then
22458 # Check if linker supports -Bstatic/-Bdynamic option
22459 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22460 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22461 gcc_cv_ld_static_dynamic
=yes
22464 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22466 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22470 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22472 if test x
"$demangler_in_ld" = xyes
; then
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22474 $as_echo_n "checking linker --demangle support... " >&6; }
22475 gcc_cv_ld_demangle
=no
22476 if test $in_tree_ld = yes; then
22477 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 \
22478 gcc_cv_ld_demangle
=yes
22480 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22481 # Check if the GNU linker supports --demangle option
22482 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22483 gcc_cv_ld_demangle
=yes
22486 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22488 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22492 $as_echo "$gcc_cv_ld_demangle" >&6; }
22496 # All TARGET_ABI_OSF targets.
22497 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22499 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22500 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22503 gcc_cv_as_alpha_explicit_relocs
=no
22504 if test $in_tree_gas = yes; then
22505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22506 then gcc_cv_as_alpha_explicit_relocs
=yes
22508 elif test x
$gcc_cv_as != x
; then
22509 echo ' .set nomacro
22511 extbl $3, $2, $3 !lituse_bytoff!1
22512 ldq $2, a($29) !literal!1
22513 ldq $4, b($29) !literal!2
22514 ldq_u $3, 0($2) !lituse_base!1
22515 ldq $27, f($29) !literal!5
22516 jsr $26, ($27), f !lituse_jsr!5
22517 ldah $29, 0($26) !gpdisp!3
22518 lda $0, c($29) !gprel
22519 ldah $1, d($29) !gprelhigh
22520 lda $1, d($1) !gprellow
22521 lda $29, 0($29) !gpdisp!3' > conftest.s
22522 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22524 (eval $ac_try) 2>&5
22526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22527 test $ac_status = 0; }; }
22529 gcc_cv_as_alpha_explicit_relocs
=yes
22531 echo "configure: failed program was" >&5
22534 rm -f conftest.o conftest.s
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22538 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22539 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22541 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22545 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22546 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22547 $as_echo_n "(cached) " >&6
22549 gcc_cv_as_alpha_jsrdirect_relocs
=no
22550 if test $in_tree_gas = yes; then
22551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22552 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22554 elif test x
$gcc_cv_as != x
; then
22555 echo ' .set nomacro
22557 ldq $27, a($29) !literal!1
22558 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561 (eval $ac_try) 2>&5
22563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564 test $ac_status = 0; }; }
22566 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22568 echo "configure: failed program was" >&5
22571 rm -f conftest.o conftest.s
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22575 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22576 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22578 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22585 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22586 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22587 $as_echo_n "(cached) " >&6
22589 gcc_cv_as_cris_no_mul_bug
=no
22590 if test $in_tree_gas = yes; then
22591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22592 then gcc_cv_as_cris_no_mul_bug
=yes
22594 elif test x
$gcc_cv_as != x
; then
22595 echo '.text' > conftest.s
22596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22598 (eval $ac_try) 2>&5
22600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22601 test $ac_status = 0; }; }
22603 gcc_cv_as_cris_no_mul_bug
=yes
22605 echo "configure: failed program was" >&5
22608 rm -f conftest.o conftest.s
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22612 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22613 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22615 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22622 $as_echo_n "checking assembler for .register... " >&6; }
22623 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22624 $as_echo_n "(cached) " >&6
22626 gcc_cv_as_sparc_register_op
=no
22627 if test x
$gcc_cv_as != x
; then
22628 echo '.register %g2, #scratch' > conftest.s
22629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22631 (eval $ac_try) 2>&5
22633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22634 test $ac_status = 0; }; }
22636 gcc_cv_as_sparc_register_op
=yes
22638 echo "configure: failed program was" >&5
22641 rm -f conftest.o conftest.s
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22645 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22646 if test $gcc_cv_as_sparc_register_op = yes; then
22648 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22653 $as_echo_n "checking assembler for -relax option... " >&6; }
22654 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22657 gcc_cv_as_sparc_relax
=no
22658 if test x
$gcc_cv_as != x
; then
22659 echo '.text' > conftest.s
22660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }
22667 gcc_cv_as_sparc_relax
=yes
22669 echo "configure: failed program was" >&5
22672 rm -f conftest.o conftest.s
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22676 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22677 if test $gcc_cv_as_sparc_relax = yes; then
22679 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22684 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22685 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22686 $as_echo_n "(cached) " >&6
22688 gcc_cv_as_sparc_gotdata_op
=no
22689 if test x
$gcc_cv_as != x
; then
22694 sethi %gdop_hix22(foo), %g1
22695 xor %g1, %gdop_lox10(foo), %g1
22696 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22704 if test x
$gcc_cv_ld != x \
22705 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22706 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22707 if test x
$gcc_cv_objdump != x
; then
22708 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22709 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22710 gcc_cv_as_sparc_gotdata_op
=no
22712 gcc_cv_as_sparc_gotdata_op
=yes
22716 gcc_cv_as_sparc_gotdata_op
=yes
22721 echo "configure: failed program was" >&5
22724 rm -f conftest.o conftest.s
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22728 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22729 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22731 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22736 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22737 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22740 gcc_cv_as_sparc_ua_pcrel
=no
22741 if test x
$gcc_cv_as != x
; then
22748 .uaword %r_disp32(foo)' > conftest.s
22749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }
22756 if test x
$gcc_cv_ld != x \
22757 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22758 gcc_cv_as_sparc_ua_pcrel
=yes
22762 echo "configure: failed program was" >&5
22765 rm -f conftest.o conftest.s
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22769 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22770 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22772 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22776 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22777 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22778 $as_echo_n "(cached) " >&6
22780 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22781 if test x
$gcc_cv_as != x
; then
22785 .uaword %r_disp32(foo)
22786 .byte 0x32, 0x33, 0x34
22790 .skip 4' > conftest.s
22791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22793 (eval $ac_try) 2>&5
22795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22796 test $ac_status = 0; }; }
22798 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22799 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22800 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22801 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22802 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22803 |
grep 'DISP32' > /dev
/null
2>&1; then
22806 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22811 echo "configure: failed program was" >&5
22814 rm -f conftest.o conftest.s
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22818 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22819 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22821 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22825 fi # unaligned pcrel relocs
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22828 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22829 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22832 gcc_cv_as_sparc_offsetable_lo10
=no
22833 if test x
$gcc_cv_as != x
; then
22835 or %g1, %lo(ab) + 12, %g1
22836 or %g1, %lo(ab + 12), %g1' > conftest.s
22837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }
22844 if test x
$gcc_cv_objdump != x \
22845 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22846 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22847 gcc_cv_as_sparc_offsetable_lo10
=yes
22850 echo "configure: failed program was" >&5
22853 rm -f conftest.o conftest.s
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22857 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22858 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22860 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22865 i
[34567]86-*-* | x86_64-
*-*)
22868 # Full C++ conformance when using a shared libstdc++-v3 requires some
22869 # support from the Cygwin DLL, which in more recent versions exports
22870 # wrappers to aid in interposing and redirecting operators new, delete,
22871 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22872 # are configuring for a version of Cygwin that exports the wrappers.
22873 if test x
$host = x
$target; then
22874 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22875 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
22876 gcc_ac_cygwin_dll_wrappers
=yes
22878 gcc_ac_cygwin_dll_wrappers
=no
22882 # Can't check presence of libc functions during cross-compile, so
22883 # we just have to assume we're building for an up-to-date target.
22884 gcc_ac_cygwin_dll_wrappers
=yes
22887 cat >>confdefs.h
<<_ACEOF
22888 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22893 cygwin
* | pe | mingw32
*)
22894 # Recent binutils allows the three-operand form of ".comm" on PE. This
22895 # definition is used unconditionally to initialise the default state of
22896 # the target option variable that governs usage of the feature.
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22898 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22899 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22900 $as_echo_n "(cached) " >&6
22902 gcc_cv_as_comm_has_align
=no
22903 if test $in_tree_gas = yes; then
22904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22905 then gcc_cv_as_comm_has_align
=yes
22907 elif test x
$gcc_cv_as != x
; then
22908 echo '.comm foo,1,32' > conftest.s
22909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22911 (eval $ac_try) 2>&5
22913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914 test $ac_status = 0; }; }
22916 gcc_cv_as_comm_has_align
=yes
22918 echo "configure: failed program was" >&5
22921 rm -f conftest.o conftest.s
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22925 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22928 cat >>confdefs.h
<<_ACEOF
22929 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22932 # Used for DWARF 2 in PE
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22934 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22935 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22936 $as_echo_n "(cached) " >&6
22938 gcc_cv_as_ix86_pe_secrel32
=no
22939 if test $in_tree_gas = yes; then
22940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22941 then gcc_cv_as_ix86_pe_secrel32
=yes
22943 elif test x
$gcc_cv_as != x
; then
22947 .secrel32 foo' > conftest.s
22948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22950 (eval $ac_try) 2>&5
22952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22953 test $ac_status = 0; }; }
22955 if test x
$gcc_cv_ld != x \
22956 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22957 gcc_cv_as_ix86_pe_secrel32
=yes
22961 echo "configure: failed program was" >&5
22964 rm -f conftest.o conftest.s
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22968 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22969 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22971 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22974 # Test if the assembler supports the extended form of the .section
22975 # directive that specifies section alignment. LTO support uses this,
22976 # but normally only after installation, so we warn but don't fail the
22977 # configure if LTO is enabled but the assembler does not support it.
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
22979 $as_echo_n "checking assembler for .section with alignment... " >&6; }
22980 if test "${gcc_cv_as_section_has_align+set}" = set; then :
22981 $as_echo_n "(cached) " >&6
22983 gcc_cv_as_section_has_align
=no
22984 if test $in_tree_gas = yes; then
22985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
22986 then gcc_cv_as_section_has_align
=yes
22988 elif test x
$gcc_cv_as != x
; then
22989 echo '.section lto_test,"dr0"' > conftest.s
22990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
22991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22992 (eval $ac_try) 2>&5
22994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995 test $ac_status = 0; }; }
22997 gcc_cv_as_section_has_align
=yes
22999 echo "configure: failed program was" >&5
23002 rm -f conftest.o conftest.s
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23006 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23008 if test x
$gcc_cv_as_section_has_align != xyes
; then
23009 case ",$enable_languages," in
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
23012 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23020 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23021 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23022 $as_echo_n "(cached) " >&6
23024 gcc_cv_as_ix86_filds
=no
23025 if test x
$gcc_cv_as != x
; then
23026 echo 'filds mem; fists mem' > 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_filds
=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_filds" >&5
23043 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23044 if test $gcc_cv_as_ix86_filds = yes; then
23046 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23051 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23052 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23053 $as_echo_n "(cached) " >&6
23055 gcc_cv_as_ix86_fildq
=no
23056 if test x
$gcc_cv_as != x
; then
23057 echo 'fildq mem; fistpq mem' > 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_fildq
=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_fildq" >&5
23074 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23075 if test $gcc_cv_as_ix86_fildq = yes; then
23077 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23082 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23083 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23086 gcc_cv_as_ix86_cmov_sun_syntax
=no
23087 if test x
$gcc_cv_as != x
; then
23088 echo 'cmovl.l %edx, %eax' > conftest.s
23089 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }
23096 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23098 echo "configure: failed program was" >&5
23101 rm -f conftest.o conftest.s
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23105 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23106 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23108 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23113 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23114 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23115 $as_echo_n "(cached) " >&6
23117 gcc_cv_as_ix86_ffreep
=no
23118 if test x
$gcc_cv_as != x
; then
23119 echo 'ffreep %st(1)' > conftest.s
23120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23122 (eval $ac_try) 2>&5
23124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125 test $ac_status = 0; }; }
23127 gcc_cv_as_ix86_ffreep
=yes
23129 echo "configure: failed program was" >&5
23132 rm -f conftest.o conftest.s
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23136 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23137 if test $gcc_cv_as_ix86_ffreep = yes; then
23139 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23144 $as_echo_n "checking assembler for .quad directive... " >&6; }
23145 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23146 $as_echo_n "(cached) " >&6
23148 gcc_cv_as_ix86_quad
=no
23149 if test x
$gcc_cv_as != x
; then
23150 echo '.quad 0' > conftest.s
23151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153 (eval $ac_try) 2>&5
23155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156 test $ac_status = 0; }; }
23158 gcc_cv_as_ix86_quad
=yes
23160 echo "configure: failed program was" >&5
23163 rm -f conftest.o conftest.s
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23167 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23168 if test $gcc_cv_as_ix86_quad = yes; then
23170 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23175 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23176 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23179 gcc_cv_as_ix86_sahf
=no
23180 if test x
$gcc_cv_as != x
; then
23183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23185 (eval $ac_try) 2>&5
23187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188 test $ac_status = 0; }; }
23190 gcc_cv_as_ix86_sahf
=yes
23192 echo "configure: failed program was" >&5
23195 rm -f conftest.o conftest.s
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23199 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23200 if test $gcc_cv_as_ix86_sahf = yes; then
23202 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23207 $as_echo_n "checking assembler for swap suffix... " >&6; }
23208 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23211 gcc_cv_as_ix86_swap
=no
23212 if test x
$gcc_cv_as != x
; then
23213 echo 'movl.s %esp, %ebp' > conftest.s
23214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23216 (eval $ac_try) 2>&5
23218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23219 test $ac_status = 0; }; }
23221 gcc_cv_as_ix86_swap
=yes
23223 echo "configure: failed program was" >&5
23226 rm -f conftest.o conftest.s
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23230 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23231 if test $gcc_cv_as_ix86_swap = yes; then
23233 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23238 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23239 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23240 $as_echo_n "(cached) " >&6
23242 gcc_cv_as_ix86_diff_sect_delta
=no
23243 if test x
$gcc_cv_as != x
; then
23244 echo '.section .rodata
23250 .L2: nop' > conftest.s
23251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23253 (eval $ac_try) 2>&5
23255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23256 test $ac_status = 0; }; }
23258 gcc_cv_as_ix86_diff_sect_delta
=yes
23260 echo "configure: failed program was" >&5
23263 rm -f conftest.o conftest.s
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23267 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23268 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23270 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23274 # These two are used unconditionally by i386.[ch]; it is to be defined
23275 # to 1 if the feature is present, 0 otherwise.
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23277 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23278 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23279 $as_echo_n "(cached) " >&6
23281 gcc_cv_as_ix86_gotoff_in_data
=no
23282 if test $in_tree_gas = yes; then
23283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23284 then gcc_cv_as_ix86_gotoff_in_data
=yes
23286 elif test x
$gcc_cv_as != x
; then
23291 .long .L0@GOTOFF' > conftest.s
23292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23294 (eval $ac_try) 2>&5
23296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23297 test $ac_status = 0; }; }
23299 gcc_cv_as_ix86_gotoff_in_data
=yes
23301 echo "configure: failed program was" >&5
23304 rm -f conftest.o conftest.s
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23308 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23311 cat >>confdefs.h
<<_ACEOF
23312 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23317 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23318 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23319 $as_echo_n "(cached) " >&6
23321 gcc_cv_as_ix86_rep_lock_prefix
=no
23322 if test x
$gcc_cv_as != x
; then
23324 lock orl $0, (%esp)' > conftest.s
23325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23332 gcc_cv_as_ix86_rep_lock_prefix
=yes
23334 echo "configure: failed program was" >&5
23337 rm -f conftest.o conftest.s
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23341 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23344 cat >>confdefs.h
<<_ACEOF
23345 #define HAVE_AS_IX86_REP_LOCK_PREFIX `if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then echo 1; else echo 0; fi`
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23353 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23354 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23355 $as_echo_n "(cached) " >&6
23357 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23358 if test $in_tree_gas = yes; then
23359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23360 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23362 elif test x
$gcc_cv_as != x
; then
23364 addl r15 = @ltoffx(x#), gp
23366 ld8.mov r16 = [r15], x#' > conftest.s
23367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23369 (eval $ac_try) 2>&5
23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; }
23374 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23376 echo "configure: failed program was" >&5
23379 rm -f conftest.o conftest.s
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23383 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23384 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23386 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23394 *-*-aix*) conftest_s
=' .machine "pwr5"
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23399 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23400 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23401 $as_echo_n "(cached) " >&6
23403 gcc_cv_as_machine_directive
=no
23404 if test x
$gcc_cv_as != x
; then
23405 echo ' .machine ppc7400' > conftest.s
23406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23408 (eval $ac_try) 2>&5
23410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23411 test $ac_status = 0; }; }
23413 gcc_cv_as_machine_directive
=yes
23415 echo "configure: failed program was" >&5
23418 rm -f conftest.o conftest.s
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23422 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23424 if test x
$gcc_cv_as_machine_directive != xyes
; then
23425 echo "*** This target requires an assembler supporting \".machine\"" >&2
23426 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23427 test x
$build = x
$target && exit 1
23431 *) conftest_s
=' .machine power4
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23437 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23438 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23439 $as_echo_n "(cached) " >&6
23441 gcc_cv_as_powerpc_mfcrf
=no
23442 if test $in_tree_gas = yes; then
23443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23444 then gcc_cv_as_powerpc_mfcrf
=yes
23446 elif test x
$gcc_cv_as != x
; then
23447 echo "$conftest_s" > conftest.s
23448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23450 (eval $ac_try) 2>&5
23452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23453 test $ac_status = 0; }; }
23455 gcc_cv_as_powerpc_mfcrf
=yes
23457 echo "configure: failed program was" >&5
23460 rm -f conftest.o conftest.s
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23464 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23465 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23467 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23472 *-*-aix*) conftest_s
=' .machine "pwr5"
23475 *) conftest_s
=' .machine power5
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23481 $as_echo_n "checking assembler for popcntb support... " >&6; }
23482 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23483 $as_echo_n "(cached) " >&6
23485 gcc_cv_as_powerpc_popcntb
=no
23486 if test $in_tree_gas = yes; then
23487 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23488 then gcc_cv_as_powerpc_popcntb
=yes
23490 elif test x
$gcc_cv_as != x
; then
23491 echo "$conftest_s" > conftest.s
23492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23494 (eval $ac_try) 2>&5
23496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23497 test $ac_status = 0; }; }
23499 gcc_cv_as_powerpc_popcntb
=yes
23501 echo "configure: failed program was" >&5
23504 rm -f conftest.o conftest.s
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23508 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23509 if test $gcc_cv_as_powerpc_popcntb = yes; then
23511 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23516 *-*-aix*) conftest_s
=' .machine "pwr5x"
23519 *) conftest_s
=' .machine power5
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23525 $as_echo_n "checking assembler for fp round support... " >&6; }
23526 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23527 $as_echo_n "(cached) " >&6
23529 gcc_cv_as_powerpc_fprnd
=no
23530 if test $in_tree_gas = yes; then
23531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23532 then gcc_cv_as_powerpc_fprnd
=yes
23534 elif test x
$gcc_cv_as != x
; then
23535 echo "$conftest_s" > conftest.s
23536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23538 (eval $ac_try) 2>&5
23540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23541 test $ac_status = 0; }; }
23543 gcc_cv_as_powerpc_fprnd
=yes
23545 echo "configure: failed program was" >&5
23548 rm -f conftest.o conftest.s
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23552 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23553 if test $gcc_cv_as_powerpc_fprnd = yes; then
23555 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23560 *-*-aix*) conftest_s
=' .machine "pwr6"
23563 *) conftest_s
=' .machine power6
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23569 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23570 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23571 $as_echo_n "(cached) " >&6
23573 gcc_cv_as_powerpc_mfpgpr
=no
23574 if test $in_tree_gas = yes; then
23575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23576 then gcc_cv_as_powerpc_mfpgpr
=yes
23578 elif test x
$gcc_cv_as != x
; then
23579 echo "$conftest_s" > conftest.s
23580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23582 (eval $ac_try) 2>&5
23584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23585 test $ac_status = 0; }; }
23587 gcc_cv_as_powerpc_mfpgpr
=yes
23589 echo "configure: failed program was" >&5
23592 rm -f conftest.o conftest.s
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23596 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23597 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23599 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23604 *-*-aix*) conftest_s
=' .csect .text[PR]
23606 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23610 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23611 *) conftest_s
=' .text
23613 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23617 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23618 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23619 $as_echo_n "(cached) " >&6
23621 gcc_cv_as_powerpc_rel16
=no
23622 if test $in_tree_gas = yes; then
23623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23624 then gcc_cv_as_powerpc_rel16
=yes
23626 elif test x
$gcc_cv_as != x
; then
23627 echo "$conftest_s" > conftest.s
23628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23630 (eval $ac_try) 2>&5
23632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23633 test $ac_status = 0; }; }
23635 gcc_cv_as_powerpc_rel16
=yes
23637 echo "configure: failed program was" >&5
23640 rm -f conftest.o conftest.s
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23644 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23645 if test $gcc_cv_as_powerpc_rel16 = yes; then
23647 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23652 *-*-aix*) conftest_s
=' .machine "pwr6"
23655 *) conftest_s
=' .machine power6
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23661 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23662 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23663 $as_echo_n "(cached) " >&6
23665 gcc_cv_as_powerpc_cmpb
=no
23666 if test $in_tree_gas = yes; then
23667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23668 then gcc_cv_as_powerpc_cmpb
=yes
23670 elif test x
$gcc_cv_as != x
; then
23671 echo "$conftest_s" > conftest.s
23672 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23674 (eval $ac_try) 2>&5
23676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23677 test $ac_status = 0; }; }
23679 gcc_cv_as_powerpc_cmpb
=yes
23681 echo "configure: failed program was" >&5
23684 rm -f conftest.o conftest.s
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23688 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23689 if test $gcc_cv_as_powerpc_cmpb = yes; then
23691 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23696 *-*-aix*) conftest_s
=' .machine "pwr6"
23699 *) conftest_s
=' .machine power6
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23705 $as_echo_n "checking assembler for decimal float support... " >&6; }
23706 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23709 gcc_cv_as_powerpc_dfp
=no
23710 if test $in_tree_gas = yes; then
23711 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23712 then gcc_cv_as_powerpc_dfp
=yes
23714 elif test x
$gcc_cv_as != x
; then
23715 echo "$conftest_s" > conftest.s
23716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23718 (eval $ac_try) 2>&5
23720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23721 test $ac_status = 0; }; }
23723 gcc_cv_as_powerpc_dfp
=yes
23725 echo "configure: failed program was" >&5
23728 rm -f conftest.o conftest.s
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23732 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23733 if test $gcc_cv_as_powerpc_dfp = yes; then
23735 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23740 *-*-aix*) conftest_s
=' .machine "pwr7"
23743 *) conftest_s
=' .machine power7
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23749 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23750 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23751 $as_echo_n "(cached) " >&6
23753 gcc_cv_as_powerpc_vsx
=no
23754 if test $in_tree_gas = yes; then
23755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23756 then gcc_cv_as_powerpc_vsx
=yes
23758 elif test x
$gcc_cv_as != x
; then
23759 echo "$conftest_s" > conftest.s
23760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23762 (eval $ac_try) 2>&5
23764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23765 test $ac_status = 0; }; }
23767 gcc_cv_as_powerpc_vsx
=yes
23769 echo "configure: failed program was" >&5
23772 rm -f conftest.o conftest.s
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23776 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23777 if test $gcc_cv_as_powerpc_vsx = yes; then
23779 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23784 *-*-aix*) conftest_s
=' .machine "pwr7"
23787 *) conftest_s
=' .machine power7
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23793 $as_echo_n "checking assembler for popcntd support... " >&6; }
23794 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23797 gcc_cv_as_powerpc_popcntd
=no
23798 if test $in_tree_gas = yes; then
23799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23800 then gcc_cv_as_powerpc_popcntd
=yes
23802 elif test x
$gcc_cv_as != x
; then
23803 echo "$conftest_s" > conftest.s
23804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; }
23811 gcc_cv_as_powerpc_popcntd
=yes
23813 echo "configure: failed program was" >&5
23816 rm -f conftest.o conftest.s
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23820 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23821 if test $gcc_cv_as_powerpc_popcntd = yes; then
23823 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23828 *-*-aix*) conftest_s
=' .csect .text[PR]
23830 *) conftest_s
=' .text
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23835 $as_echo_n "checking assembler for lwsync support... " >&6; }
23836 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23837 $as_echo_n "(cached) " >&6
23839 gcc_cv_as_powerpc_lwsync
=no
23840 if test $in_tree_gas = yes; then
23841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23842 then gcc_cv_as_powerpc_lwsync
=yes
23844 elif test x
$gcc_cv_as != x
; then
23845 echo "$conftest_s" > conftest.s
23846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23848 (eval $ac_try) 2>&5
23850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23851 test $ac_status = 0; }; }
23853 gcc_cv_as_powerpc_lwsync
=yes
23855 echo "configure: failed program was" >&5
23858 rm -f conftest.o conftest.s
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23862 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23863 if test $gcc_cv_as_powerpc_lwsync = yes; then
23865 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23870 *-*-aix*) conftest_s
=' .machine "476"
23873 *) conftest_s
=' .machine "476"
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23879 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23880 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23881 $as_echo_n "(cached) " >&6
23883 gcc_cv_as_powerpc_dci
=no
23884 if test $in_tree_gas = yes; then
23885 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23886 then gcc_cv_as_powerpc_dci
=yes
23888 elif test x
$gcc_cv_as != x
; then
23889 echo "$conftest_s" > conftest.s
23890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23892 (eval $ac_try) 2>&5
23894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23895 test $ac_status = 0; }; }
23897 gcc_cv_as_powerpc_dci
=yes
23899 echo "configure: failed program was" >&5
23902 rm -f conftest.o conftest.s
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23906 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23907 if test $gcc_cv_as_powerpc_dci = yes; then
23909 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23914 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23915 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23916 $as_echo_n "(cached) " >&6
23918 gcc_cv_as_powerpc_gnu_attribute
=no
23919 if test $in_tree_gas = yes; then
23920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23921 then gcc_cv_as_powerpc_gnu_attribute
=yes
23923 elif test x
$gcc_cv_as != x
; then
23924 echo '.gnu_attribute 4,1' > conftest.s
23925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23927 (eval $ac_try) 2>&5
23929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23930 test $ac_status = 0; }; }
23932 gcc_cv_as_powerpc_gnu_attribute
=yes
23934 echo "configure: failed program was" >&5
23937 rm -f conftest.o conftest.s
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23941 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23942 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23944 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23949 $as_echo_n "checking assembler for tls marker support... " >&6; }
23950 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23951 $as_echo_n "(cached) " >&6
23953 gcc_cv_as_powerpc_tls_markers
=no
23954 if test $in_tree_gas = yes; then
23955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23956 then gcc_cv_as_powerpc_tls_markers
=yes
23958 elif test x
$gcc_cv_as != x
; then
23959 echo ' bl __tls_get_addr(x@tlsgd)' > 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_powerpc_tls_markers
=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_powerpc_tls_markers" >&5
23976 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23977 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23979 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23986 $as_echo_n "checking assembler for .ref support... " >&6; }
23987 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23988 $as_echo_n "(cached) " >&6
23990 gcc_cv_as_aix_ref
=no
23991 if test $in_tree_gas = yes; then
23992 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23995 elif test x
$gcc_cv_as != x
; then
23996 echo ' .csect stuff[rw]
24002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }
24009 gcc_cv_as_aix_ref
=yes
24011 echo "configure: failed program was" >&5
24014 rm -f conftest.o conftest.s
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24018 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24019 if test $gcc_cv_as_aix_ref = yes; then
24021 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24030 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24031 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24032 $as_echo_n "(cached) " >&6
24034 gcc_cv_as_mips_explicit_relocs
=no
24035 if test $in_tree_gas = yes; then
24036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24037 then gcc_cv_as_mips_explicit_relocs
=yes
24039 elif test x
$gcc_cv_as != x
; then
24040 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24043 (eval $ac_try) 2>&5
24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24046 test $ac_status = 0; }; }
24048 gcc_cv_as_mips_explicit_relocs
=yes
24050 echo "configure: failed program was" >&5
24053 rm -f conftest.o conftest.s
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24057 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24058 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24059 if test x
$target_cpu_default = x
24060 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24061 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24065 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24066 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24069 gcc_cv_as_mips_no_shared
=no
24070 if test $in_tree_gas = yes; then
24071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24072 then gcc_cv_as_mips_no_shared
=yes
24074 elif test x
$gcc_cv_as != x
; then
24075 echo 'nop' > conftest.s
24076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24078 (eval $ac_try) 2>&5
24080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24081 test $ac_status = 0; }; }
24083 gcc_cv_as_mips_no_shared
=yes
24085 echo "configure: failed program was" >&5
24088 rm -f conftest.o conftest.s
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24092 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24093 if test $gcc_cv_as_mips_no_shared = yes; then
24095 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24100 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24101 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24104 gcc_cv_as_mips_gnu_attribute
=no
24105 if test $in_tree_gas = yes; then
24106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24107 then gcc_cv_as_mips_gnu_attribute
=yes
24109 elif test x
$gcc_cv_as != x
; then
24110 echo '.gnu_attribute 4,1' > conftest.s
24111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24118 gcc_cv_as_mips_gnu_attribute
=yes
24120 echo "configure: failed program was" >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24127 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24128 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24130 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24135 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24136 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24139 gcc_cv_as_mips_dtprelword
=no
24140 if test $in_tree_gas = yes; then
24141 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24142 then gcc_cv_as_mips_dtprelword
=yes
24144 elif test x
$gcc_cv_as != x
; then
24145 echo '.section .tdata,"awT",@progbits
24149 .dtprelword x+0x8000' > conftest.s
24150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24157 gcc_cv_as_mips_dtprelword
=yes
24159 echo "configure: failed program was" >&5
24162 rm -f conftest.o conftest.s
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24166 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24167 if test $gcc_cv_as_mips_dtprelword = yes; then
24169 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24174 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24175 gcc_cv_as_ld_jalr_reloc
=no
24176 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24177 if test $in_tree_ld = yes ; then
24178 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 \
24179 && test $in_tree_ld_is_elf = yes; then
24180 gcc_cv_as_ld_jalr_reloc
=yes
24182 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24183 echo ' .ent x' > conftest.s
24184 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24185 echo ' ld $25,%call16(y)($28)' >> conftest.s
24186 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24187 echo '1: jalr $25' >> conftest.s
24188 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24189 echo '1: jalr $25' >> conftest.s
24190 echo ' .end x' >> conftest.s
24191 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24192 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24193 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24194 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24195 gcc_cv_as_ld_jalr_reloc
=yes
24201 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24202 if test x
$target_cpu_default = x
; then
24203 target_cpu_default
=MASK_RELAX_PIC_CALLS
24205 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24209 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24212 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24213 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24214 $as_echo_n "(cached) " >&6
24216 gcc_cv_ld_mips_personality_relaxation
=no
24217 if test $in_tree_ld = yes ; then
24218 if test "$gcc_cv_gld_major_version" -eq 2 \
24219 -a "$gcc_cv_gld_minor_version" -ge 21 \
24220 -o "$gcc_cv_gld_major_version" -gt 2; then
24221 gcc_cv_ld_mips_personality_relaxation
=yes
24223 elif test x
$gcc_cv_as != x \
24224 -a x
$gcc_cv_ld != x \
24225 -a x
$gcc_cv_readelf != x
; then
24226 cat > conftest.s
<<EOF
24228 .cfi_personality 0x80,indirect_ptr
24235 .section .data,"aw",@progbits
24239 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24240 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24241 if $gcc_cv_readelf -d conftest
2>&1 \
24242 |
grep TEXTREL
> /dev
/null
2>&1; then
24244 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24245 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24248 gcc_cv_ld_mips_personality_relaxation
=yes
24252 rm -f conftest.s conftest.o conftest
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24255 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24256 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24258 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24264 # Mips and HP-UX need the GNU assembler.
24265 # Linux on IA64 might be able to use the Intel assembler.
24268 mips
*-*-* |
*-*-hpux* )
24269 if test x
$gas_flag = xyes \
24270 ||
test x
"$host" != x
"$build" \
24271 ||
test ! -x "$gcc_cv_as" \
24272 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24275 echo "*** This configuration requires the GNU assembler" >&2
24281 # ??? Not all targets support dwarf2 debug_line, even within a version
24282 # of gas. Moreover, we need to emit a valid instruction to trigger any
24283 # info to the output file. So, as supported targets are added to gas 2.11,
24284 # add some instruction here to (also) show we expect this might work.
24285 # ??? Once 2.11 is released, probably need to add first known working
24286 # version to the per-target configury.
24288 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24289 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24290 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24291 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24294 ia64
*-*-* | s390
*-*-*)
24301 if test x
"$insn" != x
; then
24303 .file 1 \"conftest.s\"
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24307 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24308 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24309 $as_echo_n "(cached) " >&6
24311 gcc_cv_as_dwarf2_debug_line
=no
24312 if test $in_tree_gas = yes; then
24313 if test $in_tree_gas_is_elf = yes \
24314 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24315 then gcc_cv_as_dwarf2_debug_line
=yes
24317 elif test x
$gcc_cv_as != x
; then
24318 echo "$conftest_s" > conftest.s
24319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24321 (eval $ac_try) 2>&5
24323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24324 test $ac_status = 0; }; }
24326 if test x
$gcc_cv_objdump != x \
24327 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24328 |
grep debug_line
> /dev
/null
2>&1; then
24329 gcc_cv_as_dwarf2_debug_line
=yes
24332 echo "configure: failed program was" >&5
24335 rm -f conftest.o conftest.s
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24339 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24342 # The .debug_line file table must be in the exact order that
24343 # we specified the files, since these indices are also used
24344 # by DW_AT_decl_file. Approximate this test by testing if
24345 # the assembler bitches if the same index is assigned twice.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24347 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24348 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24351 gcc_cv_as_dwarf2_file_buggy
=no
24352 if test x
$gcc_cv_as != x
; then
24353 echo ' .file 1 "foo.s"
24354 .file 1 "bar.s"' > conftest.s
24355 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24357 (eval $ac_try) 2>&5
24359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24360 test $ac_status = 0; }; }
24362 gcc_cv_as_dwarf2_file_buggy
=yes
24364 echo "configure: failed program was" >&5
24367 rm -f conftest.o conftest.s
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24371 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24374 if test $gcc_cv_as_dwarf2_debug_line = yes \
24375 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24377 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24382 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24383 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24386 gcc_cv_as_gdwarf2_flag
=no
24387 if test $in_tree_gas = yes; then
24388 if test $in_tree_gas_is_elf = yes \
24389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24390 then gcc_cv_as_gdwarf2_flag
=yes
24392 elif test x
$gcc_cv_as != x
; then
24393 echo "$insn" > conftest.s
24394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24396 (eval $ac_try) 2>&5
24398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24399 test $ac_status = 0; }; }
24401 gcc_cv_as_gdwarf2_flag
=yes
24403 echo "configure: failed program was" >&5
24406 rm -f conftest.o conftest.s
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24410 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24411 if test $gcc_cv_as_gdwarf2_flag = yes; then
24413 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24418 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24419 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24420 $as_echo_n "(cached) " >&6
24422 gcc_cv_as_gstabs_flag
=no
24423 if test $in_tree_gas = yes; then
24424 if test $in_tree_gas_is_elf = yes \
24425 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24426 then gcc_cv_as_gstabs_flag
=yes
24428 elif test x
$gcc_cv_as != x
; then
24429 echo "$insn" > conftest.s
24430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24432 (eval $ac_try) 2>&5
24434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24435 test $ac_status = 0; }; }
24437 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24438 # and warns about it, but still exits successfully. So check for
24440 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24442 (eval $ac_try) 2>&5
24444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24445 test $ac_status = 0; }; }
24447 else gcc_cv_as_gstabs_flag
=yes
24450 echo "configure: failed program was" >&5
24453 rm -f conftest.o conftest.s
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24457 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24458 if test $gcc_cv_as_gstabs_flag = yes; then
24460 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24465 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24466 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24469 gcc_cv_as_debug_prefix_map_flag
=no
24470 if test $in_tree_gas = yes; then
24471 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24472 then gcc_cv_as_debug_prefix_map_flag
=yes
24474 elif test x
$gcc_cv_as != x
; then
24475 echo "$insn" > conftest.s
24476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24483 gcc_cv_as_debug_prefix_map_flag
=yes
24485 echo "configure: failed program was" >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24492 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24493 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24495 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24501 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24502 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24505 gcc_cv_as_lcomm_with_alignment
=no
24506 if test x
$gcc_cv_as != x
; then
24507 echo '.lcomm bar,4,16' > conftest.s
24508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24515 gcc_cv_as_lcomm_with_alignment
=yes
24517 echo "configure: failed program was" >&5
24520 rm -f conftest.o conftest.s
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24524 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24525 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24527 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24531 # Check whether --enable-gnu-unique-object was given.
24532 if test "${enable_gnu_unique_object+set}" = set; then :
24533 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24535 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24536 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24540 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24541 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24542 $as_echo_n "(cached) " >&6
24544 gcc_cv_as_gnu_unique_object
=no
24545 if test $in_tree_gas = yes; then
24546 if test $in_tree_gas_is_elf = yes \
24547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24548 then gcc_cv_as_gnu_unique_object
=yes
24550 elif test x
$gcc_cv_as != x
; then
24551 echo '.type foo, @gnu_unique_object' > conftest.s
24552 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24554 (eval $ac_try) 2>&5
24556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24557 test $ac_status = 0; }; }
24559 gcc_cv_as_gnu_unique_object
=yes
24561 echo "configure: failed program was" >&5
24564 rm -f conftest.o conftest.s
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24568 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24569 if test $gcc_cv_as_gnu_unique_object = yes; then
24570 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24571 if test x
$host = x
$build -a x
$host = x
$target &&
24572 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24573 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24574 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24575 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24576 if test "$glibcnum" -ge 2011 ; then
24577 enable_gnu_unique_object
=yes
24583 if test x
$enable_gnu_unique_object = xyes
; then
24585 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24590 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24591 if test "${gcc_cv_as_line_zero+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24594 gcc_cv_as_line_zero
=no
24595 if test $in_tree_gas = yes; then
24596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24597 then gcc_cv_as_line_zero
=yes
24599 elif test "x$gcc_cv_as" != x
; then
24600 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24601 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603 (eval $ac_try) 2>&5
24605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606 test $ac_status = 0; }; } &&
24607 test "x`cat conftest.out`" = x
24609 gcc_cv_as_line_zero
=yes
24611 echo "configure: failed program was" >&5
24613 echo "configure: error output was" >&5
24614 cat conftest.out
>&5
24616 rm -f conftest.o conftest.s conftest.out
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24620 $as_echo "$gcc_cv_as_line_zero" >&6; }
24621 if test "x$gcc_cv_as_line_zero" = xyes
; then
24623 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24628 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24629 gcc_cv_ld_eh_frame_hdr
=no
24630 if test $in_tree_ld = yes ; then
24631 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 \
24632 && test $in_tree_ld_is_elf = yes; then
24633 gcc_cv_ld_eh_frame_hdr
=yes
24635 elif test x
$gcc_cv_ld != x
; then
24636 # Check if linker supports --eh-frame-hdr option
24637 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24638 gcc_cv_ld_eh_frame_hdr
=yes
24642 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24644 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24648 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24651 $as_echo_n "checking linker position independent executable support... " >&6; }
24653 if test $in_tree_ld = yes ; then
24654 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 \
24655 && test $in_tree_ld_is_elf = yes; then
24658 elif test x
$gcc_cv_ld != x
; then
24659 # Check if linker supports -pie option
24660 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24664 if test x
"$gcc_cv_ld_pie" = xyes
; then
24666 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24670 $as_echo "$gcc_cv_ld_pie" >&6; }
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24673 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24674 gcc_cv_ld_eh_gc_sections
=no
24675 if test $in_tree_ld = yes ; then
24676 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 \
24677 && test $in_tree_ld_is_elf = yes; then
24678 gcc_cv_ld_eh_gc_sections
=yes
24680 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24681 cat > conftest.s
<<EOF
24684 .type _start, @function
24687 .size _start, .-_start
24688 .section .text.foo,"ax",@progbits
24689 .type foo, @function
24693 .section .gcc_except_table.foo,"a",@progbits
24696 .section .eh_frame,"a",@progbits
24699 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24700 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24701 |
grep "gc-sections option ignored" > /dev
/null
; then
24702 gcc_cv_ld_eh_gc_sections
=no
24703 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24704 |
grep gcc_except_table
> /dev
/null
; then
24705 gcc_cv_ld_eh_gc_sections
=yes
24706 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24707 if test x
$gcc_cv_as_comdat_group != xyes
; then
24708 gcc_cv_ld_eh_gc_sections
=no
24709 cat > conftest.s
<<EOF
24712 .type _start, @function
24715 .size _start, .-_start
24716 .section .gnu.linkonce.t.foo,"ax",@progbits
24717 .type foo, @function
24721 .section .gcc_except_table.foo,"a",@progbits
24724 .section .eh_frame,"a",@progbits
24727 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24728 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24729 |
grep "gc-sections option ignored" > /dev
/null
; then
24730 gcc_cv_ld_eh_gc_sections
=no
24731 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24732 |
grep gcc_except_table
> /dev
/null
; then
24733 gcc_cv_ld_eh_gc_sections
=yes
24739 rm -f conftest.s conftest.o conftest
24743 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24744 gcc_cv_ld_eh_gc_sections
=no
24747 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24749 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24753 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24760 $as_echo_n "checking linker --as-needed support... " >&6; }
24761 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24764 gcc_cv_ld_as_needed
=no
24765 if test $in_tree_ld = yes ; then
24766 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 \
24767 && test $in_tree_ld_is_elf = yes; then
24768 gcc_cv_ld_as_needed
=yes
24770 elif test x
$gcc_cv_ld != x
; then
24771 # Check if linker supports --as-needed and --no-as-needed options
24772 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24773 gcc_cv_ld_as_needed
=yes
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24779 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24780 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24782 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24786 case "$target:$tm_file" in
24787 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24789 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24790 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24793 gcc_cv_ld_no_dot_syms
=no
24794 if test $in_tree_ld = yes ; then
24795 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
24796 gcc_cv_ld_no_dot_syms
=yes
24798 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24799 cat > conftest1.s
<<EOF
24803 cat > conftest2.s
<<EOF
24804 .section ".opd","aw"
24807 .type foo,@function
24809 .quad .LEfoo,.TOC.@tocbase,0
24815 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24816 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24817 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24818 gcc_cv_ld_no_dot_syms
=yes
24820 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24825 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24826 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24828 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24835 $as_echo_n "checking linker --build-id support... " >&6; }
24836 if test "${gcc_cv_ld_buildid+set}" = set; then :
24837 $as_echo_n "(cached) " >&6
24839 gcc_cv_ld_buildid
=no
24840 if test $in_tree_ld = yes ; then
24841 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24842 "$gcc_cv_gld_minor_version" -ge 18 -o \
24843 "$gcc_cv_gld_major_version" -gt 2 \
24844 && test $in_tree_ld_is_elf = yes; then
24845 gcc_cv_ld_buildid
=yes
24847 elif test x
$gcc_cv_ld != x
; then
24848 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
24849 gcc_cv_ld_buildid
=yes
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24854 $as_echo "$gcc_cv_ld_buildid" >&6; }
24855 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24857 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24861 # Check whether --enable-linker-build-id was given.
24862 if test "${enable_linker_build_id+set}" = set; then :
24863 enableval
=$enable_linker_build_id;
24865 enable_linker_build_id
=no
24869 if test x
"$enable_linker_build_id" = xyes
; then
24870 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24872 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24876 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24880 # In binutils 2.21, GNU ld gained support for new emulations fully
24881 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
24883 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
24884 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
24885 $as_echo_n "(cached) " >&6
24887 gcc_cv_ld_sol2_emulation
=no
24888 if test $in_tree_ld = yes ; then
24889 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24890 "$gcc_cv_gld_minor_version" -ge 21 -o \
24891 "$gcc_cv_gld_major_version" -gt 2 \
24892 && test $in_tree_ld_is_elf = yes; then
24893 gcc_cv_ld_sol2_emulation
=yes
24895 elif test x
$gcc_cv_ld != x
; then
24896 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
24897 grep _sol2
> /dev
/null
; then
24898 gcc_cv_ld_sol2_emulation
=yes
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
24903 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
24904 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
24906 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24911 $as_echo_n "checking linker --sysroot support... " >&6; }
24912 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24913 $as_echo_n "(cached) " >&6
24915 gcc_cv_ld_sysroot
=no
24916 if test $in_tree_ld = yes ; then
24917 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
24918 gcc_cv_ld_sysroot
=yes
24920 elif test x
$gcc_cv_ld != x
; then
24921 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24922 gcc_cv_ld_sysroot
=yes
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24927 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24928 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24930 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24934 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24935 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24936 && test "$prefix" != "NONE"; then
24938 cat >>confdefs.h
<<_ACEOF
24939 #define PREFIX_INCLUDE_DIR "$prefix/include"
24944 # Test for stack protector support in target C library.
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24946 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24947 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24948 $as_echo_n "(cached) " >&6
24950 gcc_cv_libc_provides_ssp
=no
24952 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24953 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24954 if test "x$with_headers" != x
; then
24955 glibc_header_dir
=$with_headers
24956 elif test "x$with_sysroot" = x
; then
24957 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24958 elif test "x$with_build_sysroot" != "x"; then
24959 glibc_header_dir
="${with_build_sysroot}/usr/include"
24960 elif test "x$with_sysroot" = xyes
; then
24961 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24963 glibc_header_dir
="${with_sysroot}/usr/include"
24966 glibc_header_dir
=/usr
/include
24968 # glibc 2.4 and later provides __stack_chk_fail and
24969 # either __stack_chk_guard, or TLS access to stack guard canary.
24970 if test -f $glibc_header_dir/features.h \
24971 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24972 $glibc_header_dir/features.h
> /dev
/null
; then
24973 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24974 $glibc_header_dir/features.h
> /dev
/null
; then
24975 gcc_cv_libc_provides_ssp
=yes
24976 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24977 $glibc_header_dir/features.h
> /dev
/null \
24978 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24979 $glibc_header_dir/features.h
> /dev
/null
; then
24980 gcc_cv_libc_provides_ssp
=yes
24981 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24982 $glibc_header_dir/features.h
> /dev
/null
&& \
24983 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24984 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24985 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24986 gcc_cv_libc_provides_ssp
=yes
24991 # Avoid complicated tests (see
24992 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24993 # simply assert that glibc does provide this, which is true for all
24994 # realistically usable GNU/Hurd configurations.
24995 gcc_cv_libc_provides_ssp
=yes;;
24996 *-*-darwin* |
*-*-freebsd*)
24997 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24998 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
24999 gcc_cv_libc_provides_ssp
=yes
25001 echo "no __stack_chk_fail on this target"
25005 *) gcc_cv_libc_provides_ssp
=no
;;
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25009 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25011 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
25013 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25017 # Check if TFmode long double should be used by default or not.
25018 # Some glibc targets used DFmode long double, but with glibc 2.4
25019 # and later they can use TFmode.
25021 powerpc
*-*-linux* | \
25022 powerpc
*-*-gnu* | \
25023 sparc
*-*-linux* | \
25027 # Check whether --with-long-double-128 was given.
25028 if test "${with_long_double_128+set}" = set; then :
25029 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25031 gcc_cv_target_ldbl128
=no
25032 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25033 if test "x$with_sysroot" = x
; then
25034 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25035 elif test "x$with_build_sysroot" != "x"; then
25036 glibc_header_dir
="${with_build_sysroot}/usr/include"
25037 elif test "x$with_sysroot" = xyes
; then
25038 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25040 glibc_header_dir
="${with_sysroot}/usr/include"
25043 glibc_header_dir
=/usr
/include
25045 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25046 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25047 && gcc_cv_target_ldbl128
=yes
25053 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25055 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25059 # Find out what GC implementation we want, or may, use.
25061 # Check whether --with-gc was given.
25062 if test "${with_gc+set}" = set; then :
25063 withval
=$with_gc; case "$withval" in
25070 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25074 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25082 echo "Using $GGC for garbage collection."
25084 # Libraries to use on the host. This will normally be set by the top
25085 # level Makefile. Here we simply capture the value for our Makefile.
25086 if test -z "${HOST_LIBS+set}"; then
25091 # Use the system's zlib library.
25093 zlibinc
="-I\$(srcdir)/../zlib"
25095 # Check whether --with-system-zlib was given.
25096 if test "${with_system_zlib+set}" = set; then :
25097 withval
=$with_system_zlib; zlibdir
=
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25107 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25108 # Check whether --enable-maintainer-mode was given.
25109 if test "${enable_maintainer_mode+set}" = set; then :
25110 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25117 $as_echo "$maintainer_mode" >&6; }
25119 if test "$maintainer_mode" = "yes"; then
25129 # Make empty files to contain the specs and options for each language.
25130 # Then add #include lines to for a compiler that has specs and/or options.
25136 # These (without "all_") are set in each config-lang.in.
25137 # `language' must be a single word so is spelled singularly.
25140 all_outputs
='Makefile gccbug'
25141 # List of language makefile fragments.
25142 all_lang_makefrags
=
25143 # List of language subdirectory makefiles. Deprecated.
25144 all_lang_makefiles
=
25145 # Additional files for gengtype
25146 all_gtfiles
="$target_gtfiles"
25148 # These are the languages that are set in --enable-languages,
25149 # and are available in the GCC tree.
25150 all_selected_languages
=
25152 # Add the language fragments.
25153 # Languages are added via two mechanisms. Some information must be
25154 # recorded in makefile variables, these are defined in config-lang.in.
25155 # We accumulate them and plug them into the main Makefile.
25156 # The other mechanism is a set of hooks for each of the main targets
25157 # like `clean', `install', etc.
25159 language_hooks
="Make-hooks"
25161 for lang
in ${srcdir}/*/config-lang.
in
25163 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25165 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25166 if test "x$lang_alias" = x
25168 echo "$lang doesn't set \$language." 1>&2
25171 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25172 subdirs
="$subdirs $subdir"
25174 # $gcc_subdir is where the gcc integration files are to be found
25175 # for a language, both for internal compiler purposes (compiler
25176 # sources implementing front-end to GCC tree converters), and for
25177 # build infrastructure purposes (Make-lang.in, etc.)
25179 # This will be <subdir> (relative to $srcdir) if a line like
25180 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25181 # is found in <langdir>/config-lang.in, and will remain <langdir>
25184 # Except for the language alias (fetched above), the regular
25185 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25186 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25187 # only this and the language alias.
25189 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25190 if [ "$gcc_subdir" = "" ]; then
25191 gcc_subdir
="$subdir"
25194 case ",$enable_languages," in
25196 all_selected_languages
="$all_selected_languages $lang_alias"
25197 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25198 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25209 .
${srcdir}/$gcc_subdir/config-lang.
in
25210 if test "x$language" = x
25212 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25217 case ",$enable_languages," in
25218 *,$lang_alias,*) ;;
25220 for i
in $subdir_requires; do
25221 test -f "${srcdir}/$i/config-lang.in" && continue
25229 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25230 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25231 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25233 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25234 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25236 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
25237 then all_lang_makefiles
="$gcc_subdir/Makefile"
25239 all_languages
="$all_languages $language"
25240 all_compilers
="$all_compilers $compilers"
25241 all_outputs
="$all_outputs $outputs"
25242 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25243 case ",$enable_languages," in
25246 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25250 # LTO needs to speak the platform's object file format, and has a
25251 # number of implementations of the required binary file access APIs.
25252 # ELF is the most common, and default. We only link libelf if ELF
25253 # is indeed the selected format.
25254 LTO_BINARY_READER
=${lto_binary_reader}
25255 LTO_USE_LIBELF
=-lelf
25256 if test "x$lto_binary_reader" != "xlto-elf" ; then
25266 # Pick up gtfiles for c
25268 .
${srcdir}/c-config-lang.
in
25269 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25272 for language
in $all_selected_languages
25274 check_languages
="$check_languages check-$language"
25277 # We link each language in with a set of hooks, reached indirectly via
25278 # lang.${target}. Only do so for selected languages.
25282 target_list
="all.cross start.encap rest.encap tags \
25283 install-common install-man install-info install-pdf install-html dvi \
25284 pdf html uninstall info man srcextra srcman srcinfo \
25285 mostlyclean clean distclean maintainer-clean install-plugin"
25287 for t
in $target_list
25290 for lang
in $all_selected_languages
25294 echo "lang.$t: $x" >> Make-hooks
25303 echo "dir ." > .gdbinit
25304 echo "dir ${srcdir}" >> .gdbinit
25305 if test x
$gdb_needs_out_file_path = xyes
25307 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25309 if test "x$subdirs" != x
; then
25312 echo "dir ${srcdir}/$s" >> .gdbinit
25315 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25317 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25321 # Find a directory in which to install a shared libgcc.
25323 # Check whether --enable-version-specific-runtime-libs was given.
25324 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25325 enableval
=$enable_version_specific_runtime_libs;
25330 # Check whether --with-slibdir was given.
25331 if test "${with_slibdir+set}" = set; then :
25332 withval
=$with_slibdir; slibdir
="$with_slibdir"
25334 if test "${enable_version_specific_runtime_libs+set}" = set; then
25335 slibdir
='$(libsubdir)'
25336 elif test "$host" != "$target"; then
25337 slibdir
='$(build_tooldir)/lib'
25339 slibdir
='$(libdir)'
25345 # Substitute configuration variables
25408 if test x
${build} = x
${host} ; then
25409 if test x
${host} = x
${target} ; then
25410 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25412 echo "Links are now set up to build a cross-compiler" 1>&2
25413 echo " from ${host} to ${target}." 1>&2
25416 if test x
${host} = x
${target} ; then
25417 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25418 echo " for ${target}." 1>&2
25420 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25421 echo " from ${host} to ${target}." 1>&2
25433 if test "x${CLOOGLIBS}" != "x" ; then
25435 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25441 if test "x${LIBELFLIBS}" != "x" ; then
25443 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25447 # Check for plugin support
25448 # Check whether --enable-plugin was given.
25449 if test "${enable_plugin+set}" = set; then :
25450 enableval
=$enable_plugin; enable_plugin
=$enableval
25452 enable_plugin
=yes; default_plugin
=yes
25457 if test x
"$enable_plugin" = x
"yes"; then
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25460 $as_echo_n "checking for exported symbols... " >&6; }
25461 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25462 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25463 if $gcc_cv_objdump -T conftest |
grep foobar
> /dev
/null
; then
25464 : # No need to use a flag
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25467 $as_echo_n "checking for -rdynamic... " >&6; }
25468 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25469 if $gcc_cv_objdump -T conftest |
grep foobar
> /dev
/null
; then
25470 plugin_rdynamic
=yes
25471 pluginlibs
="-rdynamic"
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25477 $as_echo "$plugin_rdynamic" >&6; }
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25483 $as_echo_n "checking for library containing dlopen... " >&6; }
25484 if test "${ac_cv_search_dlopen+set}" = set; then :
25485 $as_echo_n "(cached) " >&6
25487 ac_func_search_save_LIBS
=$LIBS
25488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25489 /* end confdefs.h. */
25491 /* Override any GCC internal prototype to avoid an error.
25492 Use char because int might match the return type of a GCC
25493 builtin and then its argument prototype would still apply. */
25506 for ac_lib
in '' dl
; do
25507 if test -z "$ac_lib"; then
25508 ac_res
="none required"
25511 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25513 if ac_fn_c_try_link
"$LINENO"; then :
25514 ac_cv_search_dlopen
=$ac_res
25516 rm -f core conftest.err conftest.
$ac_objext \
25518 if test "${ac_cv_search_dlopen+set}" = set; then :
25522 if test "${ac_cv_search_dlopen+set}" = set; then :
25525 ac_cv_search_dlopen
=no
25527 rm conftest.
$ac_ext
25528 LIBS
=$ac_func_search_save_LIBS
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25531 $as_echo "$ac_cv_search_dlopen" >&6; }
25532 ac_res
=$ac_cv_search_dlopen
25533 if test "$ac_res" != no
; then :
25534 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25538 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25539 pluginlibs
="$pluginlibs -ldl"
25543 # Check that we can build shared objects with -fPIC -shared
25544 saved_LDFLAGS
="$LDFLAGS"
25545 LDFLAGS
="$LDFLAGS -fPIC -shared"
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25547 $as_echo_n "checking for -fPIC -shared... " >&6; }
25548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h. */
25559 if ac_fn_c_try_link
"$LINENO"; then :
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25561 $as_echo "yes" >&6; }; have_pic_shared
=yes
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25564 $as_echo "no" >&6; }; have_pic_shared
=no
25566 rm -f core conftest.err conftest.
$ac_objext \
25567 conftest
$ac_exeext conftest.
$ac_ext
25568 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25572 LDFLAGS
="$saved_LDFLAGS"
25574 # If plugin support had been requested but not available, fail.
25575 if test x
"$enable_plugin" = x
"no" ; then
25576 if test x
"$default_plugin" != x
"yes"; then
25578 Building GCC with plugin support requires a host that supports
25579 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25586 if test x
"$enable_plugin" = x
"yes"; then
25588 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25592 # Configure the subdirectories
25593 # AC_CONFIG_SUBDIRS($subdirs)
25595 # Create the Makefile
25596 # and configure language subdirectories
25597 ac_config_files
="$ac_config_files $all_outputs"
25600 ac_config_commands
="$ac_config_commands default"
25602 cat >confcache
<<\_ACEOF
25603 # This file is a shell script that caches the results of configure
25604 # tests run on this system so they can be shared between configure
25605 # scripts and configure runs, see configure's option --config-cache.
25606 # It is not useful on other systems. If it contains results you don't
25607 # want to keep, you may remove or edit it.
25609 # config.status only pays attention to the cache file if you give it
25610 # the --recheck option to rerun configure.
25612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25614 # following values.
25618 # The following way of writing the cache mishandles newlines in values,
25619 # but we know of no workaround that is simple, portable, and efficient.
25620 # So, we kill variables containing newlines.
25621 # Ultrix sh set writes to stderr and can't be redirected directly,
25622 # and sets the high bit in the cache file unless we assign to the vars.
25624 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25625 eval ac_val
=\$
$ac_var
25629 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25630 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25633 _ | IFS | as_nl
) ;; #(
25634 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25635 *) { eval $ac_var=; unset $ac_var;} ;;
25641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25642 *${as_nl}ac_space
=\
*)
25643 # `set' does not quote correctly, so add quotes: double-quote
25644 # substitution turns \\\\ into \\, and sed turns \\ into \.
25647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25650 # `set' quotes correctly as required by POSIX, so do not add quotes.
25651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25664 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25665 if test -w "$cache_file"; then
25666 test "x$cache_file" != "x/dev/null" &&
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25668 $as_echo "$as_me: updating cache $cache_file" >&6;}
25669 cat confcache
>$cache_file
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25677 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25678 # Let make expand exec_prefix.
25679 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25681 DEFS
=-DHAVE_CONFIG_H
25685 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25686 # 1. Remove the extension, and $U if already installed.
25687 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25688 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25690 # will be set to the directory where LIBOBJS objects are built.
25691 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25692 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25694 LIBOBJS
=$ac_libobjs
25696 LTLIBOBJS
=$ac_ltlibobjs
25701 : ${CONFIG_STATUS=./config.status}
25703 ac_clean_files_save
=$ac_clean_files
25704 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25710 # Generated by $as_me.
25711 # Run this file to recreate the current configuration.
25712 # Compiler output produced by configure, useful for debugging
25713 # configure, is in config.log if it exists.
25716 ac_cs_recheck=false
25719 SHELL=\${CONFIG_SHELL-$SHELL}
25722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25723 ## -------------------- ##
25724 ## M4sh Initialization. ##
25725 ## -------------------- ##
25727 # Be more Bourne compatible
25728 DUALCASE
=1; export DUALCASE
# for MKS sh
25729 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25733 # is contrary to our usage. Disable this feature.
25734 alias -g '${1+"$@"}'='"$@"'
25735 setopt NO_GLOB_SUBST
25737 case `(set -o) 2>/dev/null` in #(
25749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25750 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25753 # Prefer a ksh shell builtin over an external printf program on Solaris,
25754 # but without wasting forks for bash or zsh.
25755 if test -z "$BASH_VERSION$ZSH_VERSION" \
25756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25757 as_echo='print
-r --'
25758 as_echo_n='print
-rn --'
25759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25760 as_echo='printf %s
\n'
25761 as_echo_n='printf %s
'
25763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25764 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25765 as_echo_n='/usr
/ucb
/echo -n'
25767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25768 as_echo_n_body='eval
25772 expr "X$arg" : "X\\(.*\\)$as_nl";
25773 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25775 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25777 export as_echo_n_body
25778 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25780 export as_echo_body
25781 as_echo='sh
-c $as_echo_body as_echo
'
25784 # The user is always right.
25785 if test "${PATH_SEPARATOR+set}" != set; then
25787 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25788 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25795 # We need space, tab and new line, in precisely that order. Quoting is
25796 # there to prevent editors from complaining about space-tab.
25797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25798 # splitting by setting IFS to empty value.)
25801 # Find who we are. Look in the path if we contain no directory separator.
25803 *[\\/]* ) as_myself=$0 ;;
25804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25805 for as_dir in $PATH
25808 test -z "$as_dir" && as_dir=.
25809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25815 # We did not find ourselves, most probably we were run as `sh COMMAND'
25816 # in which case we are not to be found in the path.
25817 if test "x$as_myself" = x
; then
25820 if test ! -f "$as_myself"; then
25821 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25825 # Unset variables that we do not need and which cause bugs (e.g. in
25826 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25827 # suppresses any "Segmentation fault" message there. '((' could
25828 # trigger a bug in pdksh 5.2.14.
25829 for as_var
in BASH_ENV ENV MAIL MAILPATH
25830 do eval test x\
${$as_var+set} = xset \
25831 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25844 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25847 # as_fn_error ERROR [LINENO LOG_FD]
25848 # ---------------------------------
25849 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25850 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25851 # script with status $?, using 1 if that was 0.
25854 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25856 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25857 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25859 $as_echo "$as_me: error: $1" >&2
25860 as_fn_exit
$as_status
25864 # as_fn_set_status STATUS
25865 # -----------------------
25866 # Set $? to STATUS, without forking.
25867 as_fn_set_status
()
25870 } # as_fn_set_status
25872 # as_fn_exit STATUS
25873 # -----------------
25874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25878 as_fn_set_status
$1
25884 # Portably unset VAR.
25887 { eval $1=; unset $1;}
25889 as_unset
=as_fn_unset
25890 # as_fn_append VAR VALUE
25891 # ----------------------
25892 # Append the text in VALUE to the end of the definition contained in VAR. Take
25893 # advantage of any shell optimizations that allow amortized linear growth over
25894 # repeated appends, instead of the typical quadratic growth present in naive
25896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25897 eval 'as_fn_append ()
25908 # as_fn_arith ARG...
25909 # ------------------
25910 # Perform arithmetic evaluation on the ARGs, and store the result in the
25911 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25912 # must be portable across $(()) and expr.
25913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25914 eval 'as_fn_arith ()
25921 as_val
=`expr "$@" || test $? -eq 1`
25926 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25927 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25933 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25934 as_basename
=basename
25939 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25945 as_me
=`$as_basename -- "$0" ||
25946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25947 X"$0" : 'X\(//\)$' \| \
25948 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25950 sed '/^.*\/\([^/][^/]*\)\/*$/{
25964 # Avoid depending upon Character Ranges.
25965 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25966 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25967 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25968 as_cr_digits
='0123456789'
25969 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25971 ECHO_C
= ECHO_N
= ECHO_T
=
25972 case `echo -n x` in #(((((
25974 case `echo 'xy\c'` in
25975 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25977 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25984 rm -f conf$$ conf$$.exe conf$$.
file
25985 if test -d conf$$.dir
; then
25986 rm -f conf$$.dir
/conf$$.
file
25989 mkdir conf$$.dir
2>/dev
/null
25991 if (echo >conf$$.
file) 2>/dev
/null
; then
25992 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25994 # ... but there are two gotchas:
25995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25997 # In both cases, we have to default to `cp -p'.
25998 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26000 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26008 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26009 rmdir conf$$.dir
2>/dev
/null
26014 # Create "$as_dir" as a directory, including parents if necessary.
26019 -*) as_dir
=.
/$as_dir;;
26021 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26025 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26026 *) as_qdir
=$as_dir;;
26028 as_dirs
="'$as_qdir' $as_dirs"
26029 as_dir
=`$as_dirname -- "$as_dir" ||
26030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26031 X"$as_dir" : 'X\(//\)[^/]' \| \
26032 X"$as_dir" : 'X\(//\)$' \| \
26033 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26034 $as_echo X"$as_dir" |
26035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26039 /^X\(\/\/\)[^/].*/{
26052 test -d "$as_dir" && break
26054 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26055 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26059 if mkdir
-p .
2>/dev
/null
; then
26060 as_mkdir_p
='mkdir -p "$as_dir"'
26062 test -d .
/-p && rmdir .
/-p
26066 if test -x / >/dev
/null
2>&1; then
26067 as_test_x
='test -x'
26069 if ls -dL / >/dev
/null
2>&1; then
26076 if test -d "$1"; then
26082 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26083 ???[sx]*):;;*)false;;esac;fi
26087 as_executable_p
=$as_test_x
26089 # Sed expression to map a string onto a valid CPP name.
26090 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26092 # Sed expression to map a string onto a valid variable name.
26093 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26097 ## ----------------------------------- ##
26098 ## Main body of $CONFIG_STATUS script. ##
26099 ## ----------------------------------- ##
26101 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26104 # Save the log message, to keep $0 and so on meaningful, and to
26105 # report actual input values of CONFIG_FILES etc. instead of their
26106 # values after options handling.
26108 This file was extended by $as_me, which was
26109 generated by GNU Autoconf 2.64. Invocation command line was
26111 CONFIG_FILES = $CONFIG_FILES
26112 CONFIG_HEADERS = $CONFIG_HEADERS
26113 CONFIG_LINKS = $CONFIG_LINKS
26114 CONFIG_COMMANDS = $CONFIG_COMMANDS
26117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26122 case $ac_config_files in *"
26123 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26126 case $ac_config_headers in *"
26127 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26132 # Files that config.status was made for.
26133 config_files="$ac_config_files"
26134 config_headers="$ac_config_headers"
26135 config_commands="$ac_config_commands"
26139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26141 \`$as_me' instantiates files and other configuration actions
26142 from templates according to the current configuration. Unless the files
26143 and actions are specified as TAGs, all are instantiated by default.
26145 Usage: $0 [OPTION]... [TAG]...
26147 -h, --help print this help, then exit
26148 -V, --version print version number and configuration settings, then exit
26149 -q, --quiet, --silent
26150 do not print progress messages
26151 -d, --debug don't remove temporary files
26152 --recheck update $as_me by reconfiguring in the same conditions
26153 --file=FILE[:TEMPLATE]
26154 instantiate the configuration file FILE
26155 --header=FILE[:TEMPLATE]
26156 instantiate the configuration header FILE
26158 Configuration files:
26161 Configuration headers:
26164 Configuration commands:
26167 Report bugs to the package provider."
26170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26173 configured by $0, generated by GNU Autoconf 2.64,
26174 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26176 Copyright (C) 2009 Free Software Foundation, Inc.
26177 This config.status script is free software; the Free Software Foundation
26178 gives unlimited permission to copy, distribute and modify it."
26183 test -n "\$AWK" || AWK=awk
26186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26187 # The default lists apply if the user does not specify any file.
26193 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26194 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26205 # Handling of the options.
26206 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26208 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26209 $as_echo "$ac_cs_version"; exit ;;
26210 --debug |
--debu |
--deb |
--de |
--d |
-d )
26212 --file |
--fil |
--fi |
--f )
26215 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26217 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26218 ac_need_defaults
=false
;;
26219 --header |
--heade |
--head |
--hea )
26222 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26224 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26225 ac_need_defaults
=false
;;
26227 # Conflict between --help and --header
26228 as_fn_error
"ambiguous option: \`$1'
26229 Try \`$0 --help' for more information.";;
26230 --help |
--hel |
-h )
26231 $as_echo "$ac_cs_usage"; exit ;;
26232 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26233 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26236 # This is an error.
26237 -*) as_fn_error
"unrecognized option: \`$1'
26238 Try \`$0 --help' for more information." ;;
26240 *) as_fn_append ac_config_targets
" $1"
26241 ac_need_defaults
=false
;;
26247 ac_configure_extra_args
=
26249 if $ac_cs_silent; then
26251 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26256 if \$ac_cs_recheck; then
26257 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26260 CONFIG_SHELL='$SHELL'
26261 export CONFIG_SHELL
26266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26271 ## Running $as_me. ##
26277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26287 # Handling of arguments.
26288 for ac_config_target
in $ac_config_targets
26290 case $ac_config_target in
26291 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26292 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26293 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26294 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26295 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26296 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26298 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26303 # If the user did not use the arguments to specify the items to instantiate,
26304 # then the envvar interface is used. Set only those that are not.
26305 # We use the long form for the default assignment because of an extremely
26306 # bizarre bug on SunOS 4.1.3.
26307 if $ac_need_defaults; then
26308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26313 # Have a temporary directory for convenience. Make it in the build tree
26314 # simply because there is no reason against having it here, and in addition,
26315 # creating and moving files from /tmp can sometimes cause problems.
26316 # Hook for its removal unless debugging.
26317 # Note that there is a small window in which the directory will not be cleaned:
26318 # after its creation but before its name has been assigned to `$tmp'.
26322 trap 'exit_status=$?
26323 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26325 trap 'as_fn_exit 1' 1 2 13 15
26327 # Create a (secure) tmp directory for tmp files.
26330 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26331 test -n "$tmp" && test -d "$tmp"
26334 tmp
=.
/conf$$
-$RANDOM
26335 (umask 077 && mkdir
"$tmp")
26336 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26338 # Set up the scripts for CONFIG_FILES section.
26339 # No need to generate them if there are no CONFIG_FILES.
26340 # This happens for instance with `./config.status config.h'.
26341 if test -n "$CONFIG_FILES"; then
26343 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26344 ac_cs_awk_getline
=:
26345 ac_cs_awk_pipe_init
=
26346 ac_cs_awk_read_file
='
26347 while ((getline aline < (F[key])) > 0)
26350 ac_cs_awk_pipe_fini
=
26352 ac_cs_awk_getline
=false
26353 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26354 ac_cs_awk_read_file
='
26356 print "cat " F[key] " &&"
26357 '$ac_cs_awk_pipe_init
26358 # The final `:' finishes the AND list.
26359 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26361 ac_cr
=`echo X | tr X '\015'`
26362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26363 # But we know of no other shell where ac_cr would be empty at this
26364 # point, so we can use a bashism as a fallback.
26365 if test "x$ac_cr" = x
; then
26366 eval ac_cr
=\$
\'\\r
\'
26368 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26372 ac_cs_awk_cr
=$ac_cr
26375 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26378 # Create commands to substitute file output variables.
26380 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26381 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26382 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26385 } >conf$
$files.sh
&&
26386 . .
/conf$
$files.sh ||
26387 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26388 rm -f conf$
$files.sh
26391 echo "cat >conf$$subs.awk <<_ACEOF" &&
26392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26394 } >conf$$subs.sh ||
26395 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26398 for ac_last_try in false false false false false :; do
26399 . ./conf$$subs.sh ||
26400 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26402 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26403 if test $ac_delim_n = $ac_delim_num; then
26405 elif $ac_last_try; then
26406 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26408 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26411 rm -f conf$$subs.sh
26413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26414 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26418 s/^/S["/; s
/!.
*/"]=/
26428 s/\(.\{148\}\).*/\1/
26430 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26435 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26442 s/\(.\{148\}\).*/\1/
26444 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26448 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26453 ' <conf$$subs.awk | sed '
26458 ' >>$CONFIG_STATUS || ac_write_fail=1
26459 rm -f conf$$subs.awk
26460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26462 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26463 for (key in S) S_is_set[key] = 1
26465 \$ac_cs_awk_pipe_init
26469 nfields = split(line, field, "@
")
26471 len = length(field[1])
26472 for (i = 2; i < nfields; i++) {
26474 keylen = length(key)
26475 if (S_is_set[key]) {
26477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26478 len += length(value) + length(field[++i])
26483 if (nfields == 3 && !substed) {
26485 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26486 \$ac_cs_awk_read_file
26492 \$ac_cs_awk_pipe_fini
26495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26496 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26497 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26500 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26501 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26504 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26505 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26506 # trailing colons and then remove the whole line if VPATH becomes empty
26507 # (actually we leave an empty line to preserve line numbers).
26508 if test "x
$srcdir" = x.; then
26509 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26510 s/:*\$(srcdir):*/:/
26511 s/:*\${srcdir}:*/:/
26513 s/^\([^=]*=[ ]*\):*/\1/
26519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26520 fi # test -n "$CONFIG_FILES"
26522 # Set up the scripts for CONFIG_HEADERS section.
26523 # No need to generate them if there are no CONFIG_HEADERS.
26524 # This happens for instance with `./config.status Makefile'.
26525 if test -n "$CONFIG_HEADERS"; then
26526 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26530 # Transform confdefs.h into an awk script `defines.awk', embedded as
26531 # here-document in config.status, that substitutes the proper values into
26532 # config.h.in to produce config.h.
26534 # Create a delimiter string that does not exist in confdefs.h, to ease
26535 # handling of long lines.
26537 for ac_last_try in false false :; do
26538 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26539 if test -z "$ac_t"; then
26541 elif $ac_last_try; then
26542 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26544 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26548 # For the awk script, D is an array of macro values keyed by name,
26549 # likewise P contains macro parameters if any. Preserve backslash
26550 # newline sequences.
26552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26554 s/.\{148\}/&'"$ac_delim"'/g
26557 s/^[ ]*#[ ]*define[ ][ ]*/ /
26564 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26566 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26571 D["\
1"]=" \
3\\\\\\n
"\\/p
26573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26578 s/.\{148\}/&'"$ac_delim"'/g
26583 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26586 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26588 ' <confdefs.h | sed '
26589 s/'"$ac_delim"'/"\\\
26590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26593 for (key in D) D_is_set[key] = 1
26596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26598 split(line, arg, " ")
26599 if (arg[1] == "#") {
26603 defundef
= substr
(arg
[1], 2)
26606 split(mac1
, mac2
, "(") #)
26608 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26609 if (D_is_set
[macro
]) {
26610 # Preserve the white space surrounding the "#".
26611 print prefix
"define", macro P
[macro
] D
[macro
]
26614 # Replace #undef with comments. This is necessary, for example,
26615 # in the case of _POSIX_SOURCE, which is predefined and required
26616 # on some systems where configure will not decide to define it.
26617 if (defundef
== "undef") {
26618 print
"/*", prefix defundef
, macro
, "*/"
26626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26627 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26628 fi # test -n "$CONFIG_HEADERS"
26631 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26636 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26638 case $ac_mode$ac_tag in
26640 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26641 :[FH
]-) ac_tag
=-:-;;
26642 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26659 -) ac_f
="$tmp/stdin";;
26660 *) # Look for the file first in the build tree, then in the source tree
26661 # (if the path is not absolute). The absolute path cannot be DOS-style,
26662 # because $ac_f cannot contain `:'.
26666 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26668 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26670 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26671 as_fn_append ac_file_inputs
" '$ac_f'"
26674 # Let's still pretend it is `configure' which instantiates (i.e., don't
26675 # use $as_me), people would be surprised to read:
26676 # /* config.h. Generated by config.status. */
26677 configure_input
='Generated from '`
26678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26680 if test x
"$ac_file" != x-
; then
26681 configure_input
="$ac_file. $configure_input"
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26683 $as_echo "$as_me: creating $ac_file" >&6;}
26685 # Neutralize special characters interpreted by sed in replacement strings.
26686 case $configure_input in #(
26687 *\
&* |
*\|
* |
*\\* )
26688 ac_sed_conf_input
=`$as_echo "$configure_input" |
26689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26690 *) ac_sed_conf_input
=$configure_input;;
26694 *:-:* |
*:-) cat >"$tmp/stdin" \
26695 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26700 ac_dir
=`$as_dirname -- "$ac_file" ||
26701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26702 X"$ac_file" : 'X\(//\)[^/]' \| \
26703 X"$ac_file" : 'X\(//\)$' \| \
26704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26705 $as_echo X"$ac_file" |
26706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26710 /^X\(\/\/\)[^/].*/{
26723 as_dir
="$ac_dir"; as_fn_mkdir_p
26727 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26729 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26730 # A ".." for each directory in $ac_dir_suffix.
26731 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26732 case $ac_top_builddir_sub in
26733 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26734 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26737 ac_abs_top_builddir
=$ac_pwd
26738 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26739 # for backward compatibility:
26740 ac_top_builddir
=$ac_top_build_prefix
26743 .
) # We are building in place.
26745 ac_top_srcdir
=$ac_top_builddir_sub
26746 ac_abs_top_srcdir
=$ac_pwd ;;
26747 [\\/]* | ?
:[\\/]* ) # Absolute name.
26748 ac_srcdir
=$srcdir$ac_dir_suffix;
26749 ac_top_srcdir
=$srcdir
26750 ac_abs_top_srcdir
=$srcdir ;;
26751 *) # Relative name.
26752 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26753 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26754 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26756 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26768 # If the template does not know about datarootdir, expand it.
26769 # FIXME: This hack should be removed a few years after 2.60.
26770 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26782 *datarootdir
*) ac_datarootdir_seen
=yes;;
26783 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26785 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26788 ac_datarootdir_hack='
26789 s&@datadir@&$datadir&g
26790 s&@docdir@&$docdir&g
26791 s&@infodir@&$infodir&g
26792 s&@localedir@&$localedir&g
26793 s&@mandir@&$mandir&g
26794 s&\\\${datarootdir}&$datarootdir&g' ;;
26798 # Neutralize VPATH when `$srcdir' = `.'.
26799 # Shell code in configure.ac might set extrasub.
26800 # FIXME: do we really want to maintain this feature?
26801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26802 ac_sed_extra="$ac_vpsub
26805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26807 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26808 s|@configure_input@|
$ac_sed_conf_input|
;t t
26809 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26810 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26811 s
&@srcdir@
&$ac_srcdir&;t t
26812 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26813 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26814 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26815 s
&@builddir@
&$ac_builddir&;t t
26816 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26817 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26818 $ac_datarootdir_hack
26820 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26821 if $ac_cs_awk_getline; then
26822 $AWK -f "$tmp/subs.
awk"
26824 $AWK -f "$tmp/subs.
awk" | $SHELL
26826 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26829 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26830 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26832 which seems to be undefined. Please make sure it is defined." >&5
26833 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26834 which seems to be undefined. Please make sure it is defined." >&2;}
26838 -) cat "$tmp/out" && rm -f "$tmp/out";;
26839 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26841 || as_fn_error "could not create $ac_file" "$LINENO" 5
26847 if test x"$ac_file" != x-; then
26849 $as_echo "/* $configure_input */" \
26850 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26851 } >"$tmp/config.h" \
26852 || as_fn_error "could not create $ac_file" "$LINENO" 5
26853 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26855 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26858 mv "$tmp/config.h" "$ac_file" \
26859 || as_fn_error "could not create $ac_file" "$LINENO" 5
26862 $as_echo "/* $configure_input */" \
26863 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26864 || as_fn_error "could not create -" "$LINENO" 5
26868 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26869 $as_echo "$as_me: executing $ac_file commands" >&6;}
26874 case $ac_file$ac_mode in
26875 "as":F) chmod +x as ;;
26876 "collect-ld":F) chmod +x collect-ld ;;
26877 "nm":F) chmod +x nm ;;
26879 case ${CONFIG_HEADERS} in
26880 *auto-host.h:config.in*)
26883 # Make sure all the subdirs exist.
26884 for d in $subdirs doc build
26886 test -d $d || mkdir $d
26896 ac_clean_files=$ac_clean_files_save
26898 test $ac_write_fail = 0 ||
26899 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26902 # configure is writing to config.log, and then calls config.status.
26903 # config.status does its own redirection, appending to config.log.
26904 # Unfortunately, on DOS this fails, as config.log is still kept open
26905 # by configure, so config.status won't be able to
write to it
; its
26906 # output is simply discarded. So we exec the FD to /dev/null,
26907 # effectively closing config.log, so it can be properly (re)opened and
26908 # appended to by config.status. When coming back to configure, we
26909 # need to make the FD available again.
26910 if test "$no_create" != yes; then
26912 ac_config_status_args
=
26913 test "$silent" = yes &&
26914 ac_config_status_args
="$ac_config_status_args --quiet"
26916 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26918 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26919 # would make configure fail if this is the last instruction.
26920 $ac_cs_success || as_fn_exit $?
26922 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26924 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}